:root {
    --color-primary: #0f0f10;
    /* Darker, richer charcoal */
    --color-action: #A2FF00;
    /* Electric Lime */
    --color-secondary: #F4F7F6;
    /* Soft Grey */
    --color-slate: #1e1e20;
    --color-surface: rgba(255, 255, 255, 0.03);

    /* Premium Glass Effect */
    --glass-bg: rgba(20, 20, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-stack: 'Outfit', sans-serif;

    /* Fluid Spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(2rem, 4vw, 3rem);
    --spacing-lg: clamp(4rem, 6vw, 6rem);
    --spacing-xl: clamp(6rem, 10vw, 10rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.dot {
    color: var(--color-action);
}

.highlight {
    color: var(--color-action);
}

/* Screen Reader Only - Accessibility Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Glass Utilities */
/* Glass Utilities - Premium Upgrade */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 16, 0.75);
    /* Darker blur */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
    transition: all 0.3s ease;
}

.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    /* Softer corners */
    padding: var(--spacing-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 15px 40px rgba(162, 255, 0, 0.1);
    transform: translateY(-5px);
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(162, 255, 0, 0.3));
    /* Visibility Glow */
    transition: transform 0.3s ease;
}

/* Navigation */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Mobile Responsive */
/* Mobile Menu Drawer */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    /* Animate Hamburger */
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        /* Drawer width */
        max-width: 300px;
        background: rgba(15, 15, 16, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transform: translateX(100%);
        /* Hidden by default */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        display: flex;
        /* Always flex, just hidden */
    }

    .nav-links.active {
        transform: translateX(0);
        /* Slide in */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Staggered animation for links */
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 0.5rem;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active+.nav-overlay {
        /* Requires JS to insert overlay or just use body::after */
        opacity: 1;
        pointer-events: auto;
    }
}


/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--color-action);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(162, 255, 0, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--glass-highlight);
    margin-left: var(--spacing-sm);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: #fff;
}

.btn-sm {
    background: transparent;
    border: 1px solid var(--color-action);
    color: var(--color-action);
    padding: 0.625rem 1.2rem;
    /* Increased from 0.5rem for 44px min-height */
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 44px;
    /* WCAG 2.1 AA minimum tap target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm:hover {
    background: var(--color-action);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 27, 0.85) 0%, rgba(26, 26, 27, 0.4) 100%);
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-card {
    max-width: 700px;
    padding: var(--spacing-lg);
    background: rgba(26, 26, 27, 0.6);
    /* Slightly darker for readability */
}

.overline {
    text-transform: uppercase;
    color: var(--color-action);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.05;
}

.subheadline {
    font-size: 1.2rem;
    color: #cfcfcf;
    margin-bottom: var(--spacing-md);
    max-width: 90%;
}

/* Clients Section */
.section-clients {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.clients-lead {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.clients-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.6;
}

.client-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: default;
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-action);
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--color-action);
    font-size: 1.1rem;
}

/* Solutions (Pillars) Grid */
.section-solutions {
    position: relative;
}

/* Process Timeline (Lead-to-Q2R) */
.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    display: none;
    /* Hidden on mobile, shown on desktop ideally */
}

.process-step {
    flex: 1 1 150px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-sm);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--color-action);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-action);
    margin-bottom: var(--spacing-xs);
    background: var(--color-primary);
    display: inline-block;
    padding: 0 0.5rem;
    border-radius: 4px;
}

.process-step h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.process-step p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .process-timeline::before {
        display: block;
    }
}

/* Services Grid (Core Solutions reused) */
.section-services {
    background: linear-gradient(to top, var(--color-slate) 0%, transparent 100%);
}

.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-content: center;
}

.service-card {
    height: 100%;
    padding: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-left-color: var(--color-action);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent);
}

.service-card h3 {
    color: #fff;
    margin-bottom: var(--spacing-sm);
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: #ddd;
    display: flex;
    flex-direction: column;
}

.service-card li strong {
    color: #fff;
    margin-bottom: 0.2rem;
}

/* Platforms (Tech Stack) */
.section-platforms {
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.tech-item {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.4;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    opacity: 1;
    color: var(--color-action);
    text-shadow: 0 0 15px rgba(162, 255, 0, 0.4);
    transform: scale(1.05);
}

/* Advantage Grid */
.section-advantage {
    position: relative;
}

.advantage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-content: center;
}

.advantage-item {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 1px solid rgba(162, 255, 0, 0.1);
}

.advantage-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.advantage-item p {
    color: #bbb;
}

/* Resources Grid */
.section-resources {
    padding-bottom: var(--spacing-xl);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 200px;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.resource-card p {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-action);
    margin: var(--spacing-xs) 0;
}

/* Contact */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper h2 {
    margin-bottom: var(--spacing-xs);
}

.contact-wrapper p {
    color: #aaa;
    margin-bottom: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-action);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    background: #000;
    color: #666;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.footer-powered {
    margin: var(--spacing-md) 0;
    color: #888;
    font-size: 0.9rem;
}

.footer-powered strong {
    color: #ccc;
}

.footer-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-links a:hover {
    color: #fff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {

    /* Navigation */
    .glass-nav {
        padding: 0.75rem 1rem;
    }

    /* Container - More screen usage */
    .container {
        padding: 0 1rem;
    }

    /* Hero Section - Reduce space */
    .hero {
        min-height: auto !important;
        padding: 6rem 0 3rem;
    }

    .hero-card {
        padding: 2rem 1.5rem !important;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .overline {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Glass Panels - Reduce padding and layering effects */
    .glass-panel {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }

    .glass-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

    /* Typography - Smaller for mobile */
    h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Lists - Reduce indentation */
    ul {
        padding-left: 1rem !important;
    }

    li {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem;
    }

    /* Service Cards - Simplify */
    .service-card {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Advantage Items - Reduce padding */
    .advantage-item {
        padding: 1.5rem 1rem !important;
    }

    .advantage-item h3 {
        font-size: 2rem !important;
    }

    .advantage-item p {
        font-size: 0.9rem;
    }

    /* Buttons - Stack properly */
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Grid layouts */
    .grid-pillars {
        grid-template-columns: 1fr;
    }

    /* Process Timeline - Stack properly */
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .process-step {
        width: 100%;
        padding: 1.25rem 1rem;
    }

    .step-num {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .process-step h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }

    .process-step p {
        font-size: 0.85rem !important;
    }

    /* Tech Grid - Smaller items */
    .tech-item {
        font-size: 1.2rem !important;
        padding: 0.5rem 0.75rem;
    }

    /* CTA Group - Stack buttons */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .cta-group .btn-primary,
    .cta-group .btn-secondary {
        width: 100%;
        margin: 0 !important;
    }

    /* Resource Cards */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resource-card {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .resource-card h3 {
        font-size: 1.2rem !important;
    }

    .metric {
        font-size: 1.25rem !important;
    }

    /* Footer */
    .footer-content {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Contact Form */
    .contact-wrapper {
        padding: 2rem 1.5rem !important;
    }

    .contact-wrapper h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }

    /* Logo */
    .logo-img {
        height: 40px;
    }
}

@media (min-width: 600px) {

    .grid-services,
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {

    .grid-services,
    .advantage-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-timeline {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}