* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #f2558f;
  --accent-light: #ffd6e5;
  --summer-sky: #37a8e8;
  --summer-blue: #6bd7f5;
  --summer-coral: #ff6f61;
  --summer-sun: #ffea5f;
  --summer-mint: #96ead7;
  --summer-cream: #fbf7f0;
  --page-cream: #f6efe7;
  --page-blush: #f7e5ee;
  --page-blue: #e5f2f5;
  --surface: rgba(250, 247, 241, 0.9);
  --surface-strong: #faf6f0;
  --surface-soft: rgba(247, 240, 232, 0.78);
  --ink: #272131;
  --ink-panel: #171420;
  --ink-panel-2: #222738;
  --steel-border: rgba(31, 41, 55, 0.18);
  --muted: #6d6473;
  --dark-bg: #121212;
  --dark-card: #1e1e1e;
  --dark-text: #f4f4f4;
  --display-font: "Baloo 2", "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", sans-serif;
  --scroll-ratio: 0;
  --page-progress: 0;
  background:
    linear-gradient(90deg, rgba(238, 174, 198, 0.34) 0 12%, transparent 12% 100%),
    linear-gradient(180deg, var(--page-blush) 0%, var(--page-cream) 48%, var(--page-blue) 100%);
  background-position:
    0 calc(var(--page-progress) * -90px),
    center;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* SCROLL PROGRESS BAR */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--summer-coral), var(--summer-sun), var(--summer-sky));
  z-index: 9999;
  transition: width 0.05s linear;
}

/* ─── NAV ─────────────────────────────────────── */
.navbar {
  width: 100%;
  padding: 1.1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  background: rgba(250, 247, 241, 0.9);
  border-bottom: 1px solid rgba(242, 85, 143, 0.13);
  box-shadow: 0 8px 28px rgba(242, 85, 143, 0.08);
  backdrop-filter: blur(18px);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(55, 168, 232, 0.14);
}

body.dark .navbar {
  background: var(--dark-card);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.04);
}

.logo {
  font-size: 1.5rem;
  font-family: var(--display-font);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

body.dark .logo {
  color: var(--dark-text);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: inherit;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-resume {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--summer-coral));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-resume:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.theme-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff0a8;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

body.dark .theme-btn {
  background: #333;
  color: var(--accent-light);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

body.dark .hamburger span {
  background: var(--dark-text);
}

/* ─── HERO ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 3rem 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Animated blob background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 234, 95, 0.34), transparent 32%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 214, 229, 0.5) 0 12%,
      rgba(255, 166, 190, 0.36) 12% 24%,
      rgba(255, 111, 97, 0.26) 24% 36%,
      rgba(55, 168, 232, 0.2) 36% 48%,
      rgba(107, 215, 245, 0.18) 48% 60%,
      transparent 60% 100%
    );
  opacity: 0.32;
  background-size: 100% 100%, 180% 100%;
  animation: summerWash 18s ease-in-out infinite alternate;
  transform: translateY(calc(var(--scroll-ratio) * 14px));
  transition: transform 0.08s linear;
}

@keyframes summerWash {
  0% { background-position: center, 0% center; }
  100% { background-position: center, 34% center; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  opacity: 0.18;
  top: -80px;
  right: -60px;
  animation: blobMove 11s ease-in-out infinite;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-light);
  opacity: 0.28;
  bottom: 0;
  left: -60px;
  animation: blobMove 15s ease-in-out infinite reverse;
}

.blob-3 {
  width: 240px;
  height: 240px;
  background: var(--accent);
  opacity: 0.1;
  top: 40%;
  left: 40%;
  animation: blobMove 13s ease-in-out infinite 3s;
}

@keyframes blobMove {
  0%, 100% { border-radius: 60% 40% 50% 50%; transform: translate(0, 0) scale(1); }
  25%       { border-radius: 50% 50% 40% 60%; transform: translate(25px, -20px) scale(1.04); }
  50%       { border-radius: 40% 60% 60% 40%; transform: translate(-12px, 22px) scale(0.96); }
  75%       { border-radius: 60% 40% 30% 70%; transform: translate(18px, 10px) scale(1.02); }
}

body.dark .blob { opacity: 0.08; }

/* hero-content defined above in two-column section */

/* "Open to Work" badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(250, 247, 241, 0.82);
  border: 1px solid rgba(242, 85, 143, 0.28);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

#hero h1 {
  font-family: var(--display-font);
  font-size: clamp(2.15rem, 4.9vw, 3.85rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

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

.hero-subtitle {
  margin-top: 0.9rem;
  color: var(--accent);
  color: #167fb3;
  font-size: 1.18rem;
  font-weight: 700;
  min-height: 1.8rem;
}

.cursor {
  display: inline-block;
  animation: blink 0.9s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-summary {
  margin-top: 1.4rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.97rem;
  max-width: 540px;
}

body.dark .hero-summary { color: #bbb; }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero two-column layout */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-cta {
  justify-content: flex-start;
}

/* Hero photo */
.hero-photo-wrap {
  flex-shrink: 0;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--surface-strong);
  box-shadow:
    0 0 0 9px rgba(255, 214, 229, 0.9),
    0 0 0 15px rgba(255, 234, 95, 0.34),
    0 20px 54px rgba(55, 168, 232, 0.24);
  animation: portraitFloat 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

/* Placeholder when image not yet added */
.photo-placeholder {
  background: linear-gradient(135deg, var(--accent-light), rgba(215, 135, 163, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder::after {
  content: 'BB';
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Poppins", sans-serif;
}

/* Hero skills row */
.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.hero-skill-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.76);
  border: 1.5px solid rgba(242, 85, 143, 0.28);
  color: #a91f5a;
  letter-spacing: 0.02em;
}

body.dark .hero-skill-tag {
  border-color: rgba(215, 135, 163, 0.3);
  color: var(--accent-light);
}

/* ─── STATS ─────────────────────────────────────── */
.stats-section {
  padding: 2.5rem 2rem;
  background: rgba(247, 240, 232, 0.68);
  border-top: 1px solid rgba(242, 85, 143, 0.12);
  border-bottom: 1px solid rgba(55, 168, 232, 0.12);
}

body.dark .stats-section {
  background: rgba(215, 135, 163, 0.03);
  border-color: rgba(215, 135, 163, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 1.2rem 0.5rem;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark .stat-label { color: #999; }

/* ─── SECTION SHARED ─────────────────────────────── */
.section-title {
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--accent);
  line-height: 1;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 5px;
  margin: 0.6rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2558f, #ffe85f, #37a8e8);
  opacity: 0;
  transition: width 0.7s ease, opacity 0.5s ease;
}

.section-title.visible::after {
  width: min(150px, 34vw);
  opacity: 0.86;
}

.subsection-title {
  font-size: 1.35rem;
  text-align: center;
  color: var(--accent);
  margin: 3rem 0 1.5rem;
  font-weight: 600;
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── SKILLS ────────────────────────────────────── */
#skills {
  padding: 5rem 2rem 3rem;
}

.skills-intro {
  max-width: 720px;
  margin: -1.2rem auto 2rem;
  text-align: center;
  color: #5f5b66;
  line-height: 1.7;
  font-size: 0.98rem;
}

body.dark .skills-intro {
  color: #bbb;
}

.tech-orbit {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 1060px;
  margin: 0 auto 2rem;
  perspective: 900px;
}

.tech-icon-card {
  --card-lift: 0px;
  --card-scale: 1;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(242, 85, 143, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(247, 240, 232, 0.88)),
    radial-gradient(circle at top, rgba(255, 232, 95, 0.18), transparent 44%);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  transform: translateY(var(--card-lift)) scale(var(--card-scale)) rotateX(var(--card-tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.tech-icon-card i {
  font-size: 2.55rem;
  line-height: 1;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.tech-icon-card span {
  color: #211d2e;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.tech-icon-card:hover,
.tech-icon-card.is-in-view {
  border-color: rgba(242, 85, 143, 0.28);
  box-shadow: 0 20px 44px rgba(31, 41, 55, 0.13);
}

.tech-icon-card:hover i,
.tech-icon-card.is-in-view i {
  transform: translateY(-4px) scale(1.06);
  filter: saturate(1.12);
}

body.dark .tech-icon-card {
  border-color: rgba(248, 207, 224, 0.15);
  background:
    linear-gradient(145deg, rgba(34, 34, 48, 0.94), rgba(25, 25, 36, 0.94)),
    radial-gradient(circle at top, rgba(242, 85, 143, 0.16), transparent 44%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

body.dark .tech-icon-card span {
  color: #f7edf3;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  --card-lift: 0px;
  --card-scale: 1;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(242, 85, 143, 0.11);
  padding: 1.5rem;
  box-shadow: 0 16px 34px rgba(242, 85, 143, 0.09);
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.skill-category.is-in-view,
.skill-category:hover {
  border-color: rgba(242, 85, 143, 0.2);
  box-shadow: 0 22px 44px rgba(242, 85, 143, 0.13);
}

.skill-category.reveal.visible {
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
}

body.dark .skill-category {
  background: var(--dark-card);
}

.category-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag {
  background: #fff0a8;
  color: #6d4b00;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--summer-sky);
  color: white;
  transform: translateY(-2px);
}

body.dark .skill-tag {
  background: #2e2230;
  color: var(--accent-light);
}

body.dark .skill-tag:hover {
  background: var(--accent);
  color: white;
}

/* ─── EXPERIENCE ────────────────────────────────── */
#experience {
  padding: 5rem 2rem 3rem;
}

.experience-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(55, 168, 232, 0.12);
  padding: 1.8rem;
  box-shadow: 0 16px 34px rgba(55, 168, 232, 0.09);
}

body.dark .exp-card {
  background: var(--dark-card);
}

.exp-card.featured {
  border-left: 5px solid var(--summer-coral);
  background: linear-gradient(135deg, rgba(244, 191, 211, 0.38), rgba(241, 232, 222, 0.95));
}

body.dark .exp-card.featured {
  background: linear-gradient(135deg, rgba(215, 135, 163, 0.06), var(--dark-card));
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.exp-title-group h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.exp-company {
  font-size: 0.88rem;
  color: #777;
}

body.dark .exp-company { color: #aaa; }

.exp-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.exp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

.exp-badge.current {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

body.dark .exp-badge.current {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.exp-date {
  font-size: 0.82rem;
  color: #888;
  white-space: nowrap;
}

body.dark .exp-date { color: #aaa; }

.exp-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.3rem;
}

body.dark .exp-bullets li { color: #bbb; }

.exp-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}

.exp-summary {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}

body.dark .exp-summary { color: #bbb; }

/* ─── CYBER PROJECTS ────────────────────────────── */
#cyber {
  padding: 5rem 2rem 3rem;
  background:
    linear-gradient(135deg, rgba(23, 20, 32, 0.98), rgba(33, 39, 56, 0.94)),
    radial-gradient(circle at top left, rgba(242, 85, 143, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(55, 168, 232, 0.18), transparent 28%);
  color: #fff8fb;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255,255,255,0.05), inset 0 -1px rgba(255,255,255,0.05);
}

.cyber-section-head {
  max-width: 820px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.cyber-section-head .section-title {
  margin: 0.7rem 0 1rem;
  color: #f8cfe0;
}

.cyber-section-head p {
  color: rgba(255, 248, 251, 0.78);
  font-size: 0.96rem;
  line-height: 1.75;
}

body.dark .cyber-section-head p {
  color: #bbb;
}

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
}

.cyber-card {
  --card-lift: 0px;
  --card-scale: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
  will-change: transform;
}

.cyber-card:hover,
.cyber-card.is-in-view {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 214, 229, 0.46);
}

.cyber-card.reveal.visible {
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
}

body.dark .cyber-card {
  border-color: rgba(248, 207, 224, 0.16);
  background: var(--dark-card);
}

.cyber-preview {
  height: 190px;
  background: #0f172a;
  overflow: hidden;
}

.cyber-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.4s ease;
}

.cyber-card:hover .cyber-preview img,
.cyber-card.is-in-view .cyber-preview img {
  transform: scale(1.045) translateY(-3px);
}

.cyber-copy {
  padding: 1.35rem;
}

.cyber-track {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #172033;
  color: #fff0a8;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cyber-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

body.dark .cyber-card h3 {
  color: var(--dark-text);
}

.cyber-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.dark .cyber-card p {
  color: #bbb;
}

/* ─── CARD PREVIEW IMAGES ───────────────────────── */
.card-preview {
  width: calc(100% + 3.2rem);
  margin: -1.6rem -1.6rem 1.2rem -1.6rem;
  height: 160px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f1ece7;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.project-card:hover .card-preview img,
.project-card.is-in-view .card-preview img {
  transform: scale(1.045) translateY(-3px);
}

.card-preview.dark-preview {
  background: #1a1a2e;
}

/* For mobile app screenshots — show centered at smaller width */
.card-preview.dark-preview img {
  object-fit: contain;
  object-position: center;
  background: #1a1a2e;
}

/* ─── PROJECTS ──────────────────────────────────── */
#projects {
  padding: 5rem 2rem 3rem;
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.36), rgba(229, 242, 245, 0.5)),
    linear-gradient(90deg, rgba(242, 85, 143, 0.08), transparent 30%, rgba(55, 168, 232, 0.08));
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.featured-carousel {
  max-width: 1120px;
  margin: 0 auto 2.5rem;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 18px;
  background: rgba(247, 241, 234, 0.92);
  box-shadow: 0 24px 58px rgba(31, 41, 55, 0.12);
  overflow: hidden;
}

.featured-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.4rem 1rem;
}

.featured-carousel-head h3 {
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1;
}

.carousel-controls {
  display: flex;
  gap: 0.55rem;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 999px;
  background: #f5eee7;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.featured-window {
  overflow: hidden;
}

.featured-projects {
  display: flex;
  gap: 1.2rem;
  padding: 0 1.4rem 1.25rem;
  transition: transform 0.35s ease;
}

.featured-project-card {
  --theme-a: var(--accent);
  --theme-b: #37a8e8;
  --theme-c: #fff0a8;
  --card-lift: 0px;
  --card-scale: 1;
  flex: 0 0 calc((100% - 1.2rem) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  gap: 1.2rem;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-a) 10%, transparent), color-mix(in srgb, var(--theme-b) 10%, transparent)),
    var(--surface-strong);
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
  will-change: transform;
}

.featured-project-card:hover,
.featured-project-card.is-in-view {
  box-shadow: 0 19px 42px rgba(31, 41, 55, 0.14);
  border-color: color-mix(in srgb, var(--theme-a) 34%, rgba(31, 41, 55, 0.12));
}

.featured-project-card.reveal.visible {
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
}

body.dark .featured-project-card {
  background: var(--dark-card);
  border-color: rgba(248, 207, 224, 0.16);
}

.featured-project-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.45s ease;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--theme-a) 20%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-b) 22%, #101827), #101827);
}

.featured-project-card:hover img,
.featured-project-card.is-in-view img {
  transform: scale(1.035) translateX(-4px);
}

.featured-copy {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  width: fit-content;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-a) 28%, white), color-mix(in srgb, var(--theme-c) 72%, white));
  color: color-mix(in srgb, var(--theme-a) 74%, #1f2937);
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.dark .featured-label {
  background: #2e2230;
  color: var(--accent-light);
}

.featured-project-card h3 {
  font-family: var(--display-font);
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  line-height: 1;
}

.featured-project-card p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.7;
}

body.dark .featured-project-card p {
  color: #bbb;
}

.compact-feature {
  grid-template-columns: 1fr;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem 1.2rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 85, 143, 0.25);
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  background: var(--accent);
}

/* Filter */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: 22px;
  border: 2px solid rgba(242, 85, 143, 0.25);
  background: rgba(250, 247, 241, 0.78);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: "Poppins", sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--summer-coral));
  border-color: var(--accent);
  color: white;
}

body.dark .filter-btn {
  color: #ccc;
  border-color: rgba(215, 135, 163, 0.2);
}

body.dark .filter-btn:hover,
body.dark .filter-btn.active {
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.8rem;
  padding: 0 0.5rem;
}

.project-card {
  --theme-a: var(--accent);
  --theme-b: #37a8e8;
  --theme-c: #fff0a8;
  --card-lift: 0px;
  --card-scale: 1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-a) 9%, transparent), color-mix(in srgb, var(--theme-b) 8%, transparent)),
    rgba(250, 247, 241, 0.94);
  padding: 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.dark .project-card {
  background: var(--dark-card);
}

.project-card:hover,
.project-card.is-in-view {
  box-shadow: 0 20px 44px rgba(31, 41, 55, 0.15);
  border-color: color-mix(in srgb, var(--theme-a) 36%, rgba(31, 41, 55, 0.12));
}

.theme-data {
  --theme-a: #00bbf0;
  --theme-b: #00204a;
  --theme-c: #fdb44b;
}

.theme-cleansight {
  --theme-a: #f58f7c;
  --theme-b: #2c2b30;
  --theme-c: #f2c4ce;
}

.theme-ops {
  --theme-a: #7c3aed;
  --theme-b: #14b8a6;
  --theme-c: #c4b5fd;
}

.theme-support {
  --theme-a: #f59e0b;
  --theme-b: #0f172a;
  --theme-c: #bae6fd;
}

.theme-finance {
  --theme-a: #22c55e;
  --theme-b: #0f766e;
  --theme-c: #dcfce7;
}

.theme-crm {
  --theme-a: #2563eb;
  --theme-b: #8b5cf6;
  --theme-c: #dbeafe;
}

.theme-cloud {
  --theme-a: #38bdf8;
  --theme-b: #1e3a8a;
  --theme-c: #e0f2fe;
}

.theme-workflow {
  --theme-a: #ec4899;
  --theme-b: #fb7185;
  --theme-c: #fce7f3;
}

.theme-commerce {
  --theme-a: #ef4444;
  --theme-b: #f97316;
  --theme-c: #fee2e2;
}

.theme-game {
  --theme-a: #a3e635;
  --theme-b: #16a34a;
  --theme-c: #ecfccb;
}

.theme-media {
  --theme-a: #ff6f61;
  --theme-b: #100d16;
  --theme-c: #3de0d0;
}

.theme-ai {
  --theme-a: #a855f7;
  --theme-b: #111827;
  --theme-c: #f0abfc;
}

.theme-learning {
  --theme-a: #06b6d4;
  --theme-b: #6366f1;
  --theme-c: #cffafe;
}

.theme-portfolio,
.theme-qa {
  --theme-a: #f2558f;
  --theme-b: #37a8e8;
  --theme-c: #fff0a8;
}

.project-card.reveal.visible {
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
}

.qa-portfolio-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.4rem;
  align-items: start;
}

.qa-portfolio-card .project-tags,
.qa-portfolio-card .project-buttons {
  grid-column: 1 / -1;
}

.qa-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.qa-lab-item {
  min-height: 136px;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 246, 250, 0.68);
  border: 1px solid rgba(31, 41, 55, 0.1);
}

.qa-feature-item {
  background:
    linear-gradient(135deg, rgba(242, 85, 143, 0.13), rgba(255, 232, 95, 0.24)),
    rgba(255, 246, 250, 0.82);
  border-color: rgba(242, 85, 143, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

body.dark .qa-lab-item {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(248, 207, 224, 0.12);
}

body.dark .qa-feature-item {
  background:
    linear-gradient(135deg, rgba(242, 85, 143, 0.12), rgba(55, 168, 232, 0.1)),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(248, 207, 224, 0.18);
}

.qa-lab-item h4 {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
}

body.dark .qa-lab-item h4 {
  color: var(--accent-light);
}

.qa-lab-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  flex-grow: 0;
}

.qa-link-row {
  align-items: center;
}

.project-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  flex-grow: 1;
}

body.dark .project-card p { color: #bbb; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.5rem;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--theme-a) 14%, #ffffff);
  color: color-mix(in srgb, var(--theme-b) 74%, #111827);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dark .project-tag {
  background: #2e2230;
  color: var(--accent-light);
}

.project-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.87rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: "Poppins", sans-serif;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--summer-coral));
  color: white;
}

.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

body.dark .secondary {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ─── EDUCATION ─────────────────────────────────── */
#education {
  padding: 5rem 2rem 3rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.edu-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(242, 85, 143, 0.1);
  padding: 1.8rem;
  box-shadow: 0 16px 34px rgba(242, 85, 143, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

body.dark .edu-card {
  background: var(--dark-card);
}

.edu-logo-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.edu-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #002E6D;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.edu-logo-badge.alt {
  background: #1a5276;
}

.edu-details {
  flex: 1;
}

.edu-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.87rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.edu-major {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.15rem;
}

body.dark .edu-major { color: #aaa; }

.edu-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.75rem;
}

/* Certification cards */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.cert-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(55, 168, 232, 0.1);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 14px 30px rgba(55, 168, 232, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark .cert-card {
  background: var(--dark-card);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(215, 135, 163, 0.15);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.cert-icon.aws {
  background: rgba(255, 153, 0, 0.12);
  color: #d47800;
  font-size: 0.72rem;
}

.cert-icon.comptia {
  background: rgba(193, 39, 45, 0.1);
  color: #a01020;
  font-size: 0.72rem;
}

.cert-icon.itil {
  background: rgba(112, 32, 130, 0.1);
  color: #5c1870;
  font-size: 0.62rem;
}

.cert-icon.google {
  background: rgba(66, 133, 244, 0.1);
  color: #1a6bda;
  font-size: 0.85rem;
  font-weight: 900;
}

.cert-icon.google.cyber-cert {
  background: rgba(15, 23, 42, 0.1);
  color: #1f2937;
  font-size: 0.72rem;
}

.cert-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cert-sub {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.2rem;
}

body.dark .cert-sub { color: #aaa; }

.cert-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-status.earned {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.cert-status.in-progress {
  background: rgba(255, 152, 0, 0.1);
  color: #c76300;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

body.dark .cert-status.earned {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

body.dark .cert-status.in-progress {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
}

/* ─── RESUME PREVIEW ────────────────────────────── */
#resume {
  padding: 5rem 2rem 3rem;
}

.resume-showcase {
  --card-lift: 0px;
  --card-scale: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.28fr);
  gap: 1.4rem;
  align-items: stretch;
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
  transition: transform 0.25s ease;
  will-change: transform;
}

.resume-showcase.reveal.visible {
  transform: translateY(var(--card-lift)) scale(var(--card-scale));
}

.resume-summary,
.resume-preview-wrap {
  border: 1px solid rgba(242, 85, 143, 0.14);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.1);
}

.resume-summary {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resume-kicker {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 85, 143, 0.16), rgba(255, 232, 95, 0.26));
  color: #a2265a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resume-summary h3 {
  color: #211d2e;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.resume-summary p {
  color: #5f5b66;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.resume-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.resume-highlights span {
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 240, 168, 0.72);
  color: #6d4b00;
  font-size: 0.74rem;
  font-weight: 700;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.resume-preview-wrap {
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.resume-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
  background: rgba(250, 247, 241, 0.58);
}

.resume-preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.resume-preview-bar span:nth-child(1) { background: #f2558f; }
.resume-preview-bar span:nth-child(2) { background: #ffe85f; }
.resume-preview-bar span:nth-child(3) { background: #37a8e8; }

.resume-preview-bar strong {
  margin-left: 0.35rem;
  color: #5f5b66;
  font-size: 0.8rem;
}

.resume-preview-link {
  flex: 1;
  display: block;
  padding: 1.1rem;
  background:
    linear-gradient(135deg, rgba(31, 41, 55, 0.08), rgba(55, 168, 232, 0.08)),
    #f2eee9;
  overflow: auto;
}

.resume-preview {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border: 0;
  border-radius: 10px;
  background: #fbfaf7;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-preview-link:hover .resume-preview {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.24);
}

body.dark .resume-summary,
body.dark .resume-preview-wrap {
  background: var(--dark-card);
  border-color: rgba(248, 207, 224, 0.16);
}

body.dark .resume-summary h3 {
  color: #f7edf3;
}

body.dark .resume-summary p,
body.dark .resume-preview-bar strong {
  color: #bbb;
}

body.dark .resume-preview-bar {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .resume-preview-link {
  background:
    linear-gradient(135deg, rgba(248, 207, 224, 0.08), rgba(55, 168, 232, 0.08)),
    #151722;
}

/* ─── CONTACT ───────────────────────────────────── */
#contact {
  padding: 5rem 2rem;
  text-align: center;
}

.contact-subtitle {
  max-width: 480px;
  margin: 0 auto 2rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.dark .contact-subtitle { color: #bbb; }

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #167fb3;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.97rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* ─── FOOTER ────────────────────────────────────── */
footer {
  padding: 2rem;
  text-align: center;
  opacity: 0.55;
  font-size: 0.88rem;
}

body.dark {
  background: var(--dark-bg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-photo-wrap,
  .blob,
  .badge-dot,
  .cursor {
    animation: none;
  }

  .hero-bg,
  .reveal,
  .section-title::after,
  .tech-icon-card,
  .tech-icon-card i,
  .skill-category,
  .resume-showcase,
  .featured-project-card,
  .featured-project-card img,
  .project-card,
  .card-preview img,
  .cyber-card,
  .cyber-preview img {
    transition: none;
    transform: none;
  }
}

/* ─── MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-strong);
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    gap: 0.9rem;
  }

  body.dark .nav-links {
    background: var(--dark-card);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .btn-resume {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }

  #hero {
    padding: 8rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-photo-wrap {
    width: 180px;
    height: 180px;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .tech-orbit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .tech-icon-card {
    min-height: 104px;
    padding: 0.85rem 0.45rem;
  }

  .tech-icon-card i {
    font-size: 2.25rem;
  }

  .qa-portfolio-card {
    grid-template-columns: 1fr;
  }

  .qa-lab-grid {
    grid-template-columns: 1fr;
  }

  .cyber-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-card {
    grid-template-columns: 1fr;
  }

  .featured-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-project-card {
    flex-basis: 100%;
  }

  .featured-project-card img {
    min-height: 210px;
  }

  .resume-showcase {
    grid-template-columns: 1fr;
  }

  .resume-preview-wrap {
    min-height: 0;
  }

  .resume-preview-link {
    padding: 0.85rem;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
  }

  .exp-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.6rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.9rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

/* ─── BACK TO TOP ───────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(215, 135, 163, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .tech-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }
}
