/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #0a0a0a;
    position: relative;
}

* {
    font-weight: 400 !important;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Headings and logo use serif font */
h1, h2, h3, h4, h5, h6,
.logo {
    font-family: 'Instrument Serif', serif !important;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Override h4 in About section to use sans-serif */
#about h4 {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Grain Effect Overlay
   ========================================================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-size: 150px 150px;
    animation: grain-anim 0.4s steps(1) infinite;
}

body > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Navigation & Footer
   ========================================================================== */

nav {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

footer {
    background-color: #000000;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

/* ==========================================================================
   News Ticker
   ========================================================================== */

.ticker-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: scroll-ticker 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    padding: 0 3rem;
    display: inline-flex;
    align-items: center;
    height: 40px;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}