/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base page look */
body {
    font-family: 'Nunito', sans-serif;
    background: #f8f5f2 url('images/bgpattern.gif') center/cover no-repeat;
    background-size: 150px;
    background-repeat: repeat;
    min-height: 100vh;
    padding: 20px;
    color: #555;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    min-height: 100vh;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

/* Nav links */
.nav-links a {
    text-decoration: none;
    color: #7a7a7a;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Hover effect */
.nav-links a:hover {
    background: #fff0f6;
    color: #ff6b9d;
}

/* ===== HEADER SECTION ===== */
.header {
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #fffaf7);
}

h1 {
    font-size: 3.5rem;
    color: #ff85a2;
    margin-bottom: 20px;
}

p {
    font-size: 1.3rem;
    color: #7a7a7a;
    max-width: 90%;
    margin: 0 auto 30px;
    padding: 15px 20px;
}

/* ===== FEATURES SECTION ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 10px;
}

/* Feature card box */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9f9f9;
}

.feature-card h3 {
    color: #ff85a2;
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3px;
    color: #a0a0a0;
    border-top: 1px solid #f0f0f0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 8px 15px;
        font-size: 16px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
}

/* ===== GALLERY ===== */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-nav {
    padding: 10px 0;
    margin-bottom: 20px;
}

.gallery-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-nav li {
    margin: 0 10px;
}

.gallery-nav a {
    color: rgba(0, 0, 0, 0.827);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-nav a:hover,
.gallery-nav a.active {
    background: #d7d7d7;
}

.gallery-title {
    text-align: center;
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* Masonry-style grid */
.gallery-grid {
    column-width: 250px;
    column-gap: 15px;
    margin: 10px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox overlay */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    padding: 20px;
    cursor: pointer;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    transition: transform 0.3s;
}

#lightbox-overlay img:hover {
    transform: scale(1.02);
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
    color: #333;
    font-size: 24px;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #ffa3a3;
}

/* Simple flex helper */
.flex {
  display: flex;
  align-items: center;
  justify-content: 
  gap: 15px;
  flex-wrap: wrap;
  margin: 10px 0; /* tighter vertical spacing */
}

.flex-item {
  flex: 1 1;
}
/* stack + center text on small screens */
@media (max-width: 700px) {
  .flex {
    flex-direction: column;
    text-align: center;
  }

  .flex-item img {
    max-width: 150px;
    margin-bottom: 10px;
  }
}
/* ===== CUTE PROJECT SECTION ===== */
.project-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
  padding: 20px;
}

/* Text block */
.project-text {
  flex: 1 1 300px;
  max-width: 400px;
}

.project-text h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2em;
  color: #d26ca4;
  margin-bottom: 0.4em;
}

.project-text .subtitle {
  color: #888;
  font-size: 1.1em;
  margin-bottom: 1em;
}

.project-text p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
}

/* Cute buttons */
.cute-button {
  display: inline-block;
  margin: 6px 6px 0 0;
  background: #d26ca4;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.cute-button:hover {
  background: #c05c93;
  transform: translateY(-2px);
}

.cute-button.secondary {
  background: #ffd7e8;
  color: #c05c93;
}

.cute-button.secondary:hover {
  background: #ffcde0;
}

/* Screenshot layout */
.project-images {
  flex: 1 1 350px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.project-images img {
  width: calc(50% - 6px);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

/* Mobile view */
@media (max-width: 800px) {
  .project-showcase {
    flex-direction: column;
    text-align: center;
  }

  .project-images img {
    width: 100%;
  }

  .project-text {
    max-width: none;
  }
}
