/* =========================================
   AETHOS STYLESHEET - THE CREATIVE REALM
   ========================================= */

/* 1. DESIGN TOKENS
   ========================================= */
:root {
    /* --- COLOR PALETTE --- */
    --bg-deep: #05010a;        /* Deep Space Purple/Black */
    --primary: #d946ef;        /* Magenta */
    --primary-glow: rgba(217, 70, 239, 0.5);
    --secondary: #8b5cf6;      /* Violet */
    --accent: #22d3ee;         /* Cyan */
    --text-main: #ffffff;
    --text-muted: #e9d5ff;

    /* --- GLASSMORPHISM --- */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    
    /* --- TYPOGRAPHY --- */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* --- SPACING --- */
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. BACKGROUND FX (Liquid Aurora)
   ========================================= */
.background-fx {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: #020005; overflow: hidden;
}

/* Morphing Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: morph 25s infinite alternate;
    mix-blend-mode: screen; /* Blends colors beautifully */
}

.b1 { 
    top: -10%; left: -10%; width: 50vw; height: 50vw; 
    background: var(--primary); 
    animation-duration: 25s;
}
.b2 { 
    bottom: -10%; right: -10%; width: 60vw; height: 60vw; 
    background: var(--secondary); 
    animation-duration: 30s; animation-delay: -5s;
}
.b3 { 
    top: 40%; left: 30%; width: 40vw; height: 40vw; 
    background: var(--accent); 
    animation-duration: 22s; animation-delay: -10s; 
    opacity: 0.3;
}

@keyframes morph {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { transform: translate(50px, 50px) rotate(45deg) scale(1.1); border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
}

/* Canvas for Dust Particles (JS targets this) */
#dust-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 0;
    background: rgba(5, 1, 10, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { 
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; 
    letter-spacing: 1px; color: #fff; text-decoration: none;
}
.logo .accent { color: var(--primary); }

.back-btn {
    text-decoration: none; color: var(--text-muted); font-weight: 600;
    border: 1px solid var(--glass-border); padding: 8px 20px; border-radius: 30px;
    transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.back-btn:hover { 
    background: var(--primary); color: #fff; border-color: var(--primary); 
    box-shadow: 0 0 15px var(--primary-glow); 
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 70vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding-top: 100px; position: relative;
}

/* Animated Art Pulse Icon */
.art-pulse-container {
    width: 60px; height: 60px; margin-bottom: 20px;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.art-pulse {
    width: 15px; height: 15px; background: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--primary);
    animation: pulseIcon 2s infinite;
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1) rotate(45deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(45deg); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900; line-height: 0.9;
    background: linear-gradient(to bottom, #fff, #f5d0fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(217, 70, 239, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem; color: var(--text-muted); max-width: 600px;
    margin-bottom: 60px; animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Scroll Line Indicator */
.hero-scroll-indicator {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); opacity: 0.7;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}
.scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* =========================================
   5. REALMS SECTION (Grid Layout)
   ========================================= */
.realms-section {
    padding: 50px 20px 100px;
    max-width: 1400px; margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* --- GLASS CARD DESIGN --- */
.glass-card {
    position: relative;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: transform 0.1s ease-out; /* Fast ease for tilt interaction */
    transform-style: preserve-3d;
    height: 100%;
    min-height: 350px;
    display: flex; flex-direction: column;
}

/* Hover State */
.glass-card:hover {
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Layer 1: Background Gradient shape inside card */
.card-bg-layer {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translateZ(0);
}
.glass-card:hover .card-bg-layer { opacity: 1; }

/* Layer 2: Content */
.card-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column;
    transform: translateZ(20px); /* 3D pop */
}

/* Card Header */
.card-header { margin-bottom: 25px; }

.icon-box {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.5rem; margin-bottom: 15px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.realm-name {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    text-transform: uppercase; color: #fff;
    letter-spacing: 1px;
}

/* Event List Styling */
.event-list {
    list-style: none;
    margin-top: auto; /* Push to bottom */
}

.event-list li {
    font-size: 1rem; color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; align-items: center;
    transition: 0.3s;
}

.event-list li::before {
    content: ''; display: block; 
    width: 6px; height: 6px; background: var(--primary);
    border-radius: 50%; margin-right: 10px;
    opacity: 0.5; transition: 0.3s;
}

.event-list li:hover { color: #fff; padding-left: 5px; }
.event-list li:hover::before { opacity: 1; box-shadow: 0 0 8px var(--primary); }
.event-list li:last-child { border-bottom: none; }

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    text-align: center; padding: 40px;
    color: var(--text-muted); opacity: 0.6;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    font-size: 0.9rem;
}

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media(max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .hero-title { font-size: 4rem; }
    .grid { grid-template-columns: 1fr; }
    .card-content { transform: none; } /* Disable 3D depth on mobile for perf */
}

/* Collympics footer styles (added) */
.site-footer {
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border, rgba(255,255,255,0.1));
    margin-top: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.footer-content p {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted, #e9d5ff);
    opacity: 0.6;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted, #e9d5ff);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary, #d946ef);
}

.sep {
    color: var(--glass-border, rgba(255,255,255,0.1));
}