/* Color Palette */
:root {
    --mint-green: #96ffe8;
    --light-yellow: #fdffb6;
    --pink: #ffcad4;
    --soft-orange: #fec5bb;
    --warm-orange: #ffb17a;
}

/* General Body */
body {
    font-family: 'boucherie-cursive', sans-serif;
    font-weight: normal;
    background-color: var(--mint-green);
    color: #15434c;
    margin: 0;
    padding: 0;
    text-align: center;
   }

  html, body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      font-family: 'boucherie-cursive', sans-serif;
      font-weight: normal;
      background-color: var(--mint-green);
      color: #15434c;
      text-align: center;
  }
  

/* Header */

header {
    background-color: #ffb17a;
    padding: 20px 0;
   }

  header h1 {
      font-size: 4rem;
      font-family: 'beloved-sans', sans-serif;
      color: white;
      margin: 10px 0 5px;
    }

    header h4 {
      font-size: 3rem;
      font-family: 'boucherie-cursive', sans-serif;
      color: white;
      margin: -80px 0 0;
    }

h5 {
      font-family: 'beloved-sans', sans-serif;
      font-size: 3rem;
      margin: 0;
    
}


h2 {
    font-family: 'nitti-typewriter-open', sans-serif;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* subtle shadow */

}

h3 {
    font-family: 'nitti-typewriter-normal', sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.5rem;
}

h4 {
    font-family: 'boucherie-cursive', sans-serif;
    font-weight: normal;
    font-size: 3rem;
}


/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

nav ul li a {
    display: inline-block; /* Needed for transform to work */
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.1);
    color: #fdffb6;
}

/* Gallery */

#gallery {
    margin-bottom: 80px;
}
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.gallery-container img {
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0); /* force GPU rendering */
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(120%);
}

/* About Section */
#about {
    background-color: var(--pink);
    padding: 20px;
    padding-bottom: 100px; /* Adjust based on header height */
}

.about-image {
    width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

#about p {
    max-width: 600px;
    margin: 10px auto;
    padding: 0 15px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.2;
    font-family: 'boucherie-cursive', sans-serif;
    font-weight: normal;
}

#about p2 {
    max-width: 600px;
    margin: 10px auto;
    padding: 0 15px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
    font-family: 'boucherie-cursive', sans-serif;
    font-weight: normal;
}

.about-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  
  .child {
    text-align: center;
  }
  
  .child-img {
    width: 140px;
    height: auto;
  }
  
  .child-img.bigger {
    width: 160px; /* "The oldest" is slightly larger now */
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
  }
  
  .floating {
    animation: float 4s ease-in-out infinite;
  }

  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  

/* Contact Section */
#contact {
    background-color: var(--soft-orange);
    padding: 20px;
}

#contact p {
    font-size: 1.1rem;
    margin: 10px auto;
    font-family: 'nitti-typewriter-normal', sans-serif;
    font-weight: normal;
   }

   /* Creative Section */
  
   #creative {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100vw; /* Ensure it spans full viewport width */
    margin: 0;
    padding: 0;
}

#creative::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) scale(1.15);/* Adjust scale if needed */
    width: 80%;
    width: 100vw; /* Force full width */
    height: 105%;
    background-image: url('images/creative-banner.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-out;
    z-index: 0;
  }

#creative p {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'nitti-typewriter-normal', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

#creative .overlay {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px; /* match image size */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

#creative.in-view::before {
    transform: translate(-50%, -10%) scale(1.15);
}
    

#creative .content-wrapper {
    color: #ffffff; /* Ensure pure white text */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Optional: adds contrast */
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}







/* Projects Section */

#projects {
    background-color: var(--light-yellow);
    padding: 40px 20px 100px; /* Bottom padding added */
    }


#projects p {
    font-family: 'nitti-typewriter-normal', sans-serif;
    font-weight: normal;
    font-size: 1.1rem;
    margin: 0px auto;}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.projects-container a {
    text-decoration: none;
    color: #15434c;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease;
}

.projects-container a:hover {
    transform: scale(1.05);
}

.project-thumbnail {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-thumbnail:hover {
    transform: scale(1.08);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-flower {
    background-color: #fec5bb; /* soft-orange */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }
  
  .footer-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
  }
  
  .footer-img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
  }
  
  .copyright {
    font-family: 'nitti-typewriter-normal', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin: 20px 0 10px; /* Add some spacing above image */
    text-align: center;
  }
  

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.lightbox img:hover {
    transform: scale(1.05);
}

.lightbox button {
    position: absolute;
    top: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    color: black;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #creative .content-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  #creative.in-view .content-wrapper {
    animation: fadeInUp 1s ease forwards;
  }

  .fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
  /* HEADER */
  header h1 {
    font-size: 2.5rem;
  }

  header h4 {
    font-size: 2rem;
    margin-top: -40px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  nav ul li a {
    font-size: 1rem;
  }
/* CREATIVE SECTION */
#creative {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('images/creative-banner.jpg') no-repeat center center;
  background-size: cover;
  padding: 80px 20px;
  box-sizing: border-box;
}

/* Ensure content isn't cut off on mobile */
#creative .content-wrapper {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

#creative h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: 'nitti-typewriter-open', sans-serif;
}

#creative p {
  font-family: 'nitti-typewriter-normal', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto;
  padding: 0 10px;
  max-width: 700px;
}

/* Responsive Fix */
@media (max-width: 768px) {
  #creative {
    padding: 60px 15px 100px; /* Added bottom padding */
  }

  #creative h2 {
    font-size: 2rem;
  }

  #creative p {
    font-size: 1rem;
    line-height: 1.5;
  }
}



  /* ABOUT SECTION IMAGES */
  #about div[style*="grid-template-columns"] {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  #about img {
    width: 200px !important;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  #about img.floating {
    width: 140px !important; /* Adjust this size as needed */
  }

  #about .floating:first-of-type {
    margin-bottom: 20px;
  }

  #about .floating:last-of-type {
    margin-top: 20px;
  }

  #about .portrait-img {
    width: 220px;
  }

  #about .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}


  