/* --- Variables & Reset --- */
:root {
    --bg-dark: #050000;
    --bg-darker: #000000;
    --primary: #ff0000;
    --primary-glow: rgba(255, 0, 0, 0.6);
    --secondary: #880000;
    --text-main: #ffffff;
    --text-muted: #8888aa;
    --glass-bg: rgba(20, 0, 0, 0.75);
    --glass-border: rgba(255, 0, 0, 0.2);

    --font-heading: 'Audiowide', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
}

/* --- Utilities --- */
.accent {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
nav.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: linear-gradient(to bottom, rgba(10, 0, 0, 0.9), rgba(10, 0, 0, 0));
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

nav.glass-nav.scrolled {
    background: rgba(10, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}



.btn-icon {
    background: transparent;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.lang-switch {
    margin-right: 0.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

.lang-text {
    letter-spacing: 1px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff0000;
}

/* Auth Buttons */
.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: var(--bg-darker);
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    transform: translateX(100%);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    filter: blur(2px) grayscale(50%);
    animation: pulseLogo 6s infinite alternate;
}

@keyframes pulseLogo {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.5;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 90%);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.glitch {
    position: relative;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* --- About Section --- */
#about {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    position: relative;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* --- Team Section --- */
#team {
    padding: 6rem 2rem;
    background: var(--bg-darker);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.team-card .role {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.team-card .name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Tools Section --- */
#tools {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    transition: 0.3s;
    border-left: 3px solid var(--primary);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(10px);
}

.tool-card .category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.tool-card .software {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Games Section --- */
#games {
    padding: 6rem 2rem;
    background: var(--bg-darker);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--primary);
}

.games-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    width: 380px;
    transition: 0.4s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(255, 0, 0, 0.15);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    height: 100%;

    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.card-content {
    padding: 2rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.game-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.status-paused {
    background-color: #e6b800;
    /* Darker Yellow for white text contrast */
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.status-dev {
    background-color: #28a745;
    /* Green */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.btn-primary.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    clip-path: none;
    border-radius: 4px;
}

/* --- Launcher Section --- */
#launcher {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.launcher-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.8), rgba(15, 0, 0, 0.95));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    max-width: 1000px;
    box-shadow: 0 0 50px -10px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

#launcher.highlight .launcher-wrapper {
    border-color: var(--primary);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
}

.launcher-visual {
    position: relative;
    flex-shrink: 0;
}

.launcher-visual img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0.2;
    z-index: 1;
}

.launcher-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.launcher-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.launcher-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary.large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

.platforms {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.platforms .separator {
    color: var(--primary);
    margin: 0 8px;
}

/* --- Contact Section --- */
#contact {
    padding: 6rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: bold;
    transition: 0.3s;
}

.contact-email:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.discord-btn {
    background: #5865F2;
    /* Discord Color */
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-btn:hover {
    background: #4752C4;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    height: 30px;
    opacity: 0.5;
}

.footer-brand p {
    color: #555;
    font-size: 0.85rem;
}

/* --- Auth Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #121216;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
}

.modal-close:hover {
    color: #fff;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInForm 0.3s ease;
}

.auth-form.active {
    display: flex;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(0, 255, 255, 0.05);
}

.hint {
    font-size: 0.7rem;
    color: #555;
    margin-top: 4px;
    display: block;
}

.btn-primary.full {
    width: 100%;
    margin-top: 0.5rem;
    clip-path: none;
    border-radius: 4px;
}

.auth-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    min-height: 20px;
}

.auth-message.error {
    color: #ff4444;
}

.auth-message.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* --- Responsive Queries --- */
@media (max-width: 900px) {
    .launcher-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-auth {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-ghost {
        text-align: center;
    }
}

/* --- EagleEngine Page Showcase --- */
.ee-showcase {
    padding-top: 10rem;
    padding-bottom: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 900px) {
    .ee-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 8rem;
    }
    
    .ee-visual-panel {
        position: static !important;
    }
}

.ee-visual-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 120px;
}

.ee-logo-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.ee-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.4));
    animation: eeLogoPulse 4s infinite alternate ease-in-out;
}

.ee-logo-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.35;
    filter: blur(30px);
    z-index: 1;
    animation: eeGlowPulse 4s infinite alternate ease-in-out;
}

@keyframes eeLogoPulse {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes eeGlowPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.55;
        transform: scale(1.15);
    }
}

.ee-content-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.ee-content-panel h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 1rem;
}

.ee-content-panel h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ee-content-panel h2::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-glow), transparent);
    margin-left: 10px;
}

.ee-content-panel p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ee-content-panel strong {
    color: #fff;
}

.ee-content-panel ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.ee-content-panel li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.ee-content-panel li::before {
    content: '▪';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px var(--primary-glow);
}