/* ═══════════════════════════════════════════════════════════════════════════
   KAIRA INFRA PROJECTS — PREMIUM DESIGN SYSTEM
   Award-Level UI/UX • 2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --bg-950:  #0b1218;
  --bg-900:  #0f1a22;
  --bg-800:  #162028;
  --bg-700:  #1e2b38;
  --bg-600:  #253342;
  --bg-500:  #2c3d50;

  /* Forest Green Accent */
  --gr-700:  #0f4a1e;
  --gr-600:  #165c27;
  --gr-500:  #1b6b2e;   /* logo base green */
  --gr-400:  #22a045;   /* primary CTA green */
  --gr-300:  #2ebd57;   /* bright green for text/icons */
  --gr-200:  #5dd87c;   /* light green highlights */
  --gr-100:  #a8f0bc;   /* palest tint */

  /* Neutral */
  --white:   #ffffff;
  --gray-50: #f4f6f5;
  --gray-100:#e8ece9;
  --gray-200:#cdd4ce;
  --gray-300:#a8b3a9;
  --gray-400:#7d8e7e;
  --gray-500:#5c6b5d;
  --gray-600:#3e4d3f;
  --gray-700:#2a362b;

  /* Semantic Aliases - Default Dark Mode */
  --bg:            var(--bg-950);
  --bg-surface:    var(--bg-900);
  --bg-card:       var(--bg-800);
  --bg-card-hover: var(--bg-700);
  --glass:         rgba(15,26,34,0.85);
  --glass-light:   rgba(255,255,255,0.05);
  --navbar-bg:     rgba(11,18,24,0.88);
  --border:        rgba(255,255,255,0.10);
  --border-em:     rgba(46,189,87,0.35);
  --border-blue:   rgba(46,189,87,0.25);

  --text-heading:  #ffffff;
  --text-primary:  #f0f4f1;
  --text-secondary:#a3b8aa;
  --text-muted:    #7e9282;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-ui:      'Inter', sans-serif;

  /* Spacing */
  --section-py:    120px;
  --container-max: 1280px;
  --container-px:  32px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.35);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.55);
  --shadow-em:   0 0 32px rgba(34,160,69,0.28);
  --shadow-dark: 0 0 32px rgba(0,0,0,0.6);

  /* Transitions */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast:   0.2s var(--ease);
  --t-smooth: 0.5s var(--ease);
  --t-slow:   0.8s var(--ease);
}

/* ── LIGHT THEME TOKENS ─────────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:            #f4f7f4;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f6f2;
  --glass:         rgba(255, 255, 255, 0.92);
  --glass-light:   rgba(27, 107, 46, 0.05);
  --navbar-bg:     rgba(255, 255, 255, 0.92);
  --border:        rgba(0, 0, 0, 0.09);
  --border-em:     rgba(27, 107, 46, 0.30);
  --border-blue:   rgba(27, 107, 46, 0.20);

  --text-heading:  #0f1a22;
  --text-primary:  #1e2b38;
  --text-secondary:#3e5140;
  --text-muted:    #64748b;

  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 50px rgba(0,0,0,0.10);
  --shadow-em:   0 4px 24px rgba(27,107,46,0.15);
}

/* Theme Smooth Transitions */
body, .navbar, .project-card, .team-card-inner, .vm-card, .hero-section, .footer, .btn, .nav-link, .stat-number, .card-primary, .card-secondary, .filter-btn, .modal-content, .proposal-form-container, .hero-stats, .contact-card {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── PAGE LOADER ────────────────────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-logo { display: flex; gap: 5px; }
.l-block {
  width: 12px; height: 28px;
  background: var(--border);
  border-radius: 3px; transform: skewX(-15deg);
  animation: loaderPulse 1.2s ease infinite;
}
.l-block.accent {
  background: var(--gr-500);
  animation-delay: 0.2s;
  box-shadow: 0 0 16px var(--gr-500);
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: skewX(-15deg) scaleY(1); }
  50% { opacity: 0.5; transform: skewX(-15deg) scaleY(0.7); }
}
.loader-bar {
  width: 180px; height: 2px;
  background: var(--border);
  border-radius: var(--r-full); overflow: hidden;
}
.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gr-600), var(--gr-400));
  border-radius: var(--r-full);
  animation: loaderBar 1.8s var(--ease) forwards;
}
@keyframes loaderBar {
  0% { width: 0; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gr-400);
  top: 0; left: 0;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(27,107,46,0.5);
  top: 0; left: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
.cursor-ring.expanded { width: 56px; height: 56px; border-color: var(--gr-400); }
body:not(:hover) .cursor-dot,
body:not(:hover) .cursor-ring { opacity: 0; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── BACKGROUND ─────────────────────────────────────────────────────────── */
.site-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}
:root[data-theme="light"] .bg-noise { opacity: 0.02; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
:root[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.orb-tl {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(27,107,46,0.20) 0%, transparent 70%);
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-br {
  width: 600px; height: 600px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(27,107,46,0.12) 0%, transparent 70%);
  animation: orbFloat 25s ease-in-out infinite reverse;
}
.orb-mid {
  width: 400px; height: 400px;
  top: 40%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,160,69,0.08) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite 5s;
}
:root[data-theme="light"] .orb-tl { background: radial-gradient(circle, rgba(27,107,46,0.08) 0%, transparent 70%); }
:root[data-theme="light"] .orb-br { background: radial-gradient(circle, rgba(27,107,46,0.05) 0%, transparent 70%); }
:root[data-theme="light"] .orb-mid { background: radial-gradient(circle, rgba(34,160,69,0.04) 0%, transparent 70%); }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

/* ── LAYOUT UTILITIES ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative; z-index: 1;
}
.section { padding: var(--section-py) 0; position: relative; }
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gr-300) 0%, var(--gr-500) 50%, var(--gr-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #165c27 0%, #1b6b2e 50%, #22a045 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gr-300);
  display: block;
  margin-bottom: 16px;
}
:root[data-theme="light"] .section-label { color: var(--gr-500); }
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--gr-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="light"] .section-title em {
  background: linear-gradient(135deg, #0f1a22 0%, #1b6b2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header { margin-bottom: 72px; }

/* ── REVEAL ANIMATIONS ─────────────────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-bg {
  position: absolute; inset: 0;
  border-radius: inherit;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}

.btn-gold {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--gr-600) 0%, var(--gr-500) 100%);
  box-shadow: 0 4px 20px rgba(27,107,46,0.35);
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gr-500), var(--gr-400));
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
}
.btn-gold:hover::before { opacity: 1; }
.btn-gold:hover { box-shadow: 0 8px 40px rgba(27,107,46,0.5); }

.btn-ghost {
  color: var(--text-heading);
  background: var(--glass-light);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.btn-ghost:hover {
  border-color: rgba(46,189,87,0.5);
  color: var(--gr-300);
}
:root[data-theme="light"] .btn-ghost:hover {
  color: var(--gr-600);
  border-color: rgba(27,107,46,0.4);
}
.btn-border-anim {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gr-500), var(--gr-300), var(--gr-500));
  background-size: 200%;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1px;
}

/* Nav CTA Button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gr-600), var(--gr-500));
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(27,107,46,0.3);
  white-space: nowrap;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27,107,46,0.45);
}

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s;
}
.navbar::before {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled { padding: 12px 0; }
.navbar.scrolled::before {
  background: var(--navbar-bg);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}

/* Brand Logo */
.brand-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 4px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  flex-shrink: 0;
}
:root[data-theme="light"] .brand-logo-img {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

/* Theme Toggle Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle {
  background: var(--glass-light);
  border: 1px solid var(--border);
  color: var(--gr-300);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.theme-toggle:hover {
  background: rgba(27, 107, 46, 0.18);
  transform: scale(1.08) rotate(15deg);
  color: var(--gr-200);
}
:root[data-theme="light"] .theme-toggle {
  color: var(--gr-600);
}

/* Nav Menu */
.nav-menu {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gr-400);
  transition: width 0.3s var(--ease);
  box-shadow: 0 0 8px var(--gr-400);
}
.nav-link:hover, .nav-link.active { color: var(--text-heading); }
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active { color: var(--gr-600); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* Nav Progress Bar */
.nav-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gr-500), var(--gr-300));
  transition: width 0.1s linear;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.toggle-line {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: var(--r-full);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
}
.mobile-toggle.active .toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active .toggle-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active .toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO SECTION ────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.35);
  color: var(--gr-300);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
:root[data-theme="light"] .hero-badge {
  background: rgba(27,107,46,0.1);
  color: var(--gr-600);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gr-400);
  box-shadow: 0 0 12px var(--gr-400);
  flex-shrink: 0;
  animation: pulseAnim 2s ease-in-out infinite;
}
@keyframes pulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--text-heading);
}
.title-line { display: block; line-height: 1.2; }
.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-cta-group {
  display: flex; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-icon { transition: transform 0.3s var(--ease); }
.btn-gold:hover .btn-icon { transform: translateX(4px); }

/* Hero Stats Box */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  width: fit-content;
  box-shadow: var(--shadow-md);
}
.stat-item {
  padding: 24px 36px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-number span {
  font-size: 1.6rem;
  color: var(--gr-300);
}
:root[data-theme="light"] .stat-number span { color: var(--gr-500); }
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ── HERO VISUAL: STACKED CARDS ─────────────────────────────────────────── */
.hero-visual { position: relative; }
.visual-card-stack {
  position: relative;
  height: 500px;
  perspective: 1400px;
  cursor: pointer;
}
.visual-card {
  position: absolute;
  top: 0; left: 0;
  width: 82%;
  height: 330px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 750ms cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 700ms var(--ease),
    border-color 600ms var(--ease),
    opacity 600ms var(--ease),
    z-index 0s 375ms;
  will-change: transform, box-shadow;
}
.card-img-wrap {
  width: 100%; height: 100%;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.card-primary {
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 10;
  border-color: rgba(46,189,87,0.5);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 40px rgba(34,160,69,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.card-secondary {
  transform: translate3d(18%, 140px, 0) scale(0.95);
  z-index: 5;
  opacity: 0.85;
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
@media (hover: hover) and (pointer: fine) {
  .visual-card-stack:hover .card-primary {
    transform: translate3d(18%, 140px, 0) scale(0.95);
    z-index: 5;
    opacity: 0.85;
    border-color: var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
  .visual-card-stack:hover .card-secondary {
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 10;
    opacity: 1;
    border-color: rgba(46,189,87,0.5);
    box-shadow:
      0 30px 60px rgba(0,0,0,0.45),
      0 0 40px rgba(46,189,87,0.25),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
  .visual-card-stack:hover .card-primary .card-img-wrap img,
  .visual-card-stack:hover .card-secondary .card-img-wrap img {
    transform: scale(1.06);
  }
}
.visual-card-stack.is-swapped .card-primary {
  transform: translate3d(18%, 140px, 0) scale(0.95);
  z-index: 5; opacity: 0.85;
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.visual-card-stack.is-swapped .card-secondary {
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 10; opacity: 1;
  border-color: rgba(46,189,87,0.5);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 40px rgba(46,189,87,0.25);
}

/* Card Overlay Text */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,18,24,0.96) 0%, rgba(11,18,24,0.45) 50%, transparent 100%);
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.card-tag {
  align-self: flex-start;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--gr-600), var(--gr-400));
  color: #ffffff !important;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}
.mep-tag {
  background: linear-gradient(135deg, var(--gr-500), var(--gr-400));
  color: #ffffff !important;
}
.card-overlay h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff !important;
  letter-spacing: 0;
}
.card-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88) !important;
}

/* Floating Badge */
.card-float-badge {
  position: absolute;
  top: 24px; right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-em);
  border-radius: var(--r-full);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gr-300);
  z-index: 20;
  box-shadow: var(--shadow-sm);
  animation: floatBadge 4s ease-in-out infinite;
}
.card-float-badge i { color: var(--gr-300); }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0; left: 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1.5px; height: 60px;
  background: linear-gradient(to bottom, var(--gr-500), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── HERO MARQUEE ────────────────────────────────────────────────────────── */
.hero-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.marquee-track .sep { color: var(--gr-500); font-size: 0.6rem; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── VISION & MISSION ────────────────────────────────────────────────────── */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}
.vm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.vm-card:hover {
  border-color: var(--border-em);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.vm-card-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,46,0.12), transparent 70%);
  pointer-events: none;
}
.mission-glow {
  background: radial-gradient(circle, rgba(34,160,69,0.08), transparent 70%);
  left: -100px; right: auto;
}
.vm-icon-wrap { margin-bottom: 28px; }
.vm-icon {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--gr-300);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.vm-card:hover .vm-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(27,107,46,0.22);
}
.vm-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-heading);
  letter-spacing: 0;
}
.vm-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.85;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--gr-500);
}
.vm-badge {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.25);
  border-radius: var(--r-full);
  color: var(--gr-300);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
}
:root[data-theme="light"] .vm-badge { color: var(--gr-600); }
.mission-list {
  display: flex; flex-direction: column; gap: 20px;
}
.mission-list li {
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.mission-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(46,189,87,0.15);
  border: 1px solid rgba(46,189,87,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gr-300);
  font-size: 0.65rem;
  margin-top: 2px;
  transition: background 0.3s, transform 0.3s;
}
.mission-list li:hover .mission-check {
  background: rgba(46,189,87,0.3);
  transform: scale(1.1);
}

/* ── LEADERSHIP ─────────────────────────────────────────────────────────── */
.team-section { overflow: hidden; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: default;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.team-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  transition: border-color 0.4s var(--ease);
  position: relative; z-index: 1;
}
.team-card:hover .team-card-inner { border-color: rgba(46,189,87,0.4); }
.team-card-glow {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 0%, rgba(27,107,46,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.team-card:hover .team-card-glow { opacity: 1; }

.team-avatar-wrap {
  position: relative;
  width: 72px; height: 72px;
  margin-bottom: 14px;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(27,107,46,0.5);
  box-shadow: 0 0 16px rgba(27,107,46,0.25);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.team-card:hover .team-avatar {
  border-color: var(--gr-300);
  box-shadow: 0 0 24px rgba(27,107,46,0.45);
  transform: scale(1.04);
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--gr-300);
  font-size: 1.7rem;
}
.team-avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--gr-300);
  opacity: 0;
  transition: opacity 0.3s;
  animation: ringRotate 3s linear infinite paused;
}
.team-card:hover .team-avatar-ring {
  opacity: 1;
  animation-play-state: running;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.team-experience-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.3);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gr-300);
  letter-spacing: 0.05em;
}
:root[data-theme="light"] .team-experience-badge { color: var(--gr-600); }
.team-info { flex: 1; }
.team-name {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.team-qualification {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gr-300);
  font-weight: 600;
  margin-bottom: 10px;
}
:root[data-theme="light"] .team-qualification { color: var(--gr-600); }
.team-role-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--glass-light);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.team-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  font-weight: 400;
}
.team-footer {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.expertise-tag {
  display: inline-flex;
  align-items: center; gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass-light);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--r-sm);
  transition: color 0.2s, border-color 0.2s;
}
.expertise-tag:hover {
  color: var(--gr-300);
  border-color: rgba(46,189,87,0.35);
}

/* ── PROJECT SECTION ────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.filter-btn:hover {
  color: var(--text-heading);
  border-color: rgba(46,189,87,0.35);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--gr-500), var(--gr-600));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(27,107,46,0.35);
  font-weight: 800;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46,189,87,0.35);
  box-shadow: var(--shadow-md);
}
.project-image-wrapper {
  position: relative;
  height: 330px;
  overflow: hidden;
  cursor: pointer;
}
.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.project-card:hover .project-image-wrapper img { transform: scale(1.08); }
.project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,18,24,0.75) 0%, transparent 60%);
  transition: opacity 0.3s;
}
.project-badge {
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
}
.housing-badge {
  background: rgba(27,107,46,0.92);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
}
.mep-badge {
  background: rgba(15,26,34,0.92);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.project-hover-panel {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,18,24,0.35);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 3;
}
.project-card:hover .project-hover-panel { opacity: 1; }
.view-map-btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gr-500), var(--gr-600));
  color: #ffffff !important;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 30px rgba(27,107,46,0.4);
}
.view-map-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(27,107,46,0.6);
}
.project-content { padding: 28px 32px; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.project-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gr-300);
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.25);
  padding: 3px 12px;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
}
.project-specs {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  transition: color 0.2s;
}
.project-card:hover .project-name { color: var(--gr-300); }
:root[data-theme="light"] .project-card:hover .project-name { color: var(--gr-600); }
.project-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.project-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}
.map-link {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gr-300);
  transition: color 0.2s, gap 0.3s var(--ease);
}
.map-link:hover {
  color: var(--gr-200);
  gap: 12px;
}
:root[data-theme="light"] .map-link { color: var(--gr-600); }

/* ── MEP SECTION ────────────────────────────────────────────────────────── */
.mep-section { overflow: hidden; }
.mep-wrapper {
  background: linear-gradient(135deg, var(--bg-800) 0%, var(--bg-700) 100%);
  border: 1px solid rgba(46,189,87,0.3);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
:root[data-theme="light"] .mep-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mep-wrapper::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  pointer-events: none;
}
.mep-wrapper::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.08), transparent 70%);
  pointer-events: none;
}
.mep-header { margin-bottom: 56px; }
.mep-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-top: 20px;
}
.mep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative; z-index: 1;
}
.mep-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
:root[data-theme="light"] .mep-feature {
  background: var(--bg);
  border: 1px solid var(--border);
}
.mep-feature::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gr-500), var(--gr-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mep-feature:hover { background: rgba(255,255,255,0.08); border-color: rgba(46,189,87,0.35); transform: translateY(-4px); }
:root[data-theme="light"] .mep-feature:hover {
  background: #ffffff;
  border-color: var(--gr-400);
  box-shadow: 0 8px 24px rgba(27,107,46,0.12);
}
.mep-feature:hover::before { transform: scaleX(1); }
.mep-icon-wrap { margin-bottom: 20px; }
.mep-icon {
  font-size: 1.8rem;
  color: var(--gr-300);
  transition: transform 0.3s var(--ease), color 0.3s;
}
:root[data-theme="light"] .mep-icon { color: var(--gr-500); }
.mep-feature:hover .mep-icon { transform: scale(1.15) rotate(-5deg); color: var(--gr-200); }
.mep-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: 0;
}
.mep-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.mep-feature-line { display: none; }

/* ── PROPOSAL & CONTACT ─────────────────────────────────────────────────── */
.proposal-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.proposal-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.proposal-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 44px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center; gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  text-decoration: none;
}
.contact-card:hover {
  border-color: rgba(46,189,87,0.45);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(27,107,46,0.12);
  border: 1px solid rgba(27,107,46,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gr-300);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.contact-card:hover .contact-icon {
  transform: scale(1.1);
}
.contact-icon-phone {
  background: rgba(34,160,69,0.15);
  border-color: rgba(34,160,69,0.35);
  color: var(--gr-300);
}
.contact-icon-wa {
  background: rgba(37,211,102,0.15);
  border-color: rgba(37,211,102,0.35);
  color: #25d366;
}
.contact-icon-mail {
  background: rgba(34,160,69,0.15);
  border-color: rgba(34,160,69,0.35);
  color: var(--gr-300);
}
.contact-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-heading);
}
.contact-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact-text strong {
  color: var(--gr-300);
}
:root[data-theme="light"] .contact-text strong {
  color: var(--gr-600);
}

.form-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}

/* Proposal Form */
.proposal-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.proposal-form-container::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,46,0.12), transparent 70%);
  pointer-events: none;
}
.proposal-form h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.proposal-form > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.required-asterisk {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}
.input-wrap { position: relative; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(46,189,87,0.5);
  background: rgba(27,107,46,0.06);
  box-shadow: 0 0 0 3px rgba(27,107,46,0.15);
}
.input-focus-bar {
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gr-400), var(--gr-200));
  border-radius: var(--r-full);
  transition: width 0.4s var(--ease), left 0.4s var(--ease);
  transform: translateX(-50%);
}
.input-wrap:focus-within .input-focus-bar { width: calc(100% - 2px); }
.select-wrap { position: relative; }
.select-arrow {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
  transition: transform 0.3s;
}
select:focus ~ .select-arrow { transform: translateY(-50%) rotate(180deg); }
select option { background: var(--bg-card); color: var(--text-primary); }
textarea { resize: vertical; min-height: 110px; }
.btn-block { width: 100%; }
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  min-height: 24px;
}
.form-status.success { color: #2ebd57; }
.form-status.error { color: #f87171; }
.mt-3 { margin-top: 20px; }

/* ── MAP MODAL ──────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.active { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(46,189,87,0.35);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%; max-width: 480px;
  position: relative; z-index: 1;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: var(--glass-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.modal-close:hover { background: rgba(27,107,46,0.18); color: var(--text-heading); }
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}
.modal-body p {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  position: relative;
}
.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,107,46,0.5), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  padding: 72px 0 48px;
}
.footer-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 340px;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.link-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gr-300);
  margin-bottom: 24px;
}
:root[data-theme="light"] .link-col h4 { color: var(--gr-500); }
.link-col ul { display: flex; flex-direction: column; gap: 14px; }
.link-col a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.link-col a:hover { color: var(--text-heading); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-to-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--gr-500), var(--gr-600));
  border-color: var(--gr-400);
  color: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-em);
}

/* ── MAGNETIC BUTTON EFFECT ────────────────────────────────────────────── */
.magnetic-btn { transition: transform 0.3s var(--ease); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Prevent any horizontal overflow on all screen sizes */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-content { max-width: 680px; margin: 0 auto; text-align: center; }
  .hero-description,
  .hero-cta-group,
  .hero-stats { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-description { max-width: 100%; }
  .visual-card-stack { max-width: 520px; margin: 0 auto; }
  .scroll-indicator { display: none; }
  .mep-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --section-py: 80px; }
  .team-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .vision-mission-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .proposal-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-header { margin-bottom: 48px; }
  .section-desc { font-size: 1rem; }
}

@media (max-width: 768px) {
  :root {
    --container-px: 18px;
    --section-py: 64px;
  }

  /* ── NAV: slide-in drawer ── */
  .nav-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 85%; max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 80px 36px;
    transition: left 0.4s var(--ease);
    z-index: 100;
    overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .nav-link { font-size: 1.15rem; padding: 6px 0; }
  .mobile-toggle { display: flex; }
  .btn-nav-cta { display: none; }

  /* ── HERO ── */
  .hero-section { padding-top: 100px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-description { font-size: 0.97rem; margin-bottom: 32px; }
  .hero-cta-group { gap: 12px; margin-bottom: 40px; }
  .hero-stats {
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-radius: var(--r-md);
  }
  .stat-item { width: 100%; padding: 18px 24px; }
  .stat-divider { width: 100%; height: 1px; }
  .stat-number { font-size: 1.6rem; }
  .visual-card-stack { height: 380px; max-width: 100%; }
  .visual-card { width: 90%; height: 280px; }
  .card-float-badge { display: none; }
  .card-secondary { transform: translate3d(14%, 120px, 0) scale(0.95); }

  /* ── ABOUT / VISION-MISSION ── */
  .vm-card { padding: 28px 22px; }
  .vm-title { font-size: 1.35rem; }

  /* ── MEP ── */
  .mep-grid { grid-template-columns: 1fr; gap: 16px; }
  .mep-wrapper { padding: 36px 22px; }
  .mep-header { margin-bottom: 36px; }
  .mep-lead { font-size: 1rem; }
  .mep-feature { padding: 24px 20px; }

  /* ── PROJECTS ── */
  .filter-tabs { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .filter-btn { padding: 9px 18px; font-size: 0.82rem; }
  .project-image-wrapper { height: 240px; }
  .project-content { padding: 20px 20px; }
  .project-name { font-size: 1.15rem; }

  /* ── PROPOSAL/CONTACT ── */
  .proposal-wrapper { gap: 32px; }
  .proposal-heading { font-size: 1.4rem; }
  .proposal-sub { font-size: 0.97rem; margin-bottom: 28px; }
  .proposal-form-container { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 16px 18px; gap: 14px; }
  .contact-icon { width: 42px; height: 42px; font-size: 1rem; }
  .contact-text h5 { font-size: 0.88rem; }
  .contact-text p { font-size: 0.8rem; }

  /* ── FOOTER ── */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .footer-desc { max-width: 100%; }

  /* ── MODAL ── */
  .modal { padding: 16px; }
  .modal-content { padding: 32px 20px; }
  .modal-title { font-size: 1.25rem; }

  /* ── MISC ── */
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(1.65rem, 5vw, 2.2rem); }
}

@media (max-width: 480px) {
  :root {
    --container-px: 16px;
    --section-py: 56px;
  }

  /* ── HERO ── */
  .hero-section { padding-top: 90px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }

  /* ── TEAM ── */
  .team-grid { max-width: 100%; }

  /* ── PROJECTS ── */
  .project-image-wrapper { height: 200px; }

  /* ── FOOTER ── */
  .footer-links { grid-template-columns: 1fr; gap: 28px; }

  /* ── WHATSAPP ── */
  .whatsapp-float {
    bottom: 18px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }

  /* ── PROPOSAL FORM ── */
  .proposal-form-container { padding: 20px 14px; }
  .proposal-form h3 { font-size: 1.2rem; }

  /* ── MEP ── */
  .mep-wrapper { padding: 28px 16px; }
}

/* ── VERY SMALL PHONES (360px and below) ── */
@media (max-width: 360px) {
  :root { --container-px: 12px; }
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .nav-menu { width: 92%; max-width: 100%; }
  .hero-stats { border-radius: var(--r-sm); }
  .stat-item { padding: 14px 16px; }
  .stat-number { font-size: 1.4rem; }
  .btn { padding: 13px 20px; font-size: 0.88rem; }
  .contact-card { padding: 14px 14px; }
  .proposal-form-container { padding: 16px 12px; }
  .filter-btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* ── FLOATING WHATSAPP BUTTON ────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
}
.whatsapp-float-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: waPulse 2s infinite;
}
@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}
.whatsapp-float-tooltip {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--bg-900);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-em);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

