/* ===== CSS Variables ===== */
:root {
    color-scheme: dark;
    --bg-primary: #305050;
    --bg-secondary: #375757;
    --bg-tertiary: #3c6464;
    --text-primary: #ffffff;
    --text-secondary: #ccdde8;
    --text-muted: #a8bfd4;
    --accent-primary: #14b8a6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #06b6d4 100%);
    --border-color: rgba(255, 255, 255, 0.28);
    --card-bg: rgba(48, 80, 80, 0.82);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.22);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

html.blackhole-active,
html.blackhole-active body,
body.blackhole-active,
body.blackhole-active *,
html.blackhole-cooldown,
html.blackhole-cooldown body,
body.blackhole-cooldown,
body.blackhole-cooldown * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.blackhole-active *:not(.black-hole-vortex):not(.bh-shockwave) {
    pointer-events: none !important;
}

body.blackhole-active {
    cursor: grabbing !important;
}

body.blackhole-cooldown {
    cursor: default !important;
}

body.blackhole-active ::selection {
    background: transparent;
}

/* ===== Custom Cursor - Code Brackets ===== */
.cursor, .cursor-follower {
    display: none;
}

/* Code bracket cursor */
@media (pointer: fine) {
    * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='monospace' font-size='36' font-weight='bold' fill='%2314b8a6'%3E%3C/%3E%3C/text%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='monospace' font-size='36' font-weight='bold' fill='%2306b6d4' opacity='0.7' transform='translate(2,2)'%3E%3C/%3E%3C/text%3E%3C/svg%3E") 16 16, auto;
    }

    a, button, input, textarea, .btn,
    [role="button"], [onclick], label[for],
    .btn-primary, .btn-outline, .btn-full,
    .about .btn, .projects-cta a,
    .nav-links a, .nav-toggle,
    .project-link, .footer-socials a, .footer-logo {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Crect x='8' y='12' width='48' height='40' rx='4' fill='%230d1515' stroke='%2314b8a6' stroke-width='2'/%3E%3Ctext x='20' y='38' font-family='monospace' font-size='18' font-weight='bold' fill='%2314b8a6'%3E%7B%7D%3C/text%3E%3Ccircle cx='16' cy='20' r='2' fill='%23ef4444'/%3E%3Ccircle cx='24' cy='20' r='2' fill='%23eab308'/%3E%3Ccircle cx='32' cy='20' r='2' fill='%2322c55e'/%3E%3Cline x1='40' y1='28' x2='52' y2='28' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='40' y1='34' x2='48' y2='34' stroke='%23a855f7' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='40' y1='40' x2='54' y2='40' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer !important;
    }

    /* Disable animations/transforms on hero elements to prevent cursor flicker */
    .hero-cta .btn-primary,
    .hero-cta .btn-primary:hover {
        animation: none !important;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3) !important;
        transition: none !important;
    }

    .hero-socials a,
    .hero-socials a:hover {
        transform: none !important;
        transition: color 0.3s ease, border-color 0.3s ease !important;
    }

    /* Project cards - default cursor, only icons get special cursor */
    .project-card,
    .project-card *,
    .project-image,
    .project-content,
    .project-content * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='monospace' font-size='36' font-weight='bold' fill='%2314b8a6'%3E%3C/%3E%3C/text%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-family='monospace' font-size='36' font-weight='bold' fill='%2306b6d4' opacity='0.7' transform='translate(2,2)'%3E%3C/%3E%3C/text%3E%3C/svg%3E") 16 16, auto !important;
    }

    /* Only project link icons get the special cursor */
    .project-link,
    .project-link * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Crect x='8' y='12' width='48' height='40' rx='4' fill='%230d1515' stroke='%2314b8a6' stroke-width='2'/%3E%3Ctext x='20' y='38' font-family='monospace' font-size='18' font-weight='bold' fill='%2314b8a6'%3E%7B%7D%3C/text%3E%3Ccircle cx='16' cy='20' r='2' fill='%23ef4444'/%3E%3Ccircle cx='24' cy='20' r='2' fill='%23eab308'/%3E%3Ccircle cx='32' cy='20' r='2' fill='%2322c55e'/%3E%3Cline x1='40' y1='28' x2='52' y2='28' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='40' y1='34' x2='48' y2='34' stroke='%23a855f7' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='40' y1='40' x2='54' y2='40' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer !important;
        pointer-events: auto !important;
    }

    /* Ensure ALL children of other clickable elements show the cursor */
    .btn *,
    .btn-primary *, .btn-outline *,
    .nav-links a *,
    .footer-socials a *,
    .hero-socials a *,
    .projects-cta a *,
    .footer-logo * {
        pointer-events: none !important;
    }

    /* Terminal - use normal system cursors, no code icon */
    .terminal-overlay,
    .terminal-overlay * {
        cursor: default !important;
    }
    .terminal-overlay button,
    .terminal-overlay .terminal-close-btn {
        cursor: pointer !important;
    }
    .terminal-overlay input,
    .terminal-overlay .terminal-input {
        cursor: text !important;
    }
}

/* Code symbol trail */
.code-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 10px currentColor;
    animation: code-trail-fade 1s ease-out forwards;
}

@keyframes code-trail-fade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
    }
}

/* Matrix Rain */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* 3D Hero Tilt */
.hero {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Spotlight Effect */
.spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: none;
    font-family: inherit;
}


.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(20, 184, 166, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(24, 40, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #14b8a6;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
    opacity: 0.3;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #14b8a6 15%,
        #06b6d4 30%,
        #a855f7 45%,
        #ec4899 60%,
        #f97316 75%,
        #eab308 90%,
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(20,184,166,0.5), transparent);
    transform: translateX(-100%);
    border-radius: 50%;
}

/* Click Confetti Particles */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 2px;
    animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* Magic Sparkle Trail */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Glowing hover effect for cards */
.skill-category::before,
.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(20, 184, 166, 0) 40%,
        rgba(20, 184, 166, 0.4) 50%,
        rgba(20, 184, 166, 0) 60%,
        transparent 100%
    );
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before,
.project-card:hover::before {
    opacity: 1;
    animation: card-glow 1.5s linear infinite;
}

@keyframes card-glow {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.skill-category,
.project-card {
    position: relative;
}

/* ===== WATER RIPPLE EFFECT ===== */
.ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    border: 2px solid rgba(20, 184, 166, 0.8);
    animation: ripple-expand 1s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* ===== MAGNETIC BUTTONS ===== */
.btn {
    transition: all 0.3s ease, transform 0.1s ease;
}

/* ===== GLITCH EFFECT ===== */
.hero-name {
    position: relative;
}

.hero-name:hover {
    animation: shimmer 3s linear infinite, glitch 0.3s ease infinite;
}

body.blackhole-active .hero-name:hover,
body.blackhole-cooldown .hero-name:hover {
    animation: none;
}

body.blackhole-active .hero-name,
body.blackhole-cooldown .hero-name,
body.blackhole-active .hero-name:hover,
body.blackhole-cooldown .hero-name:hover {
    text-shadow: none !important;
    filter: none !important;
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
            -2px 0 #ff00ff,
            2px 0 #00ffff;
    }
    25% {
        text-shadow:
            2px 0 #ff00ff,
            -2px 0 #00ffff;
    }
    50% {
        text-shadow:
            -1px 2px #ff00ff,
            1px -2px #00ffff;
    }
    75% {
        text-shadow:
            1px -1px #ff00ff,
            -1px 1px #00ffff;
    }
}

/* ===== FLOATING 3D SHAPES ===== */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    filter: blur(1px);
}

/* ===== HOLOGRAPHIC PROFILE ===== */
.image-placeholder {
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(20, 184, 166, 0.3) 25%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(236, 72, 153, 0.3) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    border-radius: inherit;
    mix-blend-mode: overlay;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== MINI DUCK TRAIL ===== */
.mini-duck {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    font-size: 20px;
    animation: duck-waddle 0.3s ease-in-out infinite, duck-fade 2s ease-out forwards;
    transform-origin: center bottom;
}

@keyframes duck-waddle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes duck-fade {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.5) translateY(-50px); }
}

/* ===== LIGHTNING EFFECT ===== */
.lightning {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: screen;
}

/* ===== NEON TEXT ON HOVER ===== */
.section-title:hover {
    animation: neon-flicker 0.5s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow:
            0 0 5px #14b8a6,
            0 0 10px #14b8a6,
            0 0 20px #14b8a6,
            0 0 40px #06b6d4;
    }
    50% {
        text-shadow:
            0 0 2px #14b8a6,
            0 0 5px #14b8a6,
            0 0 10px #14b8a6,
            0 0 20px #06b6d4;
    }
}

/* ===== SKILL TAGS FLOAT ON HOVER ===== */
.skill-tag {
    transition: all 0.3s ease;
}

.skill-category:hover .skill-tag {
    animation: float-tag 1s ease-in-out infinite;
}

.skill-category:hover .skill-tag:nth-child(odd) {
    animation-delay: 0.1s;
}

.skill-category:hover .skill-tag:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes float-tag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== CRAZY BUTTON HOVER ===== */
.btn-primary:hover {
    animation: btn-pulse 0.5s ease infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow:
            0 0 5px rgba(20, 184, 166, 0.5),
            0 0 20px rgba(20, 184, 166, 0.3),
            0 0 40px rgba(20, 184, 166, 0.2);
    }
    50% {
        box-shadow:
            0 0 10px rgba(20, 184, 166, 0.8),
            0 0 30px rgba(20, 184, 166, 0.5),
            0 0 60px rgba(20, 184, 166, 0.3);
    }
}

/* ===== AURORA BACKGROUND ===== */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(20, 184, 166, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    animation: aurora-shift 10s ease-in-out infinite;
}

@keyframes aurora-shift {
    0%, 100% {
        background:
            radial-gradient(ellipse at 20% 20%, rgba(20, 184, 166, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    }
    33% {
        background:
            radial-gradient(ellipse at 60% 40%, rgba(20, 184, 166, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    }
    66% {
        background:
            radial-gradient(ellipse at 80% 60%, rgba(20, 184, 166, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 40%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 90%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    }
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.hero-title-prefix,
.hero-title-suffix {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--accent-primary);
    font-weight: 500;
    min-height: 1.5em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.hero-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-socials svg {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== About Section ===== */
.about {
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 340px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.about-photo {
    display: block;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow-lg);
}

.secret-pet-trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.secret-pet-trigger:hover,
.secret-pet-trigger:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(20, 184, 166, 0.25);
}

.secret-pet-trigger:focus-visible {
    outline: 2px solid rgba(94, 234, 212, 0.9);
    outline-offset: 4px;
}

.frame-decoration {
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    opacity: 0.5;
}

.about-intro {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2dd4bf 0%, #5eead4 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2dd4bf;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.15);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-category:hover .skill-tag {
    background: rgba(20, 184, 166, 0.15);
    color: var(--text-primary);
}

/* ===== Projects Section ===== */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(14, 24, 24, 0.9);
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 16, 0.08) 0%, rgba(10, 16, 16, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
    min-height: 100%;
}

.project-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    position: relative;
    z-index: 0;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 56, 56, 0.7) 0%, rgba(30, 48, 48, 0.7) 100%);
}

.project-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 40, 40, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-link svg {
    width: 22px;
    height: 22px;
}

.project-content {
    padding: 1.5rem;
}

.project-card.featured .project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card.featured .project-content h3 {
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-tech span::before {
    content: '#';
    color: var(--accent-primary);
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Experience Section ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.15rem;
}

.timeline-company {
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: transparent;
    padding: 0 0.25rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 9.5rem;
    padding: 0.95rem 1.25rem 1rem;
    border-radius: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: inherit;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-logo:hover,
.footer-logo:focus-visible {
    color: var(--accent-primary);
    border-color: rgba(20, 184, 166, 0.45);
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.footer-logo:active {
    transform: translateY(0);
}

.footer-logo:focus-visible {
    outline: none;
}

.footer-logo-icon {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--accent-primary);
    background: rgba(20, 184, 166, 0.12);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18);
    transition: transform var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-logo-icon svg {
    width: 1rem;
    height: 1rem;
}

.footer-logo-mark {
    line-height: 1;
    letter-spacing: 0.02em;
}

.footer-logo-hint {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.footer-logo:hover .footer-logo-hint,
.footer-logo:focus-visible .footer-logo-hint,
.footer-logo:hover .footer-logo-icon,
.footer-logo:focus-visible .footer-logo-icon {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.footer-logo:hover .footer-logo-icon,
.footer-logo:focus-visible .footer-logo-icon {
    background: rgba(20, 184, 166, 0.18);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.32);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .project-card.featured .project-image {
        aspect-ratio: 16/10;
    }

}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        left: 0;
    }
}

@media (max-height: 800px) {
    .scroll-indicator {
        bottom: 0.65rem;
        transform: translateX(-50%) scale(0.9);
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-name {
        letter-spacing: -1px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .image-frame {
        width: 220px;
        height: 280px;
    }
}

/* ===== Particle Canvas ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, #182828 0%, #1e3030 50%, #162626 100%);
}

/* ===== HIDDEN TERMINAL ===== */
.terminal-overlay {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(820px, 95vw);
    height: 420px;
    background: rgba(5, 10, 10, 0.97);
    border: 1px solid rgba(20, 184, 166, 0.5);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    z-index: 99998;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    font-family: 'Fira Code', monospace;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 60px rgba(20, 184, 166, 0.2), 0 -20px 80px rgba(168, 85, 247, 0.1);
}

.terminal-overlay.open { bottom: 0; }

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.12);
    flex-shrink: 0;
    gap: 0.75rem;
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
    width: 12px; height: 12px; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 7px; font-weight: 900; line-height: 1;
    transition: filter 0.15s;
}
.terminal-dots span::after { color: transparent; transition: color 0.1s; }
.terminal-dots:hover span { filter: brightness(0.8); }
.terminal-dots:hover span::after { color: rgba(0, 0, 0, 0.55); }
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #eab308; }
.terminal-dots span:nth-child(3) { background: #22c55e; }
.terminal-dots span:nth-child(1)::after { content: '✕'; }
.terminal-dots span:nth-child(2)::after { content: '−'; }
.terminal-dots span:nth-child(3)::after { content: '⤢'; }

.terminal-title { color: #475569; font-size: 0.8rem; margin: 0 auto; }

/* Minimized: collapse to header only */
.terminal-overlay.minimized .terminal-body,
.terminal-overlay.minimized .terminal-input-row { display: none; }
.terminal-overlay.minimized { height: auto; }

/* Maximized: full screen */
.terminal-overlay.maximized {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.terminal-body {
    flex: 1; overflow-y: auto; padding: 0.75rem 1rem;
    display: flex; flex-direction: column; gap: 2px;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(20,184,166,0.4); border-radius: 2px; }

.terminal-line { font-size: 0.82rem; line-height: 1.6; color: #94a3b8; }
.terminal-line.term-pre { white-space: pre; }
.term-rainbow {
    background: linear-gradient(90deg, #fff 0%, #14b8a6 15%, #06b6d4 30%, #a855f7 45%, #ec4899 60%, #f97316 75%, #eab308 90%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    font-weight: 700;
}
.terminal-line.term-prompt-echo { color: #e2e8f0; }
.terminal-line.term-success { color: #22c55e; }
.terminal-line.term-error { color: #ef4444; }
.terminal-line.term-purple { color: #a855f7; }

.term-accent { color: #14b8a6; }
.term-success { color: #22c55e; }
.term-error { color: #ef4444; }
.term-purple { color: #a855f7; }
.term-link { color: #14b8a6; text-decoration: underline; }

.terminal-input-row {
    display: flex; align-items: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(20, 184, 166, 0.12);
    flex-shrink: 0;
}
.terminal-prompt-label { color: #14b8a6; font-size: 0.82rem; white-space: nowrap; }
.terminal-input {
    flex: 1; background: none; border: none; outline: none;
    color: #e2e8f0; font-family: 'Fira Code', monospace;
    font-size: 0.82rem; caret-color: #14b8a6;
}
.terminal-input::placeholder { color: #334155; }

@keyframes terminal-bounce {
    0%, 50%, 100% { transform: translateY(0)     rotate(0deg);  }
    58%            { transform: translateY(-22px) rotate(0deg);  } /* jumped up, flat */
    63%            { transform: translateY(-22px) rotate(-12deg);} /* shake left (in air) */
    68%            { transform: translateY(-22px) rotate(12deg); } /* shake right (in air) */
    73%            { transform: translateY(-22px) rotate(-8deg); } /* shake left */
    78%            { transform: translateY(-22px) rotate(8deg);  } /* shake right */
    83%            { transform: translateY(-22px) rotate(-4deg); } /* shake left */
    87%            { transform: translateY(-22px) rotate(4deg);  } /* shake right */
    91%            { transform: translateY(-22px) rotate(0deg);  } /* straighten up */
    98%            { transform: translateY(0)     rotate(0deg);  } /* drop back down */
}
.terminal-hint {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #14b8a6; font-family: 'Fira Code', monospace;
    font-size: 0.75rem; padding: 0.4rem 0.8rem;
    border-radius: 6px; z-index: 9990;
    cursor: pointer; user-select: none;
    transform: translateY(0);
    will-change: transform;
    transition: background 0.2s, border-color 0.2s;
    display: flex; align-items: center; gap: 0.4rem;
}
.terminal-hint.bouncing {
    animation: terminal-bounce 3s ease infinite;
    transform-origin: center center;
}
.terminal-hint:hover {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(20, 184, 166, 0.6);
}
.term-hint-key {
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: 3px; padding: 0 4px;
    font-size: 0.7rem; line-height: 1.4;
}

/* ===== REELS VIEWER ===== */
.reels-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 1.2rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.reels-overlay.open { opacity: 1; pointer-events: all; }
.reels-frame {
    border: none; border-radius: 14px;
    width: 800px; height: 450px;
    background: #000;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.reels-label {
    color: rgba(255,255,255,0.5);
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.reels-nav {
    display: flex; align-items: center; gap: 1.5rem;
    font-family: 'Fira Code', monospace; font-size: 0.82rem;
}
.reels-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.8); padding: 0.45rem 1.1rem;
    border-radius: 6px; cursor: pointer;
    font-family: 'Fira Code', monospace; font-size: 0.82rem;
    transition: background 0.2s, border-color 0.2s;
}
.reels-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.reels-counter { color: rgba(255,255,255,0.4); min-width: 48px; text-align: center; }
.reels-close {
    position: absolute; top: 1.4rem; right: 1.6rem;
    background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 1.3rem;
    cursor: pointer; transition: color 0.2s; line-height: 1; padding: 0;
}
.reels-close:hover { color: #fff; }

/* ===== MUSIC TOGGLE ===== */
#music-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(24, 40, 40, 0.85);
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, color 0.2s ease;
}
#music-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
#music-toggle.muted {
    color: var(--text-muted);
}

/* ===== BLACK HOLE VORTEX ===== */
.black-hole-vortex {
    position: fixed;
    width: 80px; height: 80px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9990;
    background: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(168,85,247,0.6) 55%, rgba(20,184,166,0.2) 80%, transparent 100%);
    box-shadow: 0 0 24px rgba(168,85,247,0.7), 0 0 50px rgba(20,184,166,0.3), inset 0 0 20px rgba(0,0,0,0.9);
    animation: vortex-spin 0.5s linear infinite, vortex-grow 0.3s ease forwards;
}

@keyframes vortex-grow {
    from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes vortex-spin {
    from { filter: hue-rotate(0deg) brightness(1.3); }
    to   { filter: hue-rotate(360deg) brightness(1.3); }
}

.bh-shockwave {
    position: fixed;
    width: 0; height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9989;
    border: 2px solid rgba(168, 85, 247, 0.9);
    animation: bh-expand 0.9s ease-out forwards;
}
@keyframes bh-expand {
    0%   { width: 0; height: 0; opacity: 1; border-color: rgba(168,85,247,0.9); }
    50%  { border-color: rgba(20,184,166,0.6); }
    100% { width: 500px; height: 500px; opacity: 0; }
}

@keyframes bh-points-float {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
    40%  { opacity: 1; transform: translate(-50%, calc(-50% - 30px)) scale(1); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% - 70px)) scale(0.7); }
}
@keyframes bh-total-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    70%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ===== NYAN CELEBRATION ===== */
.nyan-notification {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 295px;
    background:
        linear-gradient(135deg, rgba(248, 255, 250, 0.97), rgba(220, 252, 231, 0.95)),
        linear-gradient(90deg, rgba(74, 222, 128, 0.12), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    z-index: 99999;
    font-family: 'Fira Code', monospace;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.16), 0 10px 30px rgba(45, 212, 191, 0.12);
    backdrop-filter: blur(10px);
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nyan-notification.show { transform: translateX(0); }

.nyan-progress {
    height: 5px;
    width: 0;
    background: linear-gradient(90deg, #86efac, #4ade80, #34d399, #2dd4bf);
    border-radius: 999px;
    animation: nyan-fill 2.5s ease forwards;
}
@keyframes nyan-fill { to { width: 100%; } }

@keyframes nyan-star-fade {
    0%   { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.3) translateY(-25px); }
}

/* ===== Initials Avatar ===== */
.initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    font-family: var(--font-sans);
    color: #fff;
    letter-spacing: -2px;
    user-select: none;
}

/* ===== Pet Companion ===== */
.pet-companion {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    pointer-events: none !important;
    opacity: 0;
    z-index: 9997;
    transform: translate(-120px, -120px);
    transition: opacity 0.35s ease;
}

.pet-companion.is-active {
    opacity: 1;
}

.pet-companion.is-flipped .pet-companion-sprite {
    transform: scaleX(-1);
}

.pet-companion-sprite {
    display: block;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.35));
}

.pet-companion-bubble {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 50%;
    transform: translate(-50%, 10px);
    background: rgba(15, 23, 42, 0.94);
    color: #d1fae5;
    border: 1px solid rgba(45, 212, 191, 0.45);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.28);
}

.pet-companion.show-bubble .pet-companion-bubble {
    opacity: 1;
    transform: translate(-50%, 0);
}
