:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; 
}

/* --- SPLASH SCREEN ANIMATIONS --- */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #050505;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fade out the whole screen after 2.8s */
    animation: fadeOutSplash 0.5s ease-out forwards;
    animation-delay: 2.8s; 
    pointer-events: none;
}

.splash-logo {
    width: 300px;
    max-width: 80%;
    opacity: 0;
    position: relative; z-index: 2;
    animation: slamLogoHard 0.7s cubic-bezier(0.25, 1, 0.3, 1.5) forwards;
    animation-delay: 0.3s;
}

/* Hard Slam Keyframes */
@keyframes slamLogoHard {
    0% { transform: scale(5) rotate(0deg); opacity: 0; filter: blur(10px); }
    60% { transform: scale(0.9) rotate(-5deg); opacity: 1; filter: blur(0px); }
    80% { transform: scale(1.05) rotate(-2deg); }
    100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}

@keyframes fadeOutSplash {
    0% { opacity: 1; pointer-events: all; }
    99% { pointer-events: all; }
    100% { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* --- PAGE CONTENT ENTRY ANIMATION --- */
/* This makes the nav and main content slide down after splash */
@keyframes contentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- DUST EFFECT --- */
.dust-container {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 1px; height: 1px; z-index: 1;
}

.dust {
    position: absolute; display: block; width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.7); border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,255,255,0.9); opacity: 0;
    transform: rotate(var(--angle)) translateX(0px);
    animation: dustBurst 0.8s ease-out forwards;
    animation-delay: calc(0.45s + var(--delay));
}

@keyframes dustBurst {
    0% { opacity: 1; transform: rotate(var(--angle)) translateX(0px) scale(0.5); }
    100% { opacity: 0; transform: rotate(var(--angle)) translateX(var(--dist)) scale(3); }
}


/* --- BACKGROUND --- */
.parallax-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-image: url('dark-nebula.jpg'); 
    background-size: cover; background-position: center;
    background-attachment: fixed;
    filter: brightness(0.3) grayscale(100%);
    z-index: -1;
}

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    background: transparent; backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent; padding-top: 20px; 
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    
    /* Animation: Waits 3s, then slides down */
    animation: contentSlideIn 1s ease-out 3s backwards;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(15px);
    padding-top: 0px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-content {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem; height: 90px;
    display: flex; align-items: center; justify-content: space-between; position: relative;
}
.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }
.nav-center {
    position: absolute; left: 50%; transform: translateX(-50%);
    height: 100%; display: flex; align-items: center;
}
.logo-img {
    height: 80px; width: auto; max-width: 300px;
    object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: height 0.4s ease;
}
nav.scrolled .logo-img { height: 60px; }

/* Status Badge */
.status-badge {
    display: flex; align-items: center; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
    padding: 0.5rem 1rem; border-radius: 50px; border: 1px solid var(--border-color);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.pulsing-dot {
    width: 6px; height: 6px; background-color: #4ade80; border-radius: 50%; margin-right: 8px;
    box-shadow: 0 0 10px #4ade80; animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Discord Button */
.nav-btn {
    color: white; text-decoration: none; font-weight: 600; font-size: 0.85rem;
    padding: 0.6rem 1.2rem; border: 1px solid var(--border-color); border-radius: 4px;
    transition: all 0.3s ease; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
}
.nav-btn:hover { background: white; color: black; }

/* Main Layout */
main { 
    max-width: 1000px; margin: 0 auto; padding: 0 2rem;
    /* Animation: Waits 3.2s, then slides down */
    animation: contentSlideIn 1s ease-out 3.2s backwards;
}

.hero-section {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding-top: 150px; padding-bottom: 50px; gap: 3rem;
}
.hero-text h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 1rem; text-transform: uppercase;
}

/* STRETCHED TEXT CLASS */
.gradient-text {
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    
    /* Stretching Logic */
    display: inline-block;
    transform: scaleX(1.5);
    transform-origin: center;
    margin: 0 10px;
}

.hero-text p {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2rem auto;
}
.cta-button {
    display: inline-block; background: white; color: black;
    padding: 1rem 3rem; font-weight: 700; text-decoration: none;
    border-radius: 4px; box-shadow: 0 0 20px rgba(255,255,255,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 0 35px rgba(255,255,255,0.4); }
.ui-showcase { width: 100%; max-width: 650px; perspective: 1000px; }
.ui-wrapper {
    position: relative; animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d; transition: transform 0.5s ease;
}
.ui-wrapper:hover { transform: rotateX(5deg) scale(1.02); }
.ui-img {
    width: 100%; height: auto; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); display: block;
}
.glow-effect {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px; box-shadow: 0 0 40px rgba(255,255,255,0.1); z-index: -1;
}
@keyframes float {
    0% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(2deg); }
    100% { transform: translateY(0px) rotateX(0deg); }
}
.features-section { padding: 4rem 0; text-align: center; }
.features-section h2 { font-size: 1.5rem; margin-bottom: 3rem; letter-spacing: 3px; color: var(--text-secondary); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 2rem; border-radius: 8px; text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: white; }
.icon { font-size: 2rem; margin-bottom: 1rem; filter: grayscale(100%); }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }
.info-section { padding: 4rem 0 6rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.info-box {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 1.5rem 3rem; border-radius: 8px; text-align: center; min-width: 200px;
}
.info-label { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem; letter-spacing: 1px; font-weight: 600; }
.info-value { display: block; font-size: 1.5rem; font-weight: 800; }
footer {
    border-top: 1px solid var(--border-color); padding: 2rem;
    text-align: center; background: rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 1rem;
    font-size: 0.85rem; color: var(--text-secondary);
}
.footer-links a { color: var(--text-secondary); text-decoration: none; margin: 0 10px; }
.footer-links a:hover { color: white; }
@media (max-width: 768px) {
    .nav-content { height: auto; padding: 1rem; flex-direction: column; gap: 15px; }
    .nav-center { position: static; transform: none; margin: 10px 0; }
    .nav-left, .nav-right { width: 100%; justify-content: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-section { padding-top: 200px; }
}
