:root {
    --bg-dark: #0a0e17;
    --primary-cyan: #00f3ff;
    --primary-purple: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Background Noise & Glow */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, rgba(189, 0, 255, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: left 0.1s ease, top 0.1s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Lighter weight for elegance */
    line-height: 1.1;
}

h1 {
    font-size: 3.5rem;
    /* Mobile first */
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.2rem;
    /* Mobile first */
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    /* Lighter body text */
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-padding {
    padding: 6rem 0;
    /* Increased spacing */
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    backdrop-filter: blur(16px);
    /* Increased blur */
    background: rgba(10, 14, 23, 0.7);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.logo img {
    height: 32px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation - Mobile First */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.main-nav.active {
    transform: translateX(0);
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
    transition: color 0.3s;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    margin-top: 1rem;
    /* Stack on mobile */
    margin-left: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 4rem;
    /* Add bottom padding for mobile scroll */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    /* Slightly reduced opacity for text readability on mobile */
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    /* Mobile */
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Vision Section */
.vision-content {
    padding: 2rem 1.5rem;
}

.vision h2 {
    font-size: 2rem;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Singularity Section (New) */
.singularity {
    background: radial-gradient(circle at center, rgba(189, 0, 255, 0.05), transparent 70%);
    text-align: center;
}

.singularity h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.impact-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 Column Mobile */
    gap: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 12px;
    padding: 3rem;
    /* Increased breathing room */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

.card-image {
    height: 220px;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    /* Dark bg for transparency */
}

/* FIXED IMAGE SIZING */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.1));
}

.service-card:hover .card-image img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(189, 0, 255, 0.3));
}

.services-grid.expanded-grid>.service-card:last-child {
    display: block;
    /* Stack on mobile */
}

.services-grid.expanded-grid>.service-card:last-child .card-image {
    width: 100%;
    margin-bottom: 1.5rem;
    height: 250px;
}

/* Process Section */
.process-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    width: 100%;
    padding: 0;
}

.process-line {
    display: none;
    /* Hide on mobile */
}

/* Ecosystem / Strategic Infrastructure */
.ecosystem-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-sub {
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-cyan);
}

.tech-stack {
    gap: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.tech-stack .verified {
    position: relative;
    padding-right: 15px;
}

.tech-stack .verified::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: 0;
    font-size: 0.7em;
    color: var(--primary-cyan);
}

/* Elite Access / Contact */
.elite-access {
    text-align: center;
}

/* Phone - Spam Protection */
.phone-display {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.phone-link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: opacity 0.3s;
    unicode-bidi: bidi-override;
    direction: ltr;
}

.phone-link:hover {
    opacity: 0.8;
}

.contact-panel p {
    margin-bottom: 2.5rem;
}

.contact-panel h2 {
    margin-bottom: 1.5rem;
}

.big-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
}

.small-print {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Footer - Multi Column */
footer {
    padding: 4rem 0 2rem;
    background: #05070c;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.brand-col p {
    margin-top: 1rem;
    max-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.footer-logo img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* -------------------------------------------------------------
   DESKTOP / TABLET OVERRIDES (Min-Width Media Queries)
------------------------------------------------------------- */
@media (min-width: 768px) {

    /* Type Scale */
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .section-padding {
        padding: 9rem 0;
    }

    /* Header */
    .glass-header {
        padding: 1.5rem 0;
    }

    .mobile-menu-btn {
        display: none;
    }

    .main-nav {
        position: static;
        height: auto;
        background: transparent;
        transform: none;
        display: flex;
        align-items: center;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 2.5rem;
        align-items: center;
    }

    .main-nav a {
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .main-nav .nav-cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn-secondary {
        margin-top: 0;
        margin-left: 1rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    /* Vision */
    .stats-grid {
        flex-direction: row;
        justify-content: center;
        gap: 6rem;
        /* Wider gap for elegance */
    }

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

    /* 5th Item Span */
    .services-grid.expanded-grid>.service-card:last-child {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .services-grid.expanded-grid>.service-card:last-child .card-image {
        width: 45%;
        margin-bottom: 0;
        height: 320px;
    }

    .services-grid.expanded-grid>.service-card:last-child .card-content {
        width: 55%;
    }

    /* Process Timeline */
    .process-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
    }

    .process-line {
        display: block;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        /* Brand column wider */
        gap: 2rem;
    }

    .brand-col {
        padding-right: 2rem;
    }
}