:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary-neon: #00f3ff;
    --secondary-neon: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(188, 19, 254, 0.15), rgba(0, 243, 255, 0.1), transparent 60%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-neon);
}

.btn-glow {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    border-radius: 5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-glow:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-neon);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    min-height: 80vh;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-neon), #8a00d4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(188, 19, 254, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Symbols */
.hero-visuals {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-symbol {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.symbol-pi {
    font-size: 8rem;
    top: 0;
    right: 20%;
    color: rgba(0, 243, 255, 0.2);
    animation-delay: 0s;
}

.symbol-sigma {
    font-size: 6rem;
    bottom: 20%;
    left: 10%;
    color: rgba(188, 19, 254, 0.2);
    animation-delay: 2s;
}

.symbol-integral {
    font-size: 7rem;
    top: 40%;
    right: 0;
    color: rgba(255, 255, 255, 0.15);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Level Sections */
.level-section {
    padding: 2rem 10%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Cards Section */
.cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    /* Adjusted padding since it's now inside level-section */
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card-link {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Glitch Effect (Simple) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    5% {
        clip: rect(65px, 9999px, 89px, 0);
    }

    10% {
        clip: rect(92px, 9999px, 2px, 0);
    }

    15% {
        clip: rect(15px, 9999px, 45px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 12px, 0);
    }

    100% {
        clip: rect(67px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 92px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    10% {
        clip: rect(2px, 9999px, 12px, 0);
    }

    15% {
        clip: rect(92px, 9999px, 2px, 0);
    }

    20% {
        clip: rect(15px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 67px, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visuals {
        width: 300px;
        height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }
}