/* =========================================================
   STYLES.CSS — Pranaav Srinivasan Portfolio
   Features: Dark/Light theme, Section gradients, Animations
   ========================================================= */

/* ---- DARK THEME (default) ---- */
[data-theme="dark"] {
  --c-bg: #0a0a0a;
  --c-bg-alt: #111111;
  --c-bg-card: rgba(255,255,255,0.03);
  --c-bg-card-hover: rgba(255,255,255,0.06);
  --c-bg-glass: rgba(20,20,20,0.65);
  --c-border: rgba(255,255,255,0.06);
  --c-border-accent: rgba(255,107,0,0.25);
  --c-text: #ededed;
  --c-text-secondary: #888888;
  --c-text-muted: #555555;
  --c-accent: #ff6b00;
  --c-accent-2: #ff3b30;
  --c-accent-3: #ffb800;
  --c-accent-dark: #cc5500;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-success: #34c759;
  --c-nav-scrolled: rgba(10,10,10,0.8);
  --c-selection: rgba(255,107,0,0.3);
  --c-orb-opacity: 0.3;
  --c-noise-opacity: 0.03;
  --c-svg-avatar-bg-1: #1a1a1a;
  --c-svg-avatar-bg-2: #0d0d0d;
  --c-svg-eyes: #0a0a0a;
  --c-svg-hair: #1a1a1a;
  --c-logo-text-fill: #0a0a0a;
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --c-bg: #f8f7f4;
  --c-bg-alt: #efeeeb;
  --c-bg-card: rgba(0,0,0,0.03);
  --c-bg-card-hover: rgba(0,0,0,0.06);
  --c-bg-glass: rgba(248,247,244,0.75);
  --c-border: rgba(0,0,0,0.08);
  --c-border-accent: rgba(255,107,0,0.3);
  --c-text: #1a1a1a;
  --c-text-secondary: #5a5a5a;
  --c-text-muted: #999999;
  --c-accent: #e85d00;
  --c-accent-2: #e03328;
  --c-accent-3: #e5a600;
  --c-accent-dark: #c04a00;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-success: #28a745;
  --c-nav-scrolled: rgba(248,247,244,0.85);
  --c-selection: rgba(255,107,0,0.2);
  --c-orb-opacity: 0.38;
  --c-noise-opacity: 0.025;
  --c-svg-avatar-bg-1: #e8e5df;
  --c-svg-avatar-bg-2: #dedad3;
  --c-svg-eyes: #1a1a1a;
  --c-svg-hair: #e8e5df;
  --c-logo-text-fill: #ffffff;
}

/* ---- ROOT CONSTANTS ---- */
:root {
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-heading: 'Space Grotesk', 'Inter', sans-serif;
  --f-display: 'Syne', 'Space Grotesk', sans-serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 60px rgba(255,107,0,0.15);
  --shadow-card: 0 4px 30px rgba(0,0,0,0.3);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  z-index: 10001; background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3), var(--c-accent-2));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(255,107,0,0.5);
  transition: width 0.05s linear;
}

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
}
a { text-decoration: none; color: inherit; cursor: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { border: none; outline: none; background: none; cursor: none; font-family: inherit; }
::selection { background: var(--c-selection); color: var(--c-text); }

/* ---- UTILITIES ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.text-gradient {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { position: relative; width: 80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.preloader-ring {
  position: absolute; width: 80px; height: 80px;
  border: 3px solid transparent;
  border-top-color: var(--c-accent);
  border-right-color: var(--c-accent-3);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.preloader-text {
  font-family: var(--f-heading);
  font-size: 1.3rem; font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 2px;
}
.preloader-subtitle {
  position: absolute; bottom: -28px;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--c-text-muted); letter-spacing: 3px; text-transform: uppercase;
  opacity: 0.7;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- CUSTOM CURSOR ---- */
.custom-cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,107,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo), border-color 0.3s, opacity 0.3s;
}
body:has([data-cursor="link"]:hover) .custom-cursor { width: 14px; height: 14px; background: var(--c-accent-3); }
body:has([data-cursor="link"]:hover) .cursor-follower { width: 52px; height: 52px; border-color: var(--c-accent-3); opacity: 0.7; }

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-secondary);
  font-size: 1rem;
  transition: all 0.4s var(--ease-out-expo);
  margin-left: 8px;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(255,107,0,0.08);
  transform: rotate(180deg);
}
.theme-toggle i {
  transition: transform 0.5s var(--ease-out-expo);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
.navbar.scrolled {
  background: var(--c-nav-scrolled);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark svg { width: 38px; height: 38px; }
.logo-text {
  font-family: var(--f-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--c-text); letter-spacing: -0.02em;
  transition: color 0.4s;
}
.nav-links { display: flex; align-items: center; gap: 8px; position: relative; }
.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: var(--c-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--c-text); background: var(--c-bg-card-hover); }
.nav-link.nav-active { color: var(--c-accent); background: rgba(255,107,0,0.06); }
.nav-active-indicator {
  position: absolute; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3));
  border-radius: 2px;
  transition: left 0.4s var(--ease-out-expo), width 0.4s var(--ease-out-expo), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.nav-link-cta {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white) !important;
  padding: 8px 20px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.nav-link-cta:hover { background: linear-gradient(135deg, var(--c-accent-dark), var(--c-accent-2)); transform: translateY(-1px); }
.nav-link-cta i { font-size: 0.75rem; transition: transform 0.3s; }
.nav-link-cta:hover i { transform: translateX(3px); }

.nav-hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; position: relative; z-index: 1001; }
.hamburger-lines { width: 24px; height: 14px; position: relative; }
.hamburger-lines span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.hamburger-lines span:first-child { top: 0; }
.hamburger-lines span:last-child { bottom: 0; }
.nav-hamburger.active .hamburger-lines span:first-child { transform: rotate(45deg); top: 6px; }
.nav-hamburger.active .hamburger-lines span:last-child { transform: rotate(-45deg); bottom: 6px; }

/* ======================================
   SECTION BACKGROUND GRADIENT SYSTEM
   Each section gets unique gradient orbs
   ====================================== */
.section { padding: 120px 0; position: relative; overflow: hidden; }

.section-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--c-orb-opacity);
  transition: opacity 0.5s, filter 0.5s;
}
[data-theme="light"] .section-orb {
  filter: blur(80px);
}
[data-theme="light"] .hero-gradient-orb {
  filter: blur(80px);
  opacity: 0.35;
}
.section-noise {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--c-noise-opacity);
  pointer-events: none;
}
.section-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 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%);
  opacity: 0.4;
}

/* About: warm orange bottom-left, faint red top-right */
.about-section .section-orb-1 { width: 600px; height: 600px; bottom: -10%; left: -8%; background: radial-gradient(circle, var(--c-accent), var(--c-accent-2)); animation: sectionOrb1 14s ease-in-out infinite; }
.about-section .section-orb-2 { width: 420px; height: 420px; top: 5%; right: -5%; background: radial-gradient(circle, var(--c-accent-2), var(--c-accent-3)); animation: sectionOrb2 18s ease-in-out infinite; }

/* Skills: amber center, orange right */
.skills-section .section-orb-3 { width: 550px; height: 550px; top: 10%; left: 30%; background: radial-gradient(circle, var(--c-accent-3), var(--c-accent)); animation: sectionOrb3 16s ease-in-out infinite; }
.skills-section .section-orb-4 { width: 480px; height: 480px; bottom: -5%; right: -10%; background: radial-gradient(circle, var(--c-accent), var(--c-accent-2)); animation: sectionOrb4 20s ease-in-out infinite; }

/* Experience: red top-left, amber bottom-right */
.experience-section .section-orb-5 { width: 600px; height: 600px; top: -15%; left: -10%; background: radial-gradient(circle, var(--c-accent-2), var(--c-accent)); animation: sectionOrb5 15s ease-in-out infinite; }
.experience-section .section-orb-6 { width: 420px; height: 420px; bottom: 10%; right: 10%; background: radial-gradient(circle, var(--c-accent-3), var(--c-accent-2)); animation: sectionOrb6 22s ease-in-out infinite; }

/* Projects: orange top-right, red bottom-left */
.projects-section .section-orb-7 { width: 650px; height: 650px; top: -5%; right: -15%; background: radial-gradient(circle, var(--c-accent), var(--c-accent-3)); animation: sectionOrb7 17s ease-in-out infinite; }
.projects-section .section-orb-8 { width: 480px; height: 480px; bottom: -10%; left: -10%; background: radial-gradient(circle, var(--c-accent-2), var(--c-accent-3)); animation: sectionOrb8 21s ease-in-out infinite; }

/* Resume: amber center-top, orange bottom */
.resume-section .section-orb-9 { width: 600px; height: 600px; top: 10%; left: 20%; background: radial-gradient(circle, var(--c-accent-3), var(--c-accent)); animation: sectionOrb9 19s ease-in-out infinite; }
.resume-section .section-orb-10 { width: 420px; height: 420px; bottom: -5%; right: 20%; background: radial-gradient(circle, var(--c-accent), var(--c-accent-2)); animation: sectionOrb10 14s ease-in-out infinite; }

/* Contact: red center, amber left */
.contact-section .section-orb-11 { width: 600px; height: 600px; top: 20%; left: -5%; background: radial-gradient(circle, var(--c-accent-2), var(--c-accent)); animation: sectionOrb11 16s ease-in-out infinite; }
.contact-section .section-orb-12 { width: 480px; height: 480px; bottom: 0; right: 10%; background: radial-gradient(circle, var(--c-accent-3), var(--c-accent-2)); animation: sectionOrb12 20s ease-in-out infinite; }

@keyframes sectionOrb1  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(60px,-50px) scale(1.1)}        100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb2  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-50px,60px) scale(1.15)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb3  { 0%{transform:translate(-50%,0) scale(1)}       50%{transform:translate(-25%,40px) scale(1.1)}         100%{transform:translate(-50%,0) scale(1)} }
@keyframes sectionOrb4  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-70px,50px) scale(1.12)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb5  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(80px,60px) scale(1.15)}        100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb6  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-60px,-50px) scale(1.1)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb7  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-70px,60px) scale(1.12)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb8  { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(60px,-60px) scale(1.15)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb9  { 0%{transform:translate(-50%,0) scale(1)}       50%{transform:translate(-25%,50px) scale(1.1)}         100%{transform:translate(-50%,0) scale(1)} }
@keyframes sectionOrb10 { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-60px,40px) scale(1.12)}       100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb11 { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(70px,50px) scale(1.15)}        100%{transform:translate(0,0) scale(1)} }
@keyframes sectionOrb12 { 0%{transform:translate(0,0) scale(1)}          50%{transform:translate(-50px,-60px) scale(1.1)}       100%{transform:translate(0,0) scale(1)} }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 40px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: var(--c-orb-opacity); transition: opacity 0.5s; }
.hero-orb-1 { width: 600px; height: 600px; top: -10%; left: -5%; background: var(--c-accent); animation: orbFloat1 12s ease-in-out infinite; }
.hero-orb-2 { width: 450px; height: 450px; bottom: 0; right: -10%; background: var(--c-accent-2); animation: orbFloat2 15s ease-in-out infinite; }
.hero-orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: var(--c-accent-3); opacity: calc(var(--c-orb-opacity) * 0.4); animation: orbFloat3 18s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,-50px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(-50%,-50%)} 50%{transform:translate(-30%,-30%)} }
.hero-noise {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--c-noise-opacity);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
#particleCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px; width: fit-content;
  font-size: 0.82rem; font-weight: 500; color: var(--c-accent);
}
.badge-dot {
  position: relative;
  width: 7px; height: 7px; background: var(--c-success);
  border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite;
}
.badge-dot::before {
  content: ''; position: absolute; inset: -3px;
  border: 1.5px solid var(--c-success); border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(52,199,89,0.5)} 50%{box-shadow:0 0 0 6px rgba(52,199,89,0)} }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:0.8} 100%{transform:scale(2.5);opacity:0} }

.hero-title { display: flex; flex-direction: column; gap: 0; }
.hero-line {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400;
  color: var(--c-text-secondary); letter-spacing: 0.01em; line-height: 1.3;
}
.hero-name-line {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
}
.hero-name {
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3), #fff, var(--c-accent-2), var(--c-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 300% 100%;
  animation: nameShimmer 6s ease-in-out infinite;
}
@keyframes nameShimmer { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.hero-name-stroke {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--c-accent);
  background: none; opacity: 0.7;
}
.hero-dot { color: var(--c-accent); -webkit-text-fill-color: var(--c-accent); font-weight: 800; }
.hero-subtitle { display: flex; flex-direction: column; gap: 12px; }
.hero-typing-wrap { display: flex; align-items: center; gap: 2px; }
.hero-role { font-family: var(--f-mono); font-size: 1.05rem; color: var(--c-accent-3); font-weight: 500; }
.typing-cursor { display: inline-block; width: 2px; height: 1.2em; background: var(--c-accent); animation: blink 0.8s step-end infinite; margin-left: 2px; vertical-align: text-bottom; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc { font-size: 1rem; line-height: 1.7; color: var(--c-text-secondary); max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-heading); font-size: 0.92rem; font-weight: 600;
  padding: 14px 28px; border-radius: var(--radius-full);
  transition: all 0.35s var(--ease-out-expo);
  position: relative; overflow: hidden; letter-spacing: 0.01em;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white); box-shadow: 0 4px 25px rgba(255,107,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 35px rgba(255,107,0,0.4); }
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: rgba(255,255,255,0.15);
  border-radius: 50%; transition: transform 0.3s;
}
.btn-primary:hover .btn-icon { transform: translateX(4px); }
.btn-outline { background: transparent; border: 1.5px solid var(--c-border); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-accent); background: rgba(255,107,0,0.06); transform: translateY(-2px); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* SOCIALS */
.hero-socials { display: flex; gap: 12px; padding-top: 8px; }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--c-text-secondary);
  transition: all 0.35s var(--ease-out-expo);
}
.social-icon:hover { border-color: var(--c-accent); color: var(--c-accent); background: rgba(255,107,0,0.08); transform: translateY(-3px); }

/* HERO AVATAR */
.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-avatar-container { position: relative; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; }
.avatar-glow {
  position: absolute; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 70%);
  border-radius: 50%; animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:0.6} 50%{transform:scale(1.12);opacity:1} }
.avatar-ring-outer {
  position: absolute; width: 370px; height: 370px;
  border-radius: 50%; border: 1px dotted rgba(255,184,0,0.12);
  animation: ringRotate 45s linear infinite reverse;
}
.avatar-ring-outer::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; background: var(--c-accent-3); border-radius: 50%;
  box-shadow: 0 0 10px var(--c-accent-3), 0 0 20px rgba(255,184,0,0.3);
}
.avatar-ring-outer::after {
  content: ''; position: absolute; bottom: -3px; left: 50%;
  width: 5px; height: 5px; background: var(--c-accent-2); border-radius: 50%;
  box-shadow: 0 0 8px var(--c-accent-2);
}
.avatar-ring {
  position: absolute; width: 340px; height: 340px;
  border-radius: 50%; border: 1.5px solid rgba(255,107,0,0.15);
  animation: ringRotate 25s linear infinite;
}
.avatar-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; background: var(--c-accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--c-accent);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.avatar-ring-inner { position: absolute; inset: 15px; border-radius: 50%; border: 1px dashed rgba(255,107,0,0.08); animation: ringRotate 35s linear infinite reverse; }
.avatar-image { position: relative; width: 260px; height: 260px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,107,0,0.2); z-index: 2; }
.avatar-svg { width: 100%; height: 100%; }
.avatar-badge {
  position: absolute; bottom: 25px; right: 25px;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white; z-index: 3;
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
  animation: badgeBounce 3s ease-in-out infinite;
}
@keyframes badgeBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.avatar-float-tag {
  position: absolute; padding: 6px 14px;
  background: var(--c-bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border-accent); border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; color: var(--c-accent);
  white-space: nowrap; z-index: 3; display: flex; align-items: center; gap: 6px;
  transition: background 0.4s, border-color 0.4s;
}
.avatar-tag-1 { top: 20px; left: -20px; animation: floatTag1 6s ease-in-out infinite; }
.avatar-tag-2 { top: 50%; right: -30px; animation: floatTag2 5s ease-in-out infinite 0.5s; }
.avatar-tag-3 { bottom: 25px; left: -10px; animation: floatTag3 7s ease-in-out infinite 1s; }
@keyframes floatTag1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(8px,-10px)} }
@keyframes floatTag2 { 0%,100%{transform:translate(0,-50%)} 50%{transform:translate(-8px,calc(-50% + 8px))} }
@keyframes floatTag3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(10px,8px)} }

/* HERO STATS */
.hero-stats {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 40px;
  margin-top: 50px; padding: 20px 40px;
  background: var(--c-bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  max-width: 600px; margin-left: auto; margin-right: auto;
  transition: background 0.4s, border-color 0.4s;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hero-stat-number {
  font-family: var(--f-heading); font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-plus { font-family: var(--f-heading); font-size: 1.2rem; font-weight: 700; color: var(--c-accent); -webkit-text-fill-color: var(--c-accent); }
.hero-stat-label { font-size: 0.8rem; color: var(--c-text-secondary); font-weight: 500; transition: color 0.4s; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--c-border); transition: background 0.4s; }

/* SCROLL INDICATOR */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.scroll-indicator span { font-size: 0.65rem; letter-spacing: 3px; color: var(--c-text-muted); font-weight: 600; font-family: var(--f-mono); }
.scroll-line { width: 1px; height: 40px; position: relative; overflow: hidden; background: var(--c-border); }
.scroll-line::after { content: ''; position: absolute; top: -40px; width: 100%; height: 40px; background: linear-gradient(to bottom, transparent, var(--c-accent)); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0%{top:-40px} 100%{top:40px} }

/* ---- MARQUEE ---- */
.marquee-section {
  padding: 20px 0;
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  overflow: hidden; background: var(--c-bg-alt);
  transition: background 0.4s, border-color 0.4s;
}
.marquee-track { display: flex; width: fit-content; }
.marquee-content {
  display: flex; align-items: center; gap: 0;
  animation: marqueeScroll 30s linear infinite; white-space: nowrap;
}
.marquee-content span {
  font-family: var(--f-heading); font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 4px; padding: 0 24px;
  color: var(--c-text-muted); transition: color 0.4s;
}
.marquee-star { color: var(--c-accent) !important; font-size: 1.1rem !important; letter-spacing: 0 !important; }
@keyframes marqueeScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 1; }
/* ---- SECTION TAG GLITCH ---- */
.section-tag {
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--c-accent);
  letter-spacing: 2px; font-weight: 500; display: block; margin-bottom: 16px;
  cursor: default; transition: text-shadow 0.3s;
}
.section-tag:hover {
  text-shadow: 0 0 8px rgba(255,107,0,0.4), 2px 0 rgba(255,59,48,0.3), -2px 0 rgba(255,184,0,0.3);
}
.section-title {
  font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px;
  transition: color 0.4s;
}
.section-title-lg { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.section-desc { font-size: 1rem; color: var(--c-text-secondary); max-width: 520px; margin: 0 auto; transition: color 0.4s; }
.section-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3)); border-radius: 3px; margin: 20px auto 0; }

/* ---- ABOUT ---- */
.about-section > .container { position: relative; z-index: 1; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-lead { font-size: 1.2rem; line-height: 1.7; color: var(--c-text); margin-bottom: 16px; transition: color 0.4s; }
.about-lead strong { color: var(--c-accent); font-weight: 600; }
.about-body { font-size: 0.98rem; color: var(--c-text-secondary); line-height: 1.8; margin-bottom: 32px; transition: color 0.4s; }
.about-highlights { display: flex; flex-direction: column; gap: 18px; }
.highlight-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px;
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform 0.4s var(--ease-out-expo);
}
.highlight-item:hover { border-color: var(--c-border-accent); background: var(--c-bg-card-hover); transform: translateX(6px); }
.highlight-icon {
  width: 42px; height: 42px; min-width: 42px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,59,48,0.08));
  display: flex; align-items: center; justify-content: center; color: var(--c-accent); font-size: 1rem;
}
.highlight-item h4 { font-family: var(--f-heading); font-size: 0.95rem; font-weight: 600; color: var(--c-text); margin-bottom: 2px; transition: color 0.4s; }
.highlight-item p { font-size: 0.82rem; color: var(--c-text-secondary); transition: color 0.4s; }

/* SKILL BARS */
.about-bars { padding-top: 8px; }
.bars-title { font-family: var(--f-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 28px; color: var(--c-text); transition: color 0.4s; }
.bar-item { margin-bottom: 20px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; font-weight: 500; }
.bar-label span:first-child { color: var(--c-text); transition: color 0.4s; }
.bar-label span:last-child { color: var(--c-text-secondary); font-family: var(--f-mono); font-size: 0.8rem; transition: color 0.4s; }
.bar-track { width: 100%; height: 6px; background: var(--c-bg-card-hover); border-radius: 6px; overflow: hidden; transition: background 0.4s; }
.bar-fill {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-3));
  border-radius: 6px;
  transition: width 1.5s var(--ease-out-expo);
  position: relative;
}
.bar-fill::after {
  content: ''; position: absolute; top: 0; right: 0; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-accent-3);
  box-shadow: 0 0 10px var(--c-accent-3);
  opacity: 0; transition: opacity 0.5s 1.5s;
}
.bar-fill.active { width: var(--bar-w); }
.bar-fill.active::after { opacity: 1; }

/* ---- SKILLS BENTO ---- */
.skills-section > .container { position: relative; z-index: 1; }
.skills-bento {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
/* SKILL CARD STAGGER ANIMATION */
.skill-bento-card {
  position: relative; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  transition: all 0.35s var(--ease-out-expo); overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95);
}
.skill-bento-card.skill-visible {
  opacity: 1; transform: translateY(0) scale(1);
}
.skill-bento-card:hover { border-color: var(--c-border-accent); transform: translateY(-4px); background: var(--c-bg-card-hover); }
.skill-bento-glow {
  position: absolute; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,107,0,0.15), transparent);
  border-radius: 50%; top: -20px; right: -20px; opacity: 0; transition: opacity 0.4s;
}
.skill-bento-card:hover .skill-bento-glow { opacity: 1; }
.skill-bento-icon { font-size: 1.5rem; color: var(--c-accent); transition: transform 0.4s var(--ease-out-expo); }
.skill-bento-card:hover .skill-bento-icon { transform: scale(1.2) rotate(-5deg); }
.skill-bento-name { font-size: 0.78rem; font-weight: 600; color: var(--c-text-secondary); letter-spacing: 0.02em; transition: color 0.4s; }
.skill-featured { grid-column: span 2; flex-direction: row; justify-content: flex-start; padding: 24px; gap: 16px; }
.skill-featured .skill-bento-icon { font-size: 2rem; }
.skill-bento-info h3 { font-family: var(--f-heading); font-size: 1rem; font-weight: 700; color: var(--c-text); transition: color 0.4s; }
.skill-bento-info span { font-size: 0.78rem; color: var(--c-text-secondary); transition: color 0.4s; }

/* ---- EXPERIENCE ---- */
.experience-section > .container { position: relative; z-index: 1; }
.exp-card {
  position: relative; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 40px; overflow: hidden;
  transition: border-color var(--transition), background 0.4s;
}
.exp-card:hover { border-color: var(--c-border-accent); }
.exp-card-accent {
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-2));
  border-radius: 4px 0 0 4px;
}
.exp-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.exp-role { font-family: var(--f-heading); font-size: 1.5rem; font-weight: 700; color: var(--c-text); margin-bottom: 6px; transition: color 0.4s; }
.exp-company { font-size: 0.9rem; color: var(--c-accent); display: flex; align-items: center; gap: 6px; }
.exp-date-badge {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(255,107,0,0.06); border: 1px solid rgba(255,107,0,0.15);
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 500;
  color: var(--c-text-secondary); transition: color 0.4s, background 0.4s;
}
.exp-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.exp-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.94rem; color: var(--c-text-secondary); line-height: 1.6; transition: color 0.4s; }
.exp-bullet { width: 6px; height: 6px; min-width: 6px; background: var(--c-accent); border-radius: 50%; margin-top: 8px; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-tags span {
  padding: 4px 12px; background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.12); border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500; color: var(--c-accent); font-family: var(--f-mono);
  transition: all 0.3s;
}
.exp-tags span:hover { background: rgba(255,107,0,0.12); transform: translateY(-2px); }

/* ---- PROJECTS ---- */
.projects-section > .container { position: relative; z-index: 1; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--c-border); background: var(--c-bg-card);
  transition: all 0.4s var(--ease-out-expo);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--c-border-accent); box-shadow: var(--shadow-glow); }
.project-card-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.project-card:hover .project-card-bg { opacity: 1; }
.project-bg-1 { background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,59,48,0.05)); }
.project-bg-2 { background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,107,0,0.05)); }
.project-card-inner { position: relative; padding: 32px; z-index: 1; display: flex; flex-direction: column; min-height: 380px; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.project-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,59,48,0.1));
  display: flex; align-items: center; justify-content: center; color: var(--c-accent); font-size: 1.3rem;
}
.project-links { display: flex; gap: 8px; }
.project-link-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--c-text-secondary);
  transition: all 0.3s;
}
.project-link-btn:hover { border-color: var(--c-accent); color: var(--c-accent); background: rgba(255,107,0,0.06); }
.project-body { flex: 1; }
.project-category { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--c-accent); font-weight: 600; margin-bottom: 12px; display: block; }
.project-title { font-family: var(--f-heading); font-size: 1.3rem; font-weight: 700; color: var(--c-text); margin-bottom: 12px; line-height: 1.3; transition: color 0.4s; }
.project-desc { font-size: 0.9rem; color: var(--c-text-secondary); line-height: 1.7; margin-bottom: 20px; transition: color 0.4s; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  padding: 3px 10px; background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 500; color: var(--c-text-muted);
  transition: all 0.3s;
}
.project-hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.85), rgba(255,59,48,0.85));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--ease-smooth); z-index: 2; border-radius: var(--radius-lg);
}
.project-hover-overlay span {
  font-family: var(--f-heading); font-size: 1.1rem; font-weight: 700; color: var(--c-white);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(10px); transition: transform 0.4s var(--ease-out-expo);
}
.project-card:hover .project-hover-overlay { opacity: 1; }
.project-card:hover .project-hover-overlay span { transform: translateY(0); }

/* ---- RESUME SECTION ---- */
.resume-section > .container { position: relative; z-index: 1; }
.resume-content {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 400px;
}
.resume-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  transition: border-color var(--transition), background 0.4s, transform 0.4s var(--ease-out-expo);
  overflow: hidden;
  z-index: 2;
}
.resume-card:hover { border-color: var(--c-border-accent); transform: translateY(-6px); }
.resume-card-glow {
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), transparent, rgba(255,184,0,0.06));
  border-radius: var(--radius-lg);
  opacity: 0; transition: opacity 0.5s;
  z-index: -1;
}
.resume-card:hover .resume-card-glow { opacity: 1; }
.resume-icon-wrap {
  position: relative; width: 80px; height: 80px;
  margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
}
.resume-icon-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,107,0,0.2);
  animation: ringRotate 20s linear infinite;
}
.resume-icon-ring::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; background: var(--c-accent);
  border-radius: 50%; box-shadow: 0 0 8px var(--c-accent);
}
.resume-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.resume-card-title {
  font-family: var(--f-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--c-text); margin-bottom: 6px; transition: color 0.4s;
}
.resume-card-subtitle {
  font-size: 0.9rem; color: var(--c-text-secondary); margin-bottom: 28px; transition: color 0.4s;
}
.resume-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px;
}
.resume-highlight-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--c-bg-card-hover); border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--c-text-secondary);
  transition: all 0.3s;
}
.resume-highlight-item i { color: var(--c-accent); font-size: 0.9rem; }
.resume-highlight-item:hover { background: rgba(255,107,0,0.06); color: var(--c-text); transform: translateY(-2px); }
.resume-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.resume-btn { width: 100%; justify-content: center; }
.resume-note { font-size: 0.75rem; color: var(--c-text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.4s; }

/* Resume floating decorations */
.resume-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.resume-float {
  position: absolute; width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--c-border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 1rem;
}
.resume-float-1 { top: 10%; left: 5%; animation: resumeFloat1 7s ease-in-out infinite; }
.resume-float-2 { top: 20%; right: 8%; animation: resumeFloat2 6s ease-in-out infinite 0.5s; }
.resume-float-3 { bottom: 15%; left: 10%; animation: resumeFloat3 8s ease-in-out infinite 1s; }
.resume-float-4 { bottom: 25%; right: 5%; animation: resumeFloat4 5s ease-in-out infinite 1.5s; }
@keyframes resumeFloat1 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(10px,-15px) rotate(10deg)} }
@keyframes resumeFloat2 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(-12px,10px) rotate(-8deg)} }
@keyframes resumeFloat3 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(8px,12px) rotate(12deg)} }
@keyframes resumeFloat4 { 0%,100%{transform:translate(0,0) rotate(0deg)} 50%{transform:translate(-10px,-8px) rotate(-6deg)} }

/* ---- CONTACT ---- */
.contact-section { background: var(--c-bg-alt); transition: background 0.4s; }
.contact-section > .container { position: relative; z-index: 1; }
.contact-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 700px; margin: 0 auto 48px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: all 0.35s var(--ease-out-expo);
}
.contact-card:hover { border-color: var(--c-border-accent); background: var(--c-bg-card-hover); transform: translateY(-3px); }
.contact-card-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,59,48,0.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 1.1rem;
}
.contact-card-info { flex: 1; }
.contact-card-label { display: block; font-size: 0.75rem; color: var(--c-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; transition: color 0.4s; }
.contact-card-value { font-size: 0.9rem; font-weight: 600; color: var(--c-text); transition: color 0.4s; }
.contact-card-arrow { color: var(--c-text-muted); transition: color 0.3s, transform 0.3s; }
.contact-card:hover .contact-card-arrow { color: var(--c-accent); transform: translateX(4px); }
.contact-cta { text-align: center; }

/* ---- FOOTER ---- */
.footer {
  position: relative; padding: 32px 0;
  border-top: none; transition: border-color 0.4s;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-accent-3), var(--c-accent-2), transparent);
  background-size: 200% 100%;
  animation: footerGradientSweep 4s ease-in-out infinite;
}
@keyframes footerGradientSweep { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo {
  font-family: var(--f-heading); font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-copy { font-size: 0.82rem; color: var(--c-text-muted); transition: color 0.4s; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--c-text-muted); font-size: 1rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--c-accent); }
.footer-tagline { font-size: 0.78rem; color: var(--c-text-muted); font-style: italic; transition: color 0.4s; }

/* ==============================
   REVEAL & EXTRA ANIMATIONS
   ============================== */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.85);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }

/* Animated gradient border on section headers */
.section-line {
  position: relative;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

/* Shimmer animation for cards on hover */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.project-card::after, .exp-card::after, .resume-card::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: none; pointer-events: none;
  z-index: 5;
}
.project-card:hover::after, .exp-card:hover::after, .resume-card:hover::after {
  animation: shimmer 0.8s forwards;
}

/* Parallax-like subtle movement on scroll (JS adds data-scroll) */
[data-parallax] {
  transition: transform 0.1s linear;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-left { align-items: center; }
  .hero-badge { margin: 0 auto; }
  .hero-desc { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-avatar-container { width: 300px; height: 300px; }
  .avatar-image { width: 200px; height: 200px; }
  .avatar-ring-outer { width: 295px; height: 295px; }
  .avatar-ring { width: 270px; height: 270px; }
  .avatar-glow { width: 250px; height: 250px; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .resume-float { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--c-bg); opacity: 0.98;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; gap: 24px; padding: 40px;
    transition: right 0.5s var(--ease-out-expo); z-index: 999;
    border-left: 1px solid var(--c-border);
  }
  .nav-links.open { right: 0; }
  .nav-hamburger { display: flex; }
  .theme-toggle { margin-left: 0; }
  .nav-link { font-size: 1.1rem; padding: 12px 20px; }
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 80px; }
  .hero-name-line { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-avatar-container { width: 250px; height: 250px; }
  .avatar-image { width: 170px; height: 170px; }
  .avatar-ring-outer { width: 248px; height: 248px; }
  .avatar-ring { width: 230px; height: 230px; }
  .hero-stats { gap: 20px; padding: 16px 24px; flex-wrap: wrap; }
  .hero-stat-number { font-size: 1.6rem; }
  .scroll-indicator { display: none; }
  .section { padding: 80px 0; }
  .section-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .skills-bento { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .skill-featured { grid-column: span 2; }
  .exp-card { padding: 24px; }
  .contact-cards { grid-template-columns: 1fr; }
  .project-card-inner { min-height: 320px; }
  .resume-card { padding: 40px 28px; }
  .resume-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name-line { font-size: clamp(1.8rem, 10vw, 2.5rem); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .hero-badge { font-size: 0.75rem; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .avatar-float-tag { display: none; }
}

/* ---- SECTION DIVIDER WITH ROCKET ---- */
.section-divider {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
}

/* Gradient glow orbs on either side */
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 300px;
  height: 60px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  transform: translateY(-50%);
  pointer-events: none;
  animation: dividerGlow 4s ease-in-out infinite alternate;
}
.section-divider::before {
  left: 10%;
  background: radial-gradient(ellipse, var(--c-accent), transparent);
}
.section-divider::after {
  right: 10%;
  background: radial-gradient(ellipse, var(--c-accent-2), transparent);
  animation-delay: 2s;
}
[data-theme="light"] .section-divider::before,
[data-theme="light"] .section-divider::after {
  opacity: 0.35;
  filter: blur(40px);
}

@keyframes dividerGlow {
  0%   { opacity: 0.15; transform: translateY(-50%) scale(0.9); }
  100% { opacity: 0.35; transform: translateY(-50%) scale(1.1); }
}

.section-divider-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--c-accent), var(--c-accent-3), var(--c-accent-2), transparent);
  position: relative;
}

/* Diamond connector at center of divider line */
.section-divider-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 12px var(--c-accent), 0 0 24px rgba(255,107,0,0.3);
  animation: diamondPulse 2s ease-in-out infinite;
}

/* Horizontal sweep line across divider */
.section-divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-accent-3), var(--c-accent), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation: sweepWidth 3s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%, 100% { box-shadow: 0 0 12px var(--c-accent), 0 0 24px rgba(255,107,0,0.3); transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  50%      { box-shadow: 0 0 20px var(--c-accent), 0 0 40px rgba(255,107,0,0.5); transform: translate(-50%, -50%) rotate(45deg) scale(1.3); }
}
@keyframes sweepWidth {
  0%, 100% { width: 120px; opacity: 0.15; }
  50%      { width: 300px; opacity: 0.4; }
}

/* ---- CLICK RIPPLE EFFECT ---- */
.click-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,107,0,0.5), rgba(255,59,48,0.3), rgba(255,184,0,0.15), transparent 70%);
  animation: clickRippleExpand 0.6s ease-out forwards;
}
.click-ripple::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(255,107,0,0.5);
  animation: clickRingExpand 0.5s ease-out forwards;
}
.click-ripple::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,0.4), transparent 60%);
  animation: clickCoreFlash 0.35s ease-out forwards;
}

@keyframes clickRippleExpand {
  0%   { width: 0; height: 0; opacity: 1; }
  100% { width: 120px; height: 120px; opacity: 0; }
}
@keyframes clickRingExpand {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes clickCoreFlash {
  0%   { opacity: 1; transform: scale(0.3); }
  50%  { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1); }
}

/* ---- CURSOR TRAIL PARTICLES ---- */
.cursor-trail-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9996;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-accent);
  animation: trailFade 0.5s ease-out forwards;
}
.cursor-trail-particle:nth-child(even) {
  background: var(--c-accent-3);
  box-shadow: 0 0 6px var(--c-accent-3);
  width: 4px; height: 4px;
}
.cursor-trail-particle:nth-child(3n) {
  background: var(--c-accent-2);
  box-shadow: 0 0 6px var(--c-accent-2);
  width: 3px; height: 3px;
}

@keyframes trailFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) translateY(-10px); }
}

/* Selection laser glow */
::selection {
  background: var(--c-selection);
  color: var(--c-text);
  text-shadow: 0 0 8px rgba(255,107,0,0.4);
}
.scroll-rocket {
  position: fixed;
  right: 28px;
  z-index: 9990;
  font-size: 1.6rem;
  pointer-events: none;
  transition: top 0.05s linear, opacity 0.3s, transform 0.3s;
  filter: drop-shadow(0 0 12px rgba(255,107,0,0.6));
  opacity: 0;
  transform: rotate(0deg);
}
.scroll-rocket.visible {
  opacity: 1;
}
.scroll-rocket .rocket-icon {
  display: inline-block;
  animation: rocketWobble 0.6s ease-in-out infinite;
}
.scroll-rocket .rocket-trail {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent-3), transparent);
  border-radius: 3px;
  animation: trailFlicker 0.3s ease-in-out infinite alternate;
}
.scroll-rocket .rocket-sparks {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}
.scroll-rocket .spark {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--c-accent-3);
  animation: sparkFly 0.4s ease-out infinite;
}
.scroll-rocket .spark:nth-child(2) { animation-delay: 0.1s; height: 3px; }
.scroll-rocket .spark:nth-child(3) { animation-delay: 0.2s; }

/* Scrolling down: rocket faces down */
.scroll-rocket.scroll-down { transform: rotate(180deg); }
/* Scrolling up: rocket faces up (default) */
.scroll-rocket.scroll-up { transform: rotate(0deg); }

@keyframes rocketWobble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
@keyframes trailFlicker {
  0% { opacity: 1; height: 18px; }
  100% { opacity: 0.5; height: 24px; }
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Touch devices */
@media (hover: none) {
  .custom-cursor, .cursor-follower { display: none; }
  body, a, button { cursor: auto; }
  .project-hover-overlay { display: none; }
  .skill-bento-card { opacity: 1; transform: none; }
}

/* ---- BACK TO TOP BUTTON ---- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
  z-index: 9000;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s var(--ease-out-expo);
}
.back-to-top.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(255,107,0,0.5);
}
.back-to-top i {
  transition: transform 0.3s;
}
.back-to-top:hover i {
  transform: translateY(-2px);
}

/* ---- PREFERS REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .reveal-scale, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .skill-bento-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-rocket { display: none; }
  .marquee-content { animation: none !important; }
}

/* =========================================================
   MULTI-PAGE ADDITIONS
   ========================================================= */

/* Page transition fade-in */
.page-fade {
  animation: pageFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* PAGE HERO (banner for inner pages) */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,107,0,0.18), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(255,59,48,0.14), transparent 60%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px circle at 50% 0%, rgba(255,107,0,0.12), transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .page-hero-bg {
  background:
    radial-gradient(circle at 15% 30%, rgba(255,107,0,0.10), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(255,59,48,0.08), transparent 60%);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8c3a;
  background: rgba(255,107,0,0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.page-hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff6b00;
  box-shadow: 0 0 12px #ff6b00;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.page-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.page-hero-title .text-gradient {
  background: linear-gradient(135deg, #ff6b00, #ff3b30 50%, #ffb800);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary, rgba(255,255,255,0.7));
}

/* BREADCRUMB */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
[data-theme="light"] .breadcrumb { color: rgba(0,0,0,0.55); }
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #ff6b00; }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current {
  color: #ff8c3a;
  font-weight: 600;
}

/* CURRENT PAGE NAV STATE */
.nav-link.nav-current {
  color: #ff6b00;
}
.nav-link.nav-current::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff6b00;
  box-shadow: 0 0 10px #ff6b00;
}

/* PAGE NAVIGATION (prev/next at bottom of inner pages) */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 80px auto 40px;
  padding: 0 32px;
}
.page-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .page-nav-link {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
.page-nav-link::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.page-nav-link:hover {
  border-color: rgba(255,107,0,0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(255,107,0,0.12);
}
.page-nav-link:hover::before { opacity: 1; }
.page-nav-link.next { text-align: right; align-items: flex-end; }
.page-nav-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8c3a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-nav-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
@media (max-width: 700px) {
  .page-nav { grid-template-columns: 1fr; }
  .page-nav-link.next { text-align: left; align-items: flex-start; }
}

/* HOME PREVIEW CARDS (condensed sections on index) */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] .preview-card {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.08);
}
.preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,107,0,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.preview-card:hover {
  border-color: rgba(255,107,0,0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(255,107,0,0.18);
}
.preview-card:hover::before { opacity: 1; }
.preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,0,0.18), rgba(255,59,48,0.18));
  border: 1px solid rgba(255,107,0,0.3);
  font-size: 1.3rem;
  color: #ff8c3a;
}
.preview-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.preview-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  flex: 1;
}
.preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff6b00;
  letter-spacing: 0.05em;
}
.preview-cta i { transition: transform 0.3s; }
.preview-card:hover .preview-cta i { transform: translateX(4px); }

/* SECTION TITLE ALIGN HELPER for centered page sections */
.section-header.center { text-align: center; align-items: center; }
.section-header.center .section-line { margin: 18px auto 0; }

/* ENHANCED PAGE-HERO RESPONSIVE */
@media (max-width: 768px) {
  .page-hero { padding: 140px 0 60px; }
}

/* =========================================================
   EXPERIENCE PAGE — TIMELINE + RICH VISUALS
   ========================================================= */

/* Stat strip below page-hero */
.exp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: -20px auto 60px;
  padding: 0 32px;
}
.exp-stat-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(255,59,48,0.04));
  border: 1px solid rgba(255,107,0,0.15);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.exp-stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,107,0,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.exp-stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,0,0.4);
}
.exp-stat-card:hover::before { opacity: 1; }
.exp-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff3b30);
  color: #0a0a0a;
  font-size: 1.2rem;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(255,107,0,0.3);
}
.exp-stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #ff8c3a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
[data-theme="light"] .exp-stat-num {
  background: linear-gradient(135deg, #1a1a1a, #ff3b30);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.exp-stat-label {
  display: block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
[data-theme="light"] .exp-stat-label { color: rgba(0,0,0,0.55); }

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,107,0,0.4) 8%,
    rgba(255,59,48,0.4) 92%,
    transparent 100%);
}
.timeline::after {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  width: 2px;
  height: var(--tl-progress, 0%);
  background: linear-gradient(180deg, #ff6b00, #ff3b30, #ffb800);
  box-shadow: 0 0 12px rgba(255,107,0,0.5);
  transition: height 0.4s ease-out;
}

.tl-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.tl-item:last-child { margin-bottom: 0; }

.tl-node {
  position: absolute;
  left: 22px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg, #0a0a0a);
  border: 2px solid #ff6b00;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .tl-node { background: #fff; }
.tl-node::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b00;
  box-shadow: 0 0 12px #ff6b00;
}
.tl-item.visible .tl-node::before {
  animation: pulseNode 2s ease-in-out infinite;
}
@keyframes pulseNode {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px #ff6b00; }
  50% { transform: scale(1.4); box-shadow: 0 0 20px #ff6b00, 0 0 32px rgba(255,107,0,0.4); }
}

.tl-card {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] .tl-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.08);
}
.tl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), transparent 50%);
  opacity: 0.6;
  z-index: -1;
}
.tl-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00, #ff3b30, #ffb800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-item.visible .tl-card::after { transform: scaleX(1); }
.tl-card:hover {
  border-color: rgba(255,107,0,0.45);
  transform: translateY(-4px);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.tl-role-block { flex: 1 1 280px; }
.tl-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tl-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #ff8c3a;
  font-weight: 600;
}
.tl-company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b00, #ff3b30);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
}
.tl-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #ff8c3a;
  white-space: nowrap;
}
.tl-date i { font-size: 0.78rem; }

.tl-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 20px;
}
[data-theme="light"] .tl-summary { color: rgba(0,0,0,0.7); }

.tl-achievements {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}
.tl-achievements li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
[data-theme="light"] .tl-achievements li { color: rgba(0,0,0,0.72); }
.tl-achievements li i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,59,48,0.2));
  border: 1px solid rgba(255,107,0,0.3);
  color: #ff8c3a;
  font-size: 0.7rem;
  margin-top: 2px;
}

.tl-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 20px;
  margin: 20px 0;
  border-radius: 14px;
  background: rgba(255,107,0,0.05);
  border: 1px dashed rgba(255,107,0,0.2);
}
.tl-metric {
  text-align: center;
}
.tl-metric-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  background: linear-gradient(135deg, #ff6b00, #ffb800);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.tl-metric-label {
  display: block;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
[data-theme="light"] .tl-metric-label { color: rgba(0,0,0,0.55); }

.tl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  transition: all 0.3s;
}
[data-theme="light"] .tl-chip {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.85);
}
.tl-chip:hover {
  background: rgba(255,107,0,0.15);
  border-color: rgba(255,107,0,0.4);
  color: #ff8c3a;
  transform: translateY(-2px);
}
.tl-chip i { font-size: 0.78rem; opacity: 0.8; }

/* Type/category badge on card */
.tl-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b00, #ff3b30);
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .timeline::before, .timeline::after { left: 18px; }
  .tl-item { padding-left: 56px; }
  .tl-node { left: 8px; }
  .tl-card { padding: 22px; }
  .tl-role { font-size: 1.3rem; }
}

/* =========================================================
   GLOBAL ANIMATION POLISH
   ========================================================= */

/* Smoother default reveal easing */
.reveal-up,
.reveal-scale {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Section title gradient sweep on reveal */
.section-title.reveal-up,
.page-hero-title {
  background-size: 200% 100%;
}

/* Section line draw animation */
.section-line {
  position: relative;
  overflow: hidden;
}
.section-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ff6b00, transparent);
  transform: translateX(-100%);
  animation: lineSweep 2.5s ease-in-out infinite;
}
@keyframes lineSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Floating icon ambient animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-anim {
  animation: floatY 5s ease-in-out infinite;
}
.float-anim.delay-1 { animation-delay: 0.6s; }
.float-anim.delay-2 { animation-delay: 1.2s; }
.float-anim.delay-3 { animation-delay: 1.8s; }

/* Page-hero title char-by-char reveal helper */
.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-90deg);
  animation: charReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Page-hero eyebrow slide */
.page-hero-eyebrow {
  animation: slideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.page-hero-desc {
  animation: slideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.breadcrumb {
  animation: slideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger children helper */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Background ambient orb drift */
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}
.section-orb { animation: orbDrift 18s ease-in-out infinite; }
.section-orb:nth-child(2) { animation-duration: 22s; animation-delay: -5s; }

/* =========================================================
   PAGE HERO BACKGROUND IMAGE LAYER
   ========================================================= */
.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.05);
  animation: bgZoom 22s ease-in-out infinite alternate;
}
@keyframes bgZoom {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}
.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.95) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.6) 100%);
}
[data-theme="light"] .page-hero-image {
  opacity: 0.15;
}
[data-theme="light"] .page-hero-image::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.95) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(255,255,255,0.5) 100%);
}

/* Per-page background images */
body[data-page="about"] .page-hero-image       { background-image: url('assets/bg/about-abstract.jpg'); }
body[data-page="skills"] .page-hero-image      { background-image: url('assets/bg/hero-tech.jpg'); }
body[data-page="experience"] .page-hero-image  { background-image: url('assets/bg/experience-velocity.jpg'); }
body[data-page="projects"] .page-hero-image    { background-image: url('assets/bg/projects-firewatch.jpg'); }
body[data-page="resume"] .page-hero-image      { background-image: url('assets/bg/resume-bg.jpg'); }
body[data-page="contact"] .page-hero-image     { background-image: url('assets/bg/contact-aurora.jpg'); }

/* Home hero subtle background image */
body[data-page="home"] .hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/bg/home-cosmic.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.7) hue-rotate(-15deg);
  z-index: -1;
  animation: bgZoom 30s ease-in-out infinite alternate;
}
body[data-page="home"] .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3), rgba(10,10,10,0.6));
  z-index: -1;
}
[data-theme="light"] body[data-page="home"] .hero-bg::before { opacity: 0.12; }
[data-theme="light"] body[data-page="home"] .hero-bg::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
}

/* Subtle nav-link underline grow */
.nav-link {
  position: relative;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, #ff3b30);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}
.nav-link:hover::before { width: 70%; }
.nav-link.nav-current::before { width: 70%; }
