/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Wondar Quason';
  src: url('../assets/fonts/Wondar-Quason.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Karla', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  color: white;
  z-index: 1000;
  backdrop-filter: blur(20px);
  transition: background-color 0.3s ease;
}

header.scrolled.day-theme {
  background-color: #b8a090;
}
header.scrolled.dark-theme {
  background-color: #000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.nav-left {
  display: flex;
  gap: 2rem;
}
.nav-left a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.nav-left a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: white;
  transition: width 0.3s ease;
}
.nav-left a:hover::after {
  width: 100%;
}

/* Dropdown Projects menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  top: 120%;
  min-width: 200px;
  z-index: 1000;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  font-family: Karla, sans-serif;
  font-size: 14px;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #b8a090;
  color: black;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.navbar .dropdown {
  position: absolute;
  top: 100%; /* places it directly below the parent */
  margin-top: 10px; /* add spacing below 'Projects' */
  left: 0;
  background-color: inherit;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.navbar .dropdown a {
  padding: 50px 15px;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.navbar li:hover .dropdown {
  display: flex;
}


.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.logo-container img {
  height: 40px;
}

.nav-right {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.contact-btn {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}
.contact-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* THEME SWITCH */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.theme-switch input:checked + .slider::before {
  transform: translateX(28px);
}

/* HERO */
.hero-section {
  height: 100vh;
  height: 100dvh;  /* modern browsers */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 65px;
  color: white;
  max-width: 600px;
}
.hero-heading {
  font-family: 'Wondar Quason', serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.hero-subheading {
  font-family: 'Karla', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8rem;
}

@media (max-width: 768px) {

  .hero-overlay {
    max-width: 90%; /* keeps it narrower for mobile */
    left: 20px; /* slight padding from left edge */
    text-align: left; /* align all text left */
  }

  .hero-heading {
    font-size: 1.6rem; /* smaller for mobile */
    line-height: 1.3;
    text-align: left;
  }

  .hero-subheading {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
  }

  /* Hide desktop items */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }
}


/* ABOUT */

#about {
  scroll-margin-top: 50px; /* Adjust based on your header height */
}

.about-section {
  padding: 10px 5% 0px 5%;
  background-color: white;
  color: black;
}

/* Ensure About + Services alignment */
.about-section {
  padding: 100px 5% 80px 5%;
}

.about-container {
  display: flex;
  flex-direction: row; /* desktop: text left, image right */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
  margin-bottom: 0;
}

.about-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 80px; /* Adds gap below About Us text */
  opacity: 0; /* For fade-in effect */
  transform: translateY(40px);
  transition: all 1s ease-in-out;
}

.services-container.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Mobile layout */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }  
  .about-section .about-heading {
    font-size: 1.6rem;
  }

  .about-section p {
    font-size: 0.9rem;
  }
  .about-section {
    padding-top: 50px; /* smaller gap */
  }
}
  .about-right {
    order: 1;
    margin-bottom: 20px;
  }
  
  .about-left {
    order: 2;
  }

  .service-box {
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-family: 'Wondar Quason', serif;
  }

  .services-container {
    order: 3; /* boxes last */
  }  

@media (max-width: 768px) {
  .about-section .underline {
    margin: 20px auto 1.5rem auto;
  }
}

@media (max-width: 768px) {
  .about-section .k-logo {
    max-width: 120px; /* smaller logo size for mobile */
  }
}

.services-section {
  padding: 0px 5% 50px 5%;
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: center;
}

.services-section .underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #b8a090, transparent);
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.service-box {
  background-color: white;
  border: 2px solid #b8a090; /* Brown border */
  border-radius: 20px;
  padding: 2rem;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-box h3 {
  font-family: 'Wondar Quason', serif;
  color: #b8a090;
  letter-spacing: 1px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.service-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Karla', sans-serif;
}

/* Hover effect */
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
body.dark-theme .service-box {
  background-color: #111;
  color: white;
}


body.dark-theme .about-section {
  background-color: black;
  color: white;
}

.about-container > *:last-child {
  margin-bottom: 0;
}

.about-left p:last-child {
  margin-bottom: 0;
}

.about-left {
  flex: 1;
  max-width: 600px;
}
.about-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-heading {
  font-family: 'Wondar Quason', serif;
  letter-spacing: 1.2px !important;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.underline {
  height: 3px;
  width: 120px;
  background: linear-gradient(to right, #b8a090, transparent);
  margin-bottom: 1.5rem;
}
.about-left p {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
.k-logo {
  max-width: 300px;
  transition: transform 0.3s ease;
}
.k-logo:hover {
  transform: scale(1.05);
}

html {
  scroll-behavior: smooth;
}

.services-section {
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease;
}

/* Day Theme */
body.day-theme .services-section {
  background-image: url('../assets/images/whitebg.webp');
}

/* Dark Theme */
body.dark-theme .services-section {
  background-image: url('../assets/images/blackbg.webp');
}

/* Default heading style */
.services-heading {
  font-family: 'Wondar Quason', serif;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #000; /* black for day theme */
}

/* White text in dark theme */
body.dark-theme .services-heading {
  color: #fff;
}

/* Make all major sections take up the full viewport height */
.hero-section,
.about-section,
.services-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-heading {
  font-size: 2.5rem;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

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

/* Default color for day theme */
.section-heading {
  color: #b8a090; /* Or whatever default dark text color you use */
  font-size: 2.5rem;
  font-family: 'Wondar Quason', serif;
  text-align: center;
  margin-bottom: 1rem;
}

/* Override for dark theme */
body.dark-theme .section-heading {
  color: white;
}

.projects-section {
  padding: 100px 5%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
  color: var(--text-color);
}

body.day-theme .locations-section {
  background-image: url('../assets/images/whitebg.png');
  color: black;
}

body.dark-theme .locations-section {
  background-image: url('../assets/images/brownbg.png');
  color: white;
}

/* Grid layout: always 3 cards per row */

#locations {
  position: relative;
  scroll-margin-top: 80px; /* Adjust based on your header height */
}
.projects-grid,
.hidden-locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Each card */
.location-card {
  display: block;
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #b8a090 !important;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.location-card:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

/* Location label */
.location-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 0.7rem 0;
  font-size: 1rem;
}
body.day-theme .location-name {
  background: rgba(255, 255, 255, 0.7);
  color: black;
}

/* Center underline */
.center-underline {
  margin: 0 auto;
}

/* Show More button */
.show-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.show-more-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  background-color: #b8a090;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.show-more-btn:hover {
  background-color: #402d22;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

#toggle-locations {
  background-color: rgba(184, 160, 144, 0.1); /* 80% transparent */
  color: #8c6f5c; /* slightly darker than #b8a090 for day theme */
  border: 1px solid #b8a090;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 24px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 25px; /* rounded left & right edges */
}

/* Hover in Day Theme */
body.day-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: white;
  border-color: #b8a090;
}

/* Dark Theme */
body.dark-theme #toggle-locations {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid #b8a090;
  border-radius: 25px;
}

/* Hover in Dark Theme */
body.dark-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: black;
  border-color: #b8a090;
}

.projects-section {
  background-color: var(--background-color);
  padding: 60px 20px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
  max-width: 1200px;
  margin-inline: auto;
}

.location-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* or remove */
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  max-width: 350px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.location-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.location-card span {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin-top: -4px; /* reduce gap between image and label */
}
.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Extra locations (hidden initially) */
.extra-locations {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  justify-items: center;
}

.extra-locations.show {
  display: grid;
}

/* Button styling */
#toggle-locations {
  margin-top: 40px;
  padding: 12px 32px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid;
  background-color: rgba(184, 160, 144, 0.2);
  cursor: pointer;
}

/* Light Theme Button */
.day-theme #toggle-locations {
  color: #b8a090;
  border-color: #b8a090;
}
.day-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: white;
}

/* Dark Theme Button */
.dark-theme #toggle-locations {
  color: white;
  border-color: #b8a090;
}
.dark-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: black;
}

.projects-section {
  padding: 60px 20px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.location-card {
  width: 250px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
  border: 1px solid #b8a090;
}

.location-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.location-label {
  text-align: center;
  padding: 12px;
  font-weight: bold;
  background-color: #eee;
  font-size: 16px;
  letter-spacing: 1px;
  color: #222;
}

.day-theme .location-label {
  background: #f5f5f5;
  color: #333;
}

.dark-theme .location-card {
  background: #1e1e1e;
  border-color: #b8a090;
}

.dark-theme .location-label {
  background: #2a2a2a;
  color: #fff;
}

.hidden-locations {
  display: none;
}

.toggle-wrapper {
  display: flex;
  justify-content: center;
}

#toggle-locations {
  background: rgba(184, 160, 144, 0.2);
  color: #b8a090;
  border: 2px solid #b8a090;
  font-weight: bold;
  padding: 10px 24px;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#toggle-locations:hover {
  background: #b8a090;
  color: white;
}

.dark-theme #toggle-locations {
  background: rgba(255,255,255,0.1);
  color: white;
}

.dark-theme #toggle-locations:hover {
  background: #b8a090;
  color: black;
}

/* Smooth fade animation */
.location-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

/* ---- PROJECTS BY LOCATION SECTION ---- */
/* Section background and spacing */
.locations-section {
  padding: 80px 0px 20px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.day-theme .locations-section {
  background-image: url('../assets/images/white-bg.webp');
}

.dark-theme .locations-section {
  background-image: url('../assets/images/black-bg.webp');
}

/* Section heading */
.locations-section .section-heading {
  color: #b8a090;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* Underline styling */

.locations-section .underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #b8a090, transparent);
  margin: 0 auto 40px;
}

/* Grid styling */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

.projects-grid:not(.expanded) .hidden-card {
  display: none;
}

/* Location card styling */
.location-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Location label overlay */
.location-card span {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 15px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

/* === Mobile: Extra dark gradient & lower text position for location cards === */
@media (max-width: 768px) {
  .location-card span {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,      /* pure black at bottom */
      rgba(0, 0, 0, 0.70) 65%,  /* strong dark fade */
      transparent 100%
    );
    padding: 40px 15px 15px; /* top | sides | bottom — lowered text */
  }
}

/* Toggle button wrapper */
/* ---- TOGGLE BUTTON ---- */

.toggle-btn-wrapper {
  display: flex;
  justify-content: center;
}

#toggle-locations {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 2px solid #b8a090;
  background-color: rgba(255, 255, 255, 0.2); /* 80% transparent */
  color: #b8a090;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.25rem;
}

.day-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: #fff;
  border-color: #b8a090;
}

.dark-theme #toggle-locations:hover {
  background-color: #b8a090;
  color: #000;
  border-color: #b8a090;
}

/* === PROJECTS BY DEVELOPER === */

#developers {
  scroll-margin-top: 80px; /* equal to your fixed header height */
}

#developers .section-header {
  padding-top: 80px; /* moves the text down inside the section */
}

.developers-section {
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.day-theme .developers-section {
  background-image: url('../assets/images/ks-white.webp');
}

.dark-theme .developers-section {
  background-image: url('../assets/images/ks-black.png');
}

#developers .underline {
  margin-bottom: 20px; /* reduce gap below the underline */
}

.developers-section .section-heading,
.associations-section .section-heading {
  color: #b8a090;
  text-align: center;
  font-size: 2.2rem;
}

.associations-section .section-heading {
  margin-bottom: 20px;
}

.developers-section .underline,
.associations-section .underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #b8a090, transparent);
  margin: 0 auto 40px;
}

/* === OUR ASSOCIATIONS SECTION === */
.associations-section {
  padding: 40px 40px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
  overflow: hidden;
}

.day-theme .associations-section {
  background-image: url('../assets/images/ks-white.webp');
}

.dark-theme .associations-section {
  background-image: url('../assets/images/ks-black.webp');
}

.associations-section .section-heading {
  color: #b8a090;
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.associations-section .underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, #b8a090, transparent);
  margin: 0 auto 40px;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLogos 40s linear infinite;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 180px;
}

.logo-wrapper img {
  max-height: 100px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo-wrapper img:hover {
  transform: scale(1.05);
}

.location-card {
  backface-visibility: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

.blogs-section {
  padding: 60px 40px;
  background-color: var(--bg-color); /* white in day, black in dark */
}

.blogs-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Wondar Quason', serif; /* Elegant serif font */
  color: #b8a090; /* Brown tone */
  margin-bottom: 1rem;
  position: relative;
}

.blogs-section h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 0.5rem auto 2rem auto;
  background: linear-gradient(to right, #b8a090, #ffffff); /* Gradient underline */
}

.section-title {
  font-size: 36px;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 40px;
  font-weight: 500;
  position: relative;
}

.blogs-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.blog-card {
  flex: 0 0 calc(33.333% - 20px);
  background-color: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
  color: var(--text-color);
}

.blog-tag {
  font-size: 14px;
  color: #b8a090;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-snippet {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.learn-more-btn {
  font-size: 13px;
  background-color: #b8a090;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #a88a78;
}

/* Navigation buttons */
.blogs-navigation {
  text-align: center;
  margin-top: 20px;
}

.blogs-prev,
.blogs-next {
  background-color: #b8a090;
  color: #fff;
  border: none;
  padding: 8px 15px;
  font-size: 22px;
  margin: 0 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blogs-prev:hover,
.blogs-next:hover {
  background-color: #a88a78;
}

.contact-section {
  background-image: url('/assets/images/footer-bg.webp');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0;
}

.contact-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 5%;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-btn.desktop-contact {
  text-decoration: none;
}

.contact-btn.desktop-contact:hover {
  text-decoration: none;
}

.contact-underline {
  height: 3px;
  width: 120px;
  background: linear-gradient(to right, #ffffff, transparent);
  margin-bottom: 30px;
}

.contact-heading {
  font-family: 'Wondar Quason', sans-serif;
  font-size: 2.5rem;
  font-weight: normal;
  color: white;
  margin-bottom: 10px;
}

.contact-container {
  max-width: 450px;
  padding: 25px 30px;
  background-color: rgba(0, 0, 0, 0.2); /* 20% transparent in day theme */
  transition: background-color 0.3s ease;
}

body.dark-theme .contact-container {
  background-color: rgba(0, 0, 0, 1); /* Solid black in dark theme */
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

/* Contact Form Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08); /* subtle transparent white */
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* On focus effect */
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.contact-form textarea {
  resize: none;
  height: 40px;
}

.contact-form button {
  width: 100px;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  cursor: pointer;
  border-radius: 20px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #b8a090;
  color: white;
}

/* FOOTER */
#main-footer {
  background-color: #b8a090;
  color: white;
  font-family: 'Karla', sans-serif;
  padding: 50px 0 30px;
  font-size: 0.9rem;
}

.dark-theme #main-footer {
  background-color: #000;
}

#main-footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

#main-footer a:hover {
  opacity: 0.75;
}

.container {
  width:80%;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 65px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: white;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

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

.footer-column ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.72rem;
  margin-bottom: 10px;
  text-align: center;
}

.footer-rights {
  text-transform: uppercase;
  text-align: center;
  font-size: 0.75rem;
}

.footer-rights a {
  font-weight: bold;
}

@media (max-width: 768px) {
  /* ===== HEADINGS ===== */
  .hero-heading,
  .about-heading,
  .section-heading,
  .services-container,
  .service-box h3,
  .blogs-section h2,
  .contact-heading,
  .developers-section .section-heading,
  .associations-section .section-heading,
  .locations-section .section-heading {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
  }

  /* ===== SUBHEADINGS & PARAGRAPHS ===== */
  .hero-subheading,
  .about-section p,
  .service-box p,
  .location-card span,
  .developer-card span,
  .blogs-section p,
  .blog-snippet,
  .contact-section p,
  .footer-description,
  .footer-column ul li,
  .footer-disclaimer,
  .footer-rights {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
  }

  /* ===== BUTTONS & LINKS ===== */
  button,
  a,
  .learn-more-btn,
  .toggle-locations-btn,
  #toggle-locations {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
  }
}

@media (min-width: 769px) {
  .about-container {
    display: flex !important;
    flex-direction: row !important; /* text left, image right */
    justify-content: space-between;
    align-items: center;
  }

  .about-left {
    order: 1 !important; /* text first */
  }

  .about-right {
    order: 2 !important; /* image second */
  }
}

/* ===== MOBILE NAVIGATION ===== */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  z-index: 999;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 15px 0;
}

@media (max-width: 768px) {
  .mobile-nav a {
    font-family: 'Karla', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0px 24px;
    display: block;
  }
}


/* Background colors by theme */
/* Day theme mobile menu background */
body.day-theme .mobile-nav {
  background-color: rgba(0, 0, 0, 0.4) !important; /* 40% black */
}

/* Dark theme mobile menu background */
body.dark-theme .mobile-nav {
  background-color: rgba(0, 0, 0, 1) !important; /* full black */
}
.mobile-nav.open {
  display: flex;
}

/* ===== MOBILE VIEW ONLY ===== */
@media (max-width: 768px) {
  /* Hide desktop elements */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }

  /* Logo smaller & left aligned */
  .logo-container img {
    height: 20px;
  }

  /* Theme toggle smaller */
  .theme-switch {
    width: 40px;
    height: 22px;
    position: relative;
  }
  .slider::before {
    height: 16px;
    width: 16px;
    bottom: 3px;
    left: 3px;
  }
  .theme-switch input:checked + .slider::before {
    transform: translateX(18px);
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none; /* hidden until .open */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important; /* menu just below the toggle */
    padding: 20px;
    gap: 20px;
    transition: background-color 0.3s ease;
  }

  /* Show menu */
  .mobile-nav.open {
    display: flex !important;
  }

  /* Theme-specific solid backgrounds */
  body.day-theme .mobile-nav.open {
    background-color: #b8a090 !important;
  }
  body.dark-theme .mobile-nav.open {
    background-color: #000 !important;
  }

  /* Ensure the menu toggle button is clickable above menu */
  #mobile-menu-toggle {
    position: fixed !important;
    top: 15px;
    right: 15px;
    z-index: 10001 !important;
  }

  /* Prevent page scroll when menu is open */
  body.menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 768px) {
  #locations {
    scroll-margin-top: 60px; /* matches mobile header height */
  }
}

@media (max-width: 768px) {
  .locations-section {
    padding-top: 40px;   /* less gap at top */
    padding-bottom: 62px; /* more gap at bottom */
  }
}

@media (max-width: 768px) {
  body.dark-theme .locations-section .location-card {
    border: 2px solid #fff !important;
  }
}

@media (max-width: 768px) {
  body.dark-theme .locations-section .underline {
    background: linear-gradient(to right, white, transparent);
  }
}

@media (max-width: 768px) {
  /* Hide desktop menu & contact */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }

  /* Header layout */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 20px; /* or your preferred height */
    height: 100%;
  }

  /* Logo on left */
  .logo-container {
    order: 1;
    margin-right: auto;
    transform: none;
    left: 5px;
    position: relative;
  }
  .logo-container img {
    height: 24px;
  }

  /* Right side: theme toggle + hamburger */
  .nav-right {
    order: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
  }

  /* Theme toggle smaller */
  .theme-switch {
    width: 40px;
    height: 22px;
    position: relative;
  }
  .slider::before {
    height: 16px;
    width: 16px;
    bottom: 3px;
    left: 3px;
  }
  .theme-switch input:checked + .slider::before {
    transform: translateX(18px);
  }

  /* Toggle icons inside switch — unified logic with desktop */
  .theme-switch .icon {
    font-size: 0.7rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0; /* hide both by default */
    transition: opacity 0.3s ease;
  }
  .theme-switch .icon.sun {
    left: 4px;
  }
  .theme-switch .icon.moon {
    right: 4px;
  }
  .theme-switch input:not(:checked) ~ .slider .icon.moon {
    opacity: 1; /* show moon in day mode */
  }
  .theme-switch input:checked ~ .slider .icon.sun {
    opacity: 1; /* show sun in dark mode */
  }

  /* Hamburger button style */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; /* size of the button */
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white; /* default for day theme, overridden below */
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Dark theme bar color */
  body.dark-theme .hamburger span {
    background-color: white;
  }

  /* Animate to X when menu open */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 768px) {
  #main-header {
    height: 60px; /* or adjust to taste */
  }
  #main-header .header-inner {
    height: 100%;
    padding: 0 1rem; /* horizontal padding only */
  }
}

/* Mobile nav transparency for dark theme */
body.dark-theme .mobile-nav {
  background-color: rgba(184, 160, 144, 0.4) !important;
}

/* ---------- MOBILE MENU OVERRIDES (paste at the BOTTOM of style.css) ---------- */
@media (max-width: 768px) {
  /* Adjust this value to match your header height on mobile (you said 50px worked earlier) */
  :root { --mobile-header-h: 50px; }

  /* show menu */
  .mobile-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  /* Theme-specific backgrounds applied only when open */
  body.day-theme .mobile-nav.open {
    background-color: #b8a090(0, 0, 0, 1) !important; /* no transparency */
  }
  body.dark-theme .mobile-nav.open {
    background-color: rgba(0, 0, 0, 1) !important; /* full black */
  }

  /* ensure the links are readable */
  .mobile-nav a {
    color: #fff !important;
  }
}

@media (min-width: 769px) {
  .locations-section .underline {
    margin-bottom: 0px; /* was 40px */
  }
}

@media (min-width: 769px) {
  .locations-section .projects-grid {
    margin-top: 0; /* removes gap between underline and first row of cards */
  }
}

@media (min-width: 769px) {
  .locations-section .section-header {
    margin-bottom: 0px; /* reduce space under heading */
  }

  .locations-section .stage {
    margin-top: 0; /* remove extra gap above slider */
  }
}

/* Fullscreen mobile menu styles */
@media (max-width: 768px) {

  /* When menu is open */
  .mobile-nav.open {
    display: flex !important;
  }

  /* Background colors per theme */
  body.day-theme .mobile-nav.open {
    background-color: #b8a090; /* solid, no transparency */
  }
  body.dark-theme .mobile-nav.open {
    background-color: #000000; /* solid black */
  }

  /* Menu links styling */
  .mobile-nav a {
    color: #fff !important;
    font-size: 1.5rem;
    text-decoration: none;
  }
}

@media (max-width: 768px) {
  /* Keep hamburger/X above the full-screen menu */
  #mobile-menu-toggle {
    position: fixed !important;
    top: 20px;
    right: 15px;
    z-index: 999999 !important; /* way above .mobile-nav */
    background: none;
    border: none;
    color: white;
  }
}

@media (max-width: 768px) {
  /* Move theme toggle slightly left to avoid menu button overlap */
  .theme-switch-wrapper {
    position: fixed;
    top: 18px;
    right: 60px; /* leave space for hamburger */
    z-index: 999998; /* just under hamburger */
  }
}

/* ===== COMPLETE MOBILE SLIDER FIX (paste at EOF of style.css) ===== */
@media (max-width: 768px) {
  /* Container: force horizontal swipe layout and prevent overscroll bounce */
  .locations-section .projects-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 12px 12px 18px 12px !important; /* top right bottom left */
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    touch-action: pan-x !important;
    overscroll-behavior-x: none !important; /* stops bounce/pull beyond last card */
  }

  /* Cards: fixed width for consistent snapping */
  .locations-section .projects-grid .location-card {
    flex: 0 0 auto !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Ensure hidden-card items used for "show more" are visible on mobile */
  .locations-section .projects-grid .hidden-card {
    display: block !important;
    visibility: visible !important;
  }

  /* Remove any trailing gap so the scroll stops at the last real card */
  .locations-section .projects-grid .location-card:last-child {
    margin-right: 0 !important;
  }

  /* Make images inside cards behave correctly */
  .locations-section .projects-grid .location-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* Hide the "SHOW MORE" UI on mobile */
  .toggle-btn-wrapper {
    display: none !important;
  }

  /* Hide native scrollbars for a cleaner visual */
  .locations-section .projects-grid::-webkit-scrollbar {
    display: none !important;
  }
  .locations-section .projects-grid {
    scrollbar-width: none !important;
  }
}

/* === 3D Location Slider === */
#locations .stage,
#locations .ring,
#locations .img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  user-select: none;
}

#locations .stage {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  transform-origin: 50% 50%;
  margin: 0 auto;
}

#locations .ring {
  transform-origin: 50% 50%;
  position: relative;
}

#locations .container {
  perspective: 2000px;
  width: 300px;
  height: 400px;
  position: relative;
}

/* === Label + gradient for 3D Locations slider === */
#locations .img {
  position: relative;
  overflow: hidden;
}

#locations .img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
  z-index: 1;
}

#locations .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

#locations .location-label {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  background: none !important;
}

#locations .img {
  position: absolute; /* restore this */
  top: 0;
  left: 0;
  width: 300px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #b8a090;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

body.day-theme #locations .img {
  border-color: #b8a090;
}
body.dark-theme #locations .img {
  border-color: #fff;
}

#locations .img::after {
  content: attr(data-name);
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0;
  font-weight: bold;
  font-size: 1rem;
}

/* ===== LOCATION BOTTOM GRADIENT & LABEL (put at EOF of style.css) ===== */

/* Disable older pseudo-element that creates a solid black bar */
#locations .img::after {
  display: none !important;
  content: none !important;
}

/* Ensure .img are positioned absolutely for GSAP 3D layout */
#locations .img {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  /* keep width/height as used by your slider, don't change these here */
}

/* Overlay: small fading gradient at the bottom of each card */
#locations .img .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;                        /* tweak if you want taller/shorter */
  padding: 6px 10px;
  display: flex;
  align-items: center;                 /* vertically centers text inside the gradient */
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;                          /* sits above image but below any controls */
  pointer-events: none;                /* doesn't block hover/drag */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 50%,
    rgba(0,0,0,0.45) 80%,
    rgba(0,0,0,0.08) 90%,
    rgba(0,0,0,0) 100%
  );
}

/* Label: no background, white text, slightly larger */
#locations .img .location-label,
#locations .location-label {
  background: none !important;         /* remove any earlier white box */
  padding: 0 !important;
  margin: 0;
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  z-index: 6;                          /* above the gradient */
}

@media (max-width: 768px) {
  body.locations-mobile #locations .ring {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    justify-content: center;
    padding: 0 4vw 18px;
  }

  body.locations-mobile #locations .ring .img {
    flex: 0 0 78%;
    max-width: 340px;
    min-width: 260px;
    scroll-snap-align: center;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    transform: none !important;
  }

  body.locations-mobile #locations .ring::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  #locations .stage {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-locations-carousel {
    display: none !important;
  }
}

/* Slide Hint Bar - Desktop */
.slide-hint {
  position: absolute;
  top: calc(100% - 50px); /* BELOW the slider */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  pointer-events: auto; /* Allow dragging from here */
}

.slide-hint.visible {
  opacity: 1;
}

.slide-hint .slide-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.slide-hint .arrow-group {
  display: flex;
  gap: 6px;
}

.slide-hint .arrow {
  font-size: 2.2rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Animations */
.slide-hint .arrow.left1,
.slide-hint .arrow.left2 {
  animation: leftSlide 1s infinite alternate;
}

.slide-hint .arrow.right1,
.slide-hint .arrow.right2 {
  animation: rightSlide 1s infinite alternate;
}

@keyframes leftSlide {
  from { transform: translateX(0); opacity: 0.85; }
  to { transform: translateX(-6px); opacity: 1; }
}

@keyframes rightSlide {
  from { transform: translateX(0); opacity: 0.85; }
  to { transform: translateX(6px); opacity: 1; }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .slide-hint {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-locations-carousel {
    overflow-y: hidden;
    position: relative;
    overflow: hidden;
    padding: 0; /* no padding here, we'll pad the track */
  }

  .mobile-locations-carousel .carousel-track {
    display: flex;
    gap: 40px; /* distance between cards */
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-left: calc((100vw - 110%) / 2);
    padding-right: calc((100vw - 110%) / 2);
  }

  .mobile-locations-carousel .carousel-track::-webkit-scrollbar {
    display: none; /* hide scrollbar in Chrome, Safari */
  }

  .mobile-locations-carousel .location-card {
    flex: 0 0 110%; /* wider card */
    max-width: 110%;
    height: 260px; /* shorter height */
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    margin: 0; /* remove extra margin that can push content */
  }

  .mobile-locations-carousel .location-card:hover img {
    transform: scale(1.05);
  }

  .mobile-locations-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(184, 160, 144, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    font-size: 1.8rem;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
  }

  .mobile-locations-carousel .carousel-btn:hover {
    background: rgba(184, 160, 144, 1);
  }

  .mobile-locations-carousel .carousel-btn.prev {
    left: 0;
  }
  .mobile-locations-carousel .carousel-btn.next {
    right: 0;
  }
}

/* === Mobile: Associations logos smaller, tighter, full-width === */
@media (max-width: 768px) {
  /* Remove side padding from the section */
  .associations-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Smaller logo containers */
  .associations-section .logo-wrapper {
    height: 60px;   /* was 100px */
    width: 100px;   /* was 180px */
  }

  /* Smaller logos inside */
  .associations-section .logo-wrapper img {
    max-height: 50px;
    max-width: 90px;
  }

  /* Reduce gap between logos */
  .associations-section .logo-track {
    gap: 20px; /* was 60px */
    padding-left: 0;
    padding-right: 0;
  }
}

/* === Mobile: Single-column blogs layout === */
@media (max-width: 768px) {
  .blogs-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* space between blog cards */
    overflow-x: visible; /* no horizontal scroll */
    padding: 0; /* remove side scroll padding */
  }

  .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-card img {
    height: auto; /* adjust height proportionally */
  }
}

/* === Mobile: Contact section heading & underline === */
@media (max-width: 768px) {
  /* Light theme */
  body.day-theme .contact-heading {
    color: #b8a090 !important;
    text-align: center;
  }
  body.day-theme .contact-underline {
    margin: 0 auto 30px auto;
    background: linear-gradient(to right, #b8a090, transparent);
  }

  /* Dark theme */
  body.dark-theme .contact-heading {
    color: black !important;
    text-align: center;
  }
  body.dark-theme .contact-underline {
    margin: 0 auto 30px auto;
    background: linear-gradient(to right, black, transparent);
  }
}

/* === Mobile: Perfectly center Contact container === */
@media (max-width: 768px) {
  /* Remove section padding that causes uneven spacing */
  .contact-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Center the container with equal margins */
  .contact-container {
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }
}

/* === Mobile: Thinner submit button border === */
@media (max-width: 768px) {
  .contact-form button {
    border-width: 1px; /* was 2px */
  }
}

/* === Mobile: force-equal left/right gaps & center contact box === */
@media (max-width: 768px) {
  /* Remove any leftover side padding/margins from parent wrappers */
  .contact-section,
  .contact-section .container,
  .contact-section .contact-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Make the contact box centered with equal gaps on both sides */
  .contact-container {
    width: calc(100% - 32px) !important; /* 16px padding both sides */
    max-width: 450px;                     /* keeps it readable */
    margin: 0 auto !important;
    padding-inline: 16px !important;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box !important;
  }

  /* Ensure section aligns its contents centrally */
  .contact-section {
    display: block; /* safe default — won't reflow other children */
  }
}

/* === Mobile: Footer logo alignment & column spacing === */
@media (max-width: 768px) {
  /* Nudge footer logo left to align with text */
  .footer-logo {
    margin-left: 0;     /* remove extra left margin */
    display: block;
    transform: translateX(-4px); /* adjust offset — tweak as needed */
  }

  /* Reduce vertical gap between footer columns */
  .footer-top {
    gap: 30px; /* was 65px */
  }
}

/* === Mobile: Remove forced <br> breaks in footer description === */
@media (max-width: 768px) {
  .footer-description br {
    display: none;
  }
}


/* ============================
   DEVELOPERS — 3D Ring & mobile gallery
   Scoped to #developers only
   ============================ */

/* base: allow 3d transforms */
#developers .stage,
#developers .ring,
#developers .img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  user-select: none;
}

/* stage centers the ring on desktop */
#developers .stage {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  transform-origin: 50% 50%;
  margin: 0 auto;
}

/* ring container */
#developers .ring {
  transform-origin: 50% 50%;
  position: relative;
}

/* container with perspective used by GSAP transformOrigin */
#developers .container {
  perspective: 2000px;
  width: 300px;   /* card width used to compute radius */
  height: 400px;  /* card height used to compute radius */
  position: relative;
}

/* each card used in 3D ring (desktop) */
#developers .img {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 8px; /* small gap on each side */
  width: 300px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #b8a090;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

/* theme border colors */
body.day-theme #developers .img { border-color: #b8a090; }
body.dark-theme #developers .img { border-color: #fff; }

/* overlay gradient + label */
#developers .img .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 50%,
    rgba(0,0,0,0.45) 80%,
    rgba(0,0,0,0.08) 90%,
    rgba(0,0,0,0) 100%
  );
}

/* label styling */
#developers .developer-label {
  background: none !important;
  padding: 0 !important;
  margin: 0;
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  z-index: 6;
}

/* small accessibility tweak (hide pseudo label if present) */
#developers .img::after { display: none !important; content: none !important; }

/* Slide hint */
#developers .slide-hint {
  position: absolute;
  top: calc(100% - 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #b8a090;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
#developers .slide-hint.visible { opacity: 1; }

/* ===== MOBILE OVERRIDES (force gallery) ===== */
@media (max-width: 768px) {
  /* stage becomes normal flow */
  #developers .stage {
    padding: 20px 0;
  }

  /* make the ring a horizontal scroller for mobile */
  body.developers-mobile #developers .ring {
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 4vw 18px;
    justify-content: center;
  }

  body.developers-mobile #developers .ring::-webkit-scrollbar { display: none; }
  body.developers-mobile #developers .ring { scrollbar-width: none; }

  /* mobile card sizing (match Locations mobile) */
  body.developers-mobile #developers .ring .img {
    flex: 0 0 78%;
    max-width: 340px;
    min-width: 260px;
    scroll-snap-align: center;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    transform: none !important;
    position: relative;
    height: auto;
  }

  /* label sits on gradient at bottom */
  body.developers-mobile #developers .ring .img .overlay {
    height: 64px;
    padding: 10px;
  }

  /* show the slide hint on mobile */
  #developers .slide-hint { display: block; }
}

#developers .developer-card {
  margin: 0 10px; /* adds horizontal gap between cards */
}

/* === MOBILE FIX: Card sizing === */
/* === Mobile: center-first-card + fixed card size (put at EOF of style.css) === */
@media (max-width: 768px) {

  /* Reset any broken paddings and force horizontal scroller */
  .mobile-locations-carousel {
    overflow: hidden !important;
  }

  .mobile-locations-carousel .carousel-track {
    display: flex !important;
    gap: 40px !important;
    padding: 0 !important;                 /* remove earlier calc() paddings that broke layout */
    margin: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  /* Add flexible spacers so the first and last cards can sit centered in viewport */
  .mobile-locations-carousel .carousel-track::before,
  .mobile-locations-carousel .carousel-track::after {
    content: "" !important;
    /* card width = 220px below — so center spacing = (viewport - cardWidth) / 2 */
    flex: 0 0 calc((100vw - 220px) / 2) !important;
    min-width: calc((100vw - 220px) / 2) !important;
    height: 1px !important; /* small height so it doesn't affect vertical layout */
  }

  /* Card sizing (fixed to match developers) */
  .mobile-locations-carousel .location-card {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 300px !important;              
    scroll-snap-align: center !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .mobile-locations-carousel .location-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important; /* ensure it's centered vertically */
    display: block !important;
  }

  /* keep buttons visible and not overlapping awkwardly */
  .mobile-locations-carousel .carousel-btn.prev { left: 8px !important; }
  .mobile-locations-carousel .carousel-btn.next { right: 8px !important; }

  /* small safety: don't let negative or too small viewport push layouts weirdly */
  /* If viewport gets smaller than card width, allow the spacer to be 0 */
  .mobile-locations-carousel .carousel-track::before,
  .mobile-locations-carousel .carousel-track::after {
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Stop zoom effect on mobile location cards */
  .mobile-locations-carousel .location-card img,
  #developers .ring .img {
    transform: none !important;
    transition: none !important;
  }
  
  /* Also disable hover-triggered zoom */
  .mobile-locations-carousel .location-card:hover img {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* Stop location cards from moving/zooming on appear */
  .location-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === Mobile Developers Card Size (Match Locations) === */
@media (max-width: 768px) {
  #developers .developer-card,
  #developers .img {
    width: 220px !important;
    height: 300px !important;
    flex: 0 0 auto; /* prevent shrinking */
    border-radius: 12px;
    overflow: hidden;
  }

  #developers .img {
    background-size: cover;
    background-position: center;
  }

  #developers .developer-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.7) 65%,
      transparent 100%
    );
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
  }
}

/* === Mobile Developers Carousel Final === */
@media (max-width: 768px) {
  .mobile-developers-carousel {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
  }

  /* Horizontal scroll & center snap */
  .mobile-developers-carousel .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 40px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox hide scrollbar */
  }

  .mobile-developers-carousel .carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari hide scrollbar */
  }

  /* Each card */
  .mobile-developers-carousel .location-card {
    flex: 0 0 auto;
    width: 220px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #b8a090;
    position: relative;
    text-decoration: none;
    scroll-snap-align: center; /* always center card when scroll stops */
  }

  .mobile-developers-carousel .location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-developers-carousel .location-card span {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.5), transparent);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 1rem;
  }

@media (max-width: 768px) {
  .mobile-developers-carousel .location-card span {
    height: 80px; /* same as Locations */
    display: flex;
    align-items: flex-end; /* push text to bottom */
    justify-content: center; /* center text horizontally */
    padding-bottom: 10px; /* spacing from bottom edge */
  }
}
  /* Arrows */
  .mobile-developers-carousel .carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 2;
  }

  .mobile-developers-carousel .prev {
    position: absolute;
    left: 0;
  }

  .mobile-developers-carousel .next {
    position: absolute;
    right: 0;
  }

  /* Hide developers .stage (desktop ring) on mobile */
  #developers .stage {
    display: none;
  }
}

/* Hide the mobile carousel on desktop */
@media (min-width: 769px) {
  .mobile-developers-carousel {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #developers {
    scroll-margin-top: 60px; /* match your fixed header height */
  }
}

@media (max-width: 768px) {
  #developers .section-header {
    margin-top: 0;       /* remove any extra top margin */
    padding-top: 50px;   /* adjust as needed */
  }
}

@media (max-width: 768px) {
  #developers {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #developers .mobile-developers-carousel {
    margin-bottom: 0;
    padding-bottom: 20px;
  }
}

/* Animated Submit Button - Styled to Match Site */
#btn {
  width: 140px;                /* smaller width */
  height: 42px;                /* smaller height */
  border: 2px solid #fff;      /* white border like your site */
  outline: none;
  background: transparent;     /* transparent background */
  color: #fff;                 /* white text */
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

#btn:hover {
  background: rgba(255,255,255,0.1); /* subtle hover effect */
}

#btn p {
  margin: 0;
}

.check-box {
  width: 42px;
  height: 42px;
  border-radius: 25px;
  background: #fff;          /* white circle for checkmark */
  position: absolute;
  top: 0;
  right: -42px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-box svg {
  width: 20px;
}

svg path {
  stroke-width: 3;
  stroke: #2f2f2f;           /* dark checkmark */
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  stroke-linecap: round;
}

#btn.active {
  background: #fff;          /* fill button white on success */
  color: #2f2f2f;            /* text turns dark */
  border-color: #fff;
  transition: 0.8s;
}

#btn.active .check-box {
  right: 0;
  opacity: 1;
  transition: 0.8s;
}

#btn.active p {
  margin-right: 60px;
  transition: 0.8s;
}

#btn.active svg path {
  stroke-dashoffset: 0;
  transition: 0.8s;
  transition-delay: 0.5s;
}


/* === Desktop Defaults === */
body.day-theme .hero-section {
  background-image: url('../assets/images/bg-light.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

body.dark-theme .hero-section {
  background-image: url('../assets/images/bg-dark.png');
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

/* === Mobile Overrides === */
@media (max-width: 1024px) {
  body.day-theme .hero-section {
    background-image: url('../assets/images/bg-light-mobile.png?v=201') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    min-height: 100svh !important;
    height: auto !important;
  }

  body.dark-theme .hero-section {
    background-image: url('../assets/images/bg-dark-mobile.png?v=201') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    min-height: 100svh !important;
    height: auto !important;
  }
}

.blogs-container {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;            /* hide overflow (no scrollbar) */
  scroll-behavior: smooth;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}

.blog-card {
  flex: 0 0 calc((100% - 40px) / 3);  /* (100% - 2 gaps of 20px) / 3 */
  max-width: calc((100% - 40px) / 3);
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
  .blog-card {
    flex: 0 0 calc((100% - 20px) / 2); /* (100% - 1 gap) / 2 */
    max-width: calc((100% - 20px) / 2);
  }
}

/* Mobile: 1 card */
@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Desktop/Tablet: show arrows, hide View More */
.blogs-navigation {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.blogs-view-more {
  display: none;
  text-align: center;
  margin-top: 20px;
}

/* Mobile: hide arrows, show View More */
@media (max-width: 768px) {
  .blogs-navigation {
    display: none;
  }
  .blogs-view-more {
    display: block;
  }

  /* Only show first 3 blog cards */
  .blogs-container .blog-card:nth-of-type(n+4) {
    display: none;
  }
}
