/* ============================================================
   PORTFOLIO V2 — MINIMALIST MODERN
   Muhammad Abdul Azizul Hakim
   Stack: Bootstrap 5 + Vanilla CSS Custom
   ============================================================ */

/* -----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ----------------------------------------------------------- */
:root {
  /* Colors — Dark Theme (default) */
  --bg-base: #09090b;
  --bg-surface: #111115;
  --bg-raised: #18181d;
  --bg-card: #1c1c22;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent: #0ea5e9;
  --accent-dim: rgba(14, 165, 233, 0.12);
  --accent-glow: rgba(14, 165, 233, 0.35);
  --accent-2: #8b5cf6;
  --accent-3: #10b981;

  --grad-hero: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --grad-card: linear-gradient(145deg, rgba(14,165,233,0.08) 0%, rgba(139,92,246,0.04) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px rgba(14, 165, 233, 0.2);

  --nav-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-base: #fafafa;
  --bg-surface: #f4f4f5;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.15);

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --accent-dim: rgba(14, 165, 233, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.12);
}

/* -----------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }

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

/* -----------------------------------------------------------
   3. CURSOR GLOW
   ----------------------------------------------------------- */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  z-index: 0;
  will-change: transform;
}

/* -----------------------------------------------------------
   4. NAVBAR
   ----------------------------------------------------------- */
.navbar-v2 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar-v2.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar-v2.scrolled {
  background: rgba(250, 250, 250, 0.88);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grad-hero);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-label {
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0 auto;
  padding: 0;
}

.nav-item {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
  background: rgba(0,0,0,0.05);
}

.nav-item.active {
  color: var(--accent);
}

/* Nav controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.ctrl-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.05);
}

/* Hamburger */
.menu-btn {
  flex-direction: column;
  gap: 5px;
  display: none;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all var(--transition);
  transform-origin: center;
}

.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------------------------
   5. SCROLL-REVEAL ANIMATIONS (AOS-like, native)
   ----------------------------------------------------------- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s var(--transition-slow), transform 0.7s var(--transition-slow);
}

[data-aos="fade-up"]    { transform: translateY(28px); }
[data-aos="fade-down"]  { transform: translateY(-28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* delay utilities */
[data-aos-delay="50"]  { transition-delay: 0.05s; }
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* -----------------------------------------------------------
   6. HERO SECTION
   ----------------------------------------------------------- */
.hero-v2 {
  position: relative;
  background: var(--bg-base);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 16px var(--accent), 0 0 32px var(--accent-glow); }
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.name-highlight {
  font-style: normal;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.pill i { color: var(--accent); font-size: 0.78rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--grad-hero);
  color: #fff;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(14,165,233,0.3);
}

.btn-primary-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.4);
  color: #fff;
}

.btn-primary-v2 i { font-size: 0.8rem; }

.btn-ghost-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
}

.btn-ghost-v2:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Profile visual */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.profile-ring-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.profile-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: ring-spin linear infinite;
}

.ring-1 {
  border-top-color: rgba(14,165,233,0.4);
  border-right-color: rgba(14,165,233,0.1);
  animation-duration: 8s;
  inset: -12px;
}

.ring-2 {
  border-bottom-color: rgba(139,92,246,0.35);
  border-left-color: rgba(139,92,246,0.1);
  animation-duration: 12s;
  animation-direction: reverse;
  inset: -22px;
}

.ring-3 {
  border-top-color: rgba(16,185,129,0.2);
  animation-duration: 20s;
  inset: -36px;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.float-chip {
  position: absolute;
  padding: 0.55rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: chip-float 4s ease-in-out infinite;
}

.chip-top {
  top: 8%;
  right: -18%;
  animation-delay: 0s;
}

.chip-bottom {
  bottom: 8%;
  left: -18%;
  animation-delay: 2s;
}

.float-chip i { color: var(--accent); }

@keyframes chip-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0.5;
}

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

@keyframes scroll-line-anim {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -----------------------------------------------------------
   7. GENERIC SECTION STYLES
   ----------------------------------------------------------- */
.section-v2 {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-surface);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title-v2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-sub-v2 {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 0;
}

.section-subtitle-v2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* -----------------------------------------------------------
   8. OVERVIEW CARDS
   ----------------------------------------------------------- */
.card-v2 {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-v2:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-v2:hover::before { opacity: 1; }

.card-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,165,233,0.25);
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.card-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.card-v2:hover .card-icon-wrap {
  background: var(--accent);
  color: #fff;
}

.card-title-v2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.card-desc-v2 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.card-arrow {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

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

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 0 2rem;
}

.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

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

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* -----------------------------------------------------------
   9. TIMELINE (Education)
   ----------------------------------------------------------- */
.timeline-v2 {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 2rem;
}

.timeline-v2::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(14,165,233,0.2) 60%, transparent 100%);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 2rem;
  padding-bottom: 3rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  margin-left: -2rem;
  transition: all var(--transition);
}

.tl-item:hover .tl-dot {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.tl-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.tl-item:hover .tl-content {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tl-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tl-inst {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.tl-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tl-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}

.tl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Highlight box */
.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-dim);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: var(--radius-md);
}

.highlight-box i {
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-box strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.highlight-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* -----------------------------------------------------------
   10. BADGES
   ----------------------------------------------------------- */
.badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: rgba(14,165,233,0.12);
  color: #38bdf8;
  border: 1px solid rgba(14,165,233,0.25);
}

.badge-green {
  background: rgba(16,185,129,0.1);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.22);
}

.badge-purple {
  background: rgba(139,92,246,0.1);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.22);
}

/* -----------------------------------------------------------
   11. PROJECT BLOCK (Software Dev & Data Analyst)
   ----------------------------------------------------------- */
.project-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition);
  margin-top: 2.5rem;
}

.project-block:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.project-img-col { overflow: hidden; }

.project-img-wrap {
  height: 340px;
  overflow: hidden;
  position: relative;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-block:hover .project-img-wrap img {
  transform: scale(1.04);
}

.project-info-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title-v2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.detail-row:last-child { border-bottom: none; }

.detail-row:hover { background: rgba(255,255,255,0.025); }

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 85px;
  padding-top: 2px;
}

.detail-val {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature cards */
.feature-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-v2:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon-v2 {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.feature-v2:hover .feature-icon-v2 {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.feature-title-v2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Roadmap */
.roadmap-wrap {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.roadmap-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.roadmap-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.roadmap-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.roadmap-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.step-marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  margin-bottom: 1rem;
  position: relative;
  flex-shrink: 0;
}

.step-marker::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(14,165,233,0.3);
}

.roadmap-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(14,165,233,0.2));
  margin-top: 7px;
  align-self: flex-start;
}

.step-month {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -----------------------------------------------------------
   12. DATA ANALYST — DAX CARDS
   ----------------------------------------------------------- */
.dax-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.dax-card-v2:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 8px 32px rgba(139,92,246,0.15);
  transform: translateY(-3px);
}

.dax-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.dax-card-v2:hover .dax-icon {
  background: rgba(139,92,246,0.2);
  box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}

.dax-card-v2 h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.dax-card-v2 p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* DAX Simulator */
.simulator-v2 {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.simulator-v2::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sim-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sim-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.75rem 0 0.5rem;
}

.sim-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.slider-wrap { }

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.slider-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.range-v2 {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--pct, 50%), var(--bg-raised) var(--pct, 50%));
  outline: none;
  cursor: pointer;
}

.range-v2::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--accent-glow);
  transition: all var(--transition);
}

.range-v2::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-v2::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-base);
  cursor: pointer;
}

.sim-result-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.sim-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.grade-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.grade-premium {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}

.grade-standard {
  background: rgba(234,179,8,0.1);
  border: 1px solid rgba(234,179,8,0.3);
  color: #facc15;
}

.grade-low {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.sim-result-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Anomaly Cards */
.anomaly-v2 {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.anomaly-red {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-left-color: #ef4444;
}

.anomaly-amber {
  background: rgba(234,179,8,0.06);
  border: 1px solid rgba(234,179,8,0.15);
  border-left-color: #eab308;
}

.anomaly-danger {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.15);
  border-left-color: #f97316;
}

.anomaly-v2:hover { transform: translateY(-3px); }

.anomaly-tag {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.anomaly-red .anomaly-tag { color: #ef4444; }
.anomaly-amber .anomaly-tag { color: #eab308; }
.anomaly-danger .anomaly-tag { color: #f97316; }

.anomaly-v2 p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Recommendation Cards */
.rec-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.rec-v2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  right: 0; height: 2px;
  background: var(--grad-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.rec-v2:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rec-v2:hover::after { transform: scaleX(1); }

.rec-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,165,233,0.25);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.rec-v2 h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.rec-v2 p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* -----------------------------------------------------------
   13. FOOTER
   ----------------------------------------------------------- */
.footer-v2 {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}

.footer-top {
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.footer-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-align: left;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(14,165,233,0.15);
  transform: translateY(-2px);
  color: inherit;
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--accent);
  color: #fff;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 1px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.built-with {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem !important;
}

/* -----------------------------------------------------------
   14. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .chip-top { right: -8%; }
  .chip-bottom { left: -8%; }
}

@media (max-width: 991px) {
  /* Navbar mobile */
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(24px);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
  }

  .nav-menu.open {
    transform: translateY(0);
    pointer-events: all;
    opacity: 1;
  }

  .menu-btn { display: flex; }

  .nav-item {
    padding: 0.65rem 0.85rem;
    width: 100%;
    font-size: 0.95rem;
  }

  /* Project blocks vertical on mobile */
  .project-img-wrap { height: 220px; }
  .project-info-col { padding: 1.75rem; }

  /* Roadmap scroll */
  .roadmap-steps { overflow-x: scroll; }

  /* Profile chips hidden on small screens */
  .chip-top, .chip-bottom { display: none; }
  .profile-ring-wrap { width: 260px; height: 260px; }

  /* Stats row wraps */
  .stat-item { min-width: 120px; padding: 1rem; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .section-v2 { padding: 5rem 0; }

  .hero-name { font-size: 2.2rem; }

  .hero-right {
    padding: 3rem 0 2rem;
  }

  .profile-ring-wrap {
    width: 220px;
    height: 220px;
  }

  .stats-row { flex-direction: column; gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }

  .tl-content { padding: 1.25rem; }
  .timeline-v2 { padding-left: 1.5rem; }
  .tl-dot { margin-left: -1.5rem; }
  .timeline-v2::before { left: 15px; }

  .roadmap-wrap { padding: 1.5rem; }
  .simulator-v2 { padding: 1.5rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-contacts { flex-direction: column; align-items: center; }
  .contact-item { width: 100%; max-width: 340px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  .hero-pills { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .btn-primary-v2, .btn-ghost-v2 { width: 100%; justify-content: center; }

  .navbar-v2 { padding: 0 1rem; }
  .profile-ring-wrap { width: 190px; height: 190px; }
}

/* -----------------------------------------------------------
   15. LIGHT THEME OVERRIDES
   ----------------------------------------------------------- */
[data-theme="light"] .card-v2 { background: #fff; }
[data-theme="light"] .tl-content { background: #fff; }
[data-theme="light"] .feature-v2 { background: #fff; }
[data-theme="light"] .dax-card-v2 { background: #fff; }
[data-theme="light"] .rec-v2 { background: #fff; }
[data-theme="light"] .project-block { background: #fff; }
[data-theme="light"] .roadmap-wrap { background: #fff; }
[data-theme="light"] .simulator-v2 { background: #fff; }
[data-theme="light"] .sim-result-card { background: var(--bg-surface); }
[data-theme="light"] .contact-item { background: #fff; }
[data-theme="light"] #cursor-glow { opacity: 0.5; }

[data-theme="light"] .range-v2 {
  background: linear-gradient(to right, var(--accent) var(--pct, 50%), #e4e4e7 var(--pct, 50%));
}

/* -----------------------------------------------------------
   16. SCROLLBAR
   ----------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* -----------------------------------------------------------
   17. SELECTION
   ----------------------------------------------------------- */
::selection {
  background: rgba(14, 165, 233, 0.25);
  color: var(--text-primary);
}
