/* ===========================================================
   Raveendra Pujari — Portfolio styles
   Section-themed, animated, accessible, responsive.
   =========================================================== */

/* ===== Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

/* ===== Base tokens (light theme defaults) ===== */
:root {
  --header-height: 4rem;

  /* Brand */
  --first-color: #4070F4;
  --second-color: #0E2431;
  --accent: #6366f1;

  /* Surfaces */
  --bg-top: #f6f9ff;
  --bg-mid: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #e9ecf6;
  --text: #0E2431;
  --text-soft: #4a5163;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .18);
  --glass-bg: rgba(255, 255, 255, .6);
  --glass-border: rgba(255, 255, 255, .8);

  /* Per-section theme (overridden by [data-section] on <section>) */
  --section-grad-1: #0ea5e9;
  --section-grad-2: #6366f1;
  --section-grad-3: #a855f7;
  --section-tint: rgba(99, 102, 241, .08);

  /* Type */
  --body-font: 'Poppins', system-ui, -apple-system, sans-serif;
  --display-font: 'Space Grotesk', var(--body-font);
  --big-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.15rem;
  --normal-font-size: 0.95rem;
  --small-font-size: 0.82rem;
}
@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 4.25rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
  }
}

/* ===== Spacing & z ===== */
:root {
  --mb-1: .5rem; --mb-2: 1rem; --mb-3: 1.5rem; --mb-4: 2rem;
  --mb-5: 2.5rem; --mb-6: 3rem; --mb-7: 4rem; --mb-8: 5rem;
  --z-back: -10; --z-normal: 1; --z-tooltip: 10; --z-fixed: 100;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-pill: 999px;
}

/* ===== Per-section color themes ===== */
/* Home — sky / blue */
section[data-section="home"]      { --section-grad-1:#0ea5e9; --section-grad-2:#3b82f6; --section-grad-3:#6366f1; --section-tint:rgba(14,165,233,.10); }
/* About — indigo / violet */
section[data-section="about"]     { --section-grad-1:#6366f1; --section-grad-2:#8b5cf6; --section-grad-3:#a855f7; --section-tint:rgba(139,92,246,.10); }
/* Experience — emerald / teal */
section[data-section="experience"]{ --section-grad-1:#10b981; --section-grad-2:#14b8a6; --section-grad-3:#06b6d4; --section-tint:rgba(16,185,129,.10); }
/* Skills — amber / orange */
section[data-section="skills"]    { --section-grad-1:#f59e0b; --section-grad-2:#f97316; --section-grad-3:#ef4444; --section-tint:rgba(245,158,11,.10); }
/* Projects — pink / rose */
section[data-section="projects"]  { --section-grad-1:#ec4899; --section-grad-2:#f43f5e; --section-grad-3:#f97316; --section-tint:rgba(236,72,153,.10); }
/* Certificates — cyan / blue */
section[data-section="certificates"]{ --section-grad-1:#06b6d4; --section-grad-2:#0ea5e9; --section-grad-3:#3b82f6; --section-tint:rgba(6,182,212,.10); }
/* Photography — rose / fuchsia */
section[data-section="interests"]  { --section-grad-1:#f43f5e; --section-grad-2:#ec4899; --section-grad-3:#a855f7; --section-tint:rgba(244,63,94,.10); }
/* Resume — emerald */
section[data-section="resume"]     { --section-grad-1:#22c55e; --section-grad-2:#10b981; --section-grad-3:#14b8a6; --section-tint:rgba(34,197,94,.10); }
/* Contact — fuchsia / violet */
section[data-section="contact"]    { --section-grad-1:#a855f7; --section-grad-2:#ec4899; --section-grad-3:#f43f5e; --section-tint:rgba(168,85,247,.10); }

/* ===== Dark theme ===== */
[data-theme="dark"] {
  --bg-top: #070a18;
  --bg-mid: #0b1124;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --surface-3: #273449;
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --border-strong: #334155;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, .6);
  --glass-bg: rgba(15, 23, 42, .55);
  --glass-border: rgba(255, 255, 255, .08);
  --first-color: #818cf8;
  --second-color: #e2e8f0;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text);
  background: var(--bg-top);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ===== Animated background (per-section blobs) ===== */
.bg-canvas {
  position: fixed; inset: 0;
  z-index: var(--z-back);
  pointer-events: none;
  overflow: hidden;
}
.bg-canvas .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
  transition: background 1s ease;
}
.bg-canvas .blob.b1 { width: 480px; height: 480px; top: -120px; left: -120px;
  background: radial-gradient(circle, var(--section-grad-1), transparent 60%); animation: float 18s ease-in-out infinite; }
.bg-canvas .blob.b2 { width: 420px; height: 420px; top: 30%; right: -120px;
  background: radial-gradient(circle, var(--section-grad-2), transparent 60%); animation: float 22s ease-in-out infinite reverse; }
.bg-canvas .blob.b3 { width: 360px; height: 360px; bottom: -100px; left: 20%;
  background: radial-gradient(circle, var(--section-grad-3), transparent 60%); animation: float 26s ease-in-out infinite; }
.bg-canvas .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .25;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-40px, 60px) scale(.95); }
}
[data-theme="dark"] .bg-canvas .blob { opacity: .35; }
[data-theme="dark"] .bg-canvas .grid { opacity: .12; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background-image: linear-gradient(90deg, var(--grad-1, #0ea5e9), var(--grad-2, #6366f1), var(--grad-3, #a855f7));
  z-index: calc(var(--z-fixed) + 5);
  transition: width .1s linear, background .4s ease;
}

/* ===== Sticky section label ===== */
.section-label {
  position: fixed;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--display-font);
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: var(--z-tooltip);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  font-weight: 500;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--section-grad-2);
  vertical-align: middle;
  margin-right: .6rem;
}
@media (max-width: 900px) { .section-label { display: none; } }
body[data-section-active] .section-label { opacity: .8; }

/* ===== Layout helpers ===== */
.bd-grid {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}
main { padding-top: var(--header-height); }
section {
  scroll-margin-top: calc(var(--header-height) + 1rem);
  position: relative;
  padding: var(--mb-7) 0;
}
section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--mb-3);
}

/* ===== Section title ===== */
.section-title {
  position: relative;
  font-family: var(--display-font);
  font-size: var(--h2-font-size);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--mb-6);
  text-align: center;
  letter-spacing: -.01em;
}
.section-title .accent {
  background: linear-gradient(90deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .eyebrow {
  display: block;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--section-grad-2);
  margin-bottom: .5rem;
  font-weight: 600;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  margin: 1rem auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
}
@media (min-width: 768px) {
  .section-title::after { width: 80px; }
}

/* ===== HEADER ===== */
.l-header {
  position: fixed; top: 0; left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease, border-color .3s ease;
}
.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mb-3);
}
.nav__brand {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
.nav__brand small {
  display: block;
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--text-muted);
  background: none;
  -webkit-text-fill-color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}
.nav__menu { display: flex; align-items: center; }
.nav__list { display: flex; gap: var(--mb-2); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--section-grad-1), var(--section-grad-2));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { width: calc(100% - 1.8rem); }
.nav__link.active { color: var(--text); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: .25rem; }
.nav__icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.nav__icon-btn:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.nav__icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__toggle { display: none; }
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; top: var(--header-height); right: -100%;
    width: 78%; max-width: 320px; height: calc(100vh - var(--header-height));
    padding: var(--mb-4);
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    transition: right .35s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav__menu.show { right: 0; }
  .nav__list { flex-direction: column; gap: 0; width: 100%; }
  .nav__link { display: block; padding: .9rem 1rem; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__link.active { background: linear-gradient(90deg, var(--section-tint), transparent); }
}

/* ===== HOME ===== */
.home {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  position: relative;
}
.home__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--mb-7) var(--mb-3) var(--mb-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-6);
  align-items: center;
}
@media (min-width: 900px) {
  .home__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--mb-7);
    padding-top: var(--mb-8);
  }
}
.home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: var(--mb-3);
  box-shadow: var(--shadow-sm);
}
.home__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.home__title {
  font-family: var(--display-font);
  font-size: var(--big-font-size);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: var(--mb-3);
}
.home__title .gradient {
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.home__title .cursor {
  display: inline-block;
  width: 4px;
  height: .9em;
  background: var(--section-grad-2);
  margin-left: 6px;
  vertical-align: -0.1em;
  animation: blink 1s steps(2) infinite;
  border-radius: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.home__subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: var(--mb-5);
  line-height: 1.7;
}
.home__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--mb-5); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary {
  color: #fff;
  background-image: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 10px 25px -8px var(--section-grad-2);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 35px -8px var(--section-grad-2); }
.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.home__socials { display: flex; gap: .75rem; }
.home__socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 1.2rem;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
  backdrop-filter: blur(8px);
}
.home__socials a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px -8px var(--section-grad-2);
}

/* Hero illustration (squircle photo with gradient border) */
.home__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.home__img {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 36% 64% 64% 36% / 36% 36% 64% 64%;
  padding: 5px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  z-index: 1;
  box-shadow:
    0 25px 50px -12px var(--section-grad-2),
    0 0 0 1px rgba(255, 255, 255, .1) inset;
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, background-position 1.2s ease;
  animation: morphShape 14s ease-in-out infinite, borderShift 8s ease-in-out infinite;
}
.home__img:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  background-position: 100% 50%;
  box-shadow:
    0 35px 70px -12px var(--section-grad-2),
    0 0 0 1px rgba(255, 255, 255, .15) inset;
}
.home__img img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  background: var(--surface-2);
}
@keyframes morphShape {
  0%, 100% { border-radius: 36% 64% 64% 36% / 36% 36% 64% 64%; }
  25%      { border-radius: 50% 50% 35% 65% / 50% 65% 35% 50%; }
  50%      { border-radius: 64% 36% 64% 36% / 64% 36% 64% 36%; }
  75%      { border-radius: 35% 65% 50% 50% / 65% 50% 50% 35%; }
}
@keyframes borderShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.home__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: .5;
}
.home__shape.s1 { width: 220px; height: 220px; top: -40px; right: -40px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2)); animation: float 14s ease-in-out infinite; }
.home__shape.s2 { width: 180px; height: 180px; bottom: -20px; left: -30px;
  background: linear-gradient(135deg, var(--section-grad-3), var(--section-grad-1)); animation: float 18s ease-in-out infinite reverse; }
.home__floating {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.home__floating .ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.home__floating.cert { top: 8%; left: -10px; }
.home__floating.cert .ico { background: linear-gradient(135deg, #4285F4, #34A853); }
.home__floating.k8s { bottom: 12%; right: -10px; animation-delay: 1.5s; }
.home__floating.k8s .ico { background: linear-gradient(135deg, #326CE5, #1E88E5); }
@media (max-width: 600px) {
  .home__floating { display: none; }
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-5);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1.3fr; gap: var(--mb-7); }
}
.about__text p { margin-bottom: var(--mb-3); color: var(--text-soft); }
.about__text p b { color: var(--text); font-weight: 600; }
.about__img-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.about__img-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .7;
  filter: blur(20px);
}
.about__img-wrap img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mb-3);
  margin-top: var(--mb-5);
}
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--mb-3);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--section-grad-2); }
.stat__value {
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .1em; }

/* ===== EXPERIENCE (single-column timeline) ===== */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  opacity: .35;
  border-radius: 2px;
}
@media (min-width: 900px) {
  .timeline::before { left: 20px; transform: none; }
}
.timeline__item {
  position: relative;
  margin-bottom: var(--mb-5);
  padding-left: 56px;
  text-align: left;
}
@media (min-width: 900px) {
  .timeline__item { width: 100%; padding-left: 56px; padding-right: 0; }
  .timeline__item .exp-card { max-width: 880px; }
}
.timeline__dot {
  position: absolute;
  left: 12px; top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  border: 4px solid var(--bg-top);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
  z-index: 2;
}
@media (min-width: 900px) {
  .timeline__dot { left: 12px; right: auto; top: 32px; }
}
.exp-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--mb-4);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--section-grad-1), var(--section-grad-2));
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--section-grad-2);
}
.exp-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .5rem; flex-wrap: wrap;
}
.exp-card__company {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.exp-card__company i { color: var(--section-grad-2); font-size: 1.3rem; }
.exp-card__chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem; font-size: .75rem; font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--border);
}
.exp-card__role { font-weight: 600; margin: .25rem 0 .5rem; color: var(--text); }
.exp-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.exp-card ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.exp-card ul li {
  margin-bottom: .35rem;
  line-height: 1.6;
  color: var(--text-soft);
  font-size: .92rem;
  position: relative;
  padding-left: .25rem;
}
.exp-card ul li::marker {
  color: var(--section-grad-2);
  font-size: 1.1em;
}

/* ===== SKILLS (bento grid with progress) ===== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-3);
}
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento__card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--mb-4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.bento__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--section-grad-2); }
.bento__card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: var(--mb-2);
  box-shadow: 0 6px 18px -6px var(--section-grad-2);
}
.bento__card h3 {
  font-family: var(--display-font);
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.bento__card p { font-size: .85rem; color: var(--text-muted); margin-bottom: var(--mb-3); }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: var(--mb-2);
}
.skill-tag {
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.skill-tag:hover {
  background: var(--section-tint);
  color: var(--section-grad-2);
  border-color: var(--section-grad-2);
  transform: translateY(-1px);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-4);
}
@media (min-width: 700px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--section-grad-2);
}
.project-card__visual {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 3rem;
  overflow: hidden;
}
.project-card__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.2), transparent 40%);
}
.project-card__visual i { position: relative; z-index: 1; }
.project-card__body { padding: var(--mb-3); display: flex; flex-direction: column; flex: 1; }
.project-card__cat { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--section-grad-2); font-weight: 600; margin-bottom: .4rem; }
.project-card__title { font-family: var(--display-font); font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: .35rem; }
.project-card__desc { font-size: .88rem; color: var(--text-soft); line-height: 1.6; margin-bottom: var(--mb-3); flex: 1; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: var(--mb-3); }
.project-card__cta { display: flex; gap: .5rem; }
.project-card__cta a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.project-card__cta a:hover { background: var(--section-grad-2); color: #fff; border-color: transparent; }

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-3);
}
@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card {
  position: relative;
  display: flex; align-items: center; gap: var(--mb-3);
  padding: var(--mb-3);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.cert-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--section-grad-2); }
.cert-card__badge {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px -6px var(--section-grad-2);
}
.cert-card__body { flex: 1; min-width: 0; }
.cert-card__name {
  font-weight: 600; color: var(--text);
  margin-bottom: .2rem; font-size: .95rem; line-height: 1.4;
}
.cert-card__issuer { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.cert-card__link {
  font-size: .82rem; font-weight: 600;
  color: var(--section-grad-2);
  display: inline-flex; align-items: center; gap: .3rem;
}
.cert-card__link:hover { text-decoration: underline; }

/* ===== RECOGNITION (Achievements + Education) ===== */
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-4);
}
@media (min-width: 820px) {
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
}
.recog-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--mb-4);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.recog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--section-grad-2);
}
.recog-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: var(--mb-2);
  box-shadow: 0 6px 18px -6px var(--section-grad-2);
}
.recog-card h3 {
  font-family: var(--display-font);
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--mb-3);
}
.recog-list { display: flex; flex-direction: column; gap: var(--mb-3); }
.recog-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.recog-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: .5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.recog-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  margin-top: .15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px -6px var(--section-grad-2);
}
.recog-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
}
.recog-link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--section-grad-1), var(--section-grad-2));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease, color .2s ease;
  display: inline;
  padding-bottom: 1px;
}
.recog-link i {
  font-size: .8em;
  margin-left: .2rem;
  opacity: .7;
  vertical-align: middle;
}
.recog-link:hover {
  color: var(--section-grad-2);
  background-size: 100% 1px;
}
.recog-link:hover i { opacity: 1; }
.recog-link:focus-visible {
  outline: 2px solid var(--section-grad-2);
  outline-offset: 3px;
  border-radius: 2px;
}
.recog-meta {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .15rem;
  line-height: 1.45;
}
section[data-section="recognition"] {
  --section-grad-1: #f59e0b;
  --section-grad-2: #f43f5e;
  --section-grad-3: #a855f7;
  --section-tint: rgba(245, 158, 11, .10);
}

/* ===== PHOTOGRAPHY / CAROUSEL ===== */
.photo-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--mb-5);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.photo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-bottom: var(--mb-5);
  padding: .4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}
.photo-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}
.photo-tab:hover { color: var(--text); background: var(--surface-2); }
.photo-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 6px 18px -6px var(--section-grad-2);
  transition: background-position .5s ease, transform .25s ease;
}
.photo-tab.is-active:hover { background-position: 100% 50%; }

/* ===== Carousel layout ===== */
.carousel {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* Soft fade edges to hint at more content */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.carousel__track {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  cursor: grab;
}
.carousel__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.carousel__slide {
  position: relative;
  flex: 0 0 auto;
  /* Each slide shows the photo at its NATURAL aspect ratio — no cropping */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1),
              box-shadow .45s ease,
              border-color .45s ease,
              opacity .35s ease;
  cursor: zoom-in;
  /* Slight lift to feel "lifted off the page" */
}
.carousel__slide.is-active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--section-grad-2);
}
.carousel__slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--section-grad-2);
}

/* The image — natural aspect ratio, never cropped */
.carousel__slide img {
  display: block;
  width: auto;
  height: 520px;       /* Set a tall viewport — width is auto so each photo's natural ratio is preserved */
  max-width: 100vw;
  object-fit: contain;
  background: var(--surface-2);
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 900px) {
  .carousel__slide img { height: 420px; }
}
@media (max-width: 600px) {
  .carousel__slide img { height: 360px; }
}

/* Caption overlay */
.carousel__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem 1.1rem .9rem;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .75) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.carousel__slide:hover .carousel__cap,
.carousel__slide.is-active .carousel__cap {
  opacity: 1;
  transform: translateY(0);
}
.carousel__cap-title {
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.carousel__cap-meta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

/* Zoom-in icon on hover */
.carousel__slide::after {
  content: "\ec06"; /* bx-zoom-in */
  font-family: "boxicons";
  position: absolute;
  top: .7rem; right: .7rem;
  z-index: 2;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
  pointer-events: none;
}
.carousel__slide:hover::after { opacity: 1; transform: scale(1); }

/* Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.carousel__arrow:hover {
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  background-position: 100% 50%;
}
.carousel__arrow:disabled { opacity: .35; cursor: not-allowed; }
.carousel__arrow:disabled:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  transform: translateY(-50%) scale(1);
}
.carousel__arrow--prev { left: .5rem; }
.carousel__arrow--next { right: .5rem; }
@media (min-width: 1100px) {
  .carousel__arrow--prev { left: -1.5rem; }
  .carousel__arrow--next { right: -1.5rem; }
}

/* Pagination dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: var(--mb-4);
  flex-wrap: wrap;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, width .25s ease;
}
.carousel__dot:hover { background: var(--section-grad-2); transform: scale(1.2); }
.carousel__dot.is-active {
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  width: 24px;
  border-radius: 999px;
}

/* Filtered-out slides */
.carousel__slide.is-hidden {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  position: absolute;
  visibility: hidden;
}

/* ===== RESUME (card-style) ===== */
.resume-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.resume-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
}
.resume-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--mb-3);
  align-items: center;
  padding: var(--mb-4) var(--mb-4) var(--mb-3);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 820px) {
  .resume-card__head {
    grid-template-columns: auto 1fr auto;
  }
}
.resume-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.resume-card__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.resume-card__id h3 {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .15rem;
  line-height: 1.2;
}
.resume-card__id p {
  font-size: .92rem;
  color: var(--text-soft);
  margin-bottom: .5rem;
}
.resume-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.rc-chip i { font-size: .85rem; color: var(--section-grad-2); }

.resume-card__stats {
  display: flex;
  gap: var(--mb-2);
}
@media (max-width: 819px) {
  .resume-card__stats { grid-column: 1 / -1; justify-content: flex-start; padding-top: .5rem; }
}
.rc-stat {
  text-align: center;
  padding: .35rem .65rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-width: 64px;
}
.rc-stat__val {
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.rc-stat__lbl {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

.resume-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-4);
  padding: var(--mb-4);
}
@media (min-width: 820px) {
  .resume-card__body {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
}
.resume-card__highlights h4 {
  font-family: var(--display-font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--section-grad-2);
  margin-bottom: var(--mb-2);
}
.resume-card__highlights ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.resume-card__highlights li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.resume-card__highlights li i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--section-grad-2);
  font-size: .85rem;
  border: 1px solid var(--border);
  margin-top: 1px;
}
.resume-card__highlights li b { color: var(--text); font-weight: 600; }

.resume-card__preview {
  position: relative;
  align-self: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 240px;
}
.resume-card__preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.resume-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.resume-card__preview-tag {
  position: absolute;
  top: .6rem; left: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .15);
}
.resume-card__preview-cta {
  position: absolute;
  left: 50%; bottom: .8rem;
  transform: translateX(-50%) translateY(8px);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -6px var(--section-grad-2);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.resume-card__preview:hover .resume-card__preview-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.resume-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: var(--mb-3) var(--mb-4) var(--mb-4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.resume-card__updated {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.resume-card__updated i { color: var(--section-grad-2); }

/* ===== CONTACT ===== */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-5);
}
@media (min-width: 900px) { .contact__wrap { grid-template-columns: 1fr 1.3fr; } }
.contact__info h3 { font-family: var(--display-font); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.contact__info p { color: var(--text-soft); margin-bottom: var(--mb-4); }
.contact__channels { display: flex; flex-direction: column; gap: .75rem; }
.contact__channels a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact__channels a:hover { transform: translateX(4px); border-color: var(--section-grad-2); box-shadow: var(--shadow); }
.contact__channels a .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact__channels a .label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.contact__channels a .val { font-size: .95rem; font-weight: 600; }
.contact__form {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--mb-4);
  display: grid; gap: var(--mb-3);
  box-shadow: var(--shadow);
}
.contact__form .row { display: grid; gap: var(--mb-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .contact__form .row { grid-template-columns: 1fr 1fr; } }
.contact__form label { font-size: .8rem; font-weight: 600; color: var(--text-soft); display: block; margin-bottom: .3rem; }
.contact__form .field { display: flex; flex-direction: column; }
.contact__input {
  width: 100%;
  font-size: .95rem;
  font-family: inherit;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact__input:focus { border-color: var(--section-grad-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
.contact__input::placeholder { color: var(--text-muted); }
.arrow__button {
  justify-self: end;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  background-image: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 25px -8px var(--section-grad-2);
}
.arrow__button:hover { background-position: 100% 50%; transform: translateY(-2px); }
.arrow__button:disabled { opacity: .7; cursor: not-allowed; }
.arrow__button.success { background-image: linear-gradient(135deg, #22c55e, #16a34a) !important; }
.form-status { font-size: .9rem; color: var(--text-muted); min-height: 1.2em; }
.form-status.error { color: #ef4444; }
.form-status.success { color: #22c55e; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 90%; max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: zoomIn .35s ease;
}
@keyframes zoomIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__btn {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption { color: #fff; font-size: .9rem; margin-top: 1rem; opacity: .85; }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  text-align: center;
  padding: var(--mb-6) 0 var(--mb-4);
  margin-top: var(--mb-6);
}
.footer::before {
  content: "";
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-grad-2), transparent);
}
.footer__brand {
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2), var(--section-grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .25rem;
}
.footer__tag { font-size: .85rem; color: var(--text-muted); margin-bottom: var(--mb-3); }
.footer__social { display: flex; gap: .75rem; justify-content: center; margin-bottom: var(--mb-3); }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.footer__social a:hover { background: linear-gradient(135deg, var(--section-grad-1), var(--section-grad-2)); color: #fff; border-color: transparent; transform: translateY(-2px); }
.footer__copy { font-size: .8rem; color: var(--text-muted); }

/* ===== Skip link (a11y) ===== */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--second-color); color: #fff;
  padding: .6rem 1rem; z-index: 9999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 200%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 500;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  max-width: calc(100% - 2rem);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast .ico { color: var(--section-grad-2); font-size: 1.1rem; }

/* ===== Page-load reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media screen and (min-width: 768px) {
  .bd-grid { margin-left: auto; margin-right: auto; }
  body { margin: 0; }
}
@media screen and (min-width: 1024px) {
  .bd-grid { margin-left: auto; margin-right: auto; }
  .home__img { width: 380px; }
}

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