/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN SYSTEM — Aerospace Portfolio
   Dark Space Theme · Animated · Glassmorphism
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
    --color-bg: #060b18;
    --color-bg-alt: #0a1225;
    --color-surface: rgba(16, 24, 48, 0.65);
    --color-surface-solid: #101830;
    --color-surface-hover: rgba(24, 36, 64, 0.7);
    --color-text: #e4eaf6;
    --color-text-muted: #6e82a8;
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-hover: #2563eb;
    --color-accent-glow: rgba(59, 130, 246, 0.12);
    --color-accent-glow-strong: rgba(59, 130, 246, 0.25);
    --color-border: rgba(59, 130, 246, 0.1);
    --color-border-hover: rgba(59, 130, 246, 0.3);
    --glass-bg: rgba(12, 20, 42, 0.6);
    --glass-border: rgba(59, 130, 246, 0.08);

    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(59, 130, 246, 0.12);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

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

ul {
    list-style: none;
}

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

/* ━━━ Star Canvas ━━━ */
#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GLASS CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Fade-up on scroll / page load */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Page transition */
.page {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: pageReveal 0.6s var(--ease-out);
}

@keyframes pageReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(6, 11, 24, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

#main-nav.scrolled {
    padding: 8px var(--space-lg);
    background: rgba(6, 11, 24, 0.92);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    color: var(--color-accent-light);
    font-size: 1rem;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px var(--color-accent-glow-strong);
    }

    50% {
        opacity: 0.6;
        text-shadow: 0 0 2px var(--color-accent-glow);
    }
}

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

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
}

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

.nav-link.active {
    color: var(--color-accent-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--color-accent-glow-strong);
}

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

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-gap {
    padding: var(--space-3xl) 0;
}

.page-padded {
    padding-top: calc(80px + var(--space-xl));
    padding-bottom: var(--space-3xl);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    margin-bottom: var(--space-xs);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-xs);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.page-title-inline {
    font-size: 2.4rem;
}

.page-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

.projects-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.centered-action {
    text-align: center;
    padding-top: var(--space-lg);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(6, 11, 24, 0.5) 0%,
            rgba(6, 11, 24, 0.7) 40%,
            rgba(6, 11, 24, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 var(--space-md);
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border);
    color: var(--color-accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    animation: fadeSlideDown 0.8s var(--ease-out) 0.2s both;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.hero-name .line {
    display: block;
    font-size: 5.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-light) 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name .line-1 {
    animation: heroLineIn 0.8s var(--ease-out) 0.4s both;
}

.hero-name .line-2 {
    animation: heroLineIn 0.8s var(--ease-out) 0.6s both;
}

@keyframes heroLineIn {
    from {
        opacity: 0;
        transform: translateY(30px) skewY(2deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    animation: fadeSlideDown 0.8s var(--ease-out) 0.8s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.8s var(--ease-out) 1s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: fadeSlideDown 0.8s var(--ease-out) 1.4s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE BANNER (About & Projects headers)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.page-banner {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 11, 24, 0.3) 0%,
            rgba(6, 11, 24, 0.85) 70%,
            var(--color-bg) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-lg);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.page-banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED + PROJECT CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.featured-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

.project-card-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.project-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6, 11, 24, 0.4) 100%);
}

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

.project-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    transition: color 0.3s var(--ease);
}

.project-card:hover .project-card-body h3 {
    color: var(--color-accent-light);
}

.project-card-body p {
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

/* Staggered animation for cards */
.project-card {
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn 0.6s var(--ease-out) forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0s;
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

.project-card:nth-child(5) {
    animation-delay: 0.4s;
}

.project-card:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROJECT DETAIL PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.detail-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 11, 24, 0.2) 0%,
            rgba(6, 11, 24, 0.7) 60%,
            var(--color-bg) 100%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-lg);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.detail-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: var(--space-xs);
}

.detail-back {
    margin-bottom: var(--space-xl);
}

#detail-subtitle {
    display: inline-block;
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.detail-body {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
}

.detail-actions {
    margin-bottom: var(--space-xl);
}

.detail-description {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: var(--space-3xl);
    max-width: 800px;
}

.detail-description p+p {
    margin-top: var(--space-md);
}

.detail-description h3,
.detail-description h4 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.detail-gallery-section {
    margin-bottom: var(--space-xl);
}

.detail-gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.detail-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
    transition: border-color 0.3s var(--ease), transform 0.4s var(--ease-spring);
    background-size: cover;
    background-position: center;
}

.detail-gallery-item:hover {
    border-color: var(--color-border-hover);
    transform: scale(1.02);
}

.gallery-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: rgba(6, 11, 24, 0.92);
    color: var(--color-accent-light);
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}

.detail-gallery-item {
    position: relative;
    cursor: pointer;
}

.detail-gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ━━━ Image Lightbox ━━━ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    cursor: zoom-out;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 78vh;
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: var(--shadow-glow);
    transform: scale(0.95);
    transition: transform 0.4s var(--ease-spring);
}

.lightbox-overlay.open img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: var(--space-md);
    color: var(--color-accent-light);
    font-size: 0.95rem;
    max-width: 700px;
    text-align: center;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(6, 11, 24, 0.6);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-accent-glow);
    border-color: var(--color-border-hover);
}

@media (max-width: 768px) {
    .detail-hero {
        height: 300px;
    }

    .detail-hero-content h1 {
        font-size: 2rem;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ABOUT PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-3xl);
}

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.3s var(--ease);
}

.about-photo-placeholder:hover {
    border-color: var(--color-border-hover);
}

.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease);
}

.about-photo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-body {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Skills */
.skills-block {
    margin-bottom: var(--space-3xl);
}

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

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

.skills-category {
    margin-bottom: var(--space-lg);
}

.skills-category h3 {
    font-size: 1.1rem;
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.skills-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: inline-block;
    padding: 10px 22px;
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-accent-light);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.35s var(--ease-spring);
    opacity: 0;
    transform: translateY(10px);
    animation: chipIn 0.5s var(--ease-out) forwards;
    animation-delay: var(--delay);
}

@keyframes chipIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-chip:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Timeline */
.timeline-block {
    margin-bottom: var(--space-2xl);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-border) 50%, transparent 100%);
}

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

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

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 20px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 12px var(--color-accent-glow-strong);
    transition: box-shadow 0.3s var(--ease);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 20px var(--color-accent-glow-strong), 0 0 40px var(--color-accent-glow);
}

.timeline-card {
    padding: var(--space-md) var(--space-lg);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-card h3 {
    font-size: 1.1rem;
    margin: 6px 0 4px;
}

.timeline-company {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.timeline-card p {
    color: var(--color-text-muted);
    font-size: 1.0rem;
}

.timeline-card ul {
    margin-top: var(--space-sm);
    padding-left: var(--space-md);
    color: var(--color-text-muted);
    font-size: 1.0rem;
    line-height: 1.6;
}

.timeline-card li {
    margin-bottom: 6px;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESUME PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.resume-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.resume-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

.resume-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-3xl);
    color: var(--color-text-muted);
    text-align: center;
}

.resume-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

.resume-placeholder p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-glow {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.3);
}

.btn-glow:hover {
    background: var(--color-accent-hover);
    color: #fff;
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent-glow);
    color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 11, 24, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-name .line {
        font-size: 3.2rem;
    }

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

    .about-photo-placeholder {
        max-width: 200px;
        margin: 0 auto;
    }

    .featured-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 260px;
    }

    .page-banner-content h1 {
        font-size: 2.2rem;
    }

    .modal-hero {
        height: 180px;
    }

    .modal-body {
        padding: var(--space-md);
    }

    .resume-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-name .line {
        font-size: 2.4rem;
    }

    .page-title-inline {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -26px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLLBAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-surface-solid);
    border-radius: var(--radius-pill);
}

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