/* Fonts */

@font-face {
  font-family: "Higuen_Serif";
  src: url("/fonts/Higuen-Regular.woff2") format("woff2"),
       url("/fonts/Higuen-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}
@font-face {
  font-family: "Agrandir-TextBold";
  src: url("/fonts/Agrandir/Agrandir-TextBold.woff2") format("woff2"),
       url("/fonts/Agrandir/Agrandir-TextBold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Page */

body.lock-scroll {
  overflow: hidden;
}

body.loading {
  overflow: hidden;
  height: 100vh;
}


body {
  min-height: 100%;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased; /* For WebKit (Chrome, Safari) */
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  line-height: 25px;
}

html, body, * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fullscreen loader */

#loading-screen {
  position: fixed;
  inset: 0;            
  z-index: 2147483647;   
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none; 
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #d1e3a0;
  border-top-color: #6A8F08; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Menu */

#fixed-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; 
  height:114px;
  background: #fff;
  border-bottom:1px solid #ffcbea80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 900;
}

#fixed-menu.visible {
  opacity: 1;
  visibility: visible;
}

.menu-container {
  width: 100%;
  display: flex;
  justify-content: flex-end; 
  align-items: center;      
  position: relative;
  box-sizing: border-box;
  align-items: stretch;
  height: 100%;        
}

.menu-logo {
  position: absolute;
  left: 4%;
  top:28px;
  bottom: 0;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.logo {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease; 
  transform-origin: center center;
}

.menu-li .arrow {
  display: none;
}

.menu-li {
  flex: 0 0 auto;       
  max-width: 200px;     
  width: 100%;          
  text-align: right;    
  padding-right: 60px;
  padding-top:35px; 
  border-right: 1px solid #ffcbea80;
  opacity: 0.5; 
  display: flex;
  flex-direction: column;
  align-items: flex-end;  
  transition: all 1.2s ease;
}

.menu-li:last-child {
  border-right: none;
  padding-right: 80px;
}

.menu-li.active  {
  opacity: 1; 
}

.menu-li:hover  {
  opacity: 1; 
}

.menu-li .label{
  font-size: 12px;
  color: #eb83c1;
  font-family: "Agrandir-Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: opacity 0.4s ease;
}

.menu-li .title a{
  position: relative;            
  display: inline-block;         
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color: #292D2D;
  text-decoration: none;
}

.menu-li .title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: #292D2D;
  transition: width 0.3s ease;
}

.menu-li .title a:hover::after {
  width: 100%;
}

.menu-li.active .title a::after {
  width: 100%;
  opacity: 0.7;
}

/* Header */

.name {
  font-size: 2rem;
  margin-top:100px;
  font-family: "Higuen_Serif", sans-serif;
  color:#6A8F08;
  text-transform: none;
  line-height: 50px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.5); 
  display: inline;     
  z-index: 20;
}

.name-sub {
  margin-top:1000px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  line-height: 25px;
  background-color: rgba(255, 255, 255, 0.5); 
  display: inline;      
}

#scrollOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#scrollOverlay {
  position: fixed;  
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 1000;
  transition: opacity 0.3s ease;
  width: 100%;     
  height: 60px;     
  padding: 10px;
  box-sizing: border-box;
}

.scroll-text {
  transition: opacity 0.5s ease-in-out;
}

.scroll-text::after {
  content: attr(data-text);
}

#scrollOverlay span.scroll-text {
  display: inline-block;
  animation: bounce 2s infinite;
  padding-left: 42%;
  transition: all 1s ease;
  margin-top: -8px;
}

/* Keyframes for bounce effect */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.skip-btn {
  position: absolute;  
  right: 40px;          
  bottom: 20px;         
  display: inline-block;
  text-align: center;
  padding: 12px 0;
  width: 120px;
  background-color: #6A8F08;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.skip-btn:hover {
  background: #eb83c1;
}

svg.bug {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}

.section-1 {
  position: relative;
  z-index: 100;
  background-color:#ffffff;
}

.typewriter {
  position: sticky;
  top: 15%;
  margin-left: 14%;
  margin-right: 14%;
  margin-bottom: 10%;
  line-height: 25px;
  color: #292D2D;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  z-index: 20;
}

.typewriter .spacer {
  display: block;
  height: 0px; 
}

.typewriter .spacer-br {
  display: block;
  height: 20px; 
}

.title-typewriter {
  font-size: 1.2rem;
  font-family: "Agrandir-TextBold", sans-serif;
  font-weight: bold;
  color:#231F20;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  background-color: rgba(255, 255, 255, 0.5); 
  display: inline;     
}

.text-typewriter {
  padding-left: 22px;
  background-color:#ffffff; 
  display: inline;       
}

.caret {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: #292D2D;
  margin-left: -1px;
  margin-bottom: 5px;
  vertical-align: bottom;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Sections */

.section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: white;
}

#section1 { 
  padding-top:100px;
  z-index: 100;
  position: relative;
}

#section2 { 
  border-top:1px solid #FFE8F6;
  background:#ffffff; 
  padding-top:120px;
  padding-bottom:120px;
  z-index: 11;
  position: relative;
}

#section3 { 
  background: #ffffff;
  padding-bottom: 50px;
  z-index: 11;
  position: relative;
}
  
.horizontal-section {
  position: relative;
  height: 600vh;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.horizontal-wrapper {
  display: flex;
  height: 300px;
  width: 600vw; 
  will-change: transform;
  transition: transform 0.05s linear;
  z-index: 8;
}

.h-content-overlay {
  position: fixed;
  top: 250px;
  left: 0;
  width: 72%;
  margin-left: 14%;
  margin-right: 14%;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
  background: #ffffff;
  background-image:
    linear-gradient(#f5fde1 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,253,225,1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.h-content-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.h-content-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Fading out the current content */
.h-content-overlay.fade-out {
  opacity: 0;
}

/* Fading in the next content */
.h-content-overlay.fade-in {
  opacity: 1;
}

.h-item {
  position: relative;
  min-width: 100vw;  
  height: 100vh;     
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  overflow: hidden;  
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  opacity: 0.3;
}

/* Background image */
.h-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transform: scale(1.1); 
  z-index: 0;
}

.h-item > * {
  position: relative;
  z-index: 1;
}

.h-image {
  flex: 0 0 400px;   
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0px;
  border: 1px solid #f5fde1;
}

.h-text {
  flex: 1;        
  display: flex;    
  flex-direction: column;
  justify-content: center; 
  transition: opacity 0.6s ease;
  border-radius: 0px;
  padding: 36px 50px 50px 50px;
}

.h-image img {
  width: 100%;
  height: 100%;
  border-radius: 0px;
  object-fit: cover;
  transform: scale(2);
  transform-origin: center center; 
  transition: transform 0.6s ease;
}

.h-text h2 {
  padding: 0 0 10px;
  font-size: 1.2rem;
  font-family: "Agrandir-TextBold", sans-serif;
  font-weight: bold;
  color:#231F20;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.h-text p {
  padding: 0 0 15px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  line-height: 25px;
  font-weight: normal;
}

#label {
  font-size: 12px;
  color: #eb83c1;
  font-family: "Agrandir-Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: normal;
}

.view-btn {
  display: inline-block;
  text-align: center;
  padding: 15px 0px;
  width: 160px;
  background-color: #6A8F08;
  color: #ffffff;
  border: none;
  border-radius: 0px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-btn:hover {
  background: #eb83c1;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
}

.scroll-animate.animate {
  animation: fadeSlideIn 0.8s forwards ease-out;
}

/* Important: ensure animation resets when applied again */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#grid {
  scroll-margin-top: 100px;
  position: relative;
  z-index: 100;
}

.grid-container {
  position: relative;
  min-height: 88.6vh;
  height: auto;
  background-color: #f5fde1;
  transition: height 0.4s ease;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffcbea80 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,203,234,0.5) 1px, transparent 1px);
  background-size: 50px 50px; 
  z-index: 0;
}

.about {
  margin-top: 1.5rem;
  position: relative;
}

.about input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-areas:
    "illus text"
    "illus controls";
  gap: 1.25rem;
  align-items: stretch; 
}

.about-text { 
  grid-area: text; 
  margin-top: 2.5rem;
}

.about-controls { 
  grid-area: controls; 
  display: flex; 
  justify-content: center;  
  gap: 10px; 
  margin-top: 2.5rem;
}

.illustration {
  grid-area: illus;
  margin: 0;
  justify-content: center; 
  align-items: center;   
  margin-left:40px;
}

.illustration,
.about-text {
  display: grid;
}

.about-img,
.panel {
  grid-area: 1 / 1; 
  opacity: 0;
  visibility: hidden;
}

/* Show matching content when radio is checked */
#about-1:checked ~ .about-layout .img-1,
#about-1:checked ~ .about-layout .panel-1 {
  display: block;
}

#about-2:checked ~ .about-layout .img-2,
#about-2:checked ~ .about-layout .panel-2 {
  display: block;
}

#about-3:checked ~ .about-layout .img-3,
#about-3:checked ~ .about-layout .panel-3 {
  display: block;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  text-align: center;
  top:0;
}

.about-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1e3a0;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
.about-controls .dot:hover {
  transform: scale(1.15);
}

#about-1:checked ~ .about-layout .about-controls label[for="about-1"],
#about-2:checked ~ .about-layout .about-controls label[for="about-2"],
#about-3:checked ~ .about-layout .about-controls label[for="about-3"] {
  background: #6A8F08;
}

#content-empty {
  display: flex;
  width: 100%;
  border-left: none;
  border-right: none;
  height: 100px;
}

.gallery-track {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem;
  padding: 0.5rem;
  will-change: transform;
  left: 18%;
  right: 18%;
  width: auto;
  margin-top: 100px;
}

.card {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden; 
    position: relative;
    border:1px solid #6A8F08;
}

.card .card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; 
}

.card .card-image-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.5);
  will-change: transform, opacity, filter;
  transition: 
    transform 0.1s linear,
    opacity 0.4s ease-out,
    filter 0.6s ease-out;
  display: block;
  padding-bottom:100px;
}

.card .card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #6A8F08;
  color: white;
  text-align: left;
  padding: 1rem;
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 2; 
}

.card .card-text.visible {
  transform: translateY(0);
  opacity: 1;
}

.card .card-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  font-family: "Agrandir-TextBold", sans-serif;
  color:#ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
}

.card .card-text p {
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin: 0;
  color: #d9ee9d;
  text-align: center;
  padding-bottom: 15px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #d9ee9d;
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories li {
  position: relative;
  padding-left: 0.5em;        
  padding-right: 0.5em;        
  margin: 0 0.5em;     
}

.categories li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1em;          
  transform: translateY(-50%);
  width: 18px;           
  height: 18px;
  background-image: url("/img/bulletStarGreen.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.categories li.no-star::after {
  display: none;
}

.info {
  position: absolute;
  top: 10%;
  z-index: 1;
  background-color: #ffffff;
  border: 1px solid #FDC1E5;
  padding: 0.4rem 1rem 4rem 1rem;
  box-sizing: border-box;
  text-align: left;
  min-height: 200px;
  height: auto;
  margin-top: 30px;
  transition: left 0.4s ease, width 0.4s ease;
}

h1 {
  font-size: 2rem;
  margin: 0;
  padding:40px 20px 30px 40px;
  font-family: "Higuen_Serif", sans-serif;
  color:#6A8F08;
  text-transform: none;
  line-height: 50px;
  z-index:9000;
}

.info-p {
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  padding: 0px 40px 0px 40px;
  margin:0px;
  line-height: 25px;
}

h2 {
  font-size: 1.2rem;
  padding:40px 20px 10px 30px;
  font-family: "Agrandir-TextBold", sans-serif;
  color:#231F20;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.content-context {
  display: flex;
  width: 100%;
  border-left: none;
  border-right: none;
  padding-bottom: 60px;
  padding-top:80px;
  border-top:1px solid #ffcbea80;
}

.context-left {
  flex:60%;
  padding-left: 12%;
}

.context-right {
  flex:40%;
  padding-right: 14%;
}

.btn-container {
  text-align: center;
  margin-top:40px;
  margin-bottom: 15px;
}

.resume-btn {
  display: inline-block;
  text-align: center;
  padding: 15px 20px;
  width: auto;
  background-color: #6A8F08;
  color: #ffffff;
  border: none;
  border-radius: 0px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.resume-btn:hover {
  background: #eb83c1;
}

.content-process {
  padding-left: 12%;
  padding-right: 12%;
  padding-bottom:60px;
  padding-top:40px;
  border-top:1px solid #ffcbea80;
}

.content-process h3 {
  font-size: 1.2rem;
  padding:40px 20px 30px 40px;
  font-family: "Agrandir-TextBold", sans-serif;
  color:#231F20;
  text-transform: none;
  position: relative;
  padding-left: 2rem; 
}

.content-process h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("/img/bulletStar.svg");  background-size: contain;
  background-repeat: no-repeat;
}

 .content-p {
  padding-left:32px;
  padding-right:32px;
}

.illu-contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;    
  margin-top:50px;
  margin-bottom: 50px;
  height: 150px;
}

.illu-contact-wrapper img {
  max-width: 300px; 
  width: 100%;      
  height: auto;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
  gap: 40px; 
  margin: 40px 0;
  width: 100%;
}

.social-container a {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.social-container a i {
  display: flex;       
  align-items: center;   
  transform: translateY(-2px); 
}

.social-container a span {
  position: relative;
}

.social-container a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background-color: #292D2D;
  transition: width 0.3s ease;
}

.social-container a:hover span::after {
  width: 100%;
}

.social-container a.active span::after {
  width: 100%;
  opacity: 0.7;
}

.content-p-info {
  margin-left:30px;
  padding: 40px 40px 30px 40px;
  background: #FFE8F6;
  border:1px solid #FDC1E5;
}

.content-p-info ul {
  list-style: none; 
  margin: 0;
  padding: 0;
}

.content-p-info li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  position: relative;
  padding-left: 1.25rem;
}

.content-p-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("/img/bulletStarPink.svg");  background-size: contain;
  background-repeat: no-repeat;
}

.content-p-info li:not(:last-child) {
  margin-bottom: 30px; 
}

a.downloadResume {
  color: #ffffff;
  text-decoration: none;
}

a.downloadResume:hover,
a.downloadResume:active,
a.downloadResume:visited {
  color: #ffffff;
  text-decoration: none;
}

/* Images and zoom */

.polaroid-grid {
  display: flex;
  flex-wrap: nowrap;  
  width: 100%;
}

.polaroid {
  width: 50%;          
  background: #fff;
  border:1px solid #FDC1E5;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-top:50px;
}

.image-wrapper {
  position: relative; 
  display: inline-block;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 59.3 59.3'%3E%3Ccircle fill='%23FFFFFF' stroke='%23000000' stroke-width='0.7' stroke-miterlimit='10' cx='29.7' cy='29.7' r='29.3'/%3E%3Cg%3E%3Ccircle fill='%23FFFFFF' cx='25.7' cy='27.8' r='8.8'/%3E%3Cpath d='M25.7,19.3c4.7,0,8.5,3.8,8.5,8.5s-3.8,8.5-8.5,8.5c-4.7,0-8.5-3.8-8.5-8.5S21,19.3,25.7,19.3 M25.7,18.6 c-5.1,0-9.2,4.1-9.2,9.2c0,5.1,4.1,9.2,9.2,9.2c5.1,0,9.2-4.1,9.2-9.2C34.8,22.7,30.7,18.6,25.7,18.6L25.7,18.6z'/%3E%3C/g%3E%3Cline fill='none' stroke='%23000000' stroke-width='0.7' stroke-miterlimit='10' x1='32.4' y1='34' x2='42.1' y2='41.9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%); 
  cursor: pointer;
}

.polaroid img {
  width: 100%;
  max-height: 300px;
  display: block;
  height: auto;         
  object-fit: cover;    
}

.polaroid figcaption {
  padding: 0.4rem;
  border-top:1px solid #FDC1E5;
  background: #FFE8F6;
  text-transform: uppercase;
  font-style: none;
  font-size: 0.9em;
  letter-spacing: 3px;
  color: #eb83c1;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFE8F6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease; 
  z-index: 998;
  overflow: hidden;
}

.zoom-overlay.active {
  visibility: visible;
  opacity: 1;
}

.zoom-overlay.closing {
  opacity: 0; 
}

.zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0px;
  margin-top: 50px;
  border:1px solid #FDC1E5;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scale(0.8);
  opacity: 0;
}

.zoom-overlay.active img {
  transform: scale(1);
  opacity: 1;
}

.zoom-overlay.active img {
  transform: scale(1);
}

.zoom-overlay.closing img {
  transform: scale(0.8); 
}

.zoom-header {
  position: fixed;     
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #FDC1E5;
  height: 52px;
  display: flex;
  align-items: center; 
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 1001;       
}

.close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "Agrandir-Narrow", sans-serif;
  color:#292D2D;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-arrow {
  margin-top: -2px;
 color: #292D2D;
}

.btn-text {
  position: relative;
  display: inline-block;
  color: #292D2D;
}

.btn-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;    
  width: 0;
  height: 1px;
  background-color: #292D2D;
  transition: width 0.3s ease;
}

.close-btn:hover .btn-text::after {
  width: 100%;
}

/* Progress bar */

.progress-bar-container {
  position: fixed;
  top: 0px; 
  left: 0;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background-color: #ffffff;
  transition: top 0.3s ease; 
  z-index: 1000;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background-color: #6A8F08;
}

.progress-bar-container.visible {
  top: 0;
}

/* Progress circle */

.progress-circle-container {
  position: fixed;
  right: 40px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;  
  visibility: hidden;    
  transition: opacity 0.4s ease, visibility 0.4s ease, bottom 0.3s ease;
}

.progress-circle-container.visible {
  opacity: 1;
  visibility: visible;
}

.progress-circle {
  width: 50px;
  height: 50px;
}

.progress-circle-bar {
  fill: none;
  stroke: #6A8F08;
  stroke-width: 1;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-background {
  fill: transparent;
  stroke: #ededed;
  stroke-width: 5;
  stroke-dasharray: none;
}

.scroll-to-top {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #6A8F08;
  border-radius: 0%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #eb83c1;
}

.scroll-to-top svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: white;
  transition: all 0.1s ease;
}

/* Footer */

#footer {
  text-align: center;
  height: auto; 
  background: #FFE8F6;
  border: 1px solid #FDC1E5;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 6px; 
  padding: 10px;
}

/* Gallery */

.zoom-header {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.6s ease-out forwards;
  animation-delay: 0.2s;
  z-index: 10; 
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.thumb-strip {
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  z-index: 5;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFE8F6;
  display: flex;
  flex-direction: column;
}

.gallery-header {
  padding: 15px 20px;
  flex: 0 0 auto;
  z-index: 10;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.gallery-content {
  flex: 1 1 auto;
  display: flex;
  justify-content: center; 
  align-items: center;     
  padding-bottom: 110px;  
  box-sizing: border-box;
}

#galleryImg {
  max-width: 80vw;
  max-height: calc(80vh - 110px); 
  object-fit: contain;
  border-radius: 0px;
  margin-top: 1%;
  border:1px solid #FDC1E5;
}


.thumb-inner {
  display: flex;
  gap: 15px;
  justify-content: center;
  min-width: max-content;
  margin-left: 15px; 
  margin-right:15px;  
}

.thumb-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid #FDC1E5;
  background-color: #ffffff;
  background-size: 50px 50px; 
  padding: 10px 10px 15px 10px;
  box-sizing: border-box;
}

.thumb-strip img {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  margin-top: 6px;
  border: 1px solid #FDC1E5;
  filter: grayscale(80%);
  opacity: 0.5;
  transition: opacity 0.4s ease; 
}

.thumb-strip img.active-thumb {
  border: 1px solid #FDC1E5;
  filter: grayscale(0%);
  opacity: 1;
}

.thumb-strip img:hover {
  border: 1px solid #FDC1E5;
  filter: grayscale(0%);
  opacity: 1;
}

.thumb-strip::-webkit-scrollbar {
  height: 8px;
}

.thumb-strip::-webkit-scrollbar-thumb {
  background:#6A8F08;
  border-radius: 0px;
}

.image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;              
  box-sizing: border-box;   
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;        
  padding: 15px;
  opacity: 0;
  white-space: normal;    
  word-wrap: break-word;    
  margin-bottom: 10px;
}

#galleryImg, #galleryCaption {
  transition: opacity 0.5s ease-in-out; 
}

/* Responsive */

@media (max-width: 1280px) {
 
  .info {
    margin-top: 25px;
  }
  
  .gallery-track { 
    grid-template-columns: repeat(1, 1fr); 
    left: 14%; 
    right: 16%; 
  }
   
}

@media (max-width: 1000px) {

  .h-content-overlay {
    flex-direction: column;
    top: 160px;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    display: flex;
    align-items: center;
  }

  .h-image {
    width: 100%;
    flex: none;
    aspect-ratio: auto;
    height: auto;
    max-height: 300px;
    display: flex;
    align-items: center;
  }
  
  .h-text {
    width: 80%;
    padding: 16px 20px;
    margin: 0 auto; 
    margin-top: 15px; 
    text-align: center;
  }

  .h-text h2 {
    font-size: 1.1rem;
  }

  .h-text p {
    font-size: 0.95rem;
  }

  #label {
    font-size: 11px;
  }

  .view-btn {
    margin: 0 auto;
    margin-bottom: 30px;
  }

}

@media (max-width: 900px) {

  #scrollOverlay .scroll-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 12% !important;
    right: auto !important;
    left: 0 !important;
  }

  .menu-container {
    width: 100%;
    padding-right: 10px;
  }

  .menu-li {
    max-width: 120px; 
    padding-right: 40px;
    padding-left: 20px;
  }

  .menu-li:last-child {
    padding-right: 20px;
  }

  .parallax-worksite {
    height: 50vh;
    background-attachment: scroll;
    background-position: center center;
  }

  .info {
    margin-top: -18px;
  }

  .polaroid-grid {
    flex-wrap: wrap;
  }

  .polaroid {
    width: 100%;
  }

  .content-context {
    flex-direction: column;
  }

  .context-left {
    flex: 1 1 100%;
    border-right: none;
    padding-left: 12%;
    padding-right: 12%;
  }

  .context-right {
    flex: 1 1 100%;
    padding-left: 12%;
    padding-right: 12%;
    margin-top: 40px;
  }

  .content-p-info {
    margin-left:5%;
    margin-right: 5%;
  }

  .social-container a {
    flex: 1 1 40%;   
    justify-content: center;
  }

  .social-container {
    gap: 20px;
  }
  
  .illu-contact-wrapper {
    margin-top:10px;
    margin-bottom: 10px;
    height: 350px;
  }

  .illu-contact-wrapper img {
    max-width: 500px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "illus"
      "controls"
      "text";
    gap: 1rem;
    text-align: center;
  }
  .about-controls { 
    justify-content: center; 
  }

  .about-img {
    width: 100%;
    margin-left: 0%;
  }

  .illustration {
    margin-left:0px;
  }

 .h-item {
    width: 90vw;
  }

  .h-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .h-image img {
    max-width: 100%; 
  }
  
}
    
@media (max-width: 600px) {

  .scroll-text::after {
    content: "Scroll down"; }

  .scroll-text {
    opacity: 1;
  }

  .menu-logo {
    opacity: 0;
    visibility: hidden;
  }

  .menu-container {
    width: 86%;
    justify-content: center;    
  }

  .menu-li {
    width: 80%;     
    padding-right: 20px;
    padding-top:35px; 
    text-align: right;  
  }

  .menu-li:last-child {
    padding-right: 0px;
  }

   .menu-li .title a {
    font-size: 0.9rem;
  }

  .menu-li .label {
    font-size: 0.7rem;
  }

  .typewriter .text-typewriter {
    display: inline-block;  
    margin-left: 1px;
    padding-left: 22px;
    text-indent: -1px;
    white-space: normal;
    word-break: break-word;
    vertical-align: baseline;
  }
 
  .parallax-worksite {
    height: 43vh;
    background-attachment: scroll;
    background-position: center center;
  }

  .info {
    min-height: 350px;
    margin-top:-20px;
  }

  .polaroid img {
    width: 100%;
    max-height: 150px;
    height: auto;         
    object-fit: cover;   
    display: block;
  }

  .progress-circle-container {
    bottom: 55px;
    right: 15px;
  }

 #footer {
    flex-direction: column; 
    padding-top: 40px;
    padding-bottom: 40px;
  }

   .footerIcon {
    margin-top:20px;
    padding-bottom: 20px;
  }

  .logo {
    transform: scale(0.6667);
  }
  
}