/* ============================================================
   VARTHINI FOUNDATIONS — PREMIUM CSS DESIGN SYSTEM
   Inspired by Spence Ltd. design language
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & DESIGN TOKENS
============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #1E6B42;
  --color-primary-dark:  #13452B;
  --color-primary-deep:  #0F1F16;
  --color-secondary:     #2E8B57;
  --color-accent:        #4CAF78;
  --color-sage:          #EAF4EE;
  --color-light:         #F8FBF9;
  --color-white:         #FFFFFF;

  /* Text */
  --text-dark:           #0F1F16;
  --text-mid:            #2D4A38;
  --text-muted:          #6B8F78;
  --text-light:          #EAF4EE;
  --text-white:          #FFFFFF;

  /* Backgrounds */
  --bg-light:            #F8FBF9;
  --bg-mid:              #EAF4EE;
  --bg-dark:             #0F1F16;
  --bg-dark-mid:         #13452B;

  /* Typography */
  --font-display:        'Cormorant Garamond', Georgia, serif;
  --font-body:           'DM Sans', system-ui, sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --text-lg:   clamp(1.05rem, 1rem + 0.25vw, 1.2rem);       /* Smaller subheaders */
  --text-xl:   clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);      /* Smaller card headers */
  --text-2xl:  clamp(1.45rem, 1.3rem + 0.8vw, 1.95rem);     /* Smaller medium headings */
  --text-3xl:  clamp(1.85rem, 1.6rem + 1.5vw, 2.6rem);      /* Smaller section headings */
  --text-4xl:  clamp(2.3rem, 1.9rem + 2.5vw, 3.6rem);       /* Smaller Main Hero / CTA headlines */
  --text-5xl:  clamp(2.8rem, 2.2rem + 3.5vw, 4.5rem);

  /* Spacing */
  --space-xs:   clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm:   clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md:   clamp(1.25rem, 1rem + 1.25vw, 2rem);
  --space-lg:   clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl:   clamp(1.5rem, 1rem + 3vw, 3rem);
  --space-2xl:  clamp(2.5rem, 2rem + 4vw, 5rem);
  --space-hero: clamp(8rem, 6rem + 10vw, 14rem);

  /* Effects */
  --shadow-sm:   0 2px 12px rgba(15, 31, 22, 0.08);
  --shadow-md:   0 8px 32px rgba(15, 31, 22, 0.12);
  --shadow-lg:   0 20px 60px rgba(15, 31, 22, 0.18);
  --shadow-xl:   0 32px 80px rgba(15, 31, 22, 0.25);
  --shadow-card: 0 4px 24px rgba(15, 31, 22, 0.1), 0 1px 4px rgba(15, 31, 22, 0.06);
  --shadow-hover:0 20px 60px rgba(15, 31, 22, 0.2), 0 4px 16px rgba(15, 31, 22, 0.12);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --transition-fast:   all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base:   all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow:   all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 70px;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: var(--radius-full); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Links */
a { color: inherit; text-decoration: none; }

/* Images */
img, svg { max-width: 100%; display: block; }

/* Lists */
ul { list-style: none; }

/* ============================================================
   3. SCROLL PROGRESS
============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   4. LOADER
============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--color-primary-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#loader.loaded {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* Reduced gap to bring loading bar and text closer to the logo */
}

.loader-logo {
  width: clamp(360px, 65vw, 620px); /* Increased size by ~30% */
  height: auto;
  max-height: 22vh;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(234, 244, 238, 0.2);
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--color-sage);
  width: 0%;
  animation: loaderBar 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.loader-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-sage);
  letter-spacing: 0.2em;
  font-weight: 300;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes loaderBar {
  to { width: 100%; }
}

/* ============================================================
   5. LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.section-light { background: var(--bg-light); }
.section-dark  { background: var(--bg-dark); }

/* ============================================================
   6. TYPOGRAPHY UTILITIES
============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.section-eyebrow.light { color: var(--color-accent); }
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.section-heading.light { color: var(--text-light); }
.section-heading em {
  font-style: italic;
  color: var(--color-primary);
}
.section-heading.light em { color: var(--color-accent); }

/* ============================================================
   7. BUTTON SYSTEM
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: var(--color-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-dot::after {
  content: '';
  width: 38%;
  height: 38%;
  background-color: var(--text-white);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: var(--transition-base);
}

.btn-primary .btn-dot {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: var(--transition-spring);
  flex-shrink: 0;
}
.btn-primary:hover .btn-dot {
  transform: scale(1.3);
  background: var(--color-white);
}
.btn-primary:hover .btn-dot::after {
  background-color: var(--color-primary-dark);
}

.btn-lg { padding: 1.125rem 2.5rem; font-size: var(--text-base); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(234, 244, 238, 0.4);
  cursor: pointer;
  transition: var(--transition-base);
}
.btn-ghost:hover {
  border-color: var(--color-sage);
  background: rgba(234, 244, 238, 0.1);
  gap: 0.75rem;
}
.btn-ghost svg { width: 16px; height: 16px; transition: var(--transition-base); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid rgba(234, 244, 238, 0.35);
  cursor: pointer;
  transition: var(--transition-base);
}
.btn-ghost-light:hover {
  border-color: rgba(234, 244, 238, 0.7);
  gap: 0.75rem;
}
.btn-ghost-light svg { width: 16px; height: 16px; transition: var(--transition-base); }
.btn-ghost-light:hover svg { transform: translateX(4px); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(234, 244, 238, 0.4);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.btn-outline-light:hover {
  background: rgba(234, 244, 238, 0.1);
  border-color: var(--color-sage);
  transform: translateY(-2px);
}
.btn-outline-light .btn-dot {
  width: 22px; height: 22px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: var(--transition-spring);
}
.btn-outline-light:hover .btn-dot { transform: scale(1.3); }

/* Magnetic effect */
.magnetic-btn { transform-style: preserve-3d; }

/* ============================================================
   8. ANIMATION CLASSES
============================================================ */
.reveal-fade,
.reveal-up,
.reveal-scale,
.reveal-stagger {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-fade     { transform: translateY(20px); }
.reveal-up       { transform: translateY(40px); }
.reveal-scale    { transform: scale(0.95) translateY(30px); }
.reveal-stagger  { transform: translateY(40px); }

.reveal-fade.is-visible,
.reveal-up.is-visible,
.reveal-scale.is-visible,
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays */
[data-delay="0"] { transition-delay: 0s; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* Line reveal */
.line-wrap {
  display: block;
  overflow: hidden;
}
.line-reveal {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease;
}
.lines-revealed .line-reveal { transform: translateY(0); opacity: 1; }

/* ============================================================
   9. NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(15, 31, 22, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(46, 139, 87, 0.15);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition-slow);
  height: var(--nav-height);
}

/* Scrolled state container padding */
#navbar.scrolled .nav-container {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  align-self: center;
  height: auto;
  position: relative;
  z-index: 10;
}
.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: var(--transition-base);
  color: var(--color-sage);
}
.logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-base);
  filter: brightness(0) invert(1);
}
#navbar.scrolled .logo-img {
  height: 110px;
}
#navbar.scrolled .logo-icon { color: var(--color-accent); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: 0.01em;
}
.logo-dot { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-left: auto;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text-white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  margin-left: 1rem;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(234, 244, 238, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-base);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.nav-cta .btn-dot {
  width: 18px; height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: var(--transition-spring);
}
.nav-cta:hover .btn-dot { transform: scale(1.3); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-sage);
  transition: var(--transition-base);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 31, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  border-bottom: 1px solid rgba(46, 139, 87, 0.2);
}
.mobile-menu.open {
  max-height: 500px;
}
.mobile-menu ul {
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-link {
  display: block;
  padding: 0.875rem 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--text-light);
  border-bottom: 1px solid rgba(234, 244, 238, 0.1);
  transition: var(--transition-fast);
  font-weight: 400;
}
.mobile-link:hover { color: var(--color-accent); padding-left: 0.5rem; }
.mobile-cta {
  margin-top: 0.5rem;
  color: var(--color-accent);
  border: none;
  font-weight: 500;
}

/* ============================================================
   10. HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-shape  { animation: floatA 12s ease-in-out infinite; }
.float-shape-2{ animation: floatB 16s ease-in-out infinite; }
.float-shape-3{ animation: floatC 20s ease-in-out infinite; }

@keyframes floatA { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }
@keyframes floatB { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(25px) translateX(-15px); } }
@keyframes floatC { 0%,100% { transform: rotate(15deg) scale(1); } 50% { transform: rotate(20deg) scale(1.1); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 1.5rem;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234, 244, 238, 0.7);
  margin-bottom: 0.75rem;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.7} }

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  max-width: 750px;
}
.hero-italic { font-style: italic; }

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(234, 244, 238, 0.7);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-projects {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.projects-label {
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.projects-ticker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-item {
  padding: 0.375rem 1rem;
  border: 1px solid rgba(234, 244, 238, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.6);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-body);
}
.project-item.active,
.project-item:hover {
  border-color: var(--color-accent);
  color: var(--text-white);
  background: rgba(76, 175, 120, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: scrollBob 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-sage));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234, 244, 238, 0.5);
}
@keyframes scrollBob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes scrollLine { 0%{top:-100%} 100%{top:200%} }

/* ============================================================
   11. MARQUEE STRIP
============================================================ */
.marquee-strip {
  background: var(--color-primary);
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(76, 175, 120, 0.2);
  border-bottom: 1px solid rgba(76, 175, 120, 0.2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(234, 244, 238, 0.8);
  flex-shrink: 0;
}
.marquee-dot {
  color: var(--color-accent) !important;
  font-size: 8px !important;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   12. ABOUT SECTION
============================================================ */
.about {
  padding: var(--space-2xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-visual { position: relative; }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-inner {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-primary-dark);
}
.about-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.about-img-wrap:hover .about-illustration { transform: scale(1.04); }

.about-badge {
  position: absolute;
  bottom: clamp(20px, 3.5vw, 32px);
  right: clamp(20px, 3.5vw, 32px);
  background: var(--color-primary);
  color: var(--text-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  z-index: 2;
}
.badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.badge-text {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.about-text {
  padding: var(--space-md) 0;
}
.about-body {
  color: var(--text-mid);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: var(--space-lg);
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  background: var(--color-sage);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: var(--transition-base);
}
.pillar:hover .pillar-icon {
  background: var(--color-primary);
  color: var(--text-white);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pillar strong {
  font-weight: 600;
  color: var(--text-dark);
  font-size: var(--text-sm);
}
.pillar span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   13. IMPACT / STATS
============================================================ */
.impact {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.impact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#dotsCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.impact .container { position: relative; z-index: 1; }

.impact-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.impact-header .section-heading { margin-top: 0.5rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.stat-card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(46, 139, 87, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(30, 107, 66, 0.08);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  border-color: rgba(76, 175, 120, 0.4);
  background: rgba(30, 107, 66, 0.15);
  transform: translateY(-4px);
}

.stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}
.counter {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-weight: 300;
}
.stat-label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.stat-desc {
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.5);
  line-height: 1.5;
}

.impact-cta {
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid rgba(46, 139, 87, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(30, 107, 66, 0.06);
}
.impact-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.impact-attribution {
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   14. SERVICES SECTION
============================================================ */
.services {
  padding: var(--space-2xl) 0;
}

.services-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}
.services-intro {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: var(--space-md);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid rgba(15, 31, 22, 0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}
.service-card:hover .service-num { color: rgba(234, 244, 238, 0.5); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card:hover .service-icon { color: var(--color-sage); }

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  transition: var(--transition-base);
}
.service-card:hover .service-title { color: var(--text-white); }

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
}
.service-card:hover .service-desc { color: rgba(234, 244, 238, 0.75); }

.service-arrow {
  width: 36px; height: 36px;
  border: 1px solid rgba(15, 31, 22, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-base);
}
.service-arrow svg { width: 16px; height: 16px; }
.service-card:hover .service-arrow {
  border-color: rgba(234, 244, 238, 0.4);
  color: var(--text-white);
  transform: rotate(45deg);
}

/* CTA card */
.service-card--cta {
  background: var(--color-primary-dark);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card--cta::before { display: none; }
.service-card--cta:hover { background: var(--color-primary); }

.cta-card-text {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.cta-card-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  position: relative; z-index: 1;
}

/* ============================================================
   15. PROJECTS SECTION
============================================================ */
.projects {
  padding: var(--space-2xl) 0;
}

.projects-header {
  margin-bottom: var(--space-xl);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary-dark);
  cursor: pointer;
}
.project-card--large {
  grid-column: 1;
  grid-row: 1 / 3;
}

.project-card-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  
}
.project-card--large .project-card-img { min-height: 700px; }

.project-card-img svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project-card:hover .project-card-img svg { transform: scale(1.06); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 22, 0.9) 0%, rgba(15, 31, 22, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0.85;
  transition: var(--transition-base);
}
.project-card:hover .project-card-overlay { opacity: 1; }

.project-type {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.375rem;
  line-height: 1.2;
}
.project-location {
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.6);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.project-link {
  font-size: var(--text-xs);
  color: var(--text-white);
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-base);
  display: inline-block;
}
.project-card:hover .project-link { opacity: 1; transform: translateY(0); }

.projects-footer {
  text-align: center;
}

/* ============================================================
   16. TESTIMONIALS
============================================================ */
.testimonials {
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.testimonials .section-heading { margin-bottom: var(--space-xl); }

.testimonials-slider {
  position: relative;
}
.testimonials-track {
  display: flex;
  align-items: stretch; /* <-- This forces all cards to equal height */
  gap: var(--space-md);
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.35rem);
  min-width: 700px;
  background: var(--color-white);
  border: 1px solid rgba(45, 74, 56, 0.08);
  border-radius: 4px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-primary);
  line-height: 0.6;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  font-style: normal;
}
.author-project {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.slider-btn {
  width: 48px; height: 48px;
  border: 1px solid rgba(15, 31, 22, 0.15);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-muted);
}
.slider-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
}
.slider-btn svg { width: 18px; height: 18px; }

.slider-dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 8px; height: 8px;
  background: rgba(15, 31, 22, 0.2);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}
.dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ============================================================
   17. CONTACT CTA SECTION
============================================================ */
.contact-cta {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#ctaCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}
.contact-cta .container { position: relative; z-index: 1; }

.cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  margin-top: 0.5rem;
}
.cta-headline em {
  font-style: italic;
  color: var(--color-accent);
}
.cta-sub {
  font-size: var(--text-base);
  color: rgba(234, 244, 238, 0.65);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: rgba(234, 244, 238, 0.65);
  line-height: 1.6;
  text-align: left;
}
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }

/* ============================================================
   18. FOOTER
============================================================ */
.footer {
  background: var(--color-primary-deep);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(46, 139, 87, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(234, 244, 238, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}
.footer-logo .logo-icon { width: 32px; height: 32px; object-fit: contain; }
.footer-logo .logo-img { height: 130px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo .logo-icon { color: var(--color-accent); }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(234, 244, 238, 0.55);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px; height: 40px;
  border: 1px solid rgba(234, 244, 238, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 244, 238, 0.55);
  transition: var(--transition-base);
}
.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(76, 175, 120, 0.1);
}
.social-link svg { width: 16px; height: 16px; }

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(234, 244, 238, 0.55);
  transition: var(--transition-fast);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-address p {
  font-size: var(--text-sm);
  color: rgba(234, 244, 238, 0.55);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.footer-address a {
  color: rgba(234, 244, 238, 0.55);
  transition: var(--transition-fast);
}
.footer-address a:hover { color: var(--color-accent); }

.footer-gstin {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 244, 238, 0.08);
}
.footer-gstin span {
  font-size: 11px;
  color: rgba(234, 244, 238, 0.3);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(234, 244, 238, 0.35);
}
.footer-credit { color: rgba(234, 244, 238, 0.2) !important; }

/* ============================================================
   19. RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  :root {
    --nav-height: 60px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 130px; }
  #navbar.scrolled .logo-img { height: 90px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--large { grid-column: auto; grid-row: auto; }
  .testimonial-card { min-width: 85%; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 55px;
  }
  .hero-headline { font-size: clamp(2.25rem, 7vw, 4rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .logo-img { height: 100px; }
  #navbar.scrolled .logo-img { height: 80px; }
}

@media (max-width: 520px) {
  :root {
    --nav-height: 50px;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-badge { right: 0; bottom: -1rem; }
  .projects-grid { gap: 1rem; }
  .project-card-img, .project-card--large .project-card-img { min-height: 220px; }
  .testimonial-card { min-width: calc(100% - 0rem); padding: var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .logo-img { height: 80px; }
  #navbar.scrolled .logo-img { height: 65px; }
}

/* ============================================================
   20. REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-fade, .reveal-up, .reveal-scale, .reveal-stagger {
    opacity: 1;
    transform: none;
  }
  .line-reveal { transform: none; opacity: 1; }
}
