:root {
    /* Colors */
    --bg-color: #00000A;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --accent-blue: #00BFFF;
    --accent-gold: #FFD700;
    --accent-purple: #BF00FF;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: #FFED4B;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
#main-header {
    background: rgba(0, 0, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

#main-nav ul {
    display: flex;
    gap: 2rem;
}

#main-nav a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

#main-nav a:hover {
    color: var(--accent-blue);
}

.start-btn {
    font-size: 0.8rem;
    padding: 8px 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.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.6;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 10, 0.3), rgba(0, 0, 10, 1));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: -webkit-linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-black {
    background-color: #000000;
}

.section-dark {
    background-color: #050510;
}

.text-gray {
    color: #666;
}

.text-blue {
    color: var(--accent-blue);
}

.text-gold {
    color: var(--accent-gold);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.center-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-icon {
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.3));
    max-width: 300px;
}

/* Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder,
.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
}

.placeholder-icon svg {
    width: 40px;
    height: 40px;
}

.blue-glow {
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
    color: var(--accent-blue);
}

.purple-glow {
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.2);
    color: var(--accent-purple);
}

.gold-glow {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
}

/* Results */
.section-results {
    background: linear-gradient(to right, #050510, #0a0a20);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.results-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-list span {
    color: var(--accent-gold);
}

/* Levels Teaser */
.section-levels-teaser {
    background: linear-gradient(45deg, #000000, #0a0510);
    text-align: center;
    padding: 8rem 0;
}

.level-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Philosophy */
.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
    padding: 2rem;
}

.philosophy-quote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: -20px;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

/* Forms */
.cyber-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-links a {
    margin-left: 2rem;
}

.copyright {
    text-align: center;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    /* Mobile Menu Toggle Styling */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
        /* Above nav */
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Nav Container */
    #main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 10, 0.98);
        padding-top: 120px;
        /* Space for upgrade button maybe or just logo */
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    #main-nav.active {
        transform: translateY(0);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #main-nav a {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    /* Adjust Hero Title */
    .hero-title {
        font-size: 2.5rem;
    }

    /* Flex Layouts to Column */
    .split-layout,
    .split-layout.reverse {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .split-layout.reverse {
        flex-direction: column-reverse;
    }

    .results-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* Levels Page Overrides */
    .level-content,
    .level-card.reverse .level-content {
        flex-direction: column;
        text-align: center;
    }

    .level-number {
        font-size: 8rem;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .big-icon {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Levels Page specific */
.levels-header {
    padding-top: 150px;
    padding-bottom: 50px;
    background: linear-gradient(to bottom, #000 0%, #050510 100%);
}

.level-section {
    padding: 2rem 0;
}

.level-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.level-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.level-number {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    font-family: var(--font-heading);
    z-index: 0;
    line-height: 1;
}

.level-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.level-card.reverse .level-content {
    flex-direction: row-reverse;
}

.level-icon-wrapper {
    flex-shrink: 0;
}

.big-icon {
    width: 120px;
    height: 120px;
}

.big-icon svg {
    width: 60px;
    height: 60px;
}

.green-glow {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.level-text h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.level-text h3 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

.level-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.level-objectives {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.level-objectives li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.level-objectives .check {
    color: var(--accent-blue);
    font-weight: bold;
}