/* --- FONT FACE --- */
@font-face {
    font-family: 'GameFont';
    src: url('assets/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Main Background Colors */
    --bg-center: #1a2639;
    --bg-edge: #0b121e;
    
    /* User Specified Colors */
    --c-luma-blue: #3270cb;
    --c-panel-bg: #1c2e4d96;
    
    --c-text-muted: #bfcdxe;
    --font-main: 'GameFont', sans-serif;
    
    --radius: 3px;
}

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

body {
    background-color: var(--bg-edge);
    color: #ffffff;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    scroll-behavior: smooth; 
}

/* --- SMOOTH GPU BACKGROUND --- */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--bg-center) 0%, var(--bg-edge) 100%);
    overflow: hidden;
}

/* Layer 1: Small Stars */
.stars-sm {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 30% 15%, #fff, transparent),
        radial-gradient(1px 1px at 40% 40%, #fff, transparent),
        radial-gradient(1px 1px at 50% 20%, #fff, transparent),
        radial-gradient(1px 1px at 60% 60%, #fff, transparent),
        radial-gradient(1px 1px at 70% 35%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff, transparent),
        radial-gradient(1px 1px at 90% 50%, #fff, transparent),
        radial-gradient(1px 1px at 15% 80%, #fff, transparent),
        radial-gradient(1px 1px at 35% 90%, #fff, transparent),
        radial-gradient(1px 1px at 55% 75%, #fff, transparent),
        radial-gradient(1px 1px at 75% 85%, #fff, transparent),
        radial-gradient(1px 1px at 95% 95%, #fff, transparent);
    background-size: 50% 100%;
    opacity: 0.6;
    will-change: transform;
    animation: drift 120s linear infinite;
}

/* Layer 2: Large Stars */
.stars-lg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 5% 5%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 25% 25%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 45% 45%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 65% 15%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 85% 65%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 15% 55%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,0.9), transparent 4px),
        radial-gradient(2px 2px at 90% 35%, rgba(255,255,255,0.9), transparent 4px);
    background-size: 50% 100%;
    opacity: 0.8;
    will-change: transform;
    animation: drift 80s linear infinite;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: twinkle 5s infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    background: rgba(28, 46, 77, 0.95);
    border-bottom: 0.25rem solid var(--c-luma-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

header.visible {
    transform: translateY(0);
}

.header-logo img {
    height: 32px;
    image-rendering: pixelated;
    margin-top: 6px; 
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--c-luma-blue);
    color: white;
    font-family: var(--font-main);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0.6rem 2rem;
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-header {
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-logo {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    margin-bottom: 1rem;
    animation: gentleFloat 5s ease-in-out infinite;
}

@keyframes gentleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero-text {
    font-size: 1.2rem;
    color: #dbe4f0;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* --- SLIDESHOW --- */
.video-wrapper {
    position: relative;
    background: #000;
    border: 0.25rem solid var(--c-luma-blue);
    border-radius: var(--radius);
    box-shadow: 0 0 25px rgba(50, 112, 203, 0.4);
    aspect-ratio: 16/9;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* --- INFO SECTION --- */
.info-section {
    background: linear-gradient(to bottom, transparent, rgba(5, 8, 16, 0.5));
    padding: 4rem 2rem 6rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.8);
}

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

/* --- FEATURE CARDS --- */
.feature-card {
    background-color: var(--c-panel-bg);
    border: 0.25rem solid var(--c-luma-blue);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.feature-text {
    color: #e0e6ed;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background: #0b121e;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 0.25rem solid var(--c-luma-blue);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--c-luma-blue);
    text-decoration: underline;
}

.copyright {
    color: #6a7b9c;
    font-size: 0.9rem;
}

/* --- STATUS PAGE / RESET CONTAINER --- */
.status-page {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.status-card {
    background-color: var(--c-panel-bg);
    border: 0.25rem solid var(--c-luma-blue);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem; 
}

.status-card p {
    margin: 0;
}

.status-card h2 {
    margin: 0;
    white-space: nowrap; 
}

/* Password Reset Dedicated Styles */
.reset-container {
    max-width: 400px;
    margin: 150px auto 50px auto;
    background-color: var(--c-panel-bg);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 0.25rem solid var(--c-luma-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
}

.reset-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: var(--radius);
    border: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    color: #000;
}

/* Responsive tweaks */
@media (max-width: 850px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .button-group {
        justify-content: center;
    }
    .video-wrapper {
        margin-top: 1rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    .status-card h2 {
        white-space: normal; 
    }
    .reset-container {
        margin: 120px 20px 50px 20px;
    }
}
