
/* --- Fonts (Professional yet Warm) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&family=Open+Sans:wght@400;600&display=swap');


:root {
  --font-heading: 'Poppins', system-ui, -apple-system, 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

h1,h2,h3 { font-family: var(--font-heading); }
p,span { font-family: var(--font-body); }


/* --- CSS VARIABLES --- */
:root {
  --tree-green: #2E7D32;
  --tree-green-dark: #1B5E20;
  --tree-green-light: #4CAF50;
  --sky-blue: #42A5F5;
  --sky-blue-light: #90CAF9;c
  --mint-cream: #F0F9F4;
  --warm-white: #FAFAFA;
  --soft-gray: #6B7280;
  --warm-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-bg-dark: rgba(255, 255, 255, 0.85);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 24px;
}
.nav-enquire {
  /* 1. Layout Fix: Ensures text is perfectly centered */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* 2. Sizing: Maintain your pill shape */
  padding: 0.6rem 1.5rem; /* Slightly wider for a more premium look */
  border-radius: 999px;
  
  /* 3. Typography: Clean up the 'float' */
  line-height: 1; /* Resets the vertical spacing */
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  
  /* 4. Colors */
  background: #2e7d32;
  color: #ffffff;
  border: none;
  
  /* 5. Interactivity */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15); /* Adds a subtle lift */
}

.nav-enquire:hover {
  background: #1b5e20; /* Slightly darker than your dark green variable */
  transform: translateY(-2px); /* Matches the 'interactive' feel of the site */
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}


function toggleLanguage() {
  const toggle = document.querySelector('.language-toggle');
  const isHindi = toggle.classList.toggle('hindi-active');
  
  // Update active text styling
  document.getElementById('label-en').classList.toggle('active', !isHindi);
  document.getElementById('label-hi').classList.toggle('active', isHindi);

  // Here you would also trigger your actual language change logic
  console.log("Language switched to:", isHindi ? "Hindi" : "English");
}
/* --- PREMIUM FOOTER STYLES --- */
.site-footer {
  background: #002d35; /* Deep Oxygen Teal */
 
  border-top: 4px solid var(--tree-green-light); 
  color: #e8f5e9;
  
  
  padding: 8rem 0 3rem; /* Increased top padding from 5rem to 8rem */
  margin-top: 100px;    /* Created a large gap between the body and footer */
  /* ----------------------- */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.footer-logo {
  height: 2.2rem;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Makes logo white if it's dark */
}

.footer-heading {
 color: #90E0EF; /* Bright Sky Blue for readability */
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-links li:hover {
  opacity: 1;
  color: var(--sky-blue-light);
  transform: translateX(5px);
}
footer *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}



.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--o2-blue);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  background: var(--o2-gradient);
border-color: var(--o2-blue);
box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom .tagline {
  font-style: italic;
  font-size: 1rem;
 color: var(--o2-blue);
  margin-bottom: 0.5rem;
}

.footer-bottom .copyright {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-item {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
}


/* --- PERFECT FULL HEIGHT LAYOUT (FOOTER TO LAST INCH) --- */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents side-scrolling which causes bottom gaps */
  font-family: 'Inter', sans-serif; /* Changed from Poppins/default */
}
main {
  flex: 1; /* FIXED: Grows to fill space, never shrinks */
  padding-bottom: 0;
}

header {
  flex-shrink: 0; /* Prevents header compression */
  backdrop-filter: blur(25px);
  background: var(--glass-bg);
  border-bottom: 1px solid rgba(46,125,50,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* --- HERO SECTION (Full-Screen Impact) --- */






/* --- HERO ACTION LAYOUT --- */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0; /* Starts hidden for animation */
    animation: fadeInUpHero 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

/* --- THE PREMIUM GLASS BADGE --- */
.glass-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
}

/* --- ANIMATED PULSE DOT --- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--tree-green-light);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--tree-green-light);
    opacity: 0.6;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.hero-section {
    position: relative;
    width: 100vw;
    /* Centers section despite the parent container */
    margin-left: calc(-50vw + 50%); 
    height: 95vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: #001d23; /* Deep dark base */
    margin-bottom:3rem;
}
@media screen and (min-width: 1024px) {
  .hero-section {
    margin-bottom: 5rem; /* ~80px */
  }
}


.hero-background-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Darkens the left side specifically for text readability */
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 2;
}

/* Lightweight Green Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none !important;
  
}

.particle {
    position: absolute;
    background: rgba(76, 175, 80, 0.35); /* Soft Mint/Green */
    border-radius: 50%;
    filter: blur(35px);
    animation: floatParticle 22s infinite ease-in-out;
  pointer-events: none;

}

/* Particle Positions & Sizes */
.particle:nth-child(1) { width: 180px; height: 180px; top: 15%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 280px; height: 280px; top: 55%; left: 65%; animation-delay: -4s; opacity: 0.4; }
.particle:nth-child(3) { width: 120px; height: 120px; top: 75%; left: 15%; animation-delay: -2s; }
.particle:nth-child(4) { width: 220px; height: 220px; top: 25%; left: 85%; animation-delay: -10s; opacity: 0.2; }
.particle:nth-child(5) { width: 190px; height: 190px; top: 80%; left: 45%; animation-delay: -6s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.15); }
    66% { transform: translate(-25px, 35px) scale(0.95); }
}
@keyframes fadeInUpHero {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
    color: #ffffff;
    line-height: 1.1;
    /* Adding the reveal animation here */
    opacity: 0;
    animation: fadeInUpHero 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0;
    animation: fadeInUpHero 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.2s; /* Starts slightly after the title */
}

.hero-cta {
  /* 1. THE ALIGNMENT FIX */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between text and arrow */
  
  /* 2. THE SIZING FIX (Sleeker & Centered) */
  height: 3.4rem;        /* Fixed height prevents 'fat' look */
  padding: 0 2.5rem;     /* Only horizontal padding */
  
  /* 3. TYPOGRAPHY */
  font-size: 1.05rem;    /* Slightly smaller for a premium feel */
  font-weight: 600;
  line-height: 1;        /* Removes font-internal spacing */
  color: white;
  
  /* 4. VISUALS */
  background: linear-gradient(135deg, var(--tree-green-light), var(--tree-green));
  border: none;
  border-radius: 999px;  /* Perfect pill shape */
  cursor: pointer;
  
  /* 5. EFFECTS & ANIMATION */
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.25); /* Softer shadow */
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUpHero 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.hero-cta:hover {
  transform: translateY(-5px); /* Subtler move is more premium */
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.4);
}

/* Ensure the icon is also centered */
.hero-cta i, 
.hero-cta svg {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
}
/* --- Professional Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--tree-green);
  line-height: 1.2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1.5rem 0; 
}


/* --- UPDATED LOGO (No borders, Transparent, Bigger) --- */
.logo {
  /* Removes green box */
  border: none !important;            /* Removes gray border */
  box-shadow: none !important;        /* Removes shadows */
  display: flex;
  align-items: center;
  justify-content: flex-start;        /* Aligns to the left of nav */
  padding: 0;
  height: auto; 
  width: auto;                        /* Removes the fixed 11rem width */
  transition: transform 0.3s ease;
}

.logo img {
  height: 3.5rem;                     /* INCREASED SIZE (was 2.5rem) */
  width: auto;                        /* Maintains aspect ratio */
  display: block;
  object-fit: contain;
}

/* Optional: Slight hover effect without the box appearing */
.logo:hover {
  transform: scale(1.02);
  background: transparent;
}

/* --- Navigation --- */
nav {
  display: flex;
  gap: 2rem;
}

nav span {
  color: var(--tree-green);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav span::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tree-green), var(--sky-blue));
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

nav span:hover {
  background: rgba(46,125,50,0.08);
  color: var(--sky-blue);
  transform: translateY(-4px);
}

nav span:hover::before { width: 90%; }

/* --- Animated Native Script Toggle --- */
/* --- PREMIUM ANIMATED TOGGLE (O2 GREEN THEME) --- */
.language-toggle {
  display: inline-flex;
  background: rgba(46, 125, 50, 0.1); /* Soft Tree Green Tint */
  border-radius: 50px;
  position: relative;
  padding: 4px;
  cursor: pointer;
  width: 260px; 
  user-select: none;
  border: 1px solid rgba(46, 125, 50, 0.2);
  transition: var(--transition);
}

/* The sliding background pill */
.indicator {
  position: absolute;
  height: calc(100% - 8px);
  width: calc(33.33% - 5.33px);
  /* Fresh Green Gradient */
  background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%); 
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28); 
  left: 4px;
  z-index: 1;
}
/* --- Language Toggle Sliding Logic --- */

/* When English is active (Default) */
.language-toggle.lang-en-active .indicator {
  transform: translateX(0);
}

/* When Hindi is active - Move to middle */
.language-toggle.lang-hi-active .indicator {
  transform: translateX(calc(100% + 4px));
}

/* When Marathi is active - Move to end */
.language-toggle.lang-mr-active .indicator {
  transform: translateX(calc(200% + 8px));
}
.lang-label {
  flex: 1;
  z-index: 2;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E7D32; /* Deep Green for inactive */
  transition: color 0.3s ease;
}

.lang-label.active {
  color: #ffffff; /* Contrast white for the selected language */
}

/* --- Glassmorphism Cards --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(46,125,50,0.18);
  border-radius: var(--border-radius);
  padding: 3rem 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.8s;
}

.card:hover::before { left: 100%; }

.card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 35px 70px rgba(46,125,50,0.3);
  border-color: rgba(46,125,50,0.35);
}

/* ---MISSION & VISION STYLING --- */

#mission .grid-2 {
    gap: 4rem;
    margin-top: 6rem; /* Extra space for the floating images */
    align-items: stretch;
}

#mission .card {
    display: flex;
    flex-direction: column;
    align-items: center;    
    text-align: center;     
    /* Space at top for image, space at bottom for text balance */
    padding: 0 2.5rem 4rem !important; 
    background: #ffffff;
    border: 1px solid rgba(46, 125, 50, 0.08);
    position: relative;
    overflow: visible; /* ALLOWS CIRCLE TO POP OUT OF CARD */
    border-radius: var(--border-radius);
}

/* THE DOMINATING CENTERED CIRCLE */
.card-image-circle {
    width: 260px;           /* LARGE & DOMINATING */
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: -130px;     /* Sits halfway outside the card */
    margin-bottom: 2rem;
    border: 12px solid #ffffff; /* Thick white frame */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    z-index: 5;
    transition: var(--transition);
}

.card-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Ensures image covers full circle area */
    transition: transform 0.6s ease;
}

/* MISSION/VISION TEXT LABELS */
.card-label {
    display: block;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--tree-green);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* HOVER EFFECTS */
#mission .card:hover .card-image-circle {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--tree-green-light);
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.25);
}

#mission .card:hover .card-image-circle img {
    transform: scale(1.25); /* Zoom effect into the image */
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {
    #mission .grid-2 {
        margin-top: 10rem; /* Space for stacked floating images */
        gap: 10rem;        /* Prevent overlap when stacked */
    }

    .card-image-circle {
        width: 200px;      /* Large but fits mobile width */
        height: 200px;
        margin-top: -100px;
    }

    #mission .card {
        padding: 0 1.5rem 3rem !important;
    }
}
/* --- Section Specific Styles --- */
#about .placeholder {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9, #A5D6A7);
  border: 2px solid rgba(46,125,50,0.25);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--warm-shadow);
  min-height: 400px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tree-green);
}

#about .placeholder::before {
  
  text-shadow: 0 2px 10px rgba(255,255,255,0.8);
  z-index: 2;
  position: relative;
}

#projects {
  background: linear-gradient(135deg, rgba(227,242,253,0.3), rgba(232,245,233,0.3));
  border-radius: var(--border-radius);
  padding: 4rem;
  margin: 2rem 0;
}

#projects .arrow {
  color: var(--sky-blue);
  stroke-width: 3.5;
  transform: scale(1.15);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


#projects .card:first-child {
  background: rgba(255,255,255,0.85);
}

#projects .card:last-child {
  background: rgba(240,249,244,0.95); /* mint hint */
  border-color: rgba(46,125,50,0.3);
}

/* --- Values Section: The Power Duo --- */
/* --- PREMIUM SPLIT VALUES SECTION (Lucent Style) --- */

/* 1. The Layout Container */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% Image, 50% Content */
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
}

/* 2. The Large Image Box (Fills the 'Empty' Space) */
.section-image-box {
  position: relative;
  height: 650px; /* Tall height for impact */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.section-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Badge on Image */
.image-tag {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--tree-green-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-size: 0.9rem;
}

/* 3. The Vertical Stack of 4 Cards */
.values-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card-premium {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  border-left: 6px solid var(--tree-green); /* The "O2" accent line */
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(0,0,0,0.02);
  border-right: 1px solid rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

.value-card-premium:hover {
  transform: translateX(15px); /* Slides out when hovered */
  background: #F8FAF9;
  border-left-color: var(--sky-blue);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.1);
}

.premium-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--tree-green-dark);
}

/* 4. Responsive (Stacks on mobile) */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-image-box {
    height: 400px;
  }
}
#contact .serve-card {
  background: linear-gradient(135deg, #E8F5E9, rgba(255,255,255,0.95));
  padding: 3.5rem 2.5rem;
}

.serve-icon {
  background: linear-gradient(135deg, var(--tree-green), var(--tree-green-light));
  color: white;
  width: 7rem; 
  height: 7rem;
  border-radius: 50%;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 25px 50px rgba(46,125,50,0.5);
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 2rem;
}
/* --- Values Section: The Power Duo --- */


/* 1. The Layout Container */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% Image, 50% Content */
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
}

/* 2. The Large Image Box (Fills the 'Empty' Space) */
.section-image-box {
  position: relative;
  height: 650px; /* Tall height for impact */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.section-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Badge on Image */
.image-tag {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--tree-green-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-size: 0.9rem;
}

/* 3. The Vertical Stack of 4 Cards */
.values-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card-premium {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  border-left: 6px solid var(--tree-green); /* The "O2" accent line */
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(0,0,0,0.02);
  border-right: 1px solid rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

.value-card-premium:hover {
  transform: translateX(15px); /* Slides out when hovered */
  background: #F8FAF9;
  border-left-color: var(--sky-blue);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.1);
}

.premium-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--tree-green-dark);
}

/* 4. Responsive (Stacks on mobile) */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-image-box {
    height: 400px;
  }
}
#contact .serve-card {
  background: linear-gradient(135deg, #E8F5E9, rgba(255,255,255,0.95));
  padding: 3.5rem 2.5rem;
}

.serve-icon {
  background: linear-gradient(135deg, var(--tree-green), var(--tree-green-light));
  color: white;
  width: 7rem; 
  height: 7rem;
  border-radius: 50%;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 25px 50px rgba(46,125,50,0.5);
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 2rem;
}
.tabs-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    margin-top: 2rem;
}
#tab-content-title {
    font-size: 2.2rem; /* Larger for better hierarchy */
    font-weight: 700;
   color: #f3f4f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Subtle text shadow to separate letters from the background */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
#tab-content-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly off-white for description */
    max-width: 80%;
    line-height: 1.6;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}

.tab-btn {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    /* Changed: Start with a subtle, clean border and no background */
    border: 1px solid rgba(46, 125, 50, 0.1);
    background: #fcfcfc; 
    color: #4b5563; /* Muted gray-text */
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500; /* Slightly lighter weight for non-active */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.tab-btn:not(.active):hover {
    background: #ffffff;
    border-color: var(--tree-green-light);
    color: var(--tree-green);
    transform: translateX(10px); /* Moves slightly to invite the click */
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.1);
    padding-left: 2.5rem; /* Pushes text right to create dynamic feel */
}

.tab-btn.active {
    background: var(--tree-green);
    color: white;
    font-weight: 600;
    border-color: var(--tree-green);
    /* The shift feels more intentional now */
    transform: translateX(20px); 
    box-shadow: -15px 15px 40px rgba(46, 125, 50, 0.25);
}

/* Premium Highlight: A white light "glow" that sweeps across the button when selected */
.tab-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: sweep 2s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.tabs-content {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    transition: opacity 0.3s ease;
}

.tabs-image-wrapper {
    height: 100%;
    width: 100%;
}

#tab-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.tabs-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2.5rem 3rem;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    backdrop-filter: blur(4px);
    color: white;
}

.tabs-text-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tabs-text-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- UNIVERSAL PREMIUM BUTTON STYLE --- */
.btn-primary {
  background-color: #2e7d32 !important; /* Fixed Green */
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  width: 100%; /* Full width for form; auto for CTA via container */
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.25);
}

/* Hover state */
.btn-primary:hover:not(:disabled) {
  background-color: #1b5e20 !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(46, 125, 50, 0.35);
}

/* Disabled state (When form is incomplete) */
.btn-primary:disabled {
  background-color: #d1d5db !important; /* Gray */
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Specific adjustment for the CTA button to not be full-width */
#enquiry-cta .btn-primary {
  width: auto;
  display: inline-flex;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tabs-container { grid-template-columns: 1fr; }
    .tab-btn.active { transform: translateY(-5px); }
    .tabs-content { height: 400px; }
}
/* --- Center Titles --- */
.center-title {
  text-align: center;
  margin-bottom: 5rem;
}

.center-title span {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--tree-green), var(--sky-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.center-title span::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--tree-green), var(--sky-blue));
  border-radius: 3px;
  transform: translateX(-50%);
}


#enquiry-cta {
  margin: 6rem auto 4rem;
  text-align: center;
}
#enquiry-cta .btn-primary {
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.25);

  background-color: #2e7d32; /* or your brand green */
  color: #ffffff;
  border: none;
  cursor: pointer;
}



/*Form CSS */

/* --- NEW STRUCTURED FORM STYLES --- */

/* This creates the white "box" that contains the form */
.form-card {
  max-width: 800px;
  margin: 4rem auto;
  background: #ffffff;
  padding: 3.5rem;
  border-radius: 24px; /* Matches your --border-radius */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
  border: 1px solid rgba(46, 125, 50, 0.1);
}

/* Logic for side-by-side fields (Project Type & Email) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tree-green);
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

/* Updated Input Styling to match the "feel" */
.form-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background-color: #fcfcfc;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--tree-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Centers the button at the bottom */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Makes the submit button a pill-shape like the reference */
.submit-btn {
  width: auto !important; /* Prevents it from filling the whole width */
  min-width: 220px;
  border-radius: 50px !important;
}

/* Mobile fix for the grid */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 2rem 1.5rem; }
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}




/* --- PERFECT FOOTER (STICKS TO LAST INCH - NO WHITE SPACE) --- */
footer {
  flex-shrink: 0; /* FIXED: Never compresses */
  width: 100%;
  background: linear-gradient(135deg, var(--tree-green), var(--tree-green-dark));
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Pushes to absolute bottom */
  width: 100%;
  margin-bottom: 0 !important; /* Ensure no bottom margin */
}

footer::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 160%;
  background: radial-gradient(circle, rgba(66,165,245,0.2) 0%, transparent 70%);
  animation: float 30s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

footer p { 
  font-size: 1.25rem; 
  margin-bottom: 1.5rem; 
  opacity: 0.95; 
}

footer span { 
  color: #C8FACC; 
  font-size: 0.95rem; 
  opacity: 0.85; 
}

/* --- Utility Classes --- */
.text-xs { font-size: 0.9rem; }
.text-sm { font-size: 1.1rem; }
.tracking-wide { letter-spacing: 0.03em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flex-row { display: flex; align-items: center; gap: 3rem; }

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  z-index: 1000;
  text-decoration: none;
  color: white;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37,211,102,0.7);
}

/* --- Loading Screen --- */
.loading {
  position: fixed;
  inset: 0;
  background: var(--mint-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s;
}

.loading.hidden { 
  opacity: 0; 
  pointer-events: none; 
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(46,125,50,0.2);
  border-top: 4px solid var(--tree-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  nav { display: none; }
  .grid-2, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .grid-2, .grid-4, .flex-row {
    display: flex !important;
    flex-direction: column;
    gap: 3rem;
  }
  .card { padding: 2.5rem 2rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0 !important; }
  .hero-section { min-height: 80vh; }
  .hero-title { font-size: 2.8rem; }
  .card { padding: 2rem 1.5rem; }
  footer { padding: 3rem 0 1.5rem; }
}

/* --- Animations --- */
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 120px; 
}



@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
/* === MOBILE LANGUAGE TOGGLE FIX === */
@media (max-width: 768px) {
  .language-toggle {
    flex-direction: row !important;        /* Horizontal */
    width: auto !important;                /* Shrink to content */
    padding: 0.5rem !important;           /* Small padding */
    background: rgba(46, 125, 50, 0.1);   /* Keep green tint */
    border-radius: 25px; 
    padding: 6px 8px !important;
    height: 42px !important;
    align-items: center !important; 
  }
  
  .indicator {
    width: calc(33.33% - 4px) !important; /* Smaller pill for 3 languages */
    height: calc(100% - 4px) !important;
    height: 30px !important; 
    top: 6px !important;                 /
    left: 6px !important
  }
  
  .lang-label {
    font-size: 0.75rem !important;        /* Smaller text */
    padding: 0.4rem 0.8rem !important;  
    height: 30px !important;             
    display: flex !important;
    align-items: center !important;      
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #projects .arrow { 
    /* Combined: Rotates AND keeps your 1.15x scale */
    transform: rotate(90deg) scale(1.15); 
    
    /* Centers the icon between the stacked cards */
    display: block;
    margin: 1.5rem auto; 
    
    /* Ensures the icon doesn't take up full width so it can center */
    width: fit-content;
  }
  .tabs-text-overlay {
    padding: 2rem 1.5rem 1.5rem !important; 
  }

  
  #tab-content-title {
    font-size: 1.6rem !important; 
    line-height: 1.2;
    margin-bottom: 0.5rem;
    word-wrap: break-word; 
  }

 
  #tab-content-desc {
    font-size: 0.95rem !important;
    max-width: 100% !important; 
  }

 
  .tabs-content {
    height: 450px !important; 
  }
  #about .placeholder {
    min-height: auto !important;      /* Remove the 400px height restriction */
    aspect-ratio: auto !important;   /* Let the image's own shape decide the height */
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;          
    overflow: hidden;
    border-radius: 12px;             /* Keeps the nice rounded corners */
  }

 
  #about .placeholder img {
    width: 100% !important;
    height: auto !important;         /* This is the most important line for responsiveness */
    display: block;
    object-fit: cover;               /* Makes it look premium by filling the space */
  }
  header {
        padding: 0.5rem 0;
        min-height: 70px;
        display: flex;
        align-items: center;
    }

    .header-inner {
        padding: 0.5rem 0 !important;
        flex-direction: row; /* Keep logo and toggle side-by-side */
        justify-content: space-between;
        width: 100%;
    }

    /* Resize logo for mobile so it doesn't push the toggle down */
    .logo img {
        height: 2.2rem !important;
    }

    /* PUSH THE HERO CONTENT DOWN */
    /* This creates the gap between the nav bar and the "Pioneering..." text */
    .hero-section {
        padding-top: 100px !important; 
        height: auto !important;
        min-height: 90vh;
    }

    .hero-title {
        margin-top: 1rem;
        font-size: 2.2rem !important; /* Adjust size for better fit */
    }

  
}

/* Mobile Navbar Fixes */
@media (max-width: 768px) {
  header {
    padding: 1rem 0;
    position: relative;
  }
  
  .header-inner {
    position: relative;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  /* Logo stays top-center */
  .logo {
    order: -1;
    margin: 0;
  }
  
  /* Hide desktop nav, show hamburger */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(20px);
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    width: 30px;
    height: 24px;
    cursor: pointer;
    order: 1;
    align-self: flex-end;
  }
  
  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary, #333);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Lang toggle - full width, bottom */
  #langToggle {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
  }
  
  .lang-label {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
  }
  
  .lang-label.active {
    background: var(--tree-green, #10b981);
    color: white;
  }
  
  /* Show mobile nav when active */
  .nav-open nav {
    display: flex;
  }
  
  /* Mobile nav items */
  nav span, .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
  }
  
  nav span:hover, .nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
  }
  
  /* Dropdown in mobile */
  .dropdown {
    width: 100%;
  }
  
  .dropdown-content {
    margin-top: 0.5rem;
    padding-left: 1rem;
    background: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.open .dropdown-content {
    max-height: 200px;
  }
  
  .dropdown-content a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: block;
  }
  
  /* Enquire button */
  .nav-enquire {
    background: var(--tree-green, #10b981) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    text-align: center;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  #langToggle {
    order: 3;
    min-width: 180px;
  }
}

/* Hamburger animation */
.nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* MOBILE NAVBAR - ADD THIS TO layout.css */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column !important;
    gap: 1rem;
    position: relative;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .header.nav-open nav {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    width: 30px;
    height: 24px;
    cursor: pointer;
    align-self: flex-end;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Hamburger to X animation */
  .header.nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .header.nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .header.nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  #langToggle {
    order: 3 !important;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.8);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
  }
}


/* LAPTOP NAV - Subtle Transparency ONLY for HEADER */
@media (min-width: 1025px) {
  header {
    background: rgba(255, 255, 255, 0.12) !important;  /* Slightly more opaque */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  }
}




/* Specific Mobile Tightening */
@media (max-width: 768px) {
    /* 1. Remove the forced 4rem padding from these specific sections */
    #serve-section, 
    #enquiry-cta {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* 2. Override the 8rem margin you have in the HTML inline style */
    #serve-section {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* 3. Reduce gap between "Who We Create For" title and the tabs/images below it */
    #serve-section .center-title {
        margin-bottom: 1.5rem !important;
    }
    
    .tabs-container {
        margin-top: 0.5rem !important;
    }

    /* 4. Pull the Enquire button closer to the previous section */
    #enquiry-cta {
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
    }
}


/* === FINAL MOBILE HEADER & TOGGLE OVERRIDE === */
@media (max-width: 768px) {
    /* 1. Force everything into one horizontal line */
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 1rem !important;
        gap: 10px !important;
    }
/* . SECTION SPACING: Collapsing the gaps */
    section {
        padding: 1.5rem 0 !important; /* Reduces the 4rem global gap to 1.5rem */
    }

    /* Target the space specifically above "Who We Create For" */
    #serve-section {
        margin-top: 0 !important; 
        padding-top: 1rem !important;
    }

    /* Fix the gap between the title and the content (image/tabs) */
    .center-title {
        margin-bottom: 1.5rem !important;
    }
    /* 2. Fix Logo sizing and remove margins that push it out of line */
    .logo {
        margin: 0 !important;
        flex-shrink: 0;
    }
    .logo img {
        height: 1.8rem !important; /* Slightly smaller to give others room */
    }

    /* 3. SHRINK THE LANGUAGE TOGGLE */
    .language-toggle {
        width: 160px !important;   /* Fixed width so it's not huge */
        height: 32px !important;   /* Slimmer height */
        padding: 2px !important;
        margin: 0 auto !important; /* Centers it in the middle space */
    }

    .lang-label {
        font-size: 0.65rem !important; /* Smaller text */
        padding: 4px 0 !important;
        line-height: 1 !important;
    }

    .indicator {
        height: calc(100% - 4px) !important;
        top: 2px !important;
    }

    /* 4. Align Hamburger Menu */
    .mobile-menu-toggle {
        margin: 0 !important;
        align-self: center !important;
        order: 3 !important; /* Keeps it on the far right */
        display: flex !important;
    }
}


/* === FINAL CONSOLIDATED MOBILE FIX === */
@media (max-width: 768px) {
    
    /* LOGO & HEADER: Force horizontal alignment */
    .header-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 1rem !important;
    }

    .logo img {
        height: 2.2rem !important; /* Slimmer for mobile row */
    }

    /* PROPORTIONAL TOGGLE: Uses % to stay perfectly in scope */
    .language-toggle {
        width: 60% !important;        /* Proportional width */
        max-width: 220px !important;  /* Limits size on larger tablets */
        height: 36px !important;
        display: flex !important;
        padding: 3px !important;      /* Minimal consistent border */
        position: relative !important;
        overflow: hidden !important;  /* TRAPS the animation inside */
        margin: 0 !important;
    }

    .language-toggle .indicator {
        width: 33.33% !important;    /* Exactly 1/3rd of the width */
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 20px !important;
        /* Percentage-based movement for perfect centering */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Precise percentage jumps so it never goes "out of scope" */
    .language-toggle.lang-en-active .indicator { transform: translateX(0%) !important; }
    .language-toggle.lang-hi-active .indicator { transform: translateX(100%) !important; }
    .language-toggle.lang-mr-active .indicator { transform: translateX(200%) !important; }

    .lang-label {
        flex: 1 !important;          /* Each label takes exactly 1/3rd space */
        font-size: 0.7rem !important;
        line-height: 30px !important;
        z-index: 2 !important;
    }

    /* SECTION SPACING: Collapsing the gaps */
    /* Overrides the 4rem !important on line 698 and 851 */
    section {
        padding: 1rem 0 !important; 
    }

    /* Removes the massive 8rem/5rem gaps around "Who We Create For" */
    #serve-section {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }

    .center-title {
        margin-bottom: 0.5rem !important;
    }

    .center-title span {
        padding: 0.5rem 1rem !important;
    }

    /* Tighten the Enquiry Button section */
    #enquiry-cta {
        margin-top: 0 !important;
        padding-top: 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Align Hamburger Menu Icon */
    .mobile-menu-toggle {
        margin: 0 !important;
        align-self: center !important;
        order: 3 !important; 
    }
}


:root {
  --nav-green: #2d5a27; /* Matches your O2 Gallery logo */
  --light-gray: #f4f7f4;
  --border-color: #e0e6e0;
}

.lang-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-segmented-control {
  --pill-padding: 4px;
  position: relative;
  display: grid;
  /* Creates 3 equal columns */
  grid-template-columns: repeat(3, 1fr); 
  background-color: #f4f7f4;
  border: 1px solid #e0e6e0;
  border-radius: 50px;
  padding: var(--pill-padding);
  width: 260px; /* Increased slightly to prevent "ish" truncation */
  height: 42px;
  overflow: hidden;
}

.lang-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #2d5a27;
  z-index: 2;
  transition: color 0.3s ease;
  /* Prevents text from cutting off */
  white-space: nowrap; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  color: #ffffff;
}

.selection-slider {
  position: absolute;
  /* Stretches to fill exactly 1/3 of the grid area */
  width: calc(100% / 3 - (var(--pill-padding) * 2 / 3)); 
  height: calc(100% - (var(--pill-padding) * 2));
  top: var(--pill-padding);
  left: var(--pill-padding);
  background-color: #2d5a27;
  border-radius: 40px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Tablet & Large Mobile (The "Problem" Zone) */
@media (max-width: 768px) {
  .lang-segmented-control {
    width: 230px; 
    height: 38px;
  }
  .lang-btn {
    font-size: 11px;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .lang-segmented-control {
    width: 200px;
  }
}

@media (max-width: 320px) {
    .lang-segmented-control {
        width: 185px; /* Slightly wider to give the 'h' room */
        height: 34px;
    }
    
    .lang-btn {
        font-size: 10px;
        padding: 0;
        width: 100%; /* Ensure button fills the grid slot */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Add a tiny bit of letter-spacing so the words are tighter */
    .lang-btn[data-lang="en"] {
        letter-spacing: -0.3px;
    }
}

