:root {
    --bg-obsidian: #030008;
    --bg-surface: #0a011a;
    --accent-color: #a855f7;
    --border-color: rgba(168, 85, 247, 0.3);
    --glow-color: rgba(168, 85, 247, 0.2);
    --text-main: #e9d5ff;
    --text-dim: #7e22ce;
    --text-muted: #4c1d95;
}

* {
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}

/* Smokey Purple Background */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.smoke-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: float 25s infinite ease-in-out;
}

.smoke-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.smoke-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c084fc 0%, transparent 70%);
    top: 40%;
    right: -8%;
    animation-delay: 8s;
}

.smoke-blob-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #9333ea 0%, transparent 70%);
    bottom: -20%;
    left: 25%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
    25% {
        opacity: 0.18;
    }
    33% {
        transform: translate(120px, -80px) scale(1.15);
    }
    50% {
        opacity: 0.15;
    }
    66% {
        transform: translate(-80px, 120px) scale(0.95);
    }
    75% {
        opacity: 0.2;
    }
}

/* Particle System */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.4;
    }
    10% {
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

.mac-window {
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-obsidian));
    border: 1px solid var(--border-color);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.9), 0 0 40px var(--glow-color);
    position: relative;
    transition: all 0.3s ease;
    max-width: 1100px;
    min-height: 85vh;
    z-index: 10;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a1025;
    transition: all 0.3s ease;
}

.mac-window:hover .traffic-light.red { background: #ff5f57; }
.mac-window:hover .traffic-light.yellow { background: #febc2e; }
.mac-window:hover .traffic-light.green { background: #28c840; }

.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    box-shadow: 0 0 15px var(--accent-color);
}

.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--accent-color);
}

.content-section {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spine {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.tab-active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.card-purple {
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.card-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.15));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.card-purple:hover::before {
    opacity: 1;
}

.card-purple:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px var(--glow-color);
    transform: translateY(-4px);
}

.scanline {
    width: 100%;
    height: 2px;
    background: var(--glow-color);
    position: absolute;
    z-index: 10;
    top: 0;
    pointer-events: none;
    animation: scan 8s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    from { top: 0; }
    to { top: 100%; }
}

.fullscreen {
    padding: 0 !important;
}

.fullscreen .mac-window {
    border-radius: 0 !important;
    max-width: 100% !important;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.project-card {
    background: rgba(10, 1, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px var(--glow-color);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInScroll 1s ease-out 2s forwards;
    margin-top: 60px;
}

@keyframes fadeInScroll {
    to {
        opacity: 0.6;
    }
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    position: relative;
    opacity: 0.7;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
        top: 16px;
    }
}

.scroll-arrow {
    color: var(--accent-color);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Hide scroll indicator when not on home content */
.hide-scroll-indicator {
    display: none;
}
