:root {
    --bg-base: #050505; 
    --bg-surface: #121212;
    --border-color: #2a2a2a;
    --accent: #9048e6; 
    --accent-hover: #a666f2;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg-base);
    background-image: linear-gradient(rgba(5, 5, 5, 0.85), rgba(18, 18, 18, 0.95)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Navbar - Pinned flush to the absolute top edge */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-icon {
    width: 24px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-discord {
    background-color: #5865F2;
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
}

/* Main Layout */
main {
    margin-top: 50px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Hero Section & Parallax Image Styling */
.hero {
    text-align: center;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.interactive-logo {
    position: relative;
    width: 100%;
    max-width: 450px; 
    height: 240px;    
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    margin: 0 auto; 
}

.parallax-layer {
    position: absolute;
    left: 50%;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.6)); 
}

/* 1. The Skull - Pushed higher up with a higher z-index so it stays on top */
.layer-skull {
    width: 30%; 
    top: -20%;     
    transform: translateX(-50%) translateZ(50px); 
    z-index: 10;
}

/* 2. The Combined AEGO Text */
.layer-aego {
    width: 100%; 
    top: 10%;    
    transform: translateX(-50%) translateZ(20px);
    z-index: 2;
}
/* Subtitle cleanly separated below the logo */
.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

/* Cards & Components */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.card-description {
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 20px;
}

/* Countdown */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.time-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 10px;
}

.time-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.live-text {
    color: #4ade80;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    grid-column: span 4;
    padding: 20px;
}

/* IP Container */
.ip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 12px;
}

.ip-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.btn-copy {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: var(--accent-hover);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.feature-item:hover {
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .interactive-logo { max-width: 300px; height: 180px; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .ip-container { flex-direction: column; gap: 15px; text-align: center; }
    .nav-links { display: none; }
}
