/* ============================================
   PHẠM TẤN GIÀU - PREMIUM PORTFOLIO 2026
   Glassmorphism + Cyber UI + Neon Blue/Purple
   Pure HTML/CSS/JS - 60fps smooth effects
   ============================================ */

/* CSS Variables - Dark Theme (Default) */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --neon-blue: #00f3ff;
    --neon-purple: #c026ff;
    --neon-pink: #ff2e63;
    --neon-cyan: #00f9ff;
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    
    --success: #10b981;
    --warning: #f59e0b;
    
    --shadow-neon: 0 0 10px var(--neon-blue), 0 0 30px var(--neon-blue);
    --shadow-purple: 0 0 15px var(--neon-purple);
    
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Light Mode Variables */
body.light {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f8;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.95);
    
    --text-primary: #111118;
    --text-secondary: #4b4b5a;
    --text-muted: #7a7a8a;
    
    --neon-blue: #0066ff;
    --neon-purple: #7c3aed;
    --neon-pink: #e11d48;
    
    --shadow-neon: 0 4px 20px rgba(0, 102, 255, 0.15);
    --shadow-purple: 0 4px 20px rgba(124, 58, 237, 0.15);
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Custom Scrollbar - Cyber Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Selection */
::selection {
    background: var(--neon-blue);
    color: #000;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-smooth), 
                box-shadow var(--transition-smooth),
                border-color var(--transition-fast);
}

.glass:hover {
    border-color: var(--glass-hover);
    transform: translateY(-2px);
}

.neon-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: neon-gradient 3s ease infinite;
}

@keyframes neon-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styling */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #050508;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.loading-logo {
    margin-bottom: 48px;
}

.logo-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-text {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(0, 243, 255, 0.5);
    animation: logo-pulse 2s ease-in-out infinite;
}

.logo-tick {
    position: absolute;
    right: -12px;
    top: -8px;
    font-size: 28px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 12px var(--neon-blue));
    animation: tick-glow 1.5s ease-in-out infinite;
}

.logo-subtitle {
    font-size: 15px;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.loading-progress-container {
    width: 320px;
    margin: 0 auto 24px;
}

.loading-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 999px;
    box-shadow: var(--shadow-neon);
    transition: width 0.1s linear;
}

.loading-percentage {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-blue);
    letter-spacing: 2px;
}

.loading-text {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.loading-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.1);
    transition: transform var(--transition-fast);
}

.nav-avatar:hover {
    transform: scale(1.05) rotate(3deg);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.verified-tick {
    color: #00f3ff;
    font-size: 15px;
    filter: drop-shadow(0 0 6px #00f3ff);
    animation: tick-pulse 2s ease-in-out infinite;
}

@keyframes tick-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-link.active {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.glass-btn:hover {
    background: var(--glass-hover);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==================== HERO / HEADER ==================== */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--neon-blue);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    bottom: -15%;
    right: -5%;
    animation-delay: -8s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--neon-pink);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

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

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -2.5px;
}

.greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.name {
    background: linear-gradient(90deg, #fff, #f0f0f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verified-tick-large {
    position: relative;
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
}

.verified-tick-large i {
    font-size: 42px;
    color: #00f3ff;
    filter: drop-shadow(0 0 20px #00f3ff);
    animation: verified-float 3s ease-in-out infinite;
}

.tick-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(0,243,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2.5s ease-in-out infinite;
}

.typing-container {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 24px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    color: var(--neon-blue);
    font-weight: 700;
    min-width: 220px;
}

.typing-cursor {
    color: var(--neon-purple);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

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

.magnetic {
    transition: transform 0.2s cubic-bezier(0.23, 1.0, 0.32, 1);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scroll-wheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    70% { transform: translate(-50%, 12px); }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* Hero Avatar */
.hero-avatar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-avatar {
    width: 380px;
    height: 380px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,255,255,0.05) inset;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-avatar:hover img {
    transform: scale(1.08);
}

.avatar-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 40% 30%, rgba(0,243,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.avatar-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine-sweep 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20%, 100% { left: 200%; }
}

.avatar-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.avatar-badge i {
    color: var(--neon-blue);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    color: var(--bg-primary);
}

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

.about-card {
    padding: 0;
    overflow: hidden;
}

.about-image {
    position: relative;
    height: 320px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.about-info {
    padding: 32px;
}

.about-info h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-role {
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 24px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.detail-item i {
    width: 22px;
    color: var(--neon-purple);
}

.bio-card {
    padding: 48px 42px;
}

.bio-card h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--neon-blue);
}

.bio-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15.5px;
}

.bio-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 243, 255, 0.06);
    border-radius: 12px;
    font-size: 14px;
}

.highlight i {
    color: var(--neon-blue);
}

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

.skill-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.08);
    border-radius: 12px;
    font-size: 22px;
    color: var(--neon-blue);
}

.skill-name {
    font-weight: 700;
    font-size: 17px;
}

.skill-percent {
    font-weight: 700;
    font-size: 15px;
    color: var(--neon-purple);
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 999px;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 12px var(--neon-blue);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ==================== SERVICES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px var(--neon-blue) inset;
}

.service-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(0,243,255,0.1), rgba(192,38,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--neon-blue);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--neon-purple);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    min-height: 68px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-tags span {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(0, 243, 255, 0.08);
    border-radius: 20px;
    color: var(--neon-blue);
}

/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.35),
                0 0 0 1px var(--neon-purple) inset;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.12);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.85) 85%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.project-content p {
    color: rgba(255,255,255,0.75);
    font-size: 14.5px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.project-tech span {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--neon-cyan);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-actions .btn {
    padding: 8px 18px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
}

/* ==================== MUSIC PLAYER ==================== */
.music-player {
    max-width: 820px;
    margin: 0 auto;
    padding: 42px;
    border-radius: var(--border-radius-xl);
}

.player-main {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.visualizer-wrapper {
    flex-shrink: 0;
}

#music-visualizer {
    border-radius: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
}

.track-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.track-cover {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 2px solid var(--glass-border);
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(192,38,255,0.25) 10%, transparent 70%);
    z-index: -1;
}

.track-meta h4 {
    font-size: 1.55rem;
    margin-bottom: 4px;
}

.track-meta p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.track-genre {
    display: flex;
    gap: 8px;
}

.track-genre span {
    font-size: 12px;
    padding: 2px 10px;
    background: rgba(0,243,255,0.1);
    border-radius: 20px;
    color: var(--neon-blue);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    border-radius: 999px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0,243,255,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

#current-time, #total-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 48px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
    transform: scale(1.05);
}

.play-btn {
    width: 72px;
    height: 72px;
    font-size: 26px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #000;
    border: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.volume-control i {
    color: var(--text-secondary);
}

#volume-slider {
    width: 110px;
    accent-color: var(--neon-blue);
}

.player-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.player-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, transparent, rgba(0,243,255,0.06), transparent);
    transform: rotate(25deg);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 22px;
    color: var(--neon-purple);
    opacity: 0.3;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.contact-form {
    padding: 42px;
}

.contact-form h3 {
    margin-bottom: 28px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 52px;
    color: var(--success);
    margin-bottom: 16px;
}

.form-success h4 {
    color: var(--success);
    margin-bottom: 8px;
}

.contact-info {
    padding: 42px;
}

.contact-info h3 {
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-neon);
}

.contact-extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.extra-item {
    display: flex;
    gap: 16px;
}

.extra-item i {
    font-size: 20px;
    color: var(--neon-purple);
    margin-top: 4px;
}

.extra-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.extra-item span {
    color: var(--text-secondary);
    font-size: 14.5px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-dot {
    margin: 0 12px;
}

.heart {
    color: var(--neon-pink);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 820px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--neon-pink);
    transform: rotate(90deg);
}

.modal-header img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-body {
    padding: 36px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-tags span {
    padding: 4px 14px;
    background: rgba(0,243,255,0.1);
    border-radius: 20px;
    font-size: 13px;
    color: var(--neon-blue);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.modal-links {
    display: flex;
    gap: 14px;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.toast.success {
    border-color: var(--success);
    color: var(--success);
}

.toast.hidden {
    display: none;
}

/* Tilt Card Effect Base */
.tilt-card {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* Animated Border for some elements */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: border-rotate 4s linear infinite;
    opacity: 0.6;
}

@keyframes border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 300% 50%; }
    100% { background-position: 0% 50%; }
}