/* ============================================
   Design System — Kalash Jain Portfolio
   ============================================ */

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

:root {
    /* Color Palette — Warm neutral with a punch of teal */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --accent: #14b8a6;
    --accent-dim: rgba(20, 184, 166, 0.15);
    --accent-glow: rgba(20, 184, 166, 0.08);

    --border: #27272a;
    --border-hover: #3f3f46;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Premium Animated Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(20, 184, 166, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 90%, rgba(20, 184, 166, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(168, 85, 247, 0.10) 0%, transparent 60%);
    animation: meshFloat 20s ease-in-out infinite alternate;
}

/* Dot grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@keyframes meshFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.02);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.98);
    }
    100% {
        transform: translate(10px, -10px) scale(1.01);
    }
}

/* Glowing orbs behind sections */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Alternate sections get purple orb */
.section-alt::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 10, 11, 0.5);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    padding: 8rem var(--space-xl) var(--space-4xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero dramatic glow */
.hero::before {
    content: '';
    position: absolute;
    top: 5%;
    left: -15%;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 70%);
    filter: blur(80px);
    animation: heroGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 70%);
    filter: blur(70px);
    animation: heroGlow 12s ease-in-out infinite alternate-reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
    100% { transform: translate(-20px, 10px) scale(0.95); opacity: 0.8; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: rgba(20, 184, 166, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(20, 184, 166, 0.1);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-line {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero-role {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-top: var(--space-xs);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: rgba(20, 184, 166, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0a0a0b;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: rgba(13, 148, 136, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Code Window */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-window {
    background: rgba(17, 17, 19, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.code-body {
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-secondary);
    scrollbar-width: thin;
}

.code-body code {
    font-family: inherit;
}

.code-body .kw { color: #c084fc; }
.code-body .str { color: #34d399; }
.code-body .num { color: #fb923c; }
.code-body .comment { color: #52525b; font-style: italic; }

/* --- Sections --- */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-alt {
    background: transparent;
}

.section-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-3xl);
    color: var(--text-primary);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.highlight-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    transform: translateX(4px);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.skill-category {
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.skill-icon {
    font-size: 1.3rem;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.skill-tag.highlight {
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--accent);
    background: var(--accent-dim);
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.project-card.featured {
    grid-column: 1 / -1; /* featured spans full width */
}

.project-card {
    padding: var(--space-2xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    /* 3D perspective */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Glass light refraction — top edge highlight */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.2) 70%, transparent 100%);
    z-index: 1;
}

/* Inner glass sheen */
.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(20, 184, 166, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.project-card:hover::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.project-card.featured {
    border-color: rgba(20, 184, 166, 0.15);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(20, 184, 166, 0.15);
}

/* === SPOTLIGHT PROJECT — Center of Attraction === */
.project-card.spotlight {
    border-color: rgba(20, 184, 166, 0.3);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(168, 85, 247, 0.04) 100%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(20, 184, 166, 0.1),
        0 0 120px rgba(20, 184, 166, 0.05),
        inset 0 1px 0 rgba(20, 184, 166, 0.2);
    animation: spotlightPulse 4s ease-in-out infinite;
}

.project-card.spotlight:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(20, 184, 166, 0.15),
        0 0 150px rgba(20, 184, 166, 0.08),
        inset 0 1px 0 rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.4);
}

.project-card.spotlight .project-label {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    animation: labelGlow 2s ease-in-out infinite alternate;
}

@keyframes spotlightPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 60px rgba(20,184,166,0.1), inset 0 1px 0 rgba(20,184,166,0.2); }
    50% { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 80px rgba(20,184,166,0.15), 0 0 120px rgba(20,184,166,0.06), inset 0 1px 0 rgba(20,184,166,0.25); }
}

@keyframes labelGlow {
    0% { text-shadow: none; }
    100% { text-shadow: 0 0 8px rgba(20, 184, 166, 0.5); }
}

/* Live Demo CTA Button */
.live-demo-btn {
    background: rgba(20, 184, 166, 0.9) !important;
    color: #0a0a0b !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em;
    border: none !important;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    animation: demoBtnGlow 3s ease-in-out infinite;
}

.live-demo-btn:hover {
    background: rgba(13, 148, 136, 0.95) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

@keyframes demoBtnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(20,184,166,0.3); }
    50% { box-shadow: 0 4px 30px rgba(20,184,166,0.5), 0 0 40px rgba(20,184,166,0.15); }
}

.project-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: var(--space-lg);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent);
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

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

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-2xl) + 2px);
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    z-index: 1;
}

.timeline-content {
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.timeline-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

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

.timeline-details li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.timeline-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Certifications --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.cert-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
    text-decoration: none;
}

.cert-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    background: rgba(255, 255, 255, 0.06);
}

.cert-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.cert-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cert-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Contact --- */
.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-top: -var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.contact-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(20, 184, 166, 0.08), inset 0 1px 0 rgba(20, 184, 166, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.contact-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* --- Footer --- */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(10, 10, 11, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer strong {
    color: var(--text-secondary);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 7rem;
        gap: var(--space-2xl);
    }

    .hero-visual {
        order: -1;
    }

    .code-window {
        max-width: 100%;
    }

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

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

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

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card {
        padding: var(--space-xl);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: var(--text-primary);
}
