
/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: gilroy, sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: #000;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-y: auto; /* ✅ Enable native vertical scroll on mobile */
  }
}
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ===== Main Container ===== */
#main {
  position: relative;
  overflow: hidden;
}

/* ===== 🎥 Canvas Background (replaces bg-video) ===== */
/* ===== Canvas Background ===== */
canvas {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0 !important;
  background: #000;
}

#main, #page, #page1, #page2, #page3, footer {
  position: relative;
  z-index: 1;
}




#page,
#page1,
#page2,
#page3 {
  position: relative;
  height: 100vh;
  width: 100vw;
  background-color: transparent;
  color: #fff;
}

/* ✅ MOBILE FIX — preserve desktop layout */
@media (max-width: 1024px) {
  #page1 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12% 5%;
  }
}
#left-text,
#text3 {
  position: relative;
  z-index: 5; /* ✅ ensures they appear above canvas and other layers */
}
@media (max-width: 768px) {
  #left-text h1,
  #text3 h1 {
    font-size: 1.3rem;
    font-weight: 700; /* ✅ stronger contrast on mobile */
    line-height: 1.4;
  }

  #left-text h3,
  #text3 h3 {
    font-size: 1rem;
    font-weight: 600;
  }

  #text3 p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f0f0f0; /* ✅ brighter text for visibility */
  }
}
@media (max-width: 768px) {
  #left-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .video-holder {
    width: 100%;
    max-width: 400px;
  }

  #left-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

/* ===== FIX: Visibility + Readability for #left-text and #text3 ===== */
#left-text,
#text3 {
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  #left-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .video-holder {
    width: 100%;
    max-width: 400px;
  }

  #left-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  #left-text h1,
  #text3 h1 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
  }

  #left-text h3,
  #text3 h3 {
    font-size: 1rem;
    font-weight: 600;
  }

  #text3 p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f0f0f0;
  }
}



/* ===== SPACING BETWEEN SECTIONS ===== */

@media (max-width: 768px) {
  section,
  #page1,
  #page3 {
    margin-bottom: 80px; /* gives breathing space between sections */
  }
}


/* ===== GLASS NAVBAR ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Use a flexible grid layout to keep center items aligned */
#nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
}

/* ===== LEFT: LOGO + NAME ===== */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.nav-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-left h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* ===== CENTER: NAV LINKS ===== */
.nav-center {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto; /* centers the list in the grid column */
}

.nav-center li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-center li a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* ===== RIGHT: CAMERA ICON ===== */
.nav-right {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  justify-self: flex-end; /* Aligns right section to right edge */
}

.camera-wrapper {
  position: absolute;
  bottom: -60px; /* start hidden */
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.5s ease;
}

#camera-icon {
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-right:hover .camera-wrapper {
  bottom: 5px; /* slide up into view */
}

.nav-right:hover #camera-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #nav {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 25px;
  }

  .nav-center {
    gap: 25px;
  }

  .nav-center li a {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .nav-center {
    display: none; /* hide links for mobile (burger menu later) */
  }

  .nav-left h3 {
    font-size: 1rem;
  }

  .nav-logo {
    height: 40px;
  }
}




/* ===== Looping Text Animation ===== */
#loop {
  display: flex;
  position: absolute;
  top: 30%;
  height: 25%;
  width: 100%;
  font-size: 100px;
  white-space: nowrap;
}

#loop > h1 {
  font-weight: 400;
  animation: anim 15s linear infinite;
}

/* Lava gradient for MARQLY MEDIA */
#loop > h1 > span {
  background: linear-gradient(90deg, #ff4500, #ff7b00, #ff2e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow: 0 0 25px rgba(255, 68, 0, 0.5); /* glowing effect */
}

/* Optional: make "MEDIA" italic span a little brighter */
#loop > h1 > span i {
  background: linear-gradient(90deg, #ff5e00, #ff9500, #ff2e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animation for scrolling text */
@keyframes anim {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* ===== Page Text Styling ===== */
#page>h3 {
  position: absolute;
  top: 70%;
  left: 5%;
  font-weight: 400;
  color: #fff;
  z-index: 2;
  padding: 20px 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
}

#page>h4 {
  position: absolute;
  top: 80%;
  left: 5%;
  font-weight: 500;
  color: #fff;
  z-index: 2;
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Page 1 Layout ===== */
#page1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8% 10%;
  gap: 40px;
}

/* Glass effect cards */
#page1 > #right-text,
#page1 > #left-text {
  flex: 1 1 45%;
  padding: 30px 35px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  color: #fff;
  z-index: 2;
  min-width: 320px;
}

/* Text styling */
#page1 > #right-text h3,
#page1 > #left-text h3 {
  font-weight: 300;
  color: #ddd;
  margin-bottom: 15px;
  font-size: 1rem;
}

#page1 > #right-text h1,
#page1 > #left-text h1 {
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 300;
}

/* Align left text to the right side visually */
#page1 > #left-text {
  text-align: right;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  #page1 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12% 5%;
  }

  #page1 > #right-text,
  #page1 > #left-text {
    flex: 1 1 100%;
    text-align: center !important;
  }

  #page1 > #left-text h1,
  #page1 > #right-text h1 {
    font-size: 1rem;
  }
}
/* ===== FIXED VIDEO LAYOUT ===== */
#page1 {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8% 10%;
  gap: 40px;
  min-height: 100vh;
  overflow: visible; /* ✅ ensures scroll height is not clipped */
}

/* ===== LEFT SIDE WITH VIDEO ===== */
#page1 > #left-text {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  padding: 30px 35px;
  min-width: 320px;
  overflow: visible;
}

/* ===== VIDEO HOLDER ===== */
.video-holder {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  margin-bottom: 25px;
  align-self: flex-end;
}

#left-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== TEXT CONTENT ===== */
.left-text-content {
text-align: center;}

.left-text-content h1 {
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 300;
  color: #fff;
}

.left-text-content h3 {
  font-weight: 300;
  color: #ddd;
  margin-top: 10px;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #page1 {
    flex-direction: column;
    align-items: center;
    padding: 12% 5%;
  }

  #page1 > #left-text {
    align-items: center;
    text-align: center;
  }

  .video-holder {
    align-self: center;
    max-width: 90%;
  }

  .left-text-content {
    text-align: center;
  }
}




/* ===== PAGE 2 : SERVICES ===== */
/* ===== SERVICES PAGE ===== */
#services-page {
  min-height: 100vh;
  width: 100%;
  padding: 8% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: white;
  background: transparent;
   position: relative;
  z-index: 1;
}

/* Page Heading */
.services-heading {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
}


.services-heading h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 15px;
  font-weight: 700;         /* ✅ Bold */
  color: #ffffff;           /* ✅ Pure white text */
}

.services-heading p {
  color: #ffffff;           /* ✅ Pure white */
  font-weight: 600;         /* ✅ Semi-bold for emphasis */
  font-size: 1rem;
  line-height: 1.6;
}

/* Glass Box Container */
.services-box {
  width: 80%;
  max-width: 900px;
  padding: 40px 50px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service List */
.services-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-box li {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  color: white;
}

.services-box li:last-child {
  border: none;
}

/* Responsive Layout */
@media (max-width: 768px) {
  #services-page {
    padding: 15% 5%;
  }

  .services-box {
    width: 95%;
    padding: 30px 25px;
  }

  .services-heading h2 {
    font-size: 2rem;
  }

  .services-box li {
    font-size: 1rem;
  }
}


/* ===== PAGE 3 : VISION + FORM ===== */
#page3 {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 8% 10%;
  flex-wrap: wrap;
}

/* ===== LEFT SIDE : FORM ===== */
#form-section {
  flex: 1 1 45%;
  padding: 35px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  color: #fff;
}

#form-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

#form-section p {
  color: #fff;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.5;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#contact-form button {
  margin-top: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffffff, #cfcfcf);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background: linear-gradient(90deg, #eaeaea, #ffffff);
  transform: scale(1.05);
}

/* ===== RIGHT SIDE : TEXT ===== */
#page3 > #text3 {
  flex: 1 1 45%;
  padding: 35px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: left;
}

#page3 > #text3 h3 {
  color: #ddd;
  font-weight: 400;
  margin-bottom: 10px;
}

#page3 > #text3 h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 600;
}

#page3 > #text3 p {
  color: #eee;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #page3 {
    flex-direction: column;
    align-items: center;
    padding: 12% 5%;
    gap: 40px;
  }

  #form-section,
  #page3 > #text3 {
    flex: 1 1 100%;
    text-align: center;
  }

  #contact-form input,
  #contact-form textarea {
    font-size: 0.9rem;
  }
}

/* ===== FOOTER ===== */
#footer {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.05);
  color: white;
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer Container */
.footer-container {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* ===== LEFT SECTION ===== */
.footer-left {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.footer-logo {
  height: 65px; /* slightly bigger for clarity */
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-left h3 {
  font-size: 1.8rem; /* increased from 1.5rem */
  font-weight: 1000; /* bolder for visibility */
  color: white;
  margin-top: 12px;
  text-align: center;
}

.footer-left p {
  font-size: 1.1rem; /* increased slightly */
  color: white;
  line-height: 1.7;
  max-width: 320px;
  text-align: center;
  font-weight: 600; /* added semi-bold weight */
}

/* ===== CENTER SECTION ===== */
.footer-center {
  flex: 1 1 25%;
  text-align: center;
}

.footer-center h4 {
  font-size: 1.4rem; /* increased from 1.2rem */
  font-weight: 1000;
  margin-bottom: 18px;
  color: white;
}

.footer-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-center ul li {
  margin-bottom: 12px;
}

.footer-center ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.05rem; /* slightly larger for readability */
  font-weight: 600; /* bolder */
  transition: color 0.3s ease;
}

.footer-center ul li a:hover {
  color: black;
}

/* ===== RIGHT SECTION ===== */
.footer-right {
  flex: 1 1 25%;
  text-align: center;
}

.footer-right h4 {
  font-size: 1.6rem; /* slightly larger */
  font-weight: 1000;
  margin-bottom: 18px;
  color: white;
}

.footer-right p {
  margin-bottom: 12px;
  color: white;
  font-size: 1.1rem; /* increased */
  font-weight: 600; /* slightly bolder for visibility */
}

.footer-right a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.05rem; /* slightly larger links */
  font-weight: 600;
}

.footer-right a:hover {
  color: black;
}

/* ===== BOTTOM BAR ===== */
.footer-bottom {
  margin-top: 45px;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.footer-bottom p {
  font-size: 1.1rem; /* slightly bigger */
  color: white;
  letter-spacing: 0.6px;
  font-weight: 700; /* stronger emphasis */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #footer {
    padding: 50px 8%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1 1 100%;
  }

  .footer-left p {
    max-width: 100%;
  }
}
/* ===== MOBILE MENU ===== */
/* ===== MOBILE MENU (GLASS EFFECT) ===== */
.mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 80px; /* Below navbar */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1); /* translucent white */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 25px 0;
  text-align: center;
  z-index: 150;
  transition: all 0.3s ease-in-out;
}

/* Menu list */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  margin: 15px 0;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #ff7b00;
  transform: translateY(-2px);
}

/* Show when active */
.mobile-menu.active {
  display: block;
}

/* ===== HAMBURGER STYLE ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
  z-index: 200;

  /* ✅ Added: align hamburger to right side of navbar grid */
  justify-self: end;
  margin-right: 10px;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Hamburger visible on small screens */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* ✅ Added: hide camera icon so it doesn’t overlap hamburger */
  .nav-right {
    display: none;
  }
}

/* Animate hamburger when active */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


#page1 {
  overflow: visible; /* ✅ make sure this is NOT hidden */
}
@media (max-width: 768px) {
  #page1,
  #page3 {
    overflow: visible !important; /* ensures content isn't cut */
    height: auto !important;
    min-height: auto !important;
  }
}

#left-text,
#text3 {
  position: relative;
  z-index: 5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15); /* translucent white glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 30px 35px;
  transition: all 0.4s ease;
}

/* Optional hover glow (desktop only) */
@media (min-width: 769px) {
  #left-text:hover,
  #text3:hover {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
  }
}
@media (max-width: 768px) {
  #left-text h1,
  #text3 h1 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
  }

  #left-text h3,
  #text3 h3 {
    font-size: 1rem;
    font-weight: 600;
  }

  #text3 p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
  }
}
#left-text,
#text3 {
  opacity: 0;
  transform: translateY(30px);
}

#left-text.visible,
#text3.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}
/* ===== UNIVERSAL FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: slightly staggered timing for sections */
section.fade-in.visible:nth-of-type(odd),
div.fade-in.visible:nth-of-type(odd) {
  transition-delay: 0.1s;
}

section.fade-in.visible:nth-of-type(even),
div.fade-in.visible:nth-of-type(even) {
  transition-delay: 0.2s;
}
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

#loop {
  position: relative;
  z-index: 10; /* ensures hero text always visible */
  opacity: 1 !important; /* in case fade-in logic tries to hide it */
  transform: none !important;
}

/* ===== HAMBURGER ALIGNMENT FIX ===== */
@media (max-width: 768px) {
  .hamburger {
    grid-column: 3;           /* ✅ move it to the rightmost grid column */
    justify-self: end;        /* ✅ push it to the far right */
    margin-right: 20px;       /* ✅ small breathing room from edge */
    
  }
}
@media (max-width: 768px) {
  .nav-right {
    display: none; /* ✅ hides the camera icon on mobile */
  }
}


/* ===== MOBILE FOOTER TEXT COLOR FIX ===== */
@media (max-width: 768px) {
  #footer,
  #footer * {
    color: #fff !important;          /* white text on mobile */
  }

  /* optional: make footer background a bit darker for contrast */
  #footer {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* optional: links hover brighter */
  #footer a:hover {
    color: #ffb84d !important;       /* soft orange accent */
  }
}


/* ===== FIX: CLIENTS SECTION VISIBILITY ===== */
/* ===== CLIENTS SECTION (COMPACT GLASS CARDS) ===== */
/* ===== CLIENTS SECTION (LOGO + INFO CARD) ===== */

#clients-page {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6% 10%;
  color: #fff;
  background: transparent;
}

/* Heading */
.clients-heading {
  text-align: center;
  margin-bottom: 40px;
}

.clients-heading h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
}

.clients-heading p {
  font-size: 1rem;
  font-weight: 500;
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  justify-items: center;
}

/* Card */
.client-card {
  width: 220px;
  height: 340px;
  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.15);

  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover */
@media (min-width: 769px) {
  .client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 55px rgba(255, 255, 255, 0.3);
  }
}

/* Top half: logo */
.client-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.client-logo img {
  max-width: 200px;
  max-height: 90px;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2);
}

/* Bottom half: info */
.client-info {
  flex: 1;
  padding: 18px;
  text-align: center;

  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.client-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.client-info a {
  display: block;
  font-size: 0.80rem;
  margin: 4px 0;
  color: #ffb84d;
  text-decoration: none;
  font-weight: 500;
}

.client-info a:hover {
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 768px) {
  #clients-page {
    padding: 12% 6%;
  }

  .client-card {
    width: 200px;
    height: 320px;
  }
}

/* ===== CURTAIN VIDEO OVERLAY ===== */

.client-card {
  position: relative;
}

/* Curtain wrapper */
.client-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  overflow: hidden;
  pointer-events: none; /* allows clicks after animation */
}

/* Video */
.client-curtain video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hidden state after reveal */
.client-curtain.hidden {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

/* ===== REAL CURTAIN EFFECT ===== */

.client-card {
  width: 220px;
  height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Curtain container */
.curtain {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  pointer-events: none;
}

/* Curtain panels */
.curtain-panel {
  width: 50%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* Video inside curtain */
.curtain-panel video {
  width: 200%;
  height: 100%;
  object-fit: cover;
}

/* Left panel video alignment */
.curtain-panel.left video {
  transform: translateX(0%);
}

/* Right panel video alignment */
.curtain-panel.right video {
  transform: translateX(-50%);
}

/* OPEN ANIMATION */
.curtain.open .left {
  transform: translateX(-100%);
  transition: transform 1s ease-in-out;
}

.curtain.open .right {
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

/* Hide after animation */
.curtain.hidden {
  display: none;
}


/* ===== CLIENT LOGO CURTAIN VIDEO (SINGLE VIDEO) ===== */

.client-logo {
  position: relative;
  overflow: hidden;
}

/* Curtain video */
.client-curtain-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  background: #000;
}

/* Logo hidden initially */
.client-logo img {
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  position: relative;
}

/* When reveal happens */
.client-logo.revealed img {
  opacity: 1;
}

/* .client-logo.revealed .client-curtain-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
} */

/* ===== CLIENT VIDEO NORMALIZATION ===== */

.client-logo {
  position: relative;
  width: 100%;
  height: 170px;          /* FIXED height for ALL videos */
  overflow: hidden;
}

.client-curtain-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔥 KEY */
  object-position: center;
}

.client-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-link svg {
    flex-shrink: 0;
    margin: -1px 1px -5px;
}

.footer-link {
  display: inline-flex;
  align-items: center;   /* 🔥 perfect vertical alignment */
  gap: 8px;
}

.footer-link svg {
  display: block;        /* 🔥 removes baseline issues */
  flex-shrink: 0;
}
