@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --primary: #8B5CF6;
    /* Violet 600 */
    --secondary: #06B6D4;
    /* Cyan 500 */
    --accent: #F43F5E;
    /* Rose 500 */
    --bg-dark: #020617;
    /* Slate 950 */
    --bg-light: #F8FAFC;
    /* Slate 50 */
}

body {
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Base High-Contrast Themes */
.dark {
    background-color: #020617;
    background-image: radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
    color: #f8fafc;
}

.light {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
    color: #0f172a;
}

/* Hyper-Readability Engines */
.light .text-slate-400 {
    color: #475569 !important;
}

.light .text-slate-500 {
    color: #334155 !important;
}

.light .text-slate-600 {
    color: #1e293b !important;
}

.light .text-white {
    color: #010101 !important;
}

.light .shimmer-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    background-image: linear-gradient(135deg, #4338ca, #6d28d9) !important;
}

.light .border-white\/5,
.light .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light .glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
}

.light .bg-black\/40,
.light .bg-black\/20 {
    background-color: rgba(255, 255, 255, 0.9) !important;
}


/* Mesh Gradients */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.6;
}

.mesh-ball {
    position: absolute;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50vw, 50vh) scale(1.5);
    }
}

/* Glassmorphism V2 */
.glass {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.light .glass {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 50px -10px rgba(0, 0, 0, 0.08);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.glow-rose {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.2);
}


/* Gen-Z Buttons */
.btn-primary {
    @apply px-8 py-4 rounded-full font-bold transition-all active:scale-95;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Text Gradient */
.text-shimmer {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Tech Label */
.tech-label {
    font-family: 'JetBrains Mono', monospace;
    @apply text-[10px] uppercase tracking-[0.2em] font-bold px-3 py-1 rounded-full border border-white/10;
}

.light .tech-label {
    @apply border-black/10 text-slate-700;
}


/* Custom Scrollbar Gen-Z */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(transparent, var(--primary), transparent);
    border-radius: 10px;
}

/* Card Hover Effects */
.card-genz {
    @apply transition-all duration-500 hover:border-purple-500/50 hover:bg-white/5;
}

.card-genz:hover .icon-container {
    @apply scale-110 rotate-6 bg-purple-500 text-white shadow-[0_0_20px_rgba(168, 85, 247, 0.4)];
}

/* Animations */
.reveal {
    animation: reveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal & Scanline Effects */
.terminal-window {
    @apply bg-black/80 border border-white/10 rounded-xl overflow-hidden shadow-2xl;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    @apply bg-white/5 px-4 py-2 flex items-center justify-between border-b border-white/5;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary);
    }
}