:root {
    --bg-base: #030303;
    --bg-elevate: #0A0A0B;
    --bg-elevate-light: #111114;
    --text-primary: #FFFFFF;
    --text-secondary: #8A8F98;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --glow-purple: rgba(139, 92, 246, 0.15);
    --glow-blue: rgba(59, 130, 246, 0.15);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --font-sans: 'Geist Sans', 'Inter', sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
    --nav-bg: rgba(10, 10, 11, 0.5);
    --panel-bg: rgba(15, 15, 18, 0.7);
    --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.6);
    --footer-bg: #000000;
}

[data-theme="light"] {
    --bg-base: #FFFFFF;
    --bg-elevate: #F9FAFB;
    --bg-elevate-light: #F3F4F6;
    --text-primary: #09090B;
    --text-secondary: #52525B;
    --glow-purple: rgba(139, 92, 246, 0.08);
    --glow-blue: rgba(59, 130, 246, 0.08);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.7);
    --panel-bg: rgba(255, 255, 255, 0.8);
    --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.05);
    --footer-bg: #F9FAFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    position: relative;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent-gradient {
    background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    position: relative;
}

/* Navbar */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 3rem);
    max-width: 1300px;
    padding: 0.75rem 1.5rem;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    z-index: 100;
}

[data-theme="light"] nav {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.5rem;
}

.logo img {
    height: 36px;
}

.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="light"] .logo-dark {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-elevate-light);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: var(--bg-elevate-light);
}

[data-theme="light"] .btn-secondary {
    box-shadow: none;
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--glow-purple);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Background Gradients */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
    top: -20vw;
    right: 0;
    transform: translateX(15%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.ambient-glow-blue {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    bottom: -10vw;
    left: 0;
    transform: translateX(-15%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Hero Section */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* 3D Dashboard Elements */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: -2rem;
}

.hero-bento-wrapper {
    height: 450px;
    width: 100%;
}

.dashboard-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: var(--border-subtle);
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transform: rotateX(15deg);
}

.dashboard-header {
    height: 50px;
    border-bottom: var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 350px;
}

.dashboard-sidebar {
    display: none;
}

.dash-block {
    border-radius: 0.5rem;
    background: var(--bg-elevate);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-graph {
    height: 150px;
    border-radius: 1rem;
    border: var(--border-subtle);
    background: var(--bg-elevate);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    gap: 1rem;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--text-secondary), transparent);
    border-radius: 0.25rem;
    opacity: 0.2;
}

.graph-bar.active {
    background: linear-gradient(to top, var(--accent-blue), transparent);
    opacity: 1;
}

.dash-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
}

.dash-card {
    border-radius: 1rem;
    border: var(--border-subtle);
    background: var(--bg-elevate);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-badge {
    position: absolute;
    top: -2rem;
    right: -2rem;
    padding: 1rem 1.5rem;
    background: var(--panel-bg);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateZ(80px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

/* Trust / Metrics Bento */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.4s ease;
}

.metric-card:hover {
    background: var(--bg-elevate-light);
    transform: translateY(-2px);
}

.metric-card.span-2 {
    grid-column: span 2;
}

.metric-card.span-4 {
    grid-column: span 4;
}

.metric-value {
    font-size: 3.5rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Services / Features Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(180deg, var(--bg-elevate) 0%, var(--bg-base) 100%);
    border: var(--border-subtle);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: var(--border-subtle);
    color: var(--accent-blue);
}

/* Workflow Timeline */
.workflow-track {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.workflow-track::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-blue));
    opacity: 0.3;
}

.workflow-step {
    position: relative;
    padding-left: 5rem;
    padding-bottom: 4rem;
}

.workflow-step:last-child {
    padding-bottom: 0;
}

.workflow-dot {
    position: absolute;
    left: 18px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}

/* Portfolio Slider */
.portfolio-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (3 * 2rem)) / 4); /* Desktop: 4 cards */
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    scroll-snap-align: start;
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .portfolio-slider {
        grid-auto-columns: calc((100% - (2 * 1.5rem)) / 3); /* Tablet: 3 cards */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-slider {
        grid-auto-columns: 100%; /* Mobile: 1 card */
        gap: 1rem;
    }
}

.portfolio-img {
    height: 300px;
    background: var(--bg-elevate-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.portfolio-content {
    padding: 2rem;
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-item {
    background: var(--bg-elevate);
    border: var(--border-subtle);
    padding: 1rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: transform 0.3s, background 0.3s;
}

.tech-item:hover {
    transform: translateY(-3px);
    background: var(--bg-elevate-light);
}

/* Reviews - Clutch Style */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.review-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #222;
    background-size: cover;
    background-position: center;
}

.stars {
    color: #FBBF24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-body {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.review-meta {
    display: flex;
    gap: 1rem;
    border-top: var(--border-subtle);
    padding-top: 1.5rem;
}

.meta-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    border-top: var(--border-subtle);
    padding: 6rem 0 2rem;
    background: var(--footer-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .metrics-section {
        padding: 3rem 0 !important;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin: 0 auto 1rem;
    }

    .hero-content {
        order: 1;
        margin-top: 4rem;
        align-items: center;
        text-align: center;
    }

    .hero-visual {
        display: none !important;
    }

    .hero-ctas {
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 4rem !important;
        min-height: auto !important;
    }

    .section-header {
        margin: 0 auto 1rem;
    }

    .metrics-section {
        padding: 2rem 0 !important;
    }

    section {
        padding: 2rem 0;
    }

    .hero-ctas {
        margin-bottom: 3rem !important;
    }

    .container {
        padding: 0 1.25rem;
    }

    .metrics-grid,
    .services-grid,
    .reviews-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .metric-card.span-2,
    .metric-card.span-4 {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Ensure text doesn't force a wider layout */
    h1,
    h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Mobile dashboard adjustments */
    .hero-visual {
        margin-top: 1rem;
        perspective: none;
        height: 250px;
    }

    .hero-bento-wrapper {
        height: 250px;
    }
}

/* Custom Styles for Metrics and Reviews */
.metrics-section {
    padding: 4rem 0;
    background: var(--bg-base);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.metrics-header-custom {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.metrics-header-custom p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.metrics-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.metric-card-custom {
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.metric-card-custom .grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
    background-size: 16px 16px;
}

.metric-card-custom .metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.metric-card-custom .metric-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-card-custom .metric-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.reviews-slider::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

.reviews-slider .review-card {
    flex: 0 0 calc(50% - 1rem);
    scroll-snap-align: start;
}

.review-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .reviews-slider .review-card {
        flex: 0 0 100%;
    }
}

/* Mobile Menu and Animations */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-base);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    padding: 1.5rem;
    padding-bottom: 5rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-menu.active {
    transform: translateX(0) !important;
}

/* Hide the mobile menu entirely on desktop to prevent horizontal scrollbars */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #mobileMenuBtn {
        display: flex !important;
    }

    .client-portal-btn,
    .nav-links {
        display: none !important;
    }

    #themeToggleMobile {
        display: flex !important;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Theme-specific icons for hero center node */
[data-theme="dark"] .icon-theme-day {
    display: none !important;
}

[data-theme="dark"] .icon-theme-night {
    display: block !important;
}

[data-theme="light"] .icon-theme-day {
    display: block !important;
}

[data-theme="light"] .icon-theme-night {
    display: none !important;
}

/* Metrics Section Custom Header */
.metrics-header-custom {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-header h2,
.metrics-header-custom h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.metrics-header-custom p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Premium Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-elevate);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    border: var(--border-subtle);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-elevate-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}

.modal-icon i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-content ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modal-content ul li i {
    font-size: 1.1rem;
}

/* Team Section */
.team-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (3 * 2rem)) / 4); /* Desktop: 4 cards */
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.team-slider::-webkit-scrollbar {
    display: none;
}

.team-card {
    scroll-snap-align: start;
    background: var(--bg-elevate);
    border: var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card:hover {
    transform: translateY(-5px);
    background: var(--bg-elevate-light);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--border-subtle);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--accent-blue);
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .team-slider {
        grid-auto-columns: calc((100% - (2 * 1.5rem)) / 3); /* Tablet: 3 cards */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-slider {
        grid-auto-columns: 100%; /* Mobile: 1 card */
        gap: 1rem;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-illustration img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Contact Section */
#contact {
    background: var(--bg-elevate);
    border-top: var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    width: 30px;
}

.contact-method span {
    color: var(--text-primary);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 1rem;
    background: var(--bg-base);
    border: var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 5px var(--glow-blue);
}

.form-response {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.form-response.success {
    color: #10b981;
}

.form-response.error {
    color: #ef4444;
}

@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-illustration {
        order: -1; /* Put image on top on mobile */
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Footer Links */
footer a {
    text-decoration: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px var(--glow-blue);
}

.loader-text {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.7);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}