:root {
    /* Brand Palette - Hybrid Theme */
    --primary: #10b981;
    /* Emerald/Teal Green */
    --primary-dark: #059669;
    --primary-light: #34d399;

    --hero-bg: #020617;
    /* Deep Navy/Black for Hero */
    --body-bg: #ffffff;
    /* Clean White for Body */
    --card-bg: #ffffff;
    --section-bg: #f8fafc;
    /* Light Slate for alternate sections */

    /* Typography */
    --text-hero: #ffffff;
    --text-main: #111827;
    /* Near Black */
    --text-muted: #4b5563;
    /* Slate Grey */
    --text-light: #9ca3af;
    /* Lighter Grey */

    --border: #e5e7eb;
    --border-dark: #1e293b;
    /* Border for dark sections */

    /* Design Tokens */
    --font-main: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hero: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    /* Wider container for modern feel */
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Buttons - Pill Shape */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: white;
}

/* Navbar - Floating Glass Pill */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.8);
    /* Dark glass for contrast against both hero and body */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-pill);
}

.nav-btn:hover {
    background: var(--primary-dark);
}

/* Hero Section - The "Card" Look */
.hero-wrapper {
    padding: 120px 24px 60px;
    /* Padding for the fixed navbar */
    background-color: var(--body-bg);
}

.hero {
    background-color: var(--hero-bg);
    border-radius: var(--radius-lg);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abstract Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-dark);
    animation: float 20s infinite alternate;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #3b82f6;
    /* localized blue accent */
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 32px;
    line-height: 1.05;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    /* Light slate */
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Client Marquee (Light Theme) */
.client-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 40px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 80px;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scroll 30s linear infinite;
    min-width: 100%;
}

.client-logo {
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Sections - General Clean Layout */
.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--section-bg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    color: var(--text-main);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Cards (Services & Problems) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Adjusted min width */
    gap: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    /* Light Teal tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 32px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Micro-list inside cards */
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Testimonials - Grid Layout */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.t-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--section-bg);
}

.t-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.t-company {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.t-quote {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 32px;
}

.t-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--section-bg);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.stat-item h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Process Section */
.process-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    top: 60px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: var(--border);
    z-index: 0;
    border-radius: 4px;
    overflow: hidden;
    /* Ensure fill stays inside */
}

/* The Filling Line */
.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Trigger fill when container is visible */
.process-container.visible .process-line::after {
    width: 100%;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.step-circle {
    width: 45px;
    height: 45px;
    background: var(--hero-bg);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 4px solid var(--body-bg);
    /* White ring to separate from line */
    box-shadow: 0 0 0 4px var(--primary);
    /* Outer ring */
    transition: 0.3s;
}

.process-step:hover .step-circle {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.big-stat {
    text-align: center;
    padding: 40px;
    background: var(--section-bg);
    border-radius: var(--radius-md);
}

.big-stat-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.big-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer (Dark to match Hero) */
.footer {
    background-color: var(--hero-bg);
    color: white;
    padding: 100px 0 40px;
    text-align: center;
}

.footer h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer p {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-bottom: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 80px;
}

/* Footer specific button fix */
.footer .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.footer .btn-outline:hover {
    background-color: #ffffff;
    color: var(--hero-bg);
    border-color: #ffffff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Mobile Optimization */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Navbar - Dock to top, no float */
    .navbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        padding: 16px !important;
        z-index: 100 !important;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-wrapper {
        padding: 90px 16px 40px !important;
    }

    .hero {
        padding: 60px 20px !important;
        min-height: auto !important;
    }

    .hero-cta {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Typography Reduction */
    h1 {
        font-size: 2.5rem !important;
        word-wrap: break-word;
    }

    h2 {
        font-size: 2rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 32px;
    }

    /* Grids - Force Stacking */
    .card-grid {
        grid-template-columns: 1fr !important;
    }

    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }

    /* Layout - Force Vertical */
    .about-container {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-links {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Process Section Mobile - Left Aligned Timeline */
    .process-container {
        flex-direction: column !important;
        gap: 0 !important;
        padding-left: 10px !important;
        /* give some edge space */
    }

    .process-step {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 0 0 40px 0 !important;
        /* Remove default side padding */
    }

    .step-circle {
        margin: 0 !important;
        flex-shrink: 0;
        z-index: 2;
        background: var(--body-bg);
    }

    .step-content {
        padding-left: 24px;
        padding-top: 5px;
        /* Visual alignment with circle */
    }

    .process-line {
        width: 2px !important;
        height: 100% !important;
        /*
           Container pad-left: 10px
           Circle center: 45/2 = 22.5px
           Line left = 10 + 22.5 = 32.5px
        */
        left: 32.5px !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        background: var(--border);
        overflow: hidden;
    }

    .process-line::after {
        width: 100%;
        height: 0%;
        top: 0;
        left: 0;
        transition: height 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .process-container.visible .process-line::after {
        width: 100%;
        height: 100%;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }

    .footer h2 {
        font-size: 2.25rem;
    }
}