/* Font Setup */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.woff2') format('woff2'),
         url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.woff2') format('woff2'),
         url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium weight */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.woff2') format('woff2'),
         url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600; /* SemiBold weight */
    font-style: normal;
    font-display: swap;
}

/* Design System */
:root {
    --brand: #16a34a;
    --brand-dark: #15803d;
    --brand-tint: rgba(22, 163, 74, 0.08);
    --brand-glow: rgba(22, 163, 74, 0.16);
    /* Champagne-gold secondary accent for a premium touch */
    --gold: #d4af37;
    --gold-light: #f1d789;
    --gold-soft: #e6c874;
    --gold-dark: #a8853a;
    --gold-glow: rgba(212, 175, 55, 0.18);
    --ink: #111827;
    --text: #374151;
    --muted: #6b7280;
    --surface-alt: #f9fafb;
    --border: #e5e7eb;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 12px rgba(17, 24, 39, 0.05);
    --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.07), 0 14px 30px rgba(17, 24, 39, 0.12);
}

* {
    font-family: 'Poppins', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Firefox-only scrollbar theming. In Chromium (Edge/Chrome), setting
   scrollbar-width/scrollbar-color disables ::-webkit-scrollbar styling,
   so these must not apply there. */
@supports (-moz-appearance: none) {
    html {
        scrollbar-color: var(--brand) var(--surface-alt);
    }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--surface-alt);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 20px;
    border: 3px solid var(--surface-alt);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* Visually hidden (screen-reader only / honeypot) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* General Styling */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
}

/* Header Styling */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    color: #333;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

/* Adjust header layout for larger screens */
@media (min-width: 1024px) {
    .header-container {
        padding: 0 70px;
    }

    .site-title {
        margin-left: 20px;
    }

    nav {
        margin-right: 20px;
    }
}

/* Hamburger Menu Styling */
.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu */
nav {
    display: flex;
    gap: 15px;
    position: relative; /* Ensure positioning context for the pseudo-element */
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    position: relative; /* Ensure positioning context for the pseudo-element */
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--brand);
}

/* Green underline on hover */
nav a::after {
    content: ''; /* Empty content for the pseudo-element */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: var(--brand); /* Underline color */
    transition: width 0.3s ease; /* Smooth transition for the underline */
}

nav a:hover::after {
    width: 100%; /* Full width underline on hover */
}
.contact-link {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--brand-glow);
}

.contact-link:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

nav a.contact-link::after {
    display: none;
}
/* Disable green underline effect on smaller screens when hamburger menu is active */
@media (max-width: 768px) {
    nav a::after {
        width: 0; /* Remove the underline */
    }

    nav a:hover::after {
        width: 0; /* Ensure no underline on hover */
    }
}


/* Site Title Styling */
.site-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: 600; /* Use SemiBold font for the title */
}
.index-page .site-title {
    padding-left: 20px;
}

/* Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.2rem;
        text-align: left;
        margin-left: 0;
    }

    .header-container {
        justify-content: flex-start;
    }

    .hamburger {
        position: static;
        margin-left: auto;
    }
}

/* Mobile View - Show Hamburger Menu, Hide Navigation */
@media (max-width: 768px) {
    /* Style the hamburger button */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Hamburger bar animations */
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
    display: block;
    transition: all 0.3s ease-in-out;
}

/* Transform into "X" when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay effect */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    transition: opacity 0.4s ease-in-out;
}

.overlay.show {
    display: block;
    opacity: 1;
}

    /* Ensure the nav is hidden initially */
nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 250px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* Light background with slight transparency */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease-in-out;
}

/* Show when active */
nav.show {
    right: 0;
}

/* Animate menu items */
nav a {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.35s ease;
}

nav.show a {
    opacity: 1;
    transform: translateX(0);
}

}

/* Header Title Styling */
header h1 {
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 600; /* Use SemiBold font for header */
}

header a {
    text-decoration: none;
    color: inherit;
}

/* Ensure Bold Text Uses SemiBold Font */
strong, b {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600; /* Use SemiBold font for bolded text */
}


.container {
    width: 90%; /* Use percentage for responsive width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}



.section {
    margin-bottom: 2rem;
    padding: 2rem 1rem; 
    
}
.section {
    scroll-margin-top: 120px; /* Adjust this value to match your header height */
}


/* Grid Layout for Work and Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item h4 {
    margin-top: 0;
}

.grid-item a {
    color: var(--brand);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.grid-item a:hover {
    color: var(--brand); /* Change color to green on hover */
}
/* Home Section Styling */
#home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* Full viewport height */
  text-align: center;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.55)
  ),
  url('./assets/hero-fintech-background.jpg') center center / cover no-repeat;
  color: #fff; /* White text for contrast */
  padding: 20px;
  gap: 1rem; /* Add spacing between elements */
  overflow: hidden;
}

/* Soft brand glow behind the headline */
#home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(22, 163, 74, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.home-content {
  width: min(100%, 1100px);
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* One-time entrance animation on first paint (no AOS lag) */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#home h1 {
  animation: heroRise 0.8s ease-out both;
}

#home .home-content p {
  animation: heroRise 0.8s ease-out 0.15s both;
}

#home .btn-group {
  animation: heroRise 0.8s ease-out 0.3s both;
}

/* Bouncing scroll-down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  text-decoration: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: bounceDown 2.2s ease-in-out infinite;
  transition: background 0.3s ease, color 0.3s ease;
}

.scroll-indicator:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

#home h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

#home h1 .accent {
  color: var(--gold-soft);
  background: linear-gradient(110deg, #e6c874 20%, #f9edc8 38%, #c9a24d 55%, #f1d789 72%, #e6c874 88%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accentShimmer 6s linear infinite;
}

/* Thin metallic keyline beneath the headline */
#home h1::after {
  content: '';
  display: block;
  width: 90px;
  height: 2px;
  margin: 1.1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
}

@keyframes accentShimmer {
  to {
    background-position: -200% center;
  }
}

#home p {
  font-size: 1.2rem; /* Slightly smaller for smaller screens */
  margin: 0 auto 1.5rem;
  max-width: 760px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#home .btn-group {
  display: flex;
  gap: 1rem; /* Space between buttons */
  flex-wrap: wrap; /* Allow buttons to stack on smaller screens */
  justify-content: center;
  width: 100%;
  max-width: 540px;
}

#home .btn {
  flex: 1;
  min-width: 180px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#home .btn-primary {
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#home .btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--brand-glow), 0 8px 20px rgba(0, 0, 0, 0.25);
}

#home .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(241, 215, 137, 0.65);
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}

#home .btn-ghost:hover {
  background: linear-gradient(120deg, var(--gold-light), var(--gold-soft));
  border-color: var(--gold-soft);
  color: #1a1508;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--gold-glow);
}

@media (max-width: 768px) {
  #home {
    background: linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url('./assets/hero-fintech-background.jpg') no-repeat center center/cover; /* Ensure full coverage */
  }

  #home p {
    font-size: 1rem; /* Adjust paragraph font size */
  }

  #home .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    width: 60%;
    margin: 0 auto;
  }

  #home .btn-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 1.5rem; /* Increased gap between buttons on smaller screens */
  }
}

@media (max-width: 480px) {
  #home .btn-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 1.5rem;
  }
  #home {
    background: linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url('./assets/hero-fintech-background.jpg') no-repeat center center/cover; /* Ensure full coverage */
  }

  #home h1 {
    font-size: 1.8rem;
  }

  #home p {
    font-size: 0.9rem;
  }
}
/* General About Section Styles */
/* ----------------- About Section & Basic Styles ----------------- */
#about {
    padding: 60px 20px;
    background-color: var(--surface-alt);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(22, 163, 74, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(22, 163, 74, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    max-width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    max-width: 60%;
    transition: all 0.5s ease;
    transform: perspective(1000px) rotateY(0deg);
    position: relative;
}

.about-image:hover {
    transform: perspective(1200px) rotateY(6deg);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 8px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    filter: saturate(1.1);
}

.about-image img:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 12px 20px rgba(0, 0, 0, 0.08);
}

#about h2 {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
    color: var(--brand);
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand);
}

#about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #444;
    text-align: left;
    font-weight: 600;
}

#about p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
}

.buttons-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#about .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 10px;
}

#about .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brand);
    transition: all 0.5s ease;
    z-index: -1;
}

#about .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(22, 163, 74, 0.2);
}

#about .btn:hover::before {
    left: 0;
}

.btn-icon {
    transition: transform 0.3s ease;
}

#about .btn:hover .btn-icon {
    transform: translateX(3px);
}

#about .schedule-btn {
    background: var(--brand);
    color: white;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
    margin-top: 10px;
}

#about .schedule-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(22, 163, 74, 0.25);
}

/* Section Divider */
.section-divider-container {
    display: flex;
    justify-content: flex-start;
    margin: 30px 0;
    position: relative;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--brand), var(--gold-light));
    position: relative;
    border-radius: 3px;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 50%;
    left: -2px;
    top: -2px;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    right: -2px;
    top: -2px;
}

/* ----------------- Skills Section Styles ----------------- */
.skills-container {
    margin-top: 30px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.skill {
    width: 100%;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 163, 74, 0.35);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    align-items: center;
    gap: 10px;
}

.skill-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.skill-icon-container {
    width: 32px;
    height: 32px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.skill:hover .skill-icon-container {
    background: rgba(22, 163, 74, 0.2);
    transform: rotate(360deg);
}

.skill-icon {
    font-size: 16px;
    color: var(--brand);
}

.skill-level {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--brand-dark);
    background: var(--brand-tint);
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Tech pills inside each skill card */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.skill:hover .skill-tags span {
    border-color: rgba(22, 163, 74, 0.3);
    color: var(--brand-dark);
}

/* ----------------- Media Queries ----------------- */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-text {
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .about-image {
        max-width: 90%;
    }
    #about h3 {
        font-size: 1.3rem;
    }
    #about p {
        font-size: 0.95rem;
    }
    #about .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    .skill-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 2rem 1rem;
    }
    .about-container {
        gap: 1.2rem;
    }
    .about-text {
        margin-bottom: 1.2rem;
        text-align: left;
    }
    .about-image {
        max-width: 100%;
    }
    #about h3 {
        font-size: 1.1rem;
    }
    #about p {
        font-size: 0.9rem;
    }
    #about .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    /* Change buttons layout to side by side */
    .buttons-container {
        flex-direction: row;
        gap: 10px;
    }
    .skill-icon-container {
        width: 28px;
        height: 28px;
    }
}



/* Services Section */
#services {
    padding: 50px 20px;
}

/* Consistent section header pattern: eyebrow + title */
.section-header {
    text-align: left;
    margin-bottom: 34px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.section-eyebrow::after {
    content: '';
    width: 36px;
    height: 2px;
    background: linear-gradient(to right, var(--brand), var(--gold));
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.25;
    color: var(--ink);
    font-weight: 600;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    overflow: visible; /* Ensure transformations are not clipped */
}

.service-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Brand accent bar that slides in across the top on hover */
.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--brand), #4ade80, var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 163, 74, 0.35);
    z-index: 2;
}

.service-box:hover h4 {
    color: var(--brand);
}

.service-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.service-box:hover .service-image {
    transform: scale(1.05);
}

.service-box h4 {
    font-size: 17px;
    color: var(--ink);
    margin: 18px 20px 8px;
    transition: color 0.3s ease;
}

.service-box p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 20px 20px;
}
.hidden {
    display: none;
}

#service-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

#service-detail-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.service-image img {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

.service-description {
    flex: 1;
}

.service-description h1 {
    font-size: 24px;
    color: black;
    margin-bottom: 20px;
}

.service-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

#back-to-services {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--brand);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#back-to-services:hover {
    background-color: var(--brand-dark);
}
#service-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

#service-detail-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.service-image img {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

.service-description {
    flex: 1;
}

.service-description h1 {
    font-size: 24px;
    color: black;
    margin-bottom: 20px;
}

.service-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

#back-to-services {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--brand);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#back-to-services:hover {
    background-color: var(--brand-dark);
}
/* Services Section */
#services {
    padding: 50px 20px;
    background-color: #fff;
}
.service-box h4 i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.service-box:hover h4 i {
    transform: translateX(15px); /* Move the icon slightly to the right */
}

/* Work Section Styling */
#work {
    background-color: var(--surface-alt);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(22, 163, 74, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(22, 163, 74, 0.04) 0%, transparent 50%);
    padding: 50px 20px;
    border-radius: var(--radius);
}
/* Adjust the grid or other styles if needed */
#work .grid {
    gap: 1.5rem;
}
#blogs {
    padding: 50px 20px;
    background-color: #fff;
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  width: 85%;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #f8f9fa;
  padding: 20px 25px;
  border-bottom: 1px solid #eaeaea;
  z-index: 10;
}

/* Modal Body */
.modal-body {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 30px 25px;
  overflow-y: auto;
  flex: 1;
}

/* Navigation Controls */
.modal-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-index {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin: 0 10px;
}

/* Navigation & Close Buttons */
.nav-button {
  background-color: var(--brand);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-button:active {
  transform: translateY(0);
}

.nav-button i {
  font-size: 16px;
}

.close {
  background-color: #e74c3c;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.close:hover {
  background-color: #c0392b;
  transform: rotate(90deg);
}

/* Content Styling */
 .content-text {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.content-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.2s;
}

.content-text p:nth-child(2) {
  transition-delay: 0.4s;
}

.modal.show .content-text p {
  opacity: 1;
  transform: translateY(0);
}

 .content-image {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 8px;
}

.content-image img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.3s;
}

.modal.show .content-image img {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .modal-content {
    width: 90%;
    margin: 10% auto;
  }
}

/* Responsive Styles for Modal for screens up to 768px */
@media screen and (max-width: 768px) {
  .modal {
    overflow-y: auto;               /* Allow the whole overlay to scroll if needed */
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    width: 92%;
    margin: 5vh auto;               /* Consistent top/bottom breathing room */
    max-height: 90vh;               /* Never taller than the viewport */
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-header {
    padding: 15px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Keep the nav/close controls on one full-width row */
  .modal-nav {
    width: 100%;
    justify-content: flex-end;
  }

  /* Stack modal body elements vertically for better readability */
  .modal-body {
    flex-direction: column;
    gap: 18px;
    padding: 20px 18px;
  }
  .content-text {
    order: 1;
  }

  /* Hide the illustration on narrow screens — text is the priority */
  .content-image {
    display: none;
  }

  .content-image img {
    display: none;
  }

  .nav-button, .close {
    width: 38px;                    /* Comfortable touch target */
    height: 38px;
  }
}

/* Further adjustments for screens up to 576px */
@media screen and (max-width: 576px) {
  .modal-content {
    width: 94%;
    margin: 4vh auto;
    max-height: 92vh;
    border-radius: 14px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .modal-body {
    padding: 18px 16px;
    gap: 14px;
  }

  .content-text p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .modal-index {
    font-size: 14px;
    margin: 0 6px;
  }

  .nav-button, .close {
    width: 36px;
    height: 36px;
  }
}


/* General Contact Section Styling */
#contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
#contact h4{
    color: var(--brand);
}

.contact-section {
  display: flex;
  flex-wrap: wrap; /* Allow elements to wrap on smaller screens */
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.contact-left,
.contact-right {
  flex: 1;
  padding: 20px;
  box-sizing: border-box; /* Include padding in element's width */
}

/* Media Query for smaller screens */
@media screen and (max-width: 768px) {
    .contact-section {
        flex-direction: column; /* Stack elements vertically */
    }
}
/* Left Side - Contact Form */
.contact-left {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Form Rows */
.form-row {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
}

/* Form Groups */
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; 
}

/* Input and Textarea Styling */
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form label {
  padding-bottom: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
}
.form-group label span {
  color: red; 
  font-weight: bold;
}
.form-group textarea {
  width: calc(100% - 20px); /* Subtract 20px from 100% to match other inputs */
}
/* Media Query for smaller screens */
@media screen and (max-width: 480px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 0.8rem; /* Further reduce font size on smaller screens */
    }
}

/* Input Fields */
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input Focus Effect */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.contact-form input:invalid,
.contact-form textarea:invalid {
  border-color: #d1d5db;
}

/* Phone and Message Row - Adjust the width */
.contact-form .form-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}


.contact-form .form-group input[type="tel"],
.contact-form .form-group textarea {
  flex: 1; /* Make both fields equally wide */
}

/* Input Wrapper for Icon Alignment */
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-wrapper .icon {
  font-size: 1.1em;
  color: var(--brand);
}

/* Checkbox Alignment - FIXED to be on single line */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  text-align: left;
  position: relative;
  flex-direction: row;
  width: 100%;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px; /* Prevent shrinking */
  margin-top: 2px; /* Align with text */
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0; /* Prevent shrinking */
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.checkbox-wrapper input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.checkbox-wrapper label {
  font-size: 0.85rem;
  font-weight: normal;
  color: #555;
  cursor: pointer;
  flex: 1; /* Take up remaining space */
  padding-bottom: 0; /* Remove bottom padding */
  margin-bottom: 0; /* Remove bottom margin */
}



/* Submit Button Styling */
.submit-button {
  background-color: var(--brand); /* Green */
  border: none; /* Remove borders */
  color: white; /* White text */
  padding: 15px 25px; /* Increase padding */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Display block instead of inline */
  font-size: 1rem; /* Increase font size */
  margin: 4px 2px; /* Add some space around the button */
  cursor: pointer; /* Add a pointer cursor on hover */
  border-radius: 999px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.submit-button:hover {
  background-color: var(--brand-dark); /* Green with a darker shade on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 18px var(--brand-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}

/* Right Side - Contact Info */
.contact-right {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;

}

.contact-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.text-content {
  flex: 1;
}

.contact-right h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-right a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-right a:hover {
  color: var(--brand);
}

.contact-right a i {
  color: var(--brand);
  margin-right: 6px;
}

.contact-right h3 {
  margin-top: 20px;
  font-weight: bold;
}

.contact-right p {
  margin: 5px 0;
}

@media (max-width: 768px) {
  .contact-info {
    flex-wrap: wrap; /* Allow wrapping of content */
    text-align: center; /* Center-align content for better layout */
  }

  .contact-image {
    margin: 0 auto; /* Center the image */
  }

  .text-content {
    flex: 1 1 100%; /* Make the text content take full width */
    margin-top: 10px; /* Add spacing between image and text */
  }
}
.schedule-btn {
    display: inline-block;
    background-color: var(--brand);
    color: white;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-top: 15px;
    display: block; /* Makes it full width */
    width: fit-content;
    box-shadow: 0 4px 12px var(--brand-glow);
}

.schedule-btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px var(--brand-glow);
}


/* Footer Styling */
footer {
    background: #111827;
    color: #e5e7eb;
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem 0 0.5rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.88rem;
    max-width: 320px;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #4ade80;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #4ade80;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Maps Section Title */
.maps-section h3 {
    font-size: 2rem; /* Larger font size for the title */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}
/* Target the download button within the maps-section */
.maps-section .mybutton {
  background-color: var(--brand);  /* Base background color */
  color: #fff;                /* White text */
  padding: 12px 24px;         /* Adequate padding for a clickable area */
  text-decoration: none;      /* Remove underline */
  border-radius: 999px;       /* Pill shape to match site buttons */
  font-size: 1rem;            /* Base font size */
  font-weight: bold;          /* Emphasize the text */
  display: inline-block;      /* Ensure it respects box-model properties */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
}

.maps-section .mybutton:hover {
  background-color: var(--brand-dark);  /* Darker shade on hover */
  transform: translateY(-2px); /* Lift effect */
}

.maps-section .mybutton:active {
  transform: translateY(0);   /* Reset transform on click */
}
/* Responsive adjustments for smaller screens */
@media screen and (max-width: 576px) {
  .maps-section h3 {
    font-size: 1.25rem; /* Reduced font size */
  }
  
  .maps-section .mybutton {
    padding: 8px 16px;   /* Reduced padding */
    font-size: 0.9rem;   /* Reduced font size */
  }
}


/* Map Containers */
.map-container {
    margin-bottom: 20px;
}
.map-container img {
    width: 100%;
    height: auto;
    max-width: 600px; /* Default max width for larger screens */
}
/* Responsive Design for Smaller Screens */
@media screen and (max-width: 768px) {
    /* Title */
    .maps-section h3 {
        font-size: 1.5rem; /* Smaller title on smaller screens */
        text-align: center; /* Ensure it's centered */
    }
    /* Button */
    .mybutton {
        font-size: 0.9rem; /* Slightly smaller button on smaller screens */
        padding: 8px 16px; /* Adjust padding for smaller screens */
    }
    /* Images */
    .map-container img {
        max-width: 100%; /* Make images responsive */
        height: auto;
    }
    /* Make map containers stack vertically */
    .maps-section .map-container {
        margin-left: 0;
        margin-right: 0;
    }
}
/* Project Overview Section Layout */
.surveying-section {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.content-images {
  flex: 1;
  text-align: center;
  border-right: 1px solid #ddd;
  padding-right: 20px;
}

.content-images img {
  max-width: 100%;
  height: auto;
}

.content-texts {
  flex: 2;
  padding-left: 20px;
}

/* Responsive Styles for Smaller Screens */
@media screen and (max-width: 768px) {
  .surveying-section {
    flex-direction: column;
    text-align: center;
  }
  .project-overview {
    flex-direction: column;
    text-align: center;
  }
  
  .content-images {
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .content-texts {
    padding-left: 0;
    text-align: left;
  }
}

/* ============================================================
   Modern polish additions
   ============================================================ */

/* Animated eyebrow underline — grows in when the section scrolls in */
.section-eyebrow::after {
    width: 0;
    transition: width 0.6s ease 0.15s;
}

[data-aos].aos-animate .section-eyebrow::after,
.section.aos-animate .section-eyebrow::after {
    width: 36px;
}

/* Fallback: if AOS isn't driving the section, keep the underline visible */
.no-aos .section-eyebrow::after {
    width: 36px;
}

/* Active nav link (scrollspy) */
nav a.active {
    color: var(--brand);
}

nav a.active::after {
    width: 100%;
}

/* ---- Stats strip ---- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 40px 0 10px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 163, 74, 0.35);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--brand);
    line-height: 1;
}

.stat-number .plus {
    color: var(--brand);
}

.stat-label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ---- Back-to-top button ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px var(--brand-glow);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--brand-glow);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 100px;   /* Sit clear of the chat button */
        left: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ---- Footer brand accent line ---- */
footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, var(--brand), #4ade80, var(--gold)) 1;
}

/* ---- Softer, more modern contact inputs ---- */
.contact-form input,
.contact-form textarea {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
}

/* ============================================================
   Reduced motion — respect user accessibility preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-indicator {
        animation: none;
    }

    /* AOS is disabled under reduced motion, so force the eyebrow underline on */
    .section-eyebrow::after {
        width: 36px;
    }
}

