@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #8a8a93;
    --accent: #ff6b00; /* Map accent to neon orange from code.html */
    --accent-glow: rgba(255, 107, 0, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100%;
    scroll-behavior: auto; /* Standard instant scrolling for canvas mapping */
    overflow-x: hidden; /* Prevent horizontal layout overflow scrollbar */
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Loader Overlay --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 107, 0, 0.2);
}

.spinner-box {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-bottom-color: #00d9ff;
    border-radius: 50%;
    animation: spin-reverse 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.loader-progress-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loader-progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #00d9ff 100%);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 8px var(--accent);
}

.loader-status-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Animation Elements --- */
.canvas-container {
    position: fixed; /* Fixed background layout to allow natural overlays on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: var(--bg-primary);
}

#animation-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Scroll Track & Viewports --- */
#scroll-track {
    position: relative;
    width: 100%;
    height: 100vh; /* Exactly fill the viewport */
    z-index: 2;
    pointer-events: none;
}

/* --- Hero Overlay Styling --- */
.hero-overlay {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}


/* --- Cyberpunk Custom CSS from code.html --- */
.glass-card {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.section-blur-backdrop {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.neon-glow-orange {
    box-shadow: 0 0 20px -5px rgba(255, 107, 0, 0.5) !important;
}
.neon-glow-blue {
    box-shadow: 0 0 20px -5px rgba(0, 217, 255, 0.5) !important;
}
.neon-glow-pink {
    box-shadow: 0 0 20px -5px rgba(255, 20, 147, 0.5) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Interactive Cursor Canvas --- */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; /* Crucial: clicks must pass through the canvas */
    z-index: 9999;
}

/* Custom Cursor: hide default */
body {
    cursor: none;
}

/* Ensure links and interactive items also hide the default cursor */
a, button, [role="button"], input[type="submit"], select, textarea, .glass-card, img {
    cursor: none;
}
