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

:root {
    --primary-color: #00ffb3;
    --secondary-color: #ff2d8a;
    --accent-color: #7a3bff;
    --dark-bg: #010206;
    --card-bg: #05070f;
    --text-color: #d6d9e6;
    --border-color: #141b2e;
    --glow-primary: rgba(0, 255, 179, 0.35);
    --glow-secondary: rgba(255, 45, 138, 0.25);
}

body {
    font-family: 'Rajdhani', monospace;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(1100px 550px at 20% -10%, rgba(0, 255, 179, 0.03), transparent 75%),
        radial-gradient(900px 500px at 80% 10%, rgba(122, 59, 255, 0.03), transparent 75%),
        radial-gradient(800px 400px at 50% 100%, rgba(255, 45, 138, 0.03), transparent 78%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated starfield background */
.stars, .twinkling, .twinklingTwo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.12), rgba(255,255,255,.02)),
        radial-gradient(2px 2px at 60px 70px, rgba(255,255,255,.12), rgba(255,255,255,.02)),
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,.1), rgba(255,255,255,.02)),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,.1), rgba(255,255,255,.02)),
        radial-gradient(2px 2px at 90px 10px, rgba(255,255,255,.12), rgba(255,255,255,.02));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
}

.twinkling {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0,255,179,.12), rgba(255,255,255,.02)),
        radial-gradient(2px 2px at 60px 70px, rgba(255,45,138,.12), rgba(255,255,255,.02));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 7s infinite;
    opacity: 0.5;
}

.twinklingTwo {
    background-image: 
        radial-gradient(1px 1px at 50px 50px, rgba(122,59,255,.12), rgba(255,255,255,.02));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 9s infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(2,3,8,0.96) 0%, rgba(7,10,20,0.96) 100%);
    border-bottom: 1px solid rgba(0, 255, 179, 0.3);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 255, 179, 0.04), transparent 65%);
    opacity: 0.9;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 2, 6, 0.92) 0%, rgba(1, 2, 6, 0.88) 45%, rgba(1, 2, 6, 0.96) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-visuals {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 3rem;
    width: min(820px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

.visual-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    min-height: 190px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.16), rgba(10, 10, 20, 0.6));
    position: relative;
    overflow: hidden;
    padding: 0;
}

.visual-card.quake {
    background: radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.4), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 0, 140, 0.3), transparent 45%),
        linear-gradient(140deg, rgba(6, 10, 20, 0.95), rgba(20, 24, 40, 0.8));
}

.visual-card.delta-force {
    background: radial-gradient(circle at 10% 80%, rgba(48, 255, 128, 0.3), transparent 55%),
        radial-gradient(circle at 90% 20%, rgba(255, 196, 64, 0.25), transparent 55%),
        linear-gradient(160deg, rgba(10, 20, 14, 0.95), rgba(24, 32, 22, 0.8));
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.05);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.visual-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f7ff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visual-caption {
    margin: 1.5rem 0 0;
    color: rgba(240, 245, 255, 0.9);
    line-height: 1.5;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 3s ease-in-out infinite;
    text-shadow: 0 0 25px rgba(0, 255, 179, 0.35);
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0,255,159,0.3),
            3px 3px 0px var(--secondary-color),
            -3px -3px 0px var(--accent-color);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0,255,159,0.5),
            -3px -3px 0px var(--secondary-color),
            3px 3px 0px var(--accent-color);
    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00cc7f);
    color: var(--dark-bg);
    box-shadow: 0 0 25px var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,255,179,0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 18px rgba(122, 59, 255, 0.25);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    position: relative;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem 2rem;
    z-index: 1;
    background: rgba(1, 2, 6, 0.85);
    border: 1px solid rgba(20, 27, 46, 0.6);
    border-radius: 16px;
}

.features h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(6, 8, 16, 0.98);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 42, 68, 0.8);
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-card:hover {
    border-color: rgba(0, 255, 179, 0.6);
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 255, 179, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #c6ccdd;
    font-size: 0.95rem;
}

.playable-games {
    margin-top: 2.5rem;
    text-align: center;
}

.playable-games h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.game-card {
    position: relative;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.4rem 1.2rem;
    background: linear-gradient(140deg, rgba(10, 18, 30, 0.9), rgba(6, 10, 18, 0.95));
    color: rgba(240, 245, 255, 0.95);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

.game-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    text-shadow: 0 0 18px rgba(0, 255, 179, 0.35);
    animation: rotate 18s linear infinite;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 255, 179, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 179, 0.55);
    box-shadow: 0 22px 50px rgba(0, 255, 179, 0.18);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card__title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.game-card__tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(240, 245, 255, 0.9);
}

.game-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.game-modal.is-open {
    display: flex;
}

.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 12, 0.8);
    backdrop-filter: blur(6px);
}

.game-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 92vw);
    background: rgba(6, 10, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.game-modal__image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.game-modal__content {
    padding: 1.5rem 1.8rem 2rem;
}

.game-modal__content h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.game-modal__content p {
    color: rgba(210, 220, 240, 0.95);
    line-height: 1.7;
}

.game-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

/* Quick Start Section */
.quick-start {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(4, 6, 12, 0.95);
    border: 1px solid rgba(31, 42, 68, 0.8);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.quick-start h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    list-style: none;
}

.steps li {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(4, 6, 12, 0.98);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.steps li:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 25px rgba(0,255,179,0.2);
}

.steps a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.steps a:hover {
    text-decoration: underline;
}

/* Admin Section */
.admin-section {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(4, 6, 12, 0.95);
    border: 1px solid rgba(122, 59, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(122, 59, 255, 0.2);
    z-index: 1;
}

.admin-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.admin-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.admin-section p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.admin-section #deploy-btn {
    width: 100%;
    margin-bottom: 0;
}

.admin-section #deploy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(1, 2, 6, 0.98);
    border-top: 1px solid rgba(0, 255, 179, 0.3);
    margin-top: 5rem;
    z-index: 1;
}

footer p {
    color: #9aa3bd;
}

footer p:first-child {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-visuals {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .game-modal__image {
        height: 220px;
    }
}
