/* Design System Variables - Tech/QA Portfolio */
:root {
    /* Colors — Dark theme (default) */
    --color-primary: #F8FAFC;
    --color-on-primary: #0F172A;
    --color-secondary: #94A3B8;
    --color-on-secondary: #0F172A;
    --color-accent: #3B82F6;
    --color-on-accent: #ffffff;
    --color-background: #0B0B10;
    --color-foreground: #F8FAFC;
    --color-card: #1E1E23;
    --color-card-foreground: #F8FAFC;
    --color-muted: #232328;
    --color-muted-foreground: #94A3B8;
    --color-border: #1E293B;
    --color-destructive: #EF4444;
    --color-on-destructive: #000000;
    --color-ring: #F8FAFC;

    /* Spacing Scale */
    --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;

    /* Typography */
    --font-heading: 'Exo', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-body: 'Exo', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Light theme overrides */
[data-theme="light"] {
    --color-primary: #0F172A;
    --color-on-primary: #F8FAFC;
    --color-secondary: #475569;
    --color-accent: #2563EB;
    --color-on-accent: #ffffff;
    --color-background: #F1F5F9;
    --color-foreground: #0F172A;
    --color-card: #FFFFFF;
    --color-card-foreground: #0F172A;
    --color-muted: #E2E8F0;
    --color-muted-foreground: #475569;
    --color-border: #CBD5E1;
    --color-ring: #2563EB;
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .navbar {
    background: rgba(241, 245, 249, 0.92);
}

[data-theme="light"] .hero::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .terminal-window {
    background: #1e1e2e;
    border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .profile-card {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] #hero-canvas { opacity: 0.5; }

[data-theme="light"] .hero-title,
[data-theme="light"] .glitch-text::before,
[data-theme="light"] .glitch-text::after {
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .about {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(241, 245, 249, 0) 100%);
}

[data-theme="light"] .projects {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0) 0%, rgba(37, 99, 235, 0.04) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: var(--line-height-normal);
    font-size: var(--text-base);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: var(--space-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
    font-size: var(--text-xl);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #60A5FA 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-on-accent);
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-xl);
}

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

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

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-foreground);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--color-accent);
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* Dark mode: show sun (to switch to light) */
.icon-sun  { opacity: 1; transform: rotate(0deg); }
.icon-moon { opacity: 0; transform: rotate(-90deg); }

[data-theme="light"] .icon-sun  { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0deg); }

.btn-resume {
    background: var(--color-accent);
    color: var(--color-on-accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 6px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-resume:hover {
    background: #2563EB;
    box-shadow: var(--shadow-glow);
}

/* Hamburger Menu Toggle */
.nav-actions-mobile {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--color-accent);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

.nav-desktop-only { display: list-item; }

@media (max-width: 768px) {
    .nav-actions-mobile {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-desktop-only {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-background);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        z-index: 999;
    }

    .nav-links.open {
        max-height: 400px;
        padding: var(--space-lg) 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a,
    .nav-links .btn-resume {
        display: block;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }

    .nav-links a::after {
        display: none;
    }

    .navbar-brand {
        gap: var(--space-sm);
    }

    .logo-text {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 100px var(--space-lg) 60px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    font-size: var(--text-sm);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.btn-primary:hover {
    background: #2563EB;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-foreground);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat:hover {
    background: var(--color-muted);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
}

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

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

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

    .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Section Title */
.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3xl);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 50%, transparent 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(11, 11, 16, 0) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
}

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

.about-highlights {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    border-radius: 12px;
}

.about-highlights h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.highlights-list {
    list-style: none;
}

.highlights-list li {
    padding: var(--space-md) 0;
    color: var(--color-foreground);
    position: relative;
    padding-left: var(--space-lg);
}

.highlights-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills Section */
.skills {
    padding: var(--space-4xl) var(--space-lg);
}

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

.skill-category {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.skill-category h3 {
    font-size: var(--text-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

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

.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all var(--transition-fast);
}

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

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Education & Certifications */
.education {
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

[data-theme="light"] .education {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.education-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-2xl);
    display: flex;
    gap: var(--space-xl);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-glow);
}

.education-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.education-info h3 {
    font-size: var(--text-xl);
    color: var(--color-foreground);
    margin-bottom: 4px;
}

.education-institution {
    font-size: var(--text-base);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.education-meta {
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
    font-family: var(--font-mono);
    margin-bottom: var(--space-md);
}

.education-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.education-highlights li {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    padding-left: var(--space-lg);
    position: relative;
}

.education-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.certifications-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-2xl);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.certifications-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-glow);
}

.certifications-title {
    font-size: var(--text-xl);
    color: var(--color-foreground);
    margin-bottom: var(--space-xl);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cert-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.cert-info h4 {
    font-size: var(--text-base);
    color: var(--color-foreground);
    font-weight: 600;
    margin-bottom: 2px;
}

.cert-info h4 a {
    color: var(--color-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cert-info h4 a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(59, 130, 246, 0.5);
}

.cert-info p {
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
    font-family: var(--font-mono);
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Projects Section */
.projects {
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(11, 11, 16, 0) 0%, rgba(59, 130, 246, 0.05) 100%);
}

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

.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    border-radius: 12px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-lg);
}

.project-card h3 {
    font-size: var(--text-lg);
    color: var(--color-foreground);
    flex: 1;
}

.project-year {
    font-size: var(--text-xs);
    color: var(--color-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-left: var(--space-md);
}

.project-description {
    color: var(--color-secondary);
    font-size: var(--text-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    flex: 1;
}

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

.project-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-block;
}

.project-link:hover {
    color: #60A5FA;
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Agents Preview */
.ai-agents-preview {
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.ai-preview-content {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.ai-preview-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.ai-preview-content p {
    font-size: var(--text-lg);
    color: var(--color-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.btn-accent:hover {
    background: #2563EB;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: var(--space-4xl) var(--space-lg);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content .section-title {
    display: block;
    text-align: center;
}

.contact-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-description {
    font-size: var(--text-lg);
    color: var(--color-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg) var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
}

.contact-detail svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-heading {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--space-lg);
}

.footer-bio {
    color: var(--color-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.footer-subheading {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    color: var(--color-secondary);
    font-size: var(--text-sm);
}

.footer-links a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(59, 130, 246, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
    font-size: var(--text-xs);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags span {
    font-size: var(--text-xs);
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.footer-tags span:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================
   INTERACTIVE ENHANCEMENTS
   ============================================================ */

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1d4ed8, #3B82F6, #60A5FA, #3B82F6);
    background-size: 300% 100%;
    z-index: 9999;
    animation: progress-shimmer 2s linear infinite;
    transition: width 0.08s linear;
    pointer-events: none;
}

@keyframes progress-shimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* Custom Cursor */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: #3B82F6;
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(59, 130, 246, 0.55);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                opacity 0.3s ease;
}

#cursor-dot.cursor-hover  { width: 12px; height: 12px; background: #60A5FA; }
#cursor-ring.cursor-hover { width: 56px; height: 56px; border-color: rgba(59, 130, 246, 0.9); }
#cursor-ring.cursor-click { width: 24px; height: 24px; }

@media (hover: none) and (pointer: coarse) {
    #cursor-dot, #cursor-ring { display: none; }
}

/* Hero Canvas */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    color: #CBD5E1;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

[data-theme="light"] .hero-badge {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1E293B;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    color: #3B82F6;
    font-weight: 300;
    animation: blink-cursor 1s step-end infinite;
    margin-left: 1px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Glitch Effect on Hero Title */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text::before {
    animation: glitch-top 5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
}

.glitch-text::after {
    animation: glitch-bottom 5s infinite 0.1s;
    clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
}

@keyframes glitch-top {
    0%, 88%, 100% { transform: none; opacity: 0; }
    89%  { transform: translateX(-3px); opacity: 0.8; filter: hue-rotate(120deg); }
    91%  { transform: translateX(3px);  opacity: 0.8; }
    93%  { transform: translateX(-1px); opacity: 0.8; }
    94%  { transform: none; opacity: 0; }
}

@keyframes glitch-bottom {
    0%, 88%, 100% { transform: none; opacity: 0; }
    90%  { transform: translateX(3px);  opacity: 0.7; filter: hue-rotate(-120deg); }
    92%  { transform: translateX(-3px); opacity: 0.7; }
    94%  { transform: translateX(2px);  opacity: 0.7; }
    95%  { transform: none; opacity: 0; }
}

/* Hero Visual Column */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Terminal Window */
.terminal-window {
    background: #0D1117;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(59, 130, 246, 0.08),
        0 0 30px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    position: relative;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.7) 40%, rgba(96, 165, 250, 0.9) 50%, rgba(59, 130, 246, 0.7) 60%, transparent 100%);
    animation: scan-glow 4s ease-in-out infinite;
}

@keyframes scan-glow {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; }
}

.terminal-header {
    background: #161B22;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #21262D;
}

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

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green  { background: #28CA41; animation: green-pulse 3s ease-in-out infinite; }

@keyframes green-pulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 6px rgba(40, 202, 65, 0.6); }
}

.terminal-title {
    font-size: 0.7rem;
    color: #6E7681;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 14px 18px;
    font-size: 0.78rem;
    line-height: 2;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: none;
}

.terminal-line .prompt  { color: #3B82F6; font-weight: 700; }
.terminal-line .cmd     { color: #E6EDF3; }
.terminal-line          { color: #E6EDF3; }
.output-text            { color: #8B949E; }
.output-text.dim        { color: #6E7681; }
.test-pass              { color: #3FB950; }
.test-warn              { color: #D29922; }
.pass-count             { color: #3FB950; font-weight: 600; }

.terminal-cursor-blink {
    color: #3B82F6;
    animation: blink-cursor 1s step-end infinite;
}

/* Scroll Reveal — only hidden when JS marks it off-screen */
.reveal.will-animate {
    opacity: 0;
    transform: translateY(28px);
}

.reveal {
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.will-animate.revealed {
    opacity: 1;
    transform: none;
}

/* Section title char animation */
.char {
    display: inline-block;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.char.will-animate {
    opacity: 0;
    transform: translateY(18px) rotateX(-40deg);
}

.char.visible { opacity: 1 !important; transform: none !important; }
.char.space   { display: inline; }

/* 3D Tilt Card */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Card spotlight effect */
.project-card {
    position: relative;
    overflow: hidden;
}

/* Spotlight — 21st.dev Tilt Card style (white radial, evade mode) */
.project-card .card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.project-card .card-spotlight::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    left: var(--mx, 50%);
    top:  var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 42%);
    pointer-events: none;
}

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

.project-card > * { position: relative; z-index: 1; }

/* HUD corners on skill categories */
.skill-category { position: relative; }

.skill-category::before,
.skill-category::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-category::before {
    top: 10px; left: 10px;
    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
    transform: translate(-4px, -4px);
}

.skill-category::after {
    bottom: 10px; right: 10px;
    border-bottom: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    transform: translate(4px, 4px);
}

.skill-category:hover::before { opacity: 1; transform: none; }
.skill-category:hover::after  { opacity: 1; transform: none; }

/* Skill tag wave */
.skill-tags .skill-tag {
    transition: opacity 0.35s ease, transform 0.35s ease,
                background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.skill-tags.will-animate .skill-tag {
    opacity: 0;
    transform: translateY(8px);
}

.skill-tags.animated .skill-tag { opacity: 1; transform: none; }

/* Magnetic button */
.magnetic {
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background 0.2s ease,
                color 0.2s ease !important;
}

/* Nav active highlight */
.nav-links a.active {
    color: var(--color-accent);
}

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

/* Floating glow */
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-orb 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33%  { transform: scale(1.1) translate(-25px, -20px); }
    66%  { transform: scale(0.92) translate(15px, -35px); }
}

/* Stat counter glow */
.stat.counting .stat-number {
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
}

/* Highlights list item animation */
.highlights-list li {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.highlights-list li:hover {
    border-color: rgba(59, 130, 246, 0.2);
    padding-left: calc(var(--space-lg) + 4px);
}

/* ─── Profile Card (Hero) ─── */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.12);
}

.profile-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
}

.profile-photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(59, 130, 246, 0.4);
    display: block;
    position: relative;
    z-index: 1;
}

.profile-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    animation: ring-spin 6s linear infinite;
}

.profile-ring.ring-2 {
    inset: -10px;
    border-color: rgba(59, 130, 246, 0.15);
    border-width: 1px;
    animation-duration: 10s;
    animation-direction: reverse;
}

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

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-foreground);
}

.profile-role {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

/* ─── About Photo ─── */
.about-photo-wrap {
    display: inline-flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.08), 0 12px 30px rgba(0,0,0,0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.about-photo:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.12), 0 0 40px rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
}

/* External link click feedback */
a[target="_blank"] { transition: opacity 0.15s ease; }

@media (max-width: 768px) {
    .terminal-body { padding: 10px 12px; font-size: 0.72rem; }
    .terminal-title { display: none; }
    .hero-visual { order: 1; }
}

/* ─── Footer Social Icons ─── */
.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--color-secondary);
    transition: all 0.3s ease;
    padding: 8px;
}

.footer-social-icon:hover {
    color: var(--color-foreground);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* ─── Experience Timeline ─── */
.experience {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%, rgba(59, 130, 246, 0.02) 100%);
    pointer-events: none;
}

[data-theme="light"] .experience::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 50%, rgba(37, 99, 235, 0.03) 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl) 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--color-accent), rgba(59, 130, 246, 0.3));
    transform: translateX(-50%);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-3xl);
    width: 100%;
}

.timeline-item[data-side="left"] {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.timeline-item[data-side="right"] {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 2;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.revealed .marker-dot {
    animation: marker-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes marker-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.timeline-item.revealed .marker-ring {
    transform: translate(-50%, -50%) scale(1);
}

/* Timeline Card */
.timeline-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-xl) var(--space-2xl);
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 22px;
    width: 16px;
    height: 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item[data-side="left"] .timeline-card::before {
    right: -9px;
    border-left: none;
    border-bottom: none;
}

.timeline-item[data-side="right"] .timeline-card::before {
    left: -9px;
    border-right: none;
    border-top: none;
}

.timeline-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

/* Card Content */
.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.timeline-badge.current {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-green 2s ease-in-out infinite;
}

.timeline-company-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.timeline-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.timeline-logo.logo-dark-bg {
    background: #1a1a2e;
}

.timeline-company {
    font-size: var(--text-xl);
    color: var(--color-foreground);
    margin-bottom: 0;
    font-weight: 600;
}

.timeline-role {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.timeline-location {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    font-family: var(--font-mono);
    margin-bottom: var(--space-md);
}

.timeline-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.timeline-projects span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.timeline-projects span:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

.timeline-highlight {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    line-height: 1.6;
    border-left: 2px solid rgba(59, 130, 246, 0.3);
    padding-left: var(--space-md);
    margin-top: var(--space-sm);
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-line,
    .timeline-progress {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item[data-side="left"],
    .timeline-item[data-side="right"] {
        padding-left: 55px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item[data-side="left"] .timeline-card::before,
    .timeline-item[data-side="right"] .timeline-card::before {
        left: -9px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .char { opacity: 1; transform: none; }
    .skill-tags .skill-tag { opacity: 1; transform: none; }
    .terminal-line { opacity: 1; transform: none; }
    #cursor-dot, #cursor-ring { display: none; }
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

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

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

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