/* ============================================================
   TOKENS — dark theme is default; [data-theme="light"] overrides
   ============================================================ */
:root {
  --bg: #0B1220;
  --bg-alt: #0F172A;
  --surface: rgba(255,255,255,0.055);
  --surface-strong: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.22);

  --text: #F1F5F9;
  --text-soft: #CBD5E1;
  --muted: #8B98AC;

  --primary: #3B82F6;
  --secondary: #8B5CF6;
  --accent: #06B6D4;
  --amber: #F5A524;

  --primary-soft: rgba(59,130,246,0.14);
  --secondary-soft: rgba(139,92,246,0.14);
  --accent-soft: rgba(6,182,212,0.14);
  --amber-soft: rgba(245,165,36,0.14);

  --grad-brand: linear-gradient(120deg, var(--primary), var(--secondary) 55%, var(--accent));

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1160px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-glass: 0 20px 60px -24px rgba(0,0,0,0.55);
  --transition-base: 0.3s cubic-bezier(.2,.8,.25,1);
}

[data-theme="light"] {
  --bg: #FBFCFE;
  --bg-alt: #FFFFFF;
  --surface: rgba(15,23,42,0.028);
  --surface-strong: rgba(15,23,42,0.05);
  --border: rgba(15,23,42,0.10);
  --border-strong: rgba(15,23,42,0.18);

  --text: #0F172A;
  --text-soft: #3F4B5E;
  --muted: #6B7688;

  /* slightly deeper, more restrained brand tones for a corporate-appropriate contrast on white */
  --primary: #2563EB;
  --secondary: #7C3AED;
  --accent: #0891B2;

  --primary-soft: rgba(37,99,235,0.07);
  --secondary-soft: rgba(124,58,237,0.07);
  --accent-soft: rgba(8,145,178,0.08);
  --amber-soft: rgba(245,165,36,0.10);

  --shadow-glass: 0 16px 40px -26px rgba(15,23,42,0.14);
}

/* Light theme reads as clean and minimal, not "dark theme in reverse":
   ambient decoration is dialed way back so the content carries the page. */
[data-theme="light"] .bg-wash { opacity: 0.35; animation: none; }
[data-theme="light"] .blob { opacity: 0.12; filter: blur(90px); }
[data-theme="light"] .grain { opacity: 0.015; }
[data-theme="light"] .cursor-glow { display: none; }
[data-theme="light"] .glass {
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), var(--shadow-glass);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
[data-theme="light"] .kpi-card__value { color: var(--text); }
[data-theme="light"] .hero__title-accent { -webkit-text-fill-color: initial; background: none; color: var(--primary); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

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

::selection { background: var(--primary); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 10px; border: 2px solid var(--bg);
}
* { scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }

/* ============================================================
   AMBIENT LAYERS — gradient wash, floating blobs, grain, cursor glow
   ============================================================ */
.bg-wash {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(700px circle at 12% 8%, var(--primary-soft), transparent 60%),
    radial-gradient(800px circle at 88% 18%, var(--secondary-soft), transparent 55%),
    radial-gradient(900px circle at 50% 100%, var(--accent-soft), transparent 60%);
  animation: washDrift 22s ease-in-out infinite alternate;
}
@keyframes washDrift {
  0% { opacity: 0.85; transform: translate3d(0,0,0) scale(1); }
  100% { opacity: 1; transform: translate3d(-1.5%, 1.5%, 0) scale(1.04); }
}

.blob-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
  animation: floaty 16s ease-in-out infinite;
}
.blob--a { width: 380px; height: 380px; background: var(--primary); top: -120px; left: -80px; animation-duration: 18s; }
.blob--b { width: 420px; height: 420px; background: var(--secondary); top: 40%; right: -140px; animation-duration: 22s; animation-delay: -4s; }
.blob--c { width: 300px; height: 300px; background: var(--accent); bottom: -100px; left: 30%; animation-duration: 20s; animation-delay: -9s; }
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.08); }
  66% { transform: translate(-25px,30px) scale(0.95); }
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; z-index: 998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary-soft), transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand);
  z-index: 1001; transition: width 0.1s linear;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 4px;
}
.loader__dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-left: 3px; animation: loaderDot 1s ease-in-out infinite;
}
.loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.loader__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loaderDot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.loader.is-hidden { opacity: 0; visibility: hidden; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-strong); backdrop-filter: blur(14px);
  border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 40px;
}
.section-label span {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}

/* ============================================================
   GLASS PRIMITIVES
   ============================================================ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-glass);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--edge);
  background: rgba(11,18,32,0.55);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
}
[data-theme="light"] .nav { background: rgba(255,255,255,0.65); }
.nav.nav--hidden { transform: translateY(-100%); }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,0.5); }

.nav__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
}
.nav__mark-dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav__links a {
  position: relative; color: var(--text-soft); transition: color 0.25s; padding-bottom: 3px;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0%; height: 2px;
  background: var(--grad-brand); transition: width 0.3s ease; border-radius: 2px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

.nav__resume {
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--border-strong); padding: 9px 18px; border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__resume:hover { background: var(--grad-brand); border-color: transparent; color: #fff; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  background: rgba(11,18,32,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--edge) 20px;
}
[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.95); }
.mobile-menu a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.mobile-menu.open { display: flex; }

@media (max-width: 860px) {
  .nav__links, .nav__resume { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   BUTTONS + RIPPLE
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.2s ease-out, box-shadow 0.25s ease, border-color 0.2s;
  overflow: hidden; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn span, .btn i { position: relative; z-index: 1; }
.btn--primary { background: var(--grad-brand); color: #fff; }
.btn--primary:hover { box-shadow: 0 12px 30px -10px var(--primary); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,0.5); pointer-events: none;
  animation: rippleAnim 0.6s ease-out; z-index: 0;
}
[data-theme="light"] .btn--ghost .ripple { background: rgba(15,23,42,0.25); }
@keyframes rippleAnim { to { transform: scale(3.2); opacity: 0; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: clamp(120px, 16vw, 170px) var(--edge) 0;
  overflow: hidden;
}
#particles-hero {
  position: absolute; inset: -5%; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(circle at 30% 25%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 25%, black 0%, transparent 70%);
}
.hero__inner { max-width: 780px; position: relative; }

.hero__eyebrow {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  margin: 0 0 22px; min-height: 20px;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.hero__eyebrow .typed-cursor { color: var(--accent); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  margin: 0 0 26px;
}
.hero__title .reveal-line { display: block; overflow: hidden; padding-bottom: 4px; }
.hero__title .reveal-word {
  display: inline-block;
  opacity: 0; transform: translateY(110%) rotate(2deg);
  animation: word-up 0.7s cubic-bezier(.2,.9,.25,1) forwards;
}
@keyframes word-up { to { opacity: 1; transform: translateY(0) rotate(0deg); } }
.hero__title-accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--text-soft);
  max-width: 560px; margin: 0 0 34px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.hero__socials { display: flex; gap: 12px; margin-bottom: 64px; }
.hero__socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: all 0.25s ease;
}
.hero__socials a:hover {
  color: #fff; border-color: transparent; background: var(--grad-brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px var(--primary);
}

/* KPI strip */
.kpi-strip {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--edge);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: translateY(1px);
}
.kpi-card {
  padding: 24px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.kpi-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.kpi-card__label {
  font-size: 12.5px; color: var(--muted); font-family: var(--font-mono);
  line-height: 1.4; min-height: 34px;
}
.kpi-card__value {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.kpi-card--amber .kpi-card__value { color: var(--amber); }
.kpi-card__bar { height: 4px; background: var(--surface-strong); border-radius: 4px; overflow: hidden; }
.kpi-card__bar i { display: block; height: 100%; width: 0%; border-radius: 4px; background: var(--grad-brand); transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.kpi-card--amber .kpi-card__bar i { background: var(--amber); }
.kpi-card__bar.fill i { width: var(--fill); }

@media (max-width: 720px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { max-width: var(--max); margin: 0 auto; padding: 130px var(--edge) 40px; }
.about__grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }

.about__photo {
  width: 240px; height: 240px; border-radius: var(--radius); overflow: hidden;
  position: relative; padding: 4px;
  background: var(--grad-brand);
}
.about__photo-inner { width: 100%; height: 100%; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--bg-alt); position: relative; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-fallback {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 12px;
}
.about__photo--empty img { display: none; }
.about__photo--empty .about__photo-fallback { display: flex; }

.about__card { padding: 34px; }
.about__lead { font-size: 19px; font-weight: 500; color: var(--text); margin-top: 0; }
.about__text p { color: var(--text-soft); }
.about__facts { margin-top: 30px; display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 24px; }
.fact { display: flex; gap: 20px; font-size: 14px; }
.fact__k { font-family: var(--font-mono); color: var(--muted); min-width: 110px; flex-shrink: 0; }
.fact__v { color: var(--text); font-weight: 500; }

/* Education timeline */
.timeline { margin-top: 56px; position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(var(--primary), var(--secondary), var(--accent));
}
.timeline__item { position: relative; margin-bottom: 28px; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute; left: -34px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--accent);
}
.timeline__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.timeline__top b { color: var(--text); }
.timeline__top span { font-family: var(--font-mono); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.timeline__sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { width: 160px; height: 160px; }
}

/* ============================================================
   WORK / PROJECTS
   ============================================================ */
.work { max-width: var(--max); margin: 0 auto; padding: 60px var(--edge); }
.project {
  border-radius: var(--radius); margin-bottom: 26px; overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.project:hover { border-color: var(--border-strong); box-shadow: 0 26px 50px -26px rgba(0,0,0,0.55); }
.project__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project:hover .project__dot { transform: scale(1.5); box-shadow: 0 0 0 6px var(--accent-soft); }
.project__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 26px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
}
.project__name { color: var(--text); font-weight: 600; font-size: 15px; margin-right: auto; }
.project__body { padding: 28px 26px 30px; }
.project__body > p { margin-top: 0; color: var(--text-soft); max-width: 640px; }
.project__metrics { margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.project__metrics li { font-size: 14.5px; color: var(--text-soft); padding-left: 18px; position: relative; }
.project__metrics li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--accent); }
.project__metrics b { color: var(--text); font-family: var(--font-mono); }
.project__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.project__tags span {
  font-size: 12.5px; font-family: var(--font-mono); padding: 5px 12px;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px;
  border: 1px solid var(--border);
}
.project__link {
  font-weight: 600; font-size: 14.5px; color: var(--text);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease, transform 0.2s ease;
}
.project__link:hover { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { max-width: var(--max); margin: 0 auto; padding: 60px var(--edge); }
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-group--wide { grid-column: 1 / -1; }
.skill-group { padding: 26px 26px 24px; }
.skill-group h3 {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin: 0 0 16px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.skill-group h3 i { color: var(--accent); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 13.5px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.chips span:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* proficiency bars */
.proficiency { display: grid; gap: 16px; margin-top: 6px; }
.proficiency__row { display: grid; gap: 6px; }
.proficiency__top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-soft); }
.proficiency__top i { color: var(--accent); margin-right: 8px; width: 16px; text-align: center; }
.proficiency__track { height: 6px; border-radius: 6px; background: var(--surface-strong); overflow: hidden; }
.proficiency__fill { height: 100%; width: 0%; border-radius: 6px; background: var(--grad-brand); transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.proficiency__fill.fill { width: var(--fill); }

/* ============================================================
   CERTIFICATIONS (Swiper)
   ============================================================ */
.certs { max-width: var(--max); margin: 0 auto; padding: 60px var(--edge); }
.cert-card {
  padding: 26px; height: 100%; display: flex; flex-direction: column; gap: 14px;
}
.cert-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-size: 18px;
}
.cert-card h4 { margin: 0; font-size: 16px; font-family: var(--font-display); }
.cert-card__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }
.certs-swiper { padding-bottom: 46px !important; }
.swiper-pagination-bullet { background: var(--muted); opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--accent) !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { max-width: var(--max); margin: 0 auto; padding: 70px var(--edge) 40px; }
.contact__title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.contact__sub { color: var(--muted); margin: 0 0 40px; font-size: 16px; }

.contact__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__card {
  position: relative;
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}
.contact__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.glow-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 70%);
  transition: opacity 0.3s ease;
}
.glow-card:hover::before { opacity: 1; }
.contact__label, .contact__value { position: relative; z-index: 1; }
.contact__label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact__value { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.contact__icon { font-size: 18px; color: var(--accent); margin-bottom: 6px; }

/* Contact form */
.contact-form { padding: 30px; display: grid; gap: 20px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 16px 14px 8px; font-family: var(--font-body); font-size: 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 14px; top: 16px; color: var(--muted); font-size: 15px;
  pointer-events: none; transition: all 0.2s ease; background: transparent;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: 11px; color: var(--accent);
}
.contact-form small { color: var(--muted); font-size: 12.5px; }
.form-status { font-size: 13px; color: var(--accent); min-height: 16px; }

.footer {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.footer__socials { display: flex; gap: 14px; }
.footer__socials a { color: var(--muted); transition: color 0.2s ease; }
.footer__socials a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .contact__layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL (fallback for non-AOS elements)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Tilt cards need perspective preserved by vanilla-tilt inline styles */
.tilt-card { will-change: transform; }
