/* --- GLOBAL SETTINGS --- */
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #2e0202; /* Royal Maroon Base */
    color: #fefce8;
    -webkit-tap-highlight-color: transparent;
}

/* --- BACKGROUND ANIMATION LAYER --- */
.moving-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(234, 179, 8, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 179, 8, 0.05) 1px, transparent 1px);
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* --- TEXT EFFECTS --- */
.text-glow { text-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.text-glow-strong { text-shadow: 0 0 20px rgba(234, 179, 8, 0.8), 0 0 40px rgba(234, 179, 8, 0.4); }

/* --- GLASS CARDS & EFFECTS --- */
.glass-card {
    /* Default Glow Color is Gold */
    --glow-color: #eab308; 
    
    background: linear-gradient(145deg, rgba(60, 10, 10, 0.4), rgba(40, 5, 5, 0.6)); /* Reddish tint for maroon */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(234, 179, 8, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Dynamic Hover Glow based on Event Type */
.hover-glow:hover {
    border-color: var(--glow-color);
    box-shadow: 0 0 25px var(--glow-color);
    transform: translateY(-5px);
}
.hover-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
    opacity: 0.2;
    transition: left 0.5s;
}
.hover-glow:hover::before {
    left: 100%;
}

/* --- LOGO ANIMATION --- */
@keyframes logo-float-3d {
    0%, 100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 10px 10px rgba(234, 179, 8, 0.2)); }
    50% { transform: translateY(-5px) scale(1.05); filter: drop-shadow(0 20px 20px rgba(234, 179, 8, 0.5)); }
}
.logo-breath { animation: logo-float-3d 3s ease-in-out infinite; }

/* --- UI ELEMENTS --- */
.tech-cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a0202; }
::-webkit-scrollbar-thumb { background: #ca8a04; border-radius: 3px; }

#typewriter::after { content: '|'; animation: blink 1s infinite; color: #eab308; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.interactable { cursor: pointer; user-select: none; }

/* Mobile Menu */
.mobile-link { position: relative; padding-bottom: 5px; transition: all 0.3s ease; }
.mobile-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: #facc15; transition: all 0.3s ease; transform: translateX(-50%);
}
.mobile-link:hover::after { width: 100%; }

/* Navigation Hover Line */
.nav-link { position: relative; }
.nav-link::before {
    content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0;
    background-color: #eab308; transition: width 0.3s ease;
}
.nav-link:hover::before { width: 100%; }

.timeline-line { box-shadow: 0 0 15px rgba(234, 179, 8, 0.2); }