/* ===========================
   ROOT & RESET
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --orange:      #FF8C00;
  --orange-lt:   #FFA500;
  --orange-glow: rgba(255,140,0,0.25);
  --bg:          #0F0A05;
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-hov: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(255,140,0,0.35);
  --text:        #F5F0E8;
  --text-muted:  #8A7F72;
  --text-dim:    #5A5048;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 80px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--orange); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.3s, width 0.3s, height 0.3s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(255,140,0,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor.hover { width: 20px; height: 20px; }
.cursor-follower.hover { width: 60px; height: 60px; opacity: 0.4; }

/* ===========================
   BG BLOBS
=========================== */
.bg-blob {
  position: fixed; border-radius: 50%; filter: blur(100px);
  pointer-events: none; z-index: 0; animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: rgba(255,140,0,0.08); top: -200px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: rgba(255,80,0,0.06); bottom: 200px; left: -150px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: rgba(255,200,0,0.05); top: 50%; left: 50%; animation-delay: -8s; }

@keyframes blobFloat { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(40px,30px) scale(1.1)} }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(15,10,5,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(15,10,5,0.92); border-bottom-color: var(--border-hov); }

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--orange); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition); position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--orange); transition: width var(--transition); border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cv-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-cv-nav svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.btn-cv-nav:hover {
  border-color: var(--orange);
  color: var(--orange-lt);
  transform: translateY(-2px);
}
.btn-cv-nav:hover svg {
  transform: translateY(1.5px);
}
.btn-hire {
  background: var(--orange); color: #000; font-weight: 700; font-size: 0.85rem;
  padding: 8px 20px; border-radius: 50px; transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-hire:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 24px var(--orange-glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===========================
   HERO SECTION
=========================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 90px 5% 60px; gap: 40px;
  position: relative; overflow: hidden;
}

.hero-content { flex: 1; max-width: 600px; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.25);
  color: var(--orange-lt); font-size: 0.82rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
  animation: fadeInDown 0.8s both;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 8px rgba(34,197,94,0)} }

.hero-greeting {
  font-size: 1.25rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px;
  animation: fadeInDown 0.8s 0.1s both;
}
.hero-greeting .highlight { color: var(--orange-lt); }

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -3px; margin-bottom: 24px;
  animation: fadeInDown 0.8s 0.2s both;
}
.title-line { display: block; }
.title-line.accent {
  background: linear-gradient(135deg, var(--orange) 0%, #FFD700 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-description {
  font-size: 1.05rem; color: var(--text-muted); max-width: 480px;
  line-height: 1.75; margin-bottom: 36px;
  animation: fadeInDown 0.8s 0.3s both;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; animation: fadeInDown 0.8s 0.4s both; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #000; font-weight: 700; font-size: 0.95rem;
  padding: 14px 30px; border-radius: 50px; transition: var(--transition);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-3px); box-shadow: 0 16px 40px var(--orange-glow); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 14px 30px; border-radius: 50px; border: 1.5px solid var(--border);
  transition: var(--transition);
}
.btn-secondary svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }
.btn-secondary:hover svg { transform: translateY(2px); }

.hero-stats { display: flex; align-items: center; gap: 24px; animation: fadeInDown 0.8s 0.5s both; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===========================
   HERO VISUAL / AVATAR
=========================== */
.hero-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; max-width: 560px; min-height: 500px;
  z-index: 1; animation: fadeIn 1s 0.4s both;
}

/* Animated glow orb behind avatar */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,0,0.22) 0%, rgba(255,100,0,0.1) 40%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glowPulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.avatar-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,140,0,0.08);
  animation: ringRotate 20s linear infinite;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.02);
}
.outer-ring {
  width: 460px; height: 460px;
  border-style: dashed;
  border-color: rgba(255,140,0,0.08);
  border-top-color: rgba(255,140,0,0.35);
  animation-duration: 30s;
}
.mid-ring {
  width: 375px; height: 375px;
  border-color: rgba(255,140,0,0.05);
  border-top: 2px solid rgba(255,140,0,0.25);
  border-bottom: 2px solid rgba(255,140,0,0.25);
  animation-direction: reverse;
  animation-duration: 18s;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-container {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, rgba(255, 140, 0, 0.18), rgba(15, 10, 5, 0.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 140, 0, 0.24);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: visible; /* Critical: let head overflow */
  animation: avatarFloat 6s ease-in-out infinite alternate;
  z-index: 2;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(255, 140, 0, 0.12);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s var(--transition);
}

@keyframes avatarFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

/* Glowing platform / base beneath avatar */
.avatar-container::before {
  content: '';
  position: absolute;
  bottom: -15px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 40px;
  background: radial-gradient(ellipse, rgba(255,140,0,0.32) 0%, rgba(255,140,0,0.08) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  z-index: -1;
  animation: basePulse 6s ease-in-out infinite alternate;
}

@keyframes basePulse {
  0%   { opacity: 0.5; width: 200px; }
  100% { opacity: 1; width: 240px; }
}

.avatar-container .avatar-img {
  width: auto; height: 380px; /* Taller than container to pop out of top */
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 3;
  filter:
    drop-shadow(0 5px 15px rgba(0,0,0,0.45))
    drop-shadow(0 15px 40px rgba(255,140,0,0.18))
    drop-shadow(0 0 80px rgba(255,140,0,0.08));
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  animation: avatarEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes avatarEntrance {
  from { opacity: 0; transform: translate(-50%, 50px) scale(0.85); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.avatar-container:hover {
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(255, 140, 0, 0.18),
    inset 0 0 50px rgba(255, 140, 0, 0.22);
}

.avatar-container:hover .avatar-img {
  transform: translate(-50%, -15px) scale(1.06);
  filter:
    drop-shadow(0 10px 25px rgba(0,0,0,0.55))
    drop-shadow(0 20px 50px rgba(255,140,0,0.28))
    drop-shadow(0 0 100px rgba(255,140,0,0.14));
}

/* Floating Tech Badges */
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  backdrop-filter: blur(14px); border-radius: 50px;
  padding: 8px 16px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  animation: floatBadge 3.5s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.float-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.float-badge:hover { border-color: var(--border-hov); color: var(--text); }

.badge-react  { top: 8%;  left: -10%; }
.badge-js     { top: 30%; right: -8%; }
.badge-node   { bottom: 30%; left: -12%; }
.badge-python { bottom: 8%; right: -6%; }

@keyframes floatBadge {
  0%   { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase;
}
.scroll-wheel {
  width: 22px; height: 36px; border: 1.5px solid rgba(255,140,0,0.3); border-radius: 12px;
  position: relative; overflow: hidden;
}
.scroll-wheel::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--orange); border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{opacity:1;top:6px} 100%{opacity:0;top:22px} }

/* ===========================
   SECTION COMMONS
=========================== */
.section { padding: 110px 0; position: relative; z-index: 1; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-header { text-align: center; margin-bottom: 70px; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--orange); background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.2); padding: 5px 16px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 14px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--orange), #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ===========================
   ABOUT ME SECTION
=========================== */
.about-section {
  background: radial-gradient(ellipse at center left, rgba(255,140,0,0.04) 0%, transparent 60%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

/* --- Code Window Visual --- */
.about-visual {
  position: relative;
}

.about-code-window {
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 140, 0, 0.05);
  transition: var(--transition);
}
.about-code-window:hover {
  border-color: var(--border-hov);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 140, 0, 0.1);
  transform: translateY(-4px);
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-dot.red    { background: #FF5F57; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green  { background: #28C840; }
.code-window-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 8px;
  font-family: 'Space Grotesk', monospace;
}

.code-window-body {
  padding: 24px;
  overflow-x: auto;
}
.code-window-body pre {
  margin: 0;
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre;
}
.code-kw   { color: #C792EA; font-weight: 600; }
.code-var  { color: #82AAFF; }
.code-key  { color: #F78C6C; }
.code-str  { color: #C3E88D; }
.code-fn   { color: #82AAFF; }
.code-bool { color: #FF5370; }

.about-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,140,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

/* --- Right Content --- */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-headline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.5px;
}
.about-name {
  background: linear-gradient(135deg, var(--orange), #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.about-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-bio strong {
  color: var(--text);
  font-weight: 600;
}

.about-highlights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.about-highlight-card {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: var(--transition);
  cursor: default;
}
.about-highlight-card:hover {
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.08);
}
.about-hl-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.about-hl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-hl-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
}
.about-hl-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-closing {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 18px;
}

.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ===========================
   SKILLS SECTION
=========================== */
.skills-section { background: radial-gradient(ellipse at top, rgba(255,140,0,0.04) 0%, transparent 60%); }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition); position: relative; overflow: hidden;
  cursor: default;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,140,0,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.skill-card:hover { border-color: var(--border-hov); background: var(--bg-card-hov); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(255,140,0,0.08); }
.skill-card:hover::before { opacity: 1; }

.skill-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(var(--c), 0.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--c); border: 1px solid rgba(var(--c), 0.2);
  transition: var(--transition);
  /* Fallback since CSS color variables can't be used in rgba directly */
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1);
}
.skill-icon-wrap svg { width: 28px; height: 28px; }

.skill-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.skill-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.skill-bar { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.skill-fill {
  height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), #FFD700);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.skill-fill.animated { width: var(--w); }
.skill-pct { font-size: 0.72rem; color: var(--text-dim); font-weight: 600; }

/* ===========================
   EXPERIENCE / TIMELINE
=========================== */
.experience-section { background: radial-gradient(ellipse at bottom right, rgba(255,140,0,0.04) 0%, transparent 60%); }

.timeline { max-width: 740px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(255,140,0,0.3), transparent);
}

.timeline-item {
  display: flex; gap: 32px; margin-bottom: 48px;
  opacity: 0; transform: translateX(-30px); transition: opacity 0.6s, transform 0.6s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, var(--orange) 30%, transparent 70%);
  border: 2px solid var(--orange); margin-top: 4px;
  box-shadow: 0 0 20px rgba(255,140,0,0.3);
  position: relative; z-index: 1;
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{box-shadow:0 0 20px rgba(255,140,0,0.3)} 50%{box-shadow:0 0 40px rgba(255,140,0,0.6)} }

.timeline-card {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: var(--transition);
}
.timeline-card:hover { border-color: var(--border-hov); transform: translateX(6px); background: var(--bg-card-hov); }

.timeline-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.timeline-date { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.timeline-badge { font-size: 0.7rem; padding: 3px 10px; border-radius: 50px; font-weight: 700; }
.timeline-badge.current { background: rgba(34,197,94,0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.2); }

.timeline-role { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.timeline-company { font-size: 0.88rem; color: var(--orange-lt); font-weight: 600; display: block; margin-bottom: 12px; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tags span {
  font-size: 0.72rem; padding: 4px 12px; background: rgba(255,140,0,0.08);
  border: 1px solid rgba(255,140,0,0.18); border-radius: 50px; color: var(--orange-lt); font-weight: 600;
}

/* ===========================
   PROJECTS SECTION
=========================== */
.projects-section { background: radial-gradient(ellipse at top left, rgba(255,140,0,0.04) 0%, transparent 60%); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.project-card.featured { grid-column: 1 / -1; }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  position: relative; overflow: hidden; transition: var(--transition);
  opacity: 0; transform: translateY(30px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { border-color: var(--border-hov); background: var(--bg-card-hov); transform: translateY(-5px); box-shadow: 0 24px 70px rgba(255,140,0,0.08); }

.project-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,0,0.12), transparent);
  top: -50px; right: -50px; pointer-events: none; filter: blur(40px);
  transition: var(--transition);
}
.project-card:hover .project-glow { transform: scale(1.4); }

.project-number {
  font-size: 3.5rem; font-weight: 900; color: rgba(255,140,0,0.08);
  position: absolute; top: 24px; right: 32px; line-height: 1;
  font-family: 'Space Grotesk', sans-serif; transition: var(--transition);
}
.project-card:hover .project-number { color: rgba(255,140,0,0.14); }

.project-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.project-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-tech span {
  font-size: 0.72rem; padding: 4px 12px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 50px; color: var(--text-muted); font-weight: 600;
}
.project-links { display: flex; gap: 14px; }
.proj-link {
  font-size: 0.82rem; font-weight: 700; padding: 9px 22px; border-radius: 50px; transition: var(--transition);
}
.proj-link.live { background: var(--orange); color: #000; }
.proj-link.live:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 24px var(--orange-glow); }
.proj-link.github { border: 1.5px solid var(--border); color: var(--text-muted); }
.proj-link.github:hover { border-color: var(--orange); color: var(--orange); }

/* Project show/hide toggle */
.project-hidden {
  display: none !important;
}
.project-hidden.project-visible {
  display: block !important;
}

.projects-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-show-more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}
.btn-show-more:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--orange-glow);
}
.btn-show-more.expanded svg {
  transform: rotate(180deg);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section { background: radial-gradient(ellipse at bottom, rgba(255,140,0,0.05) 0%, transparent 60%); }

.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px;
  transition: var(--transition); display: flex; flex-direction: column; gap: 4px;
}
.contact-card:hover { border-color: var(--border-hov); transform: translateX(4px); }
.contact-icon { font-size: 1.5rem; margin-bottom: 4px; }
.contact-card h4 { font-size: 0.82rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.contact-card a, .contact-card span { font-size: 0.9rem; color: var(--text); font-weight: 500; transition: color var(--transition); }
.contact-card a:hover { color: var(--orange-lt); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  transition: var(--transition); resize: none; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(255,140,0,0.4); background: rgba(255,140,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.08);
}

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--orange), #E87000);
  color: #000; font-weight: 700; font-size: 0.95rem; font-family: 'Outfit', sans-serif;
  padding: 15px 36px; border-radius: 50px; border: none; cursor: pointer;
  transition: var(--transition); align-self: flex-start;
}
.btn-submit svg { width: 18px; height: 18px; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,140,0,0.3); background: linear-gradient(135deg, var(--orange-lt), var(--orange)); }
.btn-submit:active { transform: translateY(-1px); }

/* ===========================
   FOOTER
=========================== */
.footer {
  padding: 40px 5%; border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); background: rgba(255,140,0,0.08); }

/* ===========================
   ANIMATIONS & REVEAL
=========================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   RESPONSIVE
=========================== */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .section-subtitle { font-size: 0.92rem; }

  /* Hero */
  .hero { flex-direction: column; text-align: center; padding: 100px 5% 50px; gap: 24px; }
  .hero-content { max-width: 100%; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  /* Avatar */
  .hero-visual { order: -1; min-height: 340px; }
  .hero-visual::before { width: 260px; height: 260px; }
  .avatar-container { width: 260px; height: 300px; }
  .avatar-container .avatar-img { height: 340px; }
  .outer-ring { width: 320px; height: 320px; }
  .mid-ring   { width: 265px; height: 265px; }
  .float-badge { display: none; }

  /* About */
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-headline { font-size: 1.3rem; }

  /* Projects */
  .project-card.featured { grid-column: auto; }
  .project-card { padding: 28px; }
  .project-number { font-size: 2.8rem; top: 18px; right: 22px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-card { flex: 1; min-width: 140px; }
  .contact-form { padding: 28px; }
}

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
  /* Disable custom cursor on touch */
  .cursor, .cursor-follower { display: none !important; }
  body { cursor: auto; }

  .section { padding: 60px 0; }
  .section-container { padding: 0 20px; }
  .section-header { margin-bottom: 36px; }
  .section-tag { font-size: 0.72rem; letter-spacing: 2px; padding: 4px 12px; }
  .section-title { font-size: 1.6rem; letter-spacing: -0.8px; }
  .section-subtitle { font-size: 0.85rem; }

  /* Navbar */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(15,10,5,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: background var(--transition);
  }
  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(255,140,0,0.08);
  }
  .hamburger { display: flex; }
  .nav-actions { display: none; }

  /* Hero */
  .hero { padding: 90px 20px 40px; gap: 16px; min-height: auto; }
  .hero-badge { font-size: 0.75rem; padding: 5px 14px; margin-bottom: 16px; }
  .hero-greeting { font-size: 1.05rem; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -1.5px; margin-bottom: 16px; }
  .hero-description { font-size: 0.92rem; margin-bottom: 24px; line-height: 1.7; }
  .hero-actions { gap: 10px; margin-bottom: 32px; }
  .btn-primary, .btn-secondary { font-size: 0.85rem; padding: 12px 22px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-divider { height: 32px; }

  /* Avatar - Mobile */
  .hero-visual { min-height: 280px; }
  .hero-visual::before { width: 200px; height: 200px; }
  .avatar-container { width: 220px; height: 260px; }
  .avatar-container .avatar-img { height: 290px; }
  .outer-ring { width: 270px; height: 270px; }
  .mid-ring   { width: 230px; height: 230px; }
  .scroll-indicator { display: none; }

  /* About - Mobile */
  .about-layout { gap: 32px; }
  .about-headline { font-size: 1.15rem; line-height: 1.5; }
  .about-bio { font-size: 0.88rem; }
  .about-highlights { flex-direction: column; gap: 12px; }
  .about-highlight-card { padding: 14px 16px; gap: 12px; }
  .about-hl-number { font-size: 1.15rem; }
  .about-hl-label { font-size: 0.72rem; }
  .about-closing { font-size: 0.85rem; padding-left: 14px; }
  .about-actions { gap: 10px; }
  .about-actions .btn-primary,
  .about-actions .btn-secondary { font-size: 0.82rem; padding: 11px 20px; flex: 1; justify-content: center; }
  .code-window-body { padding: 16px; }
  .code-window-body pre { font-size: 0.75rem; line-height: 1.7; }
  .code-window-header { padding: 10px 14px; }
  .code-dot { width: 10px; height: 10px; }

  /* Skills - Mobile */
  .skills-grid { grid-template-columns: 1fr; gap: 16px; }
  .skill-card { padding: 22px; }
  .skill-icon-wrap { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
  .skill-icon-wrap svg { width: 24px; height: 24px; }
  .skill-name { font-size: 1rem; }
  .skill-desc { font-size: 0.82rem; margin-bottom: 16px; }

  /* Timeline - Mobile */
  .timeline::before { display: none; }
  .timeline-item { flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .timeline-dot { width: 28px; height: 28px; }
  .timeline-card { padding: 22px; }
  .timeline-role { font-size: 1.05rem; }
  .timeline-desc { font-size: 0.82rem; }
  .timeline-company { font-size: 0.82rem; }

  /* Projects - Mobile */
  .projects-grid { gap: 18px; }
  .project-card { padding: 24px; }
  .project-title { font-size: 1.15rem; }
  .project-desc { font-size: 0.82rem; }
  .project-number { font-size: 2.2rem; top: 14px; right: 18px; }
  .project-tech span { font-size: 0.68rem; padding: 3px 10px; }
  .proj-link { font-size: 0.78rem; padding: 8px 18px; }
  .btn-show-more { font-size: 0.85rem; padding: 12px 26px; }

  /* Contact - Mobile */
  .contact-info { flex-direction: column; gap: 12px; }
  .contact-card { padding: 16px 18px; }
  .contact-card h4 { font-size: 0.75rem; }
  .contact-card a, .contact-card span { font-size: 0.82rem; word-break: break-all; }
  .contact-form { padding: 22px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .form-group label { font-size: 0.78rem; }
  .form-group input, .form-group textarea { padding: 11px 14px; font-size: 0.85rem; }
  .btn-submit { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.88rem; }

  /* Footer - Mobile */
  .footer { padding: 28px 20px; }
  .footer-content { justify-content: center; text-align: center; flex-direction: column; gap: 14px; }
  .footer-logo { font-size: 1.2rem; }
  .footer-copy { font-size: 0.75rem; }
  .footer-socials { justify-content: center; }
  .social-btn { width: 36px; height: 36px; }
  .social-btn svg { width: 14px; height: 14px; }
}

/* --- Small phones (≤ 400px) --- */
@media (max-width: 400px) {
  .section-container { padding: 0 16px; }
  .hero { padding: 85px 16px 32px; }
  .hero-title { font-size: 2rem; letter-spacing: -1px; }
  .hero-greeting { font-size: 0.95rem; }
  .hero-description { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { gap: 12px; }
  .stat-number { font-size: 1.4rem; }

  .avatar-container { width: 190px; height: 230px; }
  .avatar-container .avatar-img { height: 260px; }
  .outer-ring { width: 240px; height: 240px; }
  .mid-ring   { width: 200px; height: 200px; }

  .about-headline { font-size: 1.05rem; }
  .about-bio { font-size: 0.82rem; }
  .about-actions { flex-direction: column; }
  .about-actions .btn-primary,
  .about-actions .btn-secondary { width: 100%; }

  .code-window-body pre { font-size: 0.68rem; }

  .project-card { padding: 20px; }
  .project-title { font-size: 1.05rem; }
  .project-links { flex-wrap: wrap; gap: 10px; }
  .proj-link { flex: 1; text-align: center; min-width: 100px; }

  .timeline-card { padding: 18px; }
  .skill-card { padding: 18px; }

  .contact-form { padding: 18px; }
}
