/* =========================
   ROOT VARIABLES
========================= */

:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #4d4dff;
    /* Updated from #2f5dff */

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   ANIMATED BACKGROUND
========================= */

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;

    background: linear-gradient(120deg,
            #121212,
            #151515,
            #141820,
            #121212);
    background-size: 300% 300%;
    animation: subtleGradient 18s ease infinite;

    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

@keyframes subtleGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================
   UTILITIES
========================= */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 8px;
    /* Consistent rounding */
}

/* =========================
   GENERAL STYLES
========================= */

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   SCROLL ANIMATION
========================= */

html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* =========================
   PARTICLES CANVAS
   ========================= */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below content (z-index 2), above bg */
    pointer-events: none;
}

/* =========================
   LOADING SCREEN
   ========================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInContent 0.8s ease forwards;
}

.loading-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.loading-accent-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 1.5rem;
    animation: expandLine 1s ease 0.5s forwards;
}

.loading-tagline {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #888;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

/* Loading Animations */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 200px;
    }
}