/* ═══════════════════════════════════
   VARIABLES & RESETS
═══════════════════════════════════ */
:root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 20, 0.6);
    --surface-light: rgba(30, 30, 30, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --orange-accent: #FF6B00;
    --orange-glow: rgba(255, 107, 0, 0.4);
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

/* ═══════════════════════════════════
   PRELOADER (LOADING SCREEN)
═══════════════════════════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.bug-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.code-bug {
    display: flex;
    gap: 2px;
    position: relative;
}

.bug-half {
    width: 14px;
    height: 35px;
    background-color: white;
    position: relative;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.bug-left {
    border-radius: 20px 0 0 20px;
}

.bug-right {
    border-radius: 0 20px 20px 0;
}

.bug-half::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 2px;
    height: 10px;
    background-color: white;
}
.bug-left::before {
    right: 3px;
    transform: rotate(-30deg);
}
.bug-right::before {
    left: 3px;
    transform: rotate(30deg);
}

.bug-half::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 8px;
    height: 2px;
    background-color: white;
    box-shadow: 0 10px 0 white;
}
.bug-left::after {
    right: 100%;
}
.bug-right::after {
    left: 100%;
}

.terminal-loader {
    font-family: var(--font-mono);
    color: var(--orange-accent);
    font-size: 0.85rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 250px;
}

.term-line {
    height: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

/* ═══════════════════════════════════
   TYPOGRAPHY & UTILS
═══════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-center { text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--orange-accent);
    color: #fff;
    box-shadow: 0 0 15px var(--orange-glow);
}

.btn-primary:hover {
    background: #ff7a1f;
    box-shadow: 0 0 25px var(--orange-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange-accent);
    transform: translateY(-2px);
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--orange-accent);
    border-radius: 2px;
}

/* Glassmorphism utility */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 107, 0, 0.05);
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-logo-img {
    height: 35px;
    width: auto;
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-display);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--orange-accent);
    transform: translateY(-3px);
}

.hero-img-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.hero-img-container:hover .profile-img {
    filter: grayscale(0%);
}

.corner-bracket {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--orange-accent);
    border-style: solid;
    z-index: 2;
    transition: var(--transition);
}

.hero-img-container:hover .corner-bracket {
    width: 60px;
    height: 60px;
}

.corner-bracket.tl { top: -15px; left: -15px; border-width: 3px 0 0 3px; }
.corner-bracket.tr { top: -15px; right: -15px; border-width: 3px 3px 0 0; }
.corner-bracket.bl { bottom: -15px; left: -15px; border-width: 0 0 3px 3px; }
.corner-bracket.br { bottom: -15px; right: -15px; border-width: 0 3px 3px 0; }

/* ═══════════════════════════════════
   ABOUT & SKILLS
═══════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-family: var(--font-mono);
    color: var(--orange-accent);
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-hint {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.skills-interactive-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding-top: 1rem;
}

.skill-category-interactive {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

.skill-cat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    position: absolute;
    left: 0;
}

.skill-cat-btn:hover {
    background: var(--surface-light);
    border-color: var(--orange-accent);
}

.skill-category-interactive.active .skill-cat-btn {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
    color: #fff;
    box-shadow: 0 0 20px var(--orange-glow);
}

.skill-nodes {
    position: absolute;
    left: 80px; /* Offset from center of button approx */
    top: 30px; /* Center Y */
    width: 0;
    height: 0;
    pointer-events: none;
}

.skill-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    background: var(--surface-color);
    border: 1px solid var(--orange-accent);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.1);
}

/* ═══════════════════════════════════
   EXPERIENCE (Tabbed Timeline)
═══════════════════════════════════ */
.experience-intro {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-family: var(--font-display);
}

.exp-interactive-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.exp-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

.exp-tab {
    background: transparent;
    border: none;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    position: relative;
}

.exp-tab::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(-2px);
    width: 4px;
    height: 0;
    background: var(--orange-accent);
    border-radius: 4px;
    transition: 0.3s;
}

.exp-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.exp-tab.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--text-main);
}

.exp-tab.active::before {
    height: 60%;
}

.tab-company {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.tab-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--orange-accent);
}

.exp-panels {
    position: relative;
    min-height: 400px; /* enough height for largest card */
}

.exp-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.exp-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
}

.exp-tags {
    margin-bottom: 1.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.tag-startup { background: rgba(255, 107, 0, 0.15); color: var(--orange-accent); border: 1px solid rgba(255, 107, 0, 0.3); }
.tag-internship { background: rgba(0, 112, 243, 0.15); color: #0070f3; border: 1px solid rgba(0, 112, 243, 0.3); }
.tag-volunteer { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-extracurricular { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }

.exp-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.exp-role {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.exp-company {
    font-size: 1.2rem;
    color: var(--orange-accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.exp-panel p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════
   MUSIC
═══════════════════════════════════ */
.music-intro {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.music-sc-link {
    color: var(--orange-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    margin-left: 0.5rem;
    transition: opacity 0.2s;
}
.music-sc-link:hover { opacity: 0.7; }

.music-player-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Now playing panel */
.music-now-playing {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Visualizer bars */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
}

.music-visualizer span {
    flex: 1;
    background: var(--orange-accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.25;
    height: 6px;
    transition: height 0.1s;
}

.music-visualizer.playing span {
    opacity: 1;
    animation: bar-bounce 0.8s ease-in-out infinite alternate;
}

.music-visualizer.playing span:nth-child(1)  { animation-duration: 0.6s; }
.music-visualizer.playing span:nth-child(2)  { animation-duration: 0.8s; }
.music-visualizer.playing span:nth-child(3)  { animation-duration: 0.5s; }
.music-visualizer.playing span:nth-child(4)  { animation-duration: 0.9s; }
.music-visualizer.playing span:nth-child(5)  { animation-duration: 0.65s; }
.music-visualizer.playing span:nth-child(6)  { animation-duration: 0.75s; }
.music-visualizer.playing span:nth-child(7)  { animation-duration: 0.55s; }
.music-visualizer.playing span:nth-child(8)  { animation-duration: 0.85s; }
.music-visualizer.playing span:nth-child(9)  { animation-duration: 0.7s; }
.music-visualizer.playing span:nth-child(10) { animation-duration: 0.5s; }
.music-visualizer.playing span:nth-child(11) { animation-duration: 0.9s; }
.music-visualizer.playing span:nth-child(12) { animation-duration: 0.6s; }
.music-visualizer.playing span:nth-child(13) { animation-duration: 0.8s; }
.music-visualizer.playing span:nth-child(14) { animation-duration: 0.65s; }
.music-visualizer.playing span:nth-child(15) { animation-duration: 0.75s; }

@keyframes bar-bounce {
    from { height: 4px; }
    to   { height: 44px; }
}

.music-track-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.music-track-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.music-track-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* Controls */
.music-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.music-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem;
}
.music-btn:hover { color: var(--text-main); }

.music-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-accent) !important;
    color: #000 !important;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, opacity 0.2s !important;
}
.music-play-btn:hover { transform: scale(1.08); opacity: 0.9; }

/* Progress bar */
.music-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.music-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 32px;
}

.music-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.music-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--orange-accent);
    border-radius: 2px;
    transition: width 0.25s linear;
    pointer-events: none;
}

/* Track list */
.music-tracklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.music-track {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.music-track:hover {
    background: rgba(255,255,255,0.04);
}

.music-track.active {
    background: rgba(255,107,0,0.08);
    border-color: rgba(255,107,0,0.2);
}

.track-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.music-track.active .track-num {
    color: var(--orange-accent);
}

.track-title {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.track-duration {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.track-play-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    padding: 0.2rem 0.4rem;
}
.music-track:hover .track-play-btn { opacity: 1; }
.music-track.active .track-play-btn { opacity: 1; color: var(--orange-accent); }

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

/* ═══════════════════════════════════
   FEATURED SLIDESHOW
═══════════════════════════════════ */
.featured-slideshow {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.featured-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.featured-view-all {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--orange-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.featured-view-all:hover { opacity: 0.7; }

.featured-track-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.featured-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.featured-media {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.featured-slide:hover .featured-img { opacity: 1; }

.featured-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.featured-placeholder span:first-child { font-size: 2.5rem; }

.featured-info {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.featured-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.featured-tech {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--orange-accent);
    letter-spacing: 0.03em;
}

.featured-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.featured-gh-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
    text-decoration: none;
}
.featured-gh-link:hover { color: var(--orange-accent); }

/* Nav arrows */
.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,18,35,0.7);
    border: 1px solid rgba(100,255,218,0.2);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    z-index: 10;
    /* offset so arrows sit on the image, not the info pane */
    margin-top: 10px; /* compensate for header */
}
.featured-nav:hover { border-color: var(--orange-accent); color: var(--orange-accent); }
.featured-prev { left: 12px; }
.featured-next { right: 12px; }

/* Dots */
.featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 0 0.4rem;
}

.featured-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.3s;
}
.featured-dot.active { background: var(--orange-accent); }

/* Thumbnail row */
.featured-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.featured-thumb {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
.featured-thumb:last-child { border-right: none; }
.featured-thumb:hover { background: rgba(255,107,0,0.06); }
.featured-thumb.active { color: var(--text-primary); background: rgba(255,107,0,0.08); }
.featured-thumb > i:first-child { font-size: 1.1rem; color: var(--orange-accent); }
.featured-thumb .thumb-links { display: flex; gap: 0.5rem; margin-top: auto; opacity: 0.5; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .featured-track-wrapper { height: auto; }
    .featured-slide { position: relative; opacity: 1; pointer-events: auto; display: none; flex-direction: column; }
    .featured-slide.active { display: flex; }
    .featured-media { flex: none; height: 220px; }
    .featured-info { padding: 1.5rem 1.2rem; }
    .featured-thumbs { grid-template-columns: repeat(2, 1fr); }
    .featured-nav { display: none; }
}

/* ═══════════════════════════════════
   PROJECTS (3D Carousel)
═══════════════════════════════════ */
.projects-subtitle {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 4rem;
}

.projects-3d-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}

.projects-3d-wrapper:active {
    cursor: grabbing;
}

.carousel-container {
    position: relative;
    width: 340px;
    height: 420px;
    transform-style: preserve-3d;
}

.project-card-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.project-card-3d:hover {
    border-color: var(--orange-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(255, 107, 0, 0.2);
}

.pc-cat {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--orange-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pc-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.pc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.pc-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pc-stack span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

.pc-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* GSAP INITIAL STATES */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-20px);
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions, .hero-socials { justify-content: center; }
    .hero-img-container { margin-top: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .exp-interactive-container { grid-template-columns: 1fr; }
    .exp-tabs { flex-direction: row; overflow-x: auto; border-left: none; border-bottom: 2px solid var(--border-color); padding-left: 0; padding-bottom: 1rem; }
    .exp-tab::before { left: 50%; top: auto; bottom: -1.2rem; width: 0; height: 4px; transform: translateX(-50%); }
    .exp-tab.active::before { width: 60%; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .projects-3d-wrapper { height: 500px; }
    .carousel-container { width: 300px; height: 380px; }
    
    .skill-nodes { left: 40px; }
    .exp-role { font-size: 1.4rem; }
}