/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #161618;
    --surface: #1c1c1f;
    --border: #2a2a2e;
    --border-subtle: #1f1f23;
    --text-primary: #f0f0f0;
    --text-secondary: #888892;
    --text-muted: #55555e;
    --accent: #6ee7b7;
    --accent-dim: rgba(110, 231, 183, 0.1);
    --accent-glow: rgba(110, 231, 183, 0.3);
    --accent-secondary: #818cf8;
    --font-main: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

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

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

/* ===========================
   Custom Cursor
   =========================== */
.cursor {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s var(--ease-out-expo), opacity 0.15s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-trail {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s linear;
}

.cursor.hovering {
    transform: translate(-50%, -50%) scale(2.5);
    border-color: var(--accent);
    background: rgba(110, 231, 183, 0.06);
}

@media (pointer: coarse) {
    .cursor, .cursor-trail { display: none; }
}

/* ===========================
   Noise Overlay
   =========================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    gap: 2px;
}

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

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

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

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 3rem 3rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 231, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 183, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.name-line {
    display: block;
    overflow: hidden;
}

.name-line-indent {
    padding-left: 0.5em;
    position: relative;
}

.char-reveal {
    display: inline-block;
    animation: slideUp 1s var(--ease-out-expo) both;
}

.name-line:nth-child(1) .char-reveal {
    animation-delay: 0.3s;
}

.name-line:nth-child(2) .char-reveal {
    animation-delay: 0.5s;
}

.hero-accent {
    display: inline-block;
    width: 0.6em;
    height: 0.08em;
    background: var(--accent);
    vertical-align: 0.2em;
    margin-left: 0.15em;
    border-radius: 4px;
    animation: slideUp 1s var(--ease-out-expo) 0.7s both;
}

@keyframes slideUp {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.hero-role {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s var(--ease-out-expo) 0.9s both;
}

.terminal-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 700;
}

.terminal-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInDown 0.8s var(--ease-out-expo) 1.1s both;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.8s var(--ease-out-expo) 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.6); }
}

.scroll-text {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ===========================
   Sections Common
   =========================== */
.section {
    padding: 8rem 3rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.label-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--border);
}

.label-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.text-accent {
    color: var(--accent);
}

/* ===========================
   About Section
   =========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-photo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-glitch {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        var(--accent-dim) 40%,
        var(--accent-dim) 60%,
        transparent 60%
    );
    opacity: 0;
    animation: glitch-flash 4s ease-in-out infinite;
}

@keyframes glitch-flash {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.5; transform: translateX(-3px); }
    94% { opacity: 0; }
    96% { opacity: 0.3; transform: translateX(3px); }
    98% { opacity: 0; }
}

.photo-decoration {
    position: absolute;
    inset: -15px;
    pointer-events: none;
}

.photo-svg {
    width: 100%;
    height: 100%;
}

.rotating-circle {
    animation: rotate-slow 20s linear infinite;
    transform-origin: center;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-plus {
    font-size: 1.25rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.about-text p {
    margin-bottom: 1.25rem;
}

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

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-main);
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #5dd9a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

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

.btn-icon {
    transition: transform 0.3s;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ===========================
   Experience Section
   =========================== */
.experience {
    background: var(--bg);
}

.experience-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2rem;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: 1.75rem;
    transition: background 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    margin-top: 4px;
}

.timeline-content {
    padding-bottom: 2.5rem;
}

.timeline-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s var(--ease-out-expo);
    border-radius: 0 0 3px 0;
}

.timeline-card:hover {
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-dim);
}

.timeline-card:hover::before {
    height: 100%;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.timeline-company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-company-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: hsla(var(--company-hue, 0), 50%, 50%, 0.1);
    color: hsla(var(--company-hue, 0), 60%, 65%, 1);
    border: 1px solid hsla(var(--company-hue, 0), 40%, 40%, 0.2);
}

.timeline-company-logo svg {
    width: 22px;
    height: 22px;
}

.timeline-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.timeline-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(110, 231, 183, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

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

.timeline-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.timeline-tech span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s;
}

.timeline-card:hover .timeline-tech span {
    border-color: rgba(110, 231, 183, 0.2);
    color: var(--text-secondary);
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 0.5rem;
    transition: gap 0.3s;
}

.timeline-link:hover {
    gap: 0.8rem;
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.skills-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.skill-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-dim);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.skill-level {
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    width: var(--level);
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out-expo);
}

.skill-card.in-view .skill-bar {
    transform: scaleX(1);
}

/* Marquee */
.tech-marquee {
    overflow: hidden;
    padding: 2rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===========================
   Work Section
   =========================== */
.work-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: block;
}

.project-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.project-preview {
    background: var(--bg-card);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-card-featured .project-preview {
    padding: 2rem;
}

.project-browser {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:last-child { background: #28ca41; }

.browser-url {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.project-thumbnail {
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.project-card-featured .project-thumbnail {
    aspect-ratio: 4/3;
}

.project-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
    filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .project-thumb-img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

.project-thumb-text {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    opacity: 0.3;
}

.project-card-featured .project-thumb-text {
    font-size: 4rem;
}

.project-info {
    padding: 1.5rem;
}

.project-card-featured .project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
}

.project-link-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.project-card:hover .project-link-text {
    gap: 0.8rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s var(--ease-out-expo);
}

.contact-link-card:hover {
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-link-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    color: var(--accent);
}

.contact-link-icon svg {
    width: 20px;
    height: 20px;
}

.contact-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-link-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.contact-link-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-link-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.contact-link-card:hover .contact-link-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

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

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

/* ===========================
   Scroll Reveal Animations
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

    .project-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

    .about-left {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .about-photo-wrapper {
        margin-bottom: 0;
        width: 160px;
        height: 160px;
        flex-shrink: 0;
    }

    .about-stats {
        flex: 1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 24px 1fr;
        gap: 1rem;
    }

    .timeline-card {
        padding: 1.5rem;
    }

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

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .hero-meta {
        gap: 1rem;
    }

    .meta-divider {
        display: none;
    }

    .meta-item {
        flex-basis: 45%;
        text-align: center;
    }

    .about-left {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .about-cta .btn {
        text-align: center;
        justify-content: center;
    }

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

    .footer {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

    .name-line-indent {
        padding-left: 0.25em;
    }

    .terminal-line {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }

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