@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Font Foundations (Crisp, Modern, Clean Typography) */
  --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 36px;
  --font-size-hero: 52px;

  /* Color Palette Tokens (Exact Match to susagfoundation.org & Sateri Logo) */
  --color-text-primary: #0a0a0a;
  --color-text-secondary: #ffffff;
  --color-text-tertiary: #5b5755;
  --color-text-inverse: #15803d;
  
  --color-surface-base: #000000;
  --color-surface-muted: #3fc4a4; /* Mint green from social icons & badges */
  --color-surface-strong: #faf9f5;
  
  --color-brand-primary: #0e382c; /* Forest dark green */
  --color-brand-emerald: #236c5a; /* Deep emerald teal */
  --color-brand-teal: #236c5a;   /* Primary pill button teal */
  --color-brand-teal-hover: #1b5748;
  --color-brand-red: #971512;    /* Brand accent red from logo & borders */
  --color-brand-gold: #f59e0b;   /* Yellow floating action widget */

  --color-border-default: #e5e5e5;
  --color-border-muted: #971512;
  --color-border-strong: rgb(151, 21, 18);

  /* Radius Tokens */
  --radius-xs: 8px;
  --radius-md: 16px;
  --radius-sm: 9999px; /* Full pill radius */

  /* Motion Tokens */
  --motion-duration-instant: 150ms;
  --motion-duration-fast: 300ms;
  --motion-duration-normal: 500ms;
  --motion-duration-slow: 1000ms;

  /* Shadows */
  --shadow-1: 0px 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0px 15px 30px rgba(0, 0, 0, 0.12);
  --shadow-dropdown: 0px 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global Top Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #236c5a 0%, #3fc4a4 50%, #f59e0b 100%);
  z-index: 999999;
  transition: width 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 10px rgba(63, 196, 164, 0.6);
}

html {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header Glassmorphism on Scroll */
header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Button Ripple & Hover Sheen */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s ease-out, height 0.45s ease-out;
  pointer-events: none;
}

.btn:active::after {
  width: 250%;
  height: 250%;
}

/* Back to Top Smooth Button */
#backToTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 56, 44, 0.92);
  color: #ffffff;
  border: 1.5px solid rgba(63, 196, 164, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTopBtn:hover {
  background: #236c5a;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(35, 108, 90, 0.4);
}

/* Bouncing Scroll Cue Animation */
@keyframes mouseBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.scroll-cue {
  animation: mouseBounce 2.4s infinite ease-in-out;
}

/* Shimmer Light Accent */
@keyframes shimmerGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, #236c5a 0%, #3fc4a4 50%, #236c5a 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerGlow 4s linear infinite;
}

/* Accessibility Focus Rule */
:focus-visible {
  outline: 3px solid var(--color-surface-muted) !important;
  outline-offset: 2px !important;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6, .font-yatra {
  font-family: var(--font-family-heading);
  font-weight: 400;
  color: #0a0a0a;
  line-height: 1.2;
}

.h1 { font-size: var(--font-size-4xl); }
.h2 { font-size: var(--font-size-3xl); }
.h3 { font-size: var(--font-size-2xl); }
.h4 { font-size: var(--font-size-xl); font-weight: 600; }

@media (max-width: 768px) {
  .h1 { font-size: 28px; }
  .h2 { font-size: 24px; }
}

/* Top Social Circular Icons */
.social-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-surface-muted);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--motion-duration-fast) ease, background-color var(--motion-duration-fast) ease;
}

.social-icon-circle:hover {
  transform: scale(1.08);
  background-color: #32b092;
}

/* Navigation Link with Chevron */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  transition: color var(--motion-duration-fast) ease;
}

.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active {
  color: var(--color-brand-teal);
}

/* Dropdown Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--color-border-default);
  padding: 8px 0;
  display: none;
  z-index: 10000;
}

.dropdown-container:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--motion-duration-fast) ease, color var(--motion-duration-fast) ease;
}

.dropdown-item:hover {
  background-color: var(--color-surface-strong);
  color: var(--color-brand-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--motion-duration-fast) ease-in-out;
  border: none;
  min-height: 44px;
}

.btn-teal {
  background-color: var(--color-brand-teal);
  color: #ffffff;
}

.btn-teal:hover {
  background-color: var(--color-brand-teal-hover);
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--color-brand-gold);
  color: #000000;
  font-weight: 700;
}

.btn-gold:hover {
  background-color: #e08e0b;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #000000;
}

/* Cards & Surface Components */
.card {
  background-color: #ffffff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-1);
  padding: 2rem;
  transition: all var(--motion-duration-fast) ease-in-out;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-surface-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--color-text-tertiary);
  font-size: 16px;
  margin-top: 8px;
  line-height: 1.6;
}

/* Form Controls */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-family-primary);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
}

/* Floating Widget Button (Bottom Right) */
.floating-widget-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-brand-gold);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.floating-widget-btn:hover {
  transform: scale(1.1);
}

/* =========================================================================
   OUR WORK CARDS - SMOOTH HOVER REVEAL ANIMATION (Matching Reference SS)
   ========================================================================= */
.work-card {
  text-decoration: none;
  display: block;
  position: relative;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background-color: #0e382c;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

.work-card-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
  z-index: 0;
}

.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.work-card:hover .work-card-bg {
  transform: scale(1.08);
}

.work-card-overlay {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 25%, rgba(14, 56, 44, 0.82) 65%, #0e382c 96%);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(180deg, rgba(14, 56, 44, 0.45) 0%, rgba(14, 56, 44, 0.92) 60%, #0e382c 96%);
}

.work-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.work-card-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
  transition: margin-bottom 0.3s ease;
}

.work-card:hover .work-card-title {
  margin-bottom: 10px;
}

.work-card-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
}

.work-card:hover .work-card-details {
  opacity: 1;
  max-height: 220px;
  transform: translateY(0);
}

.work-card-desc {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 400;
  margin-bottom: 14px;
}

.work-card-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 2px;
  line-height: 1.2;
}

/* =========================================================================
   INTERACTIVE CARDS & ANIMATION EFFECTS (About Us & Feature Pages)
   ========================================================================= */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border-color: #3fc4a4 !important;
}

.icon-box-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(63, 196, 164, 0.15);
  color: #236c5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hover-lift:hover .icon-box-circle {
  transform: scale(1.1) rotate(5deg);
  background: #236c5a;
  color: #ffffff;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(35, 108, 90, 0.1);
  color: #236c5a;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* =========================================================================
   IMPACT COUNTER SYSTEM (Redesigned Elevated Glass & Card Aesthetics)
   ========================================================================= */
.counter-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 22px 28px 22px;
  position: relative;
  border: 1px solid rgba(14, 56, 44, 0.09);
  box-shadow: 0 10px 30px rgba(14, 56, 44, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 100%;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #236c5a);
  transition: height 0.3s ease;
}

.counter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(14, 56, 44, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(35, 108, 90, 0.25);
}

.counter-card:hover::before {
  height: 6px;
}

.counter-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--icon-bg, rgba(35, 108, 90, 0.1));
  color: var(--icon-color, #236c5a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 26px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
  box-shadow: 0 4px 14px var(--icon-shadow, rgba(35, 108, 90, 0.15));
}

.counter-card:hover .counter-icon-wrap {
  transform: scale(1.12) rotate(4deg);
}

.counter-number {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  color: #0e382c;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.counter-label {
  font-size: 15.5px;
  font-weight: 700;
  color: #142921;
  margin-bottom: 6px;
  line-height: 1.35;
}

.counter-subtext {
  font-size: 13px;
  color: #5c7269;
  line-height: 1.45;
  margin-bottom: 18px;
}

.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--badge-bg, rgba(35, 108, 90, 0.08));
  color: var(--badge-color, #236c5a);
  border: 1px solid var(--badge-border, rgba(35, 108, 90, 0.18));
  margin-top: auto;
  letter-spacing: 0.2px;
}

/* =========================================================================
   SCROLL REVEAL ANIMATIONS (GPU Accelerated with Smooth Curves)
   ========================================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Counter Stat Box */
.counter-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #3fc4a4;
}

.counter-number {
  font-family: var(--font-family-heading);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  color: #236c5a;
  line-height: 1.1;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4a4a;
  line-height: 1.4;
}

/* Process Timeline */
.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #236c5a;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(35, 108, 90, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hover-lift:hover .process-step-num {
  transform: scale(1.15) rotate(360deg);
  background: #f59e0b;
}

/* Species Card */
.species-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.species-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

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

.species-card:hover .species-img {
  transform: scale(1.06);
}

/* =========================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM (All Devices: 320px - 2560px)
   ========================================================================= */

/* Prevent horizontal viewport overflow & enable smooth touch momentum */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Universal Media Fluidity */
img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base Responsive Grid Helpers */
.responsive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.responsive-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

/* Large Screens (> 1280px) */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Laptops & Desktops (1025px to 1279px) */
@media (max-width: 1279px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tablets Landscape & Touch Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .section-padding {
    padding: 4rem 0 !important;
  }
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Tablets Portrait & Medium Screens (max-width: 860px) */
@media (max-width: 860px) {
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .card {
    padding: 1.8rem 1.4rem !important;
  }

  .order-mobile-1 {
    order: 1 !important;
  }
  .order-mobile-2 {
    order: 2 !important;
  }

  #quote-section .responsive-grid {
    flex-direction: column !important;
    text-align: center !important;
  }
  #quote-section .responsive-grid > div {
    margin: 0 auto;
  }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Responsive Typography */
  h1, .h1 {
    font-size: clamp(26px, 6.5vw, 38px) !important;
    line-height: 1.22 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h2, .h2 {
    font-size: clamp(22px, 5.5vw, 30px) !important;
    line-height: 1.28 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h3, .h3 {
    font-size: clamp(19px, 4.5vw, 24px) !important;
    line-height: 1.3 !important;
  }

  /* Form Elements & Auto-Zoom Prevention */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    padding: 12px 14px !important;
    border-radius: 8px !important;
    width: 100% !important;
  }

  /* Hero Section Mobile Styling */
  #hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 90px !important;
    padding-bottom: 50px !important;
  }

  .hero-tagline {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
  }
  .hero-title {
    font-size: clamp(22px, 6.2vw, 32px) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
    font-weight: 800 !important;
  }
  .hero-desc {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
    color: #eaf3ee !important;
  }
  .hero-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .hero-btns a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
  }

  /* Interactive Work Cards on Touch Screens */
  .work-card {
    height: auto !important;
    min-height: 320px !important;
  }
  .work-card-details {
    opacity: 1 !important;
    max-height: 300px !important;
    transform: translateY(0) !important;
    margin-top: 8px;
  }
  .work-card-overlay {
    background: linear-gradient(180deg, rgba(14, 56, 44, 0.2) 0%, rgba(14, 56, 44, 0.88) 55%, #0e382c 96%) !important;
  }

  /* Mobile Navigation Drawer */
  #mobileDrawer {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }
  #mobileDrawer a {
    padding: 12px 14px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
  }

  /* Back to Top for Mobile */
  #backToTopBtn {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    right: 18px !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* Data Table Horizontal Scroll Support */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Counter Cards on Mobile */
  .counter-box {
    padding: 22px 16px !important;
  }
  .counter-number {
    font-size: clamp(28px, 7vw, 38px) !important;
  }
}

/* Small Smart Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 14.5px !important;
    text-align: center;
  }

  .floating-widget-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  /* Prevent overflow in breadcrumbs & topbar */
  .social-icon-circle {
    width: 28px !important;
    height: 28px !important;
  }

  /* Calculator Range Slider Mobile Styling */
  input[type="range"] {
    height: 36px;
  }

  /* Mobile Lightbox Modal */
  #lightboxModal {
    padding: 12px !important;
  }
  #lightboxModal button[onclick*="prevImage"] {
    left: 6px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
  #lightboxModal button[onclick*="nextImage"] {
    right: 6px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
  #lightboxModal button[onclick*="closeLightbox"] {
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
  }
  #lightboxImg {
    max-height: 60vh !important;
  }
}

/* Extra Small Phones (max-width: 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  h1, .h1 {
    font-size: 24px !important;
  }
  h2, .h2 {
    font-size: 20px !important;
  }
  h3, .h3 {
    font-size: 17px !important;
  }
}
