/* ===== Variables ===== */
:root {
    --primary-purple: #8b5cf6;
    --dark-purple: #1e1b4b;
    --darker-purple: #0f0a1f;
    --accent-purple: #a78bfa;
    --light-purple: #c4b5fd;
    --black-purple: #0a0612;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(30, 27, 75, 0.6);
    --glass-border: rgba(139, 92, 246, 0.3);
    
    /* Smooth easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--black-purple);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a, button, input, .social-link, .badge, .skill-chip, .music-toggle, .projects-float {
    cursor: none;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(139, 92, 246, 0.8); }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    box-shadow: 
        0 0 10px var(--primary-purple),
        0 0 20px var(--primary-purple),
        0 0 40px rgba(139, 92, 246, 0.5);
}

.cursor-outline {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    box-shadow: 
        0 0 15px var(--accent-purple),
        0 0 30px var(--accent-purple),
        0 0 60px rgba(167, 139, 250, 0.6);
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(167, 139, 250, 0.8);
    background: rgba(139, 92, 246, 0.1);
}

.cursor-dot.clicking {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-outline.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

/* ===== Video Background ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 6, 18, 0.8) 0%,
        rgba(30, 27, 75, 0.6) 50%,
        rgba(10, 6, 18, 0.8) 100%
    );
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ===== Intro Screen ===== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--black-purple);
    z-index: 1000;
    cursor: none;
    transition: all 1s var(--ease-out-expo);
}

.intro-screen::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    opacity: 0.1;
    animation: introGlow 4s ease-in-out infinite;
}

@keyframes introGlow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.3); opacity: 0.15; }
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
    animation: introLogoFloat 3s ease-in-out infinite;
}

@keyframes introLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.click-text {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 3px;
    animation: textPulse 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.intro-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.intro-hint i {
    animation: mouseMove 1.5s ease-in-out infinite;
}

@keyframes mouseMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ===== Profile Container ===== */
.profile-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 1s var(--ease-out-expo);
}

.profile-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== Floating Projects Button ===== */
.projects-float {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Attention Grabber */
.projects-attention {
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: attentionFade 4s ease-in-out 3;
    animation-fill-mode: forwards;
    pointer-events: none;
}

@keyframes attentionFade {
    0%, 100% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    10%, 90% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.attention-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    order: 2;
}

.attention-arrow {
    width: 24px;
    height: 24px;
    color: var(--accent-purple);
    animation: arrowBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--primary-purple));
    order: 1;
}

.attention-arrow svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.projects-float:hover .projects-attention {
    opacity: 0 !important;
    pointer-events: none;
}

.projects-float-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), #a855f7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    color: white;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.2);
    position: relative;
}

.btn-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes projectsPulse {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(139, 92, 246, 0.5),
            0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(139, 92, 246, 0.7),
            0 0 60px rgba(139, 92, 246, 0.4);
    }
}

.projects-float:hover .projects-float-btn {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 
        0 20px 50px rgba(139, 92, 246, 0.7),
        0 0 80px rgba(139, 92, 246, 0.4);
}

.projects-float-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s var(--ease-out-expo);
}

.projects-float:hover .projects-float-text {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Profile Card ===== */
.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 35px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardFloat 8s ease-in-out infinite;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    border-radius: 2px;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== Status Badge ===== */
.status-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #10b981;
    backdrop-filter: blur(10px);
}

.status-dot-live {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #10b981; }
    50% { opacity: 0.5; box-shadow: 0 0 10px #10b981; }
}

/* ===== Profile Picture ===== */
.profile-picture {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 15px auto 18px;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-purple);
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--ease-out-expo);
}

.profile-picture:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.profile-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-purple);
    border-right-color: var(--primary-purple);
    animation: rotate 4s linear infinite;
}

.profile-picture::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    animation: rotateSlow 20s linear infinite reverse;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes rotateSlow {
    to { transform: rotate(360deg); }
}

/* ===== Username ===== */
.username {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.username-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-purple) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
}

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

.username-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: glitch 5s ease-in-out infinite;
}

@keyframes glitch {
    0%, 90%, 100% { 
        opacity: 0;
        transform: translate(0);
    }
    92% { 
        opacity: 0.8;
        transform: translate(-2px, 1px);
    }
    94% { 
        opacity: 0.8;
        transform: translate(2px, -1px);
    }
    96% {
        opacity: 0.8;
        transform: translate(-1px, -1px);
    }
}

/* Glowing Cursor */
.cursor-glow {
    display: inline-block;
    color: var(--primary-purple);
    -webkit-text-fill-color: var(--primary-purple);
    animation: cursorGlow 1s ease-in-out infinite;
    text-shadow: 
        0 0 10px var(--primary-purple),
        0 0 20px var(--primary-purple),
        0 0 40px var(--primary-purple),
        0 0 80px rgba(139, 92, 246, 0.5);
}

@keyframes cursorGlow {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px var(--primary-purple),
            0 0 20px var(--primary-purple),
            0 0 40px var(--primary-purple),
            0 0 80px rgba(139, 92, 246, 0.5);
    }
    50% { 
        opacity: 0;
        text-shadow: none;
    }
}

/* ===== Role ===== */
.role {
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Badges ===== */
.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.5s var(--ease-out-back);
}

.badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.badge-icon {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: all 0.3s var(--ease-out-expo);
}

.badge:hover .badge-icon {
    transform: scale(1.1);
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: left 0.5s var(--ease-out-expo);
}

.badge:hover .badge-shine {
    left: 100%;
}

/* LuaU Badge */
.badge-luau .badge-inner {
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border: 2px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}
.badge-luau:hover {
    transform: translateY(-10px) scale(1.1);
}
.badge-luau:hover .badge-inner {
    box-shadow: 
        0 20px 40px rgba(0, 102, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3);
}

/* Roblox Badge */
.badge-roblox .badge-inner {
    background: linear-gradient(135deg, #e2231a, #ff4757);
    border: 2px solid rgba(255, 71, 87, 0.5);
    box-shadow: 0 4px 20px rgba(226, 35, 26, 0.4);
}
.badge-roblox:hover {
    transform: translateY(-10px) scale(1.1);
}
.badge-roblox:hover .badge-inner {
    box-shadow: 
        0 20px 40px rgba(226, 35, 26, 0.5),
        0 0 40px rgba(255, 71, 87, 0.3);
}

/* Web Badge */
.badge-web .badge-inner {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: 2px solid rgba(236, 72, 153, 0.5);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.badge-web:hover {
    transform: translateY(-10px) scale(1.1);
}
.badge-web:hover .badge-inner {
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(236, 72, 153, 0.3);
}

/* App Badge */
.badge-app .badge-inner {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    border: 2px solid rgba(20, 184, 166, 0.5);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.badge-app:hover {
    transform: translateY(-10px) scale(1.1);
}
.badge-app:hover .badge-inner {
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.5),
        0 0 40px rgba(20, 184, 166, 0.3);
}

/* Badge Tooltip */
.badge-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 10, 31, 0.95);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-back);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    z-index: 100;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(15, 10, 31, 0.95);
}

.badge:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== Bio ===== */
.bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 0 5px;
}

.bio-word {
    display: inline;
    transition: all 0.3s ease;
    position: relative;
}

.bio-word.glow {
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 
        0 0 10px var(--primary-purple),
        0 0 20px var(--primary-purple),
        0 0 30px rgba(139, 92, 246, 0.5);
}

/* ===== Stats ===== */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* ===== Code Terminal Skills ===== */
.code-terminal {
    background: rgba(10, 6, 18, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    margin-bottom: 18px;
    overflow: hidden;
    font-family: 'Fira Code', 'Consolas', monospace;
    text-align: left;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

.code-terminal:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(139, 92, 246, 0.15);
    transform: scale(1.02);
}

.terminal-header {
    background: rgba(30, 27, 75, 0.5);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-dots .dot.red { background: #ff5f56; box-shadow: 0 0 10px rgba(255, 95, 86, 0.5); }
.terminal-dots .dot.yellow { background: #ffbd2e; box-shadow: 0 0 10px rgba(255, 189, 46, 0.5); }
.terminal-dots .dot.green { background: #27ca40; box-shadow: 0 0 10px rgba(39, 202, 64, 0.5); }

.code-terminal:hover .dot.red { box-shadow: 0 0 15px rgba(255, 95, 86, 0.8); }
.code-terminal:hover .dot.yellow { box-shadow: 0 0 15px rgba(255, 189, 46, 0.8); }
.code-terminal:hover .dot.green { box-shadow: 0 0 15px rgba(39, 202, 64, 0.8); }

.terminal-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
    opacity: 0.7;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    color: #27ca40;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #27ca40;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #27ca40; }
    50% { opacity: 0.5; box-shadow: 0 0 10px #27ca40; }
}

.terminal-body {
    padding: 12px;
    font-size: 0.7rem;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    opacity: 0;
    animation: fadeInLine 0.5s var(--ease-out-expo) forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }
.code-line:nth-child(7) { animation-delay: 0.7s; }
.code-line:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.line-number {
    color: rgba(255, 255, 255, 0.25);
    min-width: 18px;
    user-select: none;
    font-size: 0.65rem;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-operator { color: #89ddff; }
.code-bracket { color: #ffd700; }
.code-property { color: #f78c6c; margin-left: 18px; }
.code-string { color: #c3e88d; }

/* Skills Container */
.skills-line {
    padding: 6px 0;
}

.skills-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Interactive Skill Chips */
.skill-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    min-width: 55px;
}

.skill-chip > span {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.skill-chip i {
    font-size: 0.7rem;
}

.skill-level {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1s var(--ease-out-expo);
}

.code-terminal:hover .skill-bar {
    width: var(--level);
}

.skill-chip:hover {
    transform: translateY(-5px) scale(1.05);
}

/* LuaU Chip */
.skill-chip.luau {
    background: rgba(0, 102, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.skill-chip.luau .skill-bar {
    background: linear-gradient(90deg, #0066ff, #00d4ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.skill-chip.luau:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* C# Chip */
.skill-chip.csharp {
    background: rgba(104, 33, 122, 0.15);
    color: #b87aff;
    border: 1px solid rgba(184, 122, 255, 0.3);
}
.skill-chip.csharp .skill-bar {
    background: linear-gradient(90deg, #68217a, #b87aff);
    box-shadow: 0 0 10px rgba(184, 122, 255, 0.5);
}
.skill-chip.csharp:hover {
    box-shadow: 0 10px 30px rgba(104, 33, 122, 0.4);
}

/* HTML Chip */
.skill-chip.html {
    background: rgba(227, 76, 38, 0.15);
    color: #ff6d3a;
    border: 1px solid rgba(255, 109, 58, 0.3);
}
.skill-chip.html .skill-bar {
    background: linear-gradient(90deg, #e34c26, #ff6d3a);
    box-shadow: 0 0 10px rgba(255, 109, 58, 0.5);
}
.skill-chip.html:hover {
    box-shadow: 0 10px 30px rgba(227, 76, 38, 0.4);
}

/* JavaScript Chip */
.skill-chip.javascript {
    background: rgba(247, 223, 30, 0.1);
    color: #f7df1e;
    border: 1px solid rgba(247, 223, 30, 0.3);
}
.skill-chip.javascript .skill-bar {
    background: linear-gradient(90deg, #b3a800, #f7df1e);
    box-shadow: 0 0 10px rgba(247, 223, 30, 0.5);
}
.skill-chip.javascript:hover {
    box-shadow: 0 10px 30px rgba(247, 223, 30, 0.3);
}

/* Terminal Cursor */
.typing-line { opacity: 0.7; }
.terminal-cursor {
    color: var(--primary-purple);
    animation: terminalBlink 1s step-end infinite;
    text-shadow: 
        0 0 5px var(--primary-purple),
        0 0 10px var(--primary-purple),
        0 0 20px var(--primary-purple);
}

@keyframes terminalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Location ===== */
.location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.location:hover {
    color: var(--text-primary);
}

.location i {
    color: var(--primary-purple);
    animation: locationPulse 2s ease-in-out infinite;
}

@keyframes locationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Contact Button ===== */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-purple), #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.contact-btn i {
    font-size: 1.1rem;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(30, 27, 75, 0.8);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: 0;
    transition: all 0.5s var(--ease-out-expo);
}

.social-link i, .social-link svg {
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out-back);
}

.social-link:hover {
    transform: translateY(-6px);
}

.social-link:hover i, .social-link:hover svg {
    transform: scale(1.15);
}

.social-link.steam:hover {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: #66c0f4;
    box-shadow: 0 12px 35px rgba(102, 192, 244, 0.3);
}

.social-link.paypal:hover {
    background: linear-gradient(135deg, #003087, #009cde);
    border-color: #009cde;
    box-shadow: 0 12px 35px rgba(0, 156, 222, 0.3);
}

.social-link.discord:hover {
    background: linear-gradient(135deg, #5865f2, #7289da);
    border-color: #7289da;
    box-shadow: 0 12px 35px rgba(114, 137, 218, 0.3);
}

.social-link.github:hover {
    background: linear-gradient(135deg, #24292e, #444d56);
    border-color: #f0f6fc;
    box-shadow: 0 12px 35px rgba(240, 246, 252, 0.2);
}

.social-link.roblox:hover {
    background: linear-gradient(135deg, #e2231a, #ff4d4d);
    border-color: #ff6b6b;
    box-shadow: 0 12px 35px rgba(255, 77, 77, 0.3);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Social Link Tooltip */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(15, 10, 31, 0.95);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-back);
    border: 1px solid var(--glass-border);
    pointer-events: none;
    z-index: 10;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== Card Footer ===== */
.card-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ===== Projects Modal ===== */
.projects-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.projects-modal.open {
    opacity: 1;
    visibility: visible;
}

.projects-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s var(--ease-out-back);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.projects-modal.open .projects-modal-content {
    transform: scale(1) translateY(0);
}

.projects-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.projects-modal-header h2 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-modal-header h2 i {
    -webkit-text-fill-color: var(--accent-purple);
}

.close-modal {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s var(--ease-out-expo);
}

.close-modal:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: rotate(90deg);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(15, 10, 31, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.featured {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(20, 15, 35, 0.7);
}

.project-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--primary-purple), #a855f7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(-5deg);
}

.website-icon {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.roblox-icon {
    background: linear-gradient(135deg, #ff4757, #e2231a);
    box-shadow: 0 8px 25px rgba(226, 35, 26, 0.4);
}

.dev-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.portfolio-icon {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.project-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.project-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    color: var(--accent-purple);
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
}

.project-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(5px);
}

/* ===== Music Player ===== */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.music-toggle {
    width: 46px;
    height: 46px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s var(--ease-out-expo);
    color: var(--text-primary);
    font-size: 1rem;
}

.music-toggle:hover {
    background: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
    background: var(--primary-purple);
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
}

.music-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: rgba(20, 15, 40, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s var(--ease-out-back);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.music-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.music-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--accent-purple);
    font-weight: 500;
    font-size: 0.85rem;
}

.music-list {
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.music-list::-webkit-scrollbar { width: 4px; }
.music-list::-webkit-scrollbar-track { background: var(--dark-purple); border-radius: 4px; }
.music-list::-webkit-scrollbar-thumb { background: var(--primary-purple); border-radius: 4px; }

.music-item {
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.music-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    transform: translateX(5px);
}

.music-item.active {
    background: var(--primary-purple);
    color: var(--text-primary);
}

.no-music {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 20px 10px;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.music-controls button {
    width: 36px;
    height: 36px;
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 0.8rem;
}

.music-controls button:hover {
    background: var(--primary-purple);
    transform: scale(1.1);
}

#playPause {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: var(--dark-purple);
    border-radius: 4px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-purple);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-purple); }
::-webkit-scrollbar-thumb { background: var(--primary-purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .projects-float {
        left: 10px;
    }
    
    .projects-float-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-attention {
        display: none;
    }
    
    .stats-container {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 25px 20px;
        max-width: 340px;
    }
    
    .username {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 0.8rem;
    }
    
    .badge {
        width: 38px;
        height: 38px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .music-dropdown {
        width: 240px;
        right: -10px;
    }
    
    .projects-modal-content {
        padding: 20px;
    }
    
    .projects-float {
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .projects-attention {
        display: none;
    }
    
    .stats-container {
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .contact-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .cursor-dot, .cursor-outline {
        display: none;
    }
    
    * {
        cursor: auto;
    }
}
