@import url('https://fonts.fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --bg-primary: #030303;
    --bg-secondary: #0a0a0a;
    --border-color: #27272a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-green: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: none;
    overflow-x: hidden;
    opacity: 0; /* Hidden until loaded */
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255,255,255,0.02);
}

/* --- Cursor Trails --- */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

.cursor-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* --- Utilities --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

.border-theme {
    border-color: var(--border-color);
}

.system-module {
    border: 1px solid var(--border-color);
    background-color: #050505; /* Slightly lighter than pure black for depth */
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

/* Scanline effect for modules */
.system-module::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.magnetic-wrap {
    display: inline-block;
}

.project-card {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: #52525b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
}

.blinking-cursor {
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn.active::after {
    transform: scaleX(1);
}

.char-reveal {
    display: inline-block;
    opacity: 0; /* handled by GSAP */
}
