/* ===========================
   ROOT & RESET
=========================== */
:root {
  --bg: #0a0a0f;
  --bg2: #0f0f18;
  --surface: #13131f;
  --surface2: #1a1a2e;
  --border: rgba(255,255,255,0.07);
  --accent: #00ffc8;
  --accent2: #7c3aed;
  --accent3: #f59e0b;
  --text: #e8e8f0;
  --text-muted: #6b6b8a;
  --text-dim: #3a3a5a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Sora', sans-serif;
  --body: 'Inter', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,255,200,0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor.hover { width: 16px; height: 16px; }
.cursor-follower.hover { width: 56px; height: 56px; border-color: rgba(0,255,200,0.7); }

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ===========================
   LOADER
=========================== */
.loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--sans);
  font-size: 3rem; font-weight: 800;
  color: var(--accent);
  display: block; margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.loader-bar {
  width: 200px; height: 2px;
  background: var(--surface2);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.loader-progress {
  height: 100%; width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.05s linear;
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: var(--sans);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}

.logo-main {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
.blink { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.nav-links {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1px; background: var(--accent);
  transition: left var(--transition), right var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { left: 0.8rem; right: 0.8rem; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ===========================
   HERO — Full redesign
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

/* ── Background ── */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-noise {
  position: absolute; inset: 0;
  background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-gradient-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, rgba(0,255,200,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(245,158,11,0.04) 0%, transparent 50%);
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,200,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,200,0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.12;
  animation: float 10s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: 5%; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: var(--accent2); bottom: -150px; left: 5%; animation-delay: -4s; opacity: 0.1; }
.orb-3 { width: 350px; height: 350px; background: var(--accent3); top: 30%; right: 35%; opacity: 0.06; animation-delay: -7s; }
.orb-4 { width: 250px; height: 250px; background: var(--accent); bottom: 10%; right: 10%; opacity: 0.07; animation-delay: -2s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.04); } }

/* ── Left rail ── */
.hero-rail-left {
  position: absolute;
  left: 2rem;
  top: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 7rem 0 6rem;
}
.rail-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,200,0.3), transparent);
}
.rail-socials {
  display: flex; flex-direction: column; gap: 1rem;
}
.rail-icon {
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.rail-icon:hover { color: var(--accent); transform: scale(1.2); }

/* ── Hero inner grid ── */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 110px 3rem 40px 5rem;
}

/* ── Content ── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(0,255,200,0.25);
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 1.8rem;
  background: rgba(0,255,200,0.04);
  width: fit-content;
  animation: slideDown 0.6s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.6); } }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

.hero-name {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -3px;
  margin-bottom: 1.4rem;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.name-line { display: block; color: var(--text); }
.name-outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  display: inline-block;
}

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

.hero-role {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  min-height: 1.8rem;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.role-prefix { color: var(--accent); margin-right: 2px; }
.type-cursor { color: var(--accent); animation: blink 1s step-end infinite; }

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.85;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}
.hero-description strong { color: var(--text); font-weight: 600; }
.hero-description em { color: var(--accent); font-style: normal; font-weight: 500; }

/* Achievement pills */
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 2.2rem;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s both;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 12px; border-radius: 8px;
  transition: var(--transition);
  cursor: default;
}
.hero-pill:hover {
  border-color: rgba(0,255,200,0.3);
  color: var(--text);
  background: rgba(0,255,200,0.04);
}
.pill-icon { font-size: 0.9rem; }

/* Action buttons */
.hero-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.2rem;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s both;
}

.btn-primary {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700;
  background: var(--accent); color: var(--bg);
  padding: 0.8rem 1.8rem; border-radius: 8px;
  border: 2px solid var(--accent);
  display: inline-block; text-align: center;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--mono); font-size: 0.82rem;
  background: transparent; color: var(--text);
  padding: 0.8rem 1.8rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-block; text-align: center;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-resume {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.8rem 1.2rem; border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center;
  transition: var(--transition);
}
.btn-resume:hover { color: var(--accent3); border-color: rgba(245,158,11,0.4); transform: translateY(-2px); }

/* Mobile socials */
.hero-socials-mobile {
  display: none;
  gap: 1rem;
  animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}
.mob-soc {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px;
  transition: var(--transition);
}
.mob-soc:hover { color: var(--accent); border-color: rgba(0,255,200,0.3); }

/* ── Hero Right: Photo + Float Cards ── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideRight 0.9s cubic-bezier(0.16,1,.3,1) 0.4s both;
  padding: 2.5rem 2rem;
}
@keyframes fadeSlideRight { from{opacity:0;transform:translateX(50px)} to{opacity:1;transform:translateX(0)} }

/* Decorative rings */
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,255,200,0.12);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}
.photo-ring-1 {
  width: 420px; height: 420px;
  animation-delay: 0s;
}
.photo-ring-2 {
  width: 340px; height: 340px;
  border-color: rgba(0,255,200,0.08);
  animation-delay: -2s;
}
@keyframes ringPulse { 0%,100%{transform:scale(1);opacity:0.6} 50%{transform:scale(1.04);opacity:1} }

/* Photo frame */
.photo-frame {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0,255,200,0.2);
  box-shadow:
    0 0 0 1px rgba(0,255,200,0.05),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(0,255,200,0.06) inset;
}
.photo-inner {
  position: relative;
  width: 100%; height: 100%;
}
.photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: contrast(1.05) saturate(0.95);
}
.photo-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,255,200,0.08) 0%, transparent 40%, transparent 60%, rgba(124,58,237,0.05) 100%);
  pointer-events: none;
}

/* Floating stat cards */
.fcard {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13,13,22,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: cardBob var(--bob-dur, 5s) ease-in-out infinite;
  animation-delay: var(--bob-del, 0s);
  white-space: nowrap;
}
@keyframes cardBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.fcard-icon { font-size: 1.2rem; flex-shrink: 0; }
.fcard-num {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 800;
  color: var(--accent); line-height: 1; display: block;
}
.fcard-lbl {
  font-family: var(--mono); font-size: 0.58rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; display: block; margin-top: 2px;
}

.fcard-1 { top: 0; left: -10px; --bob-dur: 5s; --bob-del: 0s; }
.fcard-2 { top: 80px; right: -15px; --bob-dur: 6s; --bob-del: -1.5s; }
.fcard-3 { bottom: 80px; left: -20px; --bob-dur: 5.5s; --bob-del: -3s; }
.fcard-4 { bottom: 0px; right: -5px; --bob-dur: 7s; --bob-del: -0.5s; }

/* Status badge */
.status-badge {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13,13,22,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,255,200,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--accent);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,255,200,0.15);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00e676;
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

/* ── Bottom bar ── */
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem 1.2rem 5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,15,0.4);
  backdrop-filter: blur(12px);
}

.hbb-left {
  display: flex; align-items: center; gap: 1.2rem;
}
.hbb-label {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px;
}
.hbb-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hbb-tags span {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 3px 10px; border-radius: 4px;
  transition: var(--transition);
}
.hbb-tags span:hover { color: var(--accent); border-color: rgba(0,255,200,0.25); }

.hero-scroll-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px;
  transition: color var(--transition);
}
.hero-scroll-btn:hover { color: var(--accent); }
.scroll-arrow {
  width: 20px; height: 32px;
  border: 1.5px solid currentColor; border-radius: 10px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 6px;
  background: currentColor; border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(8px)} }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.section-header { margin-top: 0; margin-bottom: 3rem; }
.section-tag {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent); letter-spacing: 2px;
  display: block; margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.1;
}

/* ===========================
   ABOUT
=========================== */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-visual {
  position: sticky;
  top: 100px;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-bottom: 2rem;
}

.avatar-container {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.avatar-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.avatar-ring {
  position: absolute;
  width: calc(100% + -4px);
  height: calc(100% + 13px);
  top: -12px;
  left: 9px;
  border: 2px solid var(--accent);
  border-radius: 26px;
  opacity: 0.4;
  animation: ringPulse 3s ease infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.about-card-row:last-child { border-bottom: none; }

.acl {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; flex-shrink: 0;
}
.acv {
  font-size: 0.85rem; color: var(--text);
  font-weight: 500; text-align: right;
}

.about-lead {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  max-width: 600px;
  position: relative;
}

/* Highlight key words */
.about-lead .highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle left accent line (🔥 premium touch) */
.about-lead::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 6px;
  width: 3px;
  height: 80%;
  background: linear-gradient(var(--accent), var(--accent2));
  border-radius: 2px;
  opacity: 0.7;
}

/* Reveal animation */
.about-lead {
  opacity: 0;
  transform: translateY(20px);
  animation: aboutReveal 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}

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

/* Hover glow (very subtle 🔥) */
.about-lead:hover .highlight {
  text-shadow: 0 0 15px rgba(0,255,200,0.5);
}
.about-body { color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.8; }

.about-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.hl-chip {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent); border: 1px solid rgba(0,255,200,0.25);
  background: rgba(0,255,200,0.05);
  padding: 4px 12px; border-radius: 4px;
}

.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===========================
   EXPERIENCE
=========================== */
.experience { background: var(--bg2); }
.timeline { position: relative; }
.tl-item { display: flex; gap: 2rem; margin-bottom: 3rem; }
.tl-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 4px; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,255,200,0.1);
  transition: var(--transition);
}
.tl-item:hover .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(0,255,200,0.15); }
.tl-line { width: 2px; flex: 1; background: linear-gradient(to bottom, var(--accent), var(--border)); margin-top: 6px; min-height: 40px; }
.tl-content {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.tl-content:hover { border-color: rgba(0,255,200,0.3); transform: translateX(4px); box-shadow: var(--shadow); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.job-title { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.company { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.job-meta span { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.job-bullets { padding-left: 1.2rem; }
.job-bullets li { color: var(--text-muted); margin-bottom: 0.6rem; line-height: 1.7; font-size: 0.9rem; list-style: disc; }
.job-bullets li strong { color: var(--text); }
.job-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.job-stack span {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 4px;
}

/* ===========================
   PROJECTS
=========================== */
.projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.proj-card:hover { border-color: rgba(0,255,200,0.3); transform: translateY(-6px); box-shadow: var(--shadow); }

.proj-visual {
  height: 140px;
  background: linear-gradient(135deg, hsl(var(--ph),60%,10%), hsl(var(--ph),60%,18%));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.proj-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, hsl(var(--ph),70%,30%) 0%, transparent 60%);
  opacity: 0.4;
}
.proj-emoji { font-size: 3rem; position: relative; z-index: 1; }

.proj-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.proj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.proj-tag {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
}
.proj-link {
  font-size: 1.1rem; color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}
.proj-card:hover .proj-link { color: var(--accent); transform: translate(2px, -2px); }
.proj-info h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.7rem; line-height: 1.3; }
.proj-info p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.proj-stack span {
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 3px;
}
.projects-cta { text-align: center; margin-top: 3rem; }
.btn-ghost-large {
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--text); border: 1px solid var(--border);
  padding: 1rem 2.5rem; border-radius: 8px;
  transition: var(--transition); display: inline-block;
}
.btn-ghost-large:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================
   SKILLS
=========================== */
.skills { background: var(--bg2); }
.skills-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-bottom: 3rem;
}
.skill-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.skill-cat-hdr { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.skill-cat-hdr span { font-size: 1.5rem; }
.skill-cat-hdr h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); }
.skill-list { display: flex; flex-direction: column; gap: 1rem; }
.skill-item span { font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.skill-bar { height: 4px; background: var(--surface2); border-radius: 2px; }
.skill-fill {
  height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.tools-section { margin-top: 2rem; }
.tools-title {
  font-family: var(--sans); font-weight: 700; color: var(--text-muted);
  margin-bottom: 1.2rem; letter-spacing: 1px; text-transform: uppercase; font-size: 0.75rem;
}
.tools-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-badge {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px;
  transition: var(--transition);
}
.tool-badge:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================
   ACHIEVEMENTS
=========================== */
.achievements { background: var(--bg); }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ach-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.ach-card:hover { border-color: rgba(0,255,200,0.3); transform: translateY(-4px); }
.ach-icon { font-size: 2rem; margin-bottom: 1rem; }
.ach-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.7rem; }
.ach-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ===========================
   CONTACT
=========================== */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-lead { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.contact-body { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.ci {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  padding: 1rem 1.2rem; border-radius: var(--radius);
  transition: border-color var(--transition);
}
.ci:hover { border-color: rgba(0,255,200,0.3); }
.ci-icon { font-size: 1.2rem; width: 2rem; text-align: center; flex-shrink: 0; }
.ci-label { font-family: var(--mono); font-size: 0.65rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.ci-val { font-size: 0.88rem; color: var(--text); word-break: break-all; }
.contact-socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 6px;
  transition: var(--transition);
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.fg label { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.fg input, .fg textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.9rem 1.1rem;
  color: var(--text); font-family: var(--body); font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical; outline: none; width: 100%;
}
.fg input:focus, .fg textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,255,200,0.1); }
.btn-submit {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  background: var(--accent); color: var(--bg);
  border: 2px solid var(--accent); border-radius: 8px;
  padding: 0.9rem 2rem; cursor: pointer;
  transition: var(--transition); align-self: flex-start;
}
.btn-submit:hover { background: transparent; color: var(--accent); }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer p { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); }

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===========================
/* ===========================
   RESPONSIVE — 1200px
=========================== */
@media (max-width: 1200px) {
  .hero-inner { padding: 110px 3rem 40px 4rem; grid-template-columns: 1fr 380px; gap: 3rem; }
  .hero-bottom-bar { padding: 1.2rem 3rem 1.2rem 4rem; }
  .hero-rail-left { left: 1rem; }
}

/* ===========================
   RESPONSIVE — 1024px (Tablet landscape)
=========================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 320px; gap: 2rem; padding: 110px 2rem 40px 3rem; }
  .hero-bottom-bar { padding: 1rem 2rem 1rem 3rem; }
  .hero-rail-left { display: none; }
  .photo-ring { display: none; }
  .fcard-1 { left: -5px; }
  .fcard-2 { right: -8px; }
  .fcard-3 { left: -8px; }
  .fcard-4 { right: -5px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { position: static; display: flex; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
  .avatar-frame { max-width: 280px; }
}

/* ===========================
   RESPONSIVE — 768px (Tablet portrait / Mobile)
=========================== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 300px; height: 100vh;
    background: var(--surface); border-left: 1px solid var(--border);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem; gap: 0.8rem;
    transition: right var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; padding: 0.8rem 0; }
  .nav-hamburger { display: flex; z-index: 1001; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 96px 1.5rem 1.5rem;
    gap: 2rem;
  }
  .hero-content { order: 2; }
  .hero-right { order: 1; padding: 1.5rem 1rem 0; justify-content: center; }
  .photo-frame { width: 200px; height: 260px; border-radius: 20px; }
  .photo-ring { display: none; }
  .fcard { padding: 8px 12px; }
  .fcard-1 { top: 0; left: 0; }
  .fcard-2 { top: 60px; right: -5px; }
  .fcard-3 { bottom: 30px; left: 0; }
  .fcard-4 { bottom: -5px; right: 0; }
  .fcard-num { font-size: 0.9rem; }
  .fcard-lbl { font-size: 0.52rem; }
  .hero-rail-left { display: none; }
  .hero-socials-mobile { display: flex; flex-wrap: wrap; }
  .hero-bottom-bar { padding: 1rem 1.5rem; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
  .hbb-tags { gap: 0.4rem; }
  .hero-pills { gap: 0.4rem; }
  .hero-pill { font-size: 0.65rem; padding: 5px 10px; }
  .hero-actions { flex-wrap: wrap; gap: 0.6rem; }
  .section { padding: 70px 0; }
  .container { padding: 0 1.5rem; }
  .about-visual { flex-direction: column; align-items: stretch; }
  .avatar-frame { max-width: 100%; }
  .avatar-container { height: 220px; }
  .avatar-ring { display: none; }
  .about-card-row { flex-wrap: wrap; gap: 0.3rem; }
  .acv { text-align: left; }
  .tl-header { flex-direction: column; gap: 0.5rem; }
  .job-meta { align-items: flex-start; }
  .tl-content { padding: 1.2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===========================
   RESPONSIVE — 480px (Small phones)
=========================== */
@media (max-width: 480px) {
  .hero-name { letter-spacing: -2px; font-size: clamp(2.8rem, 10vw, 3.5rem); }
  .name-outline { -webkit-text-stroke: 1.5px var(--accent); }
  .section-title { letter-spacing: -1px; }
  .hero-inner { padding: 90px 1.2rem 1.2rem; gap: 1.5rem; }
  .photo-frame { width: 170px; height: 220px; }
  .fcard { display: none; }
  .status-badge { font-size: 0.6rem; padding: 5px 12px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost, .btn-resume { text-align: center; width: 100%; justify-content: center; }
  .about-actions { flex-direction: column; }
  .about-actions .btn-primary, .about-actions .btn-ghost { text-align: center; width: 100%; }
  .tl-item { gap: 1rem; }
  .tl-content { padding: 1rem; }
  .job-title { font-size: 0.95rem; }
  .ci-val { font-size: 0.8rem; }
  .btn-submit { width: 100%; text-align: center; align-self: stretch; }
  .hbb-tags { display: none; }
}

/* ===========================
   RESPONSIVE — 360px (Very small phones)
=========================== */
@media (max-width: 360px) {
  .hero-name { font-size: 2.6rem; }
  .container { padding: 0 1rem; }
  .hero-inner { padding: 88px 1rem 1rem; }
}