:root {
    /* Color Palette - HSL for better control */
    --primary: 227 100% 75%;
    --primary-glow: 227 100% 59%;
    --secondary: 271 100% 86%;
    --secondary-glow: 271 91% 65%;
    --background: 240 0% 7%;
    --surface: 240 0% 9%;
    --surface-variant: 240 0% 15%;
    --on-surface: 240 5% 92%;
    --on-surface-variant: 240 5% 75%;
    --error: 0 100% 84%;
    
    /* Spacing */
    --container-max: 1280px;
    --gutter: 24px;
    --section-gap: 120px;
    --stack-sm: 8px;
    --stack-md: 16px;
    --stack-lg: 32px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--on-surface));
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .font-display {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-nav {
    background: rgba(19, 19, 19, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

/* Gradients */
.primary-gradient {
    background: linear-gradient(135deg, hsl(var(--primary-glow)) 0%, hsl(var(--secondary-glow)) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary-glow)) 0%, hsl(var(--secondary-glow)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Glows */
.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-blue {
    background: hsl(var(--primary-glow));
    top: -10%;
    left: -10%;
}

.glow-purple {
    background: hsl(var(--secondary-glow));
    bottom: -10%;
    right: -10%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-glow)) 0%, hsl(var(--secondary-glow)) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 30px hsla(var(--primary-glow), 0.4);
    transform: scale(1.02);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(var(--on-surface));
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--surface-variant));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary-glow));
}

/* Utilities */
.label-caps {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.section-padding {
    padding-bottom: var(--section-gap);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Mobile Nav */
.mobile-nav-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(19, 19, 19, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 100;
}

.mobile-nav-menu.open {
    display: flex;
}

.mobile-nav-menu a {
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: rgba(255,255,255,0.05);
}

/* Shimmer Effect for skill tags */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.skill-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(184,195,255,0.1);
    border-color: rgba(184,195,255,0.3);
    color: #b8c3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,91,255,0.15);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(135deg, #b8c3ff 0%, #ddb7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Number counter animation */
.stat-number {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
}

/* Progress bar for skills */
.skill-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e5bff, #a855f7);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.animated {
    transform: scaleX(1);
}

/* Floating particles */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(-6px) rotate(-1deg); }
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite 1s; }
.float-3 { animation: float 7s ease-in-out infinite 2s; }

/* Active nav link */
a.nav-active {
    color: #b8c3ff;
    border-bottom: 2px solid #b8c3ff;
    padding-bottom: 4px;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 0 auto;
}

/* ═══════════ RESPONSIVE DESIGN ═══════════ */

@media (max-width: 1024px) {
    :root {
        --section-gap: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    .section-padding {
        padding-bottom: var(--section-gap);
    }
    
    main {
        padding-top: 100px !important;
    }
    
    .glass-nav {
        padding: 12px 16px !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 28px !important;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

