/* ============================================================
   PRANAV MAHALE – PORTFOLIO STYLESHEET
   Aesthetic: Cyber-Noir · Electric · Precision Engineering
   Fonts: Syne (headings) · DM Sans (body) · JetBrains Mono
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Palette */
  --accent-1: #00e5ff;      /* Electric Cyan */
  --accent-2: #7c3aed;      /* Deep Violet */
  --accent-3: #ff4d6d;      /* Hot Coral */
  --accent-4: #39ff14;      /* Neon Green */
  --gradient: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-1) 100%);
  --gradient-text: linear-gradient(135deg, #00e5ff 0%, #7c3aed 50%, #ff4d6d 100%);

  /* Typography */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-cyan: 0 0 30px rgba(0, 229, 255, 0.2);
  --shadow-violet: 0 0 30px rgba(124, 58, 237, 0.25);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.4);
}

/* ─── Dark Theme (Default) ──────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary: #060610;
  --bg-secondary: #0b0b1a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(0, 229, 255, 0.05);
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-border: rgba(0, 229, 255, 0.12);
  --bg-tag: rgba(0, 229, 255, 0.08);
  --text-primary: #e8eaff;
  --text-secondary: #8892b0;
  --text-muted: #55607a;
  --border-color: rgba(0, 229, 255, 0.08);
  --nav-bg: rgba(6, 6, 16, 0.85);
  --orb-1: rgba(0, 229, 255, 0.12);
  --orb-2: rgba(124, 58, 237, 0.18);
  --orb-3: rgba(255, 77, 109, 0.1);
  --grid-color: rgba(0, 229, 255, 0.04);
  --timeline-line: rgba(0, 229, 255, 0.15);
  --dot-color: var(--accent-1);
}

/* ─── Light Theme ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #f5f5ff;
  --bg-secondary: #ebebf8;
  --bg-card: rgba(255,255,255,0.9);
  --bg-card-hover: rgba(255,255,255,1);
  --bg-glass: rgba(255,255,255,0.8);
  --bg-glass-border: rgba(124, 58, 237, 0.2);
  --bg-tag: rgba(124, 58, 237, 0.08);
  --text-primary: #0f0f28;
  --text-secondary: #3d4470;
  --text-muted: #8890b0;
  --border-color: rgba(124, 58, 237, 0.12);
  --nav-bg: rgba(245, 245, 255, 0.9);
  --orb-1: rgba(0, 229, 255, 0.15);
  --orb-2: rgba(124, 58, 237, 0.1);
  --orb-3: rgba(255, 77, 109, 0.08);
  --grid-color: rgba(124, 58, 237, 0.04);
  --timeline-line: rgba(124, 58, 237, 0.15);
  --dot-color: var(--accent-2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.15);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  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)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

/* Gradient Text */
.gradient-text, em {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* ─── Scroll Progress Bar ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--accent-1);
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ─── Section Base ───────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  line-height: 1.1;
}

.section-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ─── Reveal Animations ──────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for grids */
.skills-grid > *:nth-child(2),
.projects-grid > *:nth-child(2),
.certs-grid > *:nth-child(2) { transition-delay: 0.1s; }
.skills-grid > *:nth-child(3),
.projects-grid > *:nth-child(3),
.certs-grid > *:nth-child(3) { transition-delay: 0.15s; }
.skills-grid > *:nth-child(4),
.projects-grid > *:nth-child(4) { transition-delay: 0.2s; }
.skills-grid > *:nth-child(5),
.projects-grid > *:nth-child(5) { transition-delay: 0.25s; }
.skills-grid > *:nth-child(6),
.projects-grid > *:nth-child(6) { transition-delay: 0.3s; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border: 1px solid rgba(0,229,255,0.35);
}
.btn-outline:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 5px;
  background: rgba(0,229,255,0.1);
  color: var(--accent-1);
  border: 1px solid rgba(0,229,255,0.2);
}
.btn-sm:hover {
  background: rgba(0,229,255,0.18);
  border-color: var(--accent-1);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.logo-bracket { color: var(--accent-1); }
.logo-name { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(0,229,255,0.06);
}
.nav-link.active {
  color: var(--accent-1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.theme-btn:hover {
  color: var(--accent-1);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: left center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(1px,-1px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(1px,1px); }

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid var(--border-color);
}
.mobile-menu.open { transform: none; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-link {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.mobile-link:hover { color: var(--accent-1); padding-left: 1.5rem; }

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  position: relative;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--orb-1);
  top: -15%; right: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--orb-2);
  bottom: -15%; left: -10%;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--orb-3);
  top: 50%; left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-scanline {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
  opacity: 0.15;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { top: -2px; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* Hero Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.eyebrow-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1));
}
.eyebrow-line:last-child {
  background: linear-gradient(270deg, transparent, var(--accent-1));
}
.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-1);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.pulse-dot {
  color: var(--accent-4);
  animation: pulseDot 2s ease-in-out infinite;
  font-size: 0.6rem;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Name */
.hero-name {
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.name-line-1 {
  color: var(--text-primary);
  opacity: 0.7;
}
.name-line-2 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.name-dot { color: var(--accent-1); -webkit-text-fill-color: var(--accent-1); }

/* Hero Role */
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 1.8em;
}
.role-label { color: var(--accent-1); opacity: 0.6; }
.typed-role { color: var(--accent-1); font-weight: 600; }
.cursor-blink {
  color: var(--accent-1);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero Bio */
.hero-bio {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.hero-bio strong { color: var(--text-primary); }

/* Hero Links */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: var(--transition);
}
.hero-link-pill:hover {
  border-color: rgba(0,229,255,0.4);
  color: var(--accent-1);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}
.hero-link-pill.accent {
  border-color: rgba(0,229,255,0.3);
  color: var(--accent-1);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: fit-content;
  margin: 0 auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.75rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-1);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-1);
  display: inline;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: scrollBounce 2.5s ease-in-out infinite;
  z-index: 2;
}
.scroll-track {
  width: 24px; height: 40px;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.scroll-thumb {
  width: 4px; height: 10px;
  background: var(--accent-1);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollThumb 2.5s ease-in-out infinite;
}
@keyframes scrollThumb {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0.3; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── ABOUT SECTION ──────────────────────────────────────────── */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

/* Avatar */
.about-visual { }

.avatar-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.avatar-core {
  position: relative;
  width: 160px; height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
  position: relative;
}

.avatar-ring-1, .avatar-ring-2 {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}
.avatar-ring-1 {
  border: 1px solid rgba(0,229,255,0.3);
  animation: spinSlow 20s linear infinite;
}
.avatar-ring-1::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  transform: translateX(-50%);
}
.avatar-ring-2 {
  inset: 15px;
  border: 1px solid rgba(124,58,237,0.3);
  animation: spinSlow 12s linear infinite reverse;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.avatar-stats-ring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}
.aring-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  transition: var(--transition);
}
.aring-item:hover {
  border-color: rgba(0,229,255,0.3);
  background: var(--bg-card-hover);
}
.aring-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-1);
  line-height: 1.2;
}
.aring-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Domain Badges */
.domain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.domain-badge:hover {
  border-color: rgba(0,229,255,0.3);
  color: var(--accent-1);
}
.domain-badge i { color: var(--accent-1); font-size: 0.75rem; }

/* About Text */
.about-text { }

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
  word-break: break-all;
}
.contact-chip:hover {
  color: var(--accent-1);
  border-color: rgba(0,229,255,0.3);
}
.contact-chip i { color: var(--accent-1); }

/* Strengths */
.strengths-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
}
.strengths-block h4 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.strengths-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.strengths-list li i {
  color: var(--accent-4);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ─── SKILLS SECTION ─────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.05), transparent);
  transition: var(--transition);
}
.skill-card:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}
.skill-card:hover::before { opacity: 1; }

.skill-card.ai-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--shadow-violet);
}
.skill-card.ai-card::before {
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
}

.skill-card.future-card:hover {
  border-color: rgba(57,255,20,0.2);
  box-shadow: 0 0 20px rgba(57,255,20,0.08);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skill-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,229,255,0.1);
  color: var(--accent-1);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.skill-icon-wrap.ai-icon {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
}
.skill-icon-wrap.future-icon {
  background: rgba(57,255,20,0.1);
  color: var(--accent-4);
}

.skill-card-header h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  transition: var(--transition);
}
.skill-tag.primary {
  color: var(--accent-1);
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.2);
}
.skill-tag.accent {
  color: #a78bfa;
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
}
.skill-tag.future {
  color: var(--accent-4);
  background: rgba(57,255,20,0.06);
  border-color: rgba(57,255,20,0.15);
}
.skill-tag:hover { border-color: rgba(0,229,255,0.4); }

/* ─── ROLES SECTION ──────────────────────────────────────────── */
.roles-section { background: var(--bg-secondary); }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.role-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
}
.role-block:hover {
  border-color: rgba(0,229,255,0.2);
  box-shadow: var(--shadow-card);
}

.role-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.role-block-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,229,255,0.1);
  color: var(--accent-1);
  font-size: 1rem;
  flex-shrink: 0;
}
.role-block-icon.ai-icon-block {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
}
.role-block-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.role-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}
.role-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}
.role-list li strong { color: var(--text-primary); }

/* ─── EXPERIENCE SECTION ─────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--dot-color);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--timeline-line);
  margin-top: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.timeline-card:hover {
  border-color: rgba(0,229,255,0.2);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.tl-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tl-title-group { flex: 1; }

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--accent-1);
  font-weight: 500;
}
.tl-note {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-domain {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
}
.domain-finance { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.domain-health { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.domain-science { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }

.tl-project {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.tl-project strong { color: var(--text-primary); }
.tl-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.timeline-tags span {
  font-size: 0.73rem;
  padding: 0.22rem 0.6rem;
  background: var(--bg-tag);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ─── PROJECTS SECTION ───────────────────────────────────────── */
.projects-section { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: default;
}
.project-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.project-card-inner { padding: 1.75rem; }

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-1);
}
.project-icon.ai-icon {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.25);
  color: #a78bfa;
}

.project-links { display: flex; gap: 0.5rem; }
.project-links a {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.project-links a:hover {
  color: var(--text-primary);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-desc strong { color: var(--text-primary); }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.project-tags span {
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  background: var(--bg-tag);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.projects-cta { text-align: center; }

/* ─── CERTIFICATIONS SECTION ─────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}
.cert-card:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.cert-card.featured-cert {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.04);
}
.cert-card.featured-cert:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: var(--shadow-violet);
}

.cert-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-1);
  flex-shrink: 0;
}
.cert-card.featured-cert .cert-icon {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: #a78bfa;
}

.cert-body { flex: 1; }
.cert-org {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.cert-card.featured-cert .cert-org { color: #a78bfa; }
.cert-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.cert-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cert-badge.official {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
}
.cert-badge.course {
  background: rgba(0,229,255,0.08);
  color: var(--accent-1);
  border: 1px solid rgba(0,229,255,0.2);
}

/* ─── CONTACT SECTION ────────────────────────────────────────── */
.contact-section { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.detail-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.detail-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}
a.detail-value:hover { color: var(--accent-1); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.social-full-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.05);
  transform: translateY(-2px);
}
.social-full-btn.linkedin:hover {
  border-color: rgba(10,102,194,0.4);
  background: rgba(10,102,194,0.08);
  color: #60a5fa;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
}
.required { color: var(--accent-3); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.form-group input.error,
.form-group textarea.error { border-color: var(--accent-3); }

.field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-3);
  margin-top: 0.3rem;
  font-family: var(--font-mono);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 7px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-4);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  color: var(--accent-1);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent-1);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(0,229,255,0.12);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { text-align: center; }
  .avatar-frame { align-items: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .hero-name { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero-stats { gap: 0; padding: 1rem; }
  .stat-item { padding: 0 1rem; }
  .stat-number { font-size: 1.5rem; }
  .timeline-item { grid-template-columns: 40px 1fr; gap: 1rem; }
  .timeline-header { flex-direction: column; }
  .timeline-meta { align-items: flex-start; }
  .skills-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { flex-direction: row; gap: 0.5rem; align-items: baseline; padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero-eyebrow { display: none; }
  .hero-bio { font-size: 0.95rem; }
  .section-title { font-size: 1.8rem; }
  .timeline-item { grid-template-columns: 30px 1fr; }
  .contact-form-wrap { padding: 1.25rem; }
}

/* ─── Prefers Reduced Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
