﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--primary-bg) !important;
    background-image: none !important;
}

/* ===== Theme Toggle Position ===== */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 3;
}

/* ===== Particles Layer ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ===== Hero Wrapper ===== */
.hero-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: transparent;
    transition: transform 0.2s ease;
}

/* ===== Hero Section ===== */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 960px;
    width: 100%;
    text-align: center;
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    backdrop-filter: blur(14px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent);
    transition: transform 0.3s ease;
}

    .hero-content::before {
        content: "";
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--accent-2), transparent 70%);
        opacity: 0.25;
        filter: blur(80px);
        animation: floatAura 6s ease-in-out infinite;
        z-index: -1;
    }

    .hero-content h1 {
        font-size: 4rem;
        font-weight: 800;
        background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 5s linear infinite, titlePop 1s ease forwards, glitch 2s steps(5, end) 1s 1;
        text-shadow: 0 0 20px var(--accent);
        letter-spacing: 1.5px;
    }

    .hero-content p {
        font-size: 1.4rem;
        margin-top: 1rem;
        opacity: 0;
        animation: fadeInDelayed 1.2s ease forwards;
        animation-delay: 0.4s;
        background: linear-gradient(90deg, var(--accent-2), var(--accent));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 8px var(--accent-2);
    }

    .hero-content a {
        margin-top: 2rem;
        padding: 14px 32px;
        background: linear-gradient(45deg, var(--accent), var(--accent-2));
        color: #fff;
        text-decoration: none;
        border-radius: 10px;
        font-weight: bold;
        transition: all 0.3s ease;
        box-shadow: 0 0 12px var(--accent);
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInDelayed 1.2s ease forwards;
        animation-delay: 0.8s;
        position: relative;
        overflow: hidden;
        font-size: 1.1rem;
    }

        .hero-content a::before {
            content: "";
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            background: var(--accent);
            opacity: 0.2;
            z-index: -1;
            transition: opacity 0.3s ease;
            filter: blur(10px);
            border-radius: 12px;
        }

        .hero-content a::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: -100%;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
            transform: skewX(-20deg);
            transition: left 0.4s ease;
            z-index: 1;
        }

        .hero-content a:hover::after {
            left: 100%;
        }

        .hero-content a:hover {
            transform: scale(1.06);
            box-shadow: 0 0 20px var(--button-glow), 0 0 35px var(--button-glow);
        }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelayed {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes floatAura {
    0%, 100% {
        transform: translateX(-50%) translateY(-10px);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px red, -2px -2px blue;
    }

    20% {
        text-shadow: -1px 1px green, 1px -1px purple;
    }

    40% {
        text-shadow: 3px 0 red, -3px 0 blue;
    }

    60% {
        text-shadow: 0 2px purple, 0 -2px lime;
    }

    80% {
        text-shadow: -2px 2px orange, 2px -2px cyan;
    }

    100% {
        text-shadow: 0 0 var(--accent);
    }
}

/* ============================
   MOBILE RESPONSIVE OVERRIDES
   ============================ */
@media (max-width: 480px) {

    .hero-wrapper {
        height: auto;
        min-height: 100vh;
        padding: 1.25rem;
        align-items: flex-start;
    }

    .hero-content {
        padding: 1.5rem;
        border-radius: 18px;
        max-width: 100%;
        margin-top: 5.5rem; /* keeps it below your fixed nav */
        backdrop-filter: blur(10px) saturate(160%);
    }

        .hero-content::before {
            top: -140px;
            width: 240px;
            height: 240px;
            opacity: 0.18;
            filter: blur(70px);
        }

        .hero-content h1 {
            font-size: clamp(2rem, 9vw, 2.8rem);
            line-height: 1.05;
            letter-spacing: 0.2px;
            /* Stop the "smeared" look on tiny screens */
            animation: titlePop 0.9s ease forwards; /* drop shine+glitch on mobile */
            text-shadow: 0 0 10px var(--accent);
        }

        .hero-content p {
            font-size: 1.05rem;
            line-height: 1.4;
            margin-top: 0.75rem;
            text-shadow: 0 0 6px var(--accent-2);
        }

        .hero-content a {
            display: inline-block;
            width: 100%;
            max-width: 260px;
            padding: 12px 18px;
            font-size: 1rem;
            margin-top: 1.4rem;
        }
}
