:root {
    --bg: #050505;
    --accent: #00f2ff;
    --accent-purple: #a855f7;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: #ffffff;
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.mono {
    font-family: var(--mono);
}

/* Texture Overlays */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.015) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.015) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* Mouse Glow Effect - Ultra Subtle */
.glow-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: blur(100px);
}

/* Hero Gradient Text */
.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 3px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Navigation Blur */
nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Vertical Text Helper */
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* Badge Styling - Glassmorphism */
.tag-badge {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--accent);
    padding: 0.6rem 0.9rem;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: inline-block;
    backdrop-filter: blur(12px);
    border-radius: 2px;
}

/* Project Cards */
.project-card {
    will-change: transform, opacity;
}

.project-card img {
    will-change: transform, filter;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Interactive link hovers */
a, button {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Section Reveals */
.reveal-section {
    opacity: 0;
}

@media (max-width: 768px) {
    .glow-blob {
        width: 400px;
        height: 400px;
    }
}

/* Animation Classes */
.hero-line {
    display: block;
}