/* =========================================
   1. VARIABLES & TOKENS
   ========================================= */
:root {
    /* Brand Colors */
    --color-primary: #ccff00;
    /* Lime Green - High Energy */
    --color-primary-hover: #b3e600;
    --color-secondary: #003300;
    /* Dark Green - Nature/Tech */
    --color-dark: #050505;
    /* Deep Black - Premium Background */
    --color-dark-surface: #0f0f0f;
    --color-light: #ffffff;
    --color-gray: #a0a0a0;
    --color-glass: rgba(255, 255, 255, 0.08);
    --color-glass-strong: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* Custom cursor handling later? */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* SPOTLIGHT EFFECT */
/* SPOTLIGHT EFFECT - High Visibility */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(204, 255, 0, 0.15),
            transparent 40%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* CUSTOM SELECTION COLOR */
::selection {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-light);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* =========================================
   3. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: var(--color-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(204, 255, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--color-glass-strong);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--color-light);
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 var(--spacing-md);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast */
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.9)), url('https://images.unsplash.com/photo-1545208942-e48356f966d8?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -1;
    transform: scale(1.1);
    /* Slight zoom for parallax feel */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    to {
        transform: scale(1.2);
    }
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    animation: revealUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-delay-1 span {
    animation-delay: 0.2s;
}

.reveal-delay-2 span {
    animation-delay: 0.4s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.8s forwards;
}

/* =========================================
   6. SECTIONS
   ========================================= */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    display: inline-block;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(204, 255, 0, 0.05);
}

/* Services Grid with Spotlight Hover */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-dark-surface);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-glass);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes revealUp {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 8rem 0 4rem;
    }

    /* Adding top padding for hero on mobile to render below navbar nicely if needed */
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* Above the fullscreen menu */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}