/* =========================================================
   Raihan Sikdar — Portfolio  (enhanced)
   Design system: deep midnight + mint/amber accents,
   glassmorphism, grain texture, refined micro-interactions.
   ========================================================= */

:root {
  /* Backgrounds */
  --bg: #07111c;
  --bg-deep: #0d1a2f;
  --bg-elevated: #13253f;
  --bg-soft: #0a1526;

  /* Surfaces */
  --paper: #f6f3ec;
  --paper-strong: #ffffff;
  --paper-soft: #eef3f8;

  /* Ink */
  --ink: #0d1b2b;
  --ink-soft: #8aa0b8;
  --ink-muted: #6b7d92;

  /* Lines */
  --line: rgba(12, 24, 39, 0.08);
  --line-light: rgba(255, 255, 255, 0.1);
  --border: rgba(148, 163, 184, 0.15);

  /* Accents */
  --accent: #46d3b0;
  --accent-deep: #119d7b;
  --accent-warm: #ffc46b;
  --accent-cool: #7ca9ff;

  /* Shadows */
  --shadow-xl: 0 40px 100px rgba(8, 18, 33, 0.22);
  --shadow-lg: 0 32px 90px rgba(8, 18, 33, 0.18);
  --shadow-md: 0 22px 44px rgba(12, 23, 40, 0.13);
  --shadow-sm: 0 14px 30px rgba(12, 23, 40, 0.09);
  --shadow-glow: 0 0 40px rgba(70, 211, 176, 0.25);

  /* Radii */
  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  /* Layout */
  --container: 1180px;

  /* Type */
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(223, 232, 245, 0.9);
  background:
    radial-gradient(circle at 0% 0%, rgba(70, 211, 176, 0.14), transparent 26%),
    radial-gradient(circle at 100% 15%, rgba(255, 196, 107, 0.12), transparent 22%),
    linear-gradient(180deg, #07111c 0%, #0d1a2f 50%, #101d32 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(70, 211, 176, 0.32);
  color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #07111c;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
  border-radius: 999px;
  border: 2px solid #07111c;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
}

/* ---------- Page shell ---------- */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 65%);
  opacity: 0.16;
}

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), var(--accent-cool));
  box-shadow: 0 0 12px rgba(70, 211, 176, 0.6);
  transition: transform 0.08s linear;
}

/* ---------- Ambient glows ---------- */
.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  z-index: 0;
}
.ambient-one {
  top: 80px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(70, 211, 176, 0.45), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
}
.ambient-two {
  top: 320px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 169, 255, 0.26), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
}
.ambient-three {
  bottom: 10%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 196, 107, 0.18), transparent 70%);
  animation: drift1 26s ease-in-out infinite reverse;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 50px); }
}

/* ---------- Custom cursor ---------- */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
}
.cursor-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    width 0.24s var(--ease-spring),
    height 0.24s var(--ease-spring),
    background 0.24s ease,
    border-color 0.24s ease;
}
.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.cursor-text {
  opacity: 0;
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.18s ease;
}

/* ---------- Container ---------- */
.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 17, 28, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7, 17, 28, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07111c;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(17, 157, 123, 0.35);
}
.brand-text span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #ffffff;
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav .nav-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.18), rgba(255, 196, 107, 0.12));
  border: 1px solid rgba(70, 211, 176, 0.3);
  color: #ffffff;
}
.site-nav .nav-resume::after { display: none; }
.site-nav .nav-resume:hover {
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.3), rgba(255, 196, 107, 0.2));
  border-color: rgba(70, 211, 176, 0.55);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 3.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(70, 211, 176, 0.18), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 196, 107, 0.16), transparent 18%),
    linear-gradient(145deg, #07111c 0%, #10213a 55%, #172a46 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 160px;
  background:
    linear-gradient(180deg, rgba(7, 17, 28, 0), rgba(7, 17, 28, 0.16)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 3.6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(70, 211, 176, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 211, 176, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(70, 211, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 211, 176, 0); }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.6rem;
}
.section-heading h2,
.hero h1,
.about-story h3,
.value-card h3,
.timeline-card h3,
.skills-summary h3,
.subsection-heading h3,
.profile-card h4,
.project-body h3,
.package-card h3,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

.hero-headline {
  display: grid;
  gap: 0.35rem;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.02em;
  margin: 0;
}
.display-line {
  display: block;
}
.accent-line {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-cool) 60%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-text,
.section-lead,
.about-story p,
.skills-summary p,
.timeline-card p,
.profile-list,
.profile-user,
.project-body p,
.package-card p,
.contact-panel p {
  line-height: 1.78;
}

.hero-text {
  max-width: 60ch;
  margin: 1.55rem 0 0;
  font-size: 1.08rem;
  color: rgba(230, 239, 251, 0.88);
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 56ch;
  color: var(--ink-soft);
}
.section-lead-light {
  color: rgba(219, 230, 244, 0.8);
}

.hero-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  min-height: 42px;
  margin-top: 1.8rem;
}
.hero-type-label {
  color: rgba(219, 230, 244, 0.72);
  font-weight: 700;
}
.typewriter {
  min-height: 1.5rem;
  padding-right: 0.32rem;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  animation: blink 0.9s steps(1) infinite;
}

.hero-highlights,
.hero-actions,
.social-row,
.tag-row,
.project-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-highlights {
  margin-top: 1.7rem;
}
.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.hero-highlights span i {
  color: var(--accent);
  font-size: 0.82rem;
}
.hero-highlights span:hover {
  transform: translateY(-2px);
  background: rgba(70, 211, 176, 0.12);
  border-color: rgba(70, 211, 176, 0.3);
}

.hero-actions {
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}
.button-primary {
  color: #08131f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 18px 36px rgba(17, 157, 123, 0.32);
}
.button-primary:hover {
  box-shadow: 0 22px 44px rgba(17, 157, 123, 0.42), var(--shadow-glow);
}
.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.button-ghost {
  color: var(--ink);
  background: #f4f7fb;
  border-color: rgba(13, 27, 43, 0.09);
}
.button-small {
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  font-size: 0.9rem;
}

/* Magnetic effect wrapper */
.magnetic {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.22s ease, background 0.22s ease;
}

/* ---------- Social row ---------- */
.social-row {
  margin-top: 2rem;
}
.social-row a {
  position: relative;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.25s var(--ease-spring),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.social-row a::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(7, 17, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-row a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.social-row a:hover,
.social-row a:focus-visible {
  transform: translateY(-4px);
  background: rgba(70, 211, 176, 0.16);
  border-color: rgba(70, 211, 176, 0.4);
  color: var(--accent);
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  will-change: transform;
}
.portrait-stage {
  position: relative;
  padding: 2rem 1.2rem;
}
.portrait-stage::before {
  content: "";
  position: absolute;
  inset: 6% 10% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 169, 255, 0.18), transparent 70%);
  filter: blur(12px);
}
.portrait-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 430px;
  padding: 1.05rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 90px rgba(2, 11, 23, 0.42);
}
.portrait-ring {
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.portrait-glow {
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.4), transparent 40%, rgba(255, 196, 107, 0.3));
  filter: blur(14px);
  opacity: 0.6;
  z-index: -1;
  animation: glowShift 6s ease-in-out infinite;
}
@keyframes glowShift {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}
.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 30px;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  max-width: 220px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(12, 26, 45, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}
.hero-badge span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.hero-badge strong {
  color: #f8fbff;
  line-height: 1.45;
  font-size: 0.95rem;
}
.hero-badge-top {
  top: 8%;
  left: 0;
  animation: floatBadge 6.5s ease-in-out infinite;
}
.hero-badge-bottom {
  right: 0;
  bottom: 8%;
  animation: floatBadge 7.5s ease-in-out infinite reverse;
}

/* ---------- Tech orbit ---------- */
.tech-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.tech-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.54rem 0.86rem;
  border-radius: 999px;
  background: rgba(8, 20, 36, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ecf4ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(3, 11, 24, 0.34);
  backdrop-filter: blur(10px);
  animation: techFloat 6.8s ease-in-out infinite;
}
.tech-pill img {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.tech-pill-1 { top: 16%; right: 2%; animation-delay: 0s; }
.tech-pill-2 { top: 27.5%; right: -5%; animation-delay: 0.6s; }
.tech-pill-3 { top: 39%; right: 1%; animation-delay: 1.2s; }
.tech-pill-4 { top: 16%; left: 2%; animation-delay: 1.8s; }
.tech-pill-5 { top: 27.5%; left: -6%; animation-delay: 2.4s; }
.tech-pill-6 { top: 50.5%; right: -4%; animation-delay: 3s; }
.tech-pill-7 { top: 39%; left: 1%; animation-delay: 3.4s; }
.tech-pill-8 { top: 50.5%; left: -5%; animation-delay: 4s; }
.tech-pill-9 { top: 64%; right: 2%; animation-delay: 4.6s; }
.tech-pill-10 { top: 64%; left: 1%; animation-delay: 5.2s; }

/* ---------- Hero proof cards ---------- */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.proof-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 211, 176, 0.3);
}
.proof-card:hover::before {
  opacity: 1;
}
.proof-icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.2), rgba(255, 196, 107, 0.12));
  color: var(--accent);
  font-size: 1.05rem;
}
.proof-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.proof-card span {
  color: rgba(223, 232, 245, 0.82);
  line-height: 1.5;
  font-size: 0.88rem;
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 3rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.marquee-track span.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  padding: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 5.75rem 0;
}

#about {
  background:
    radial-gradient(circle at top left, rgba(124, 169, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #0a1424 0%, #101d32 100%);
}
.section-muted {
  background:
    radial-gradient(circle at top left, rgba(70, 211, 176, 0.12), transparent 22%),
    linear-gradient(180deg, #0a1526 0%, #0f1d33 100%);
}
#about .section-heading h2,
#about .section-lead,
.section-muted .section-heading h2,
.section-muted .section-lead {
  color: #f8fbff;
}
.section-dark {
  background:
    radial-gradient(circle at 0% 0%, rgba(70, 211, 176, 0.14), transparent 16%),
    linear-gradient(180deg, #0a1424 0%, #101d32 100%);
}
.section-dark .section-heading h2,
.section-dark .subsection-heading h3,
.section-dark .timeline-card h3,
.section-dark .timeline-company,
.section-dark .timeline-meta strong {
  color: #ffffff;
}
.section-dark .eyebrow {
  color: var(--accent-warm);
}

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.02em;
}

/* ---------- About ---------- */
.about-grid,
.skills-layout {
  display: grid;
  gap: 1.5rem;
}
.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: start;
}

.about-card {
  background: linear-gradient(145deg, rgba(8, 18, 31, 0.96), rgba(17, 31, 50, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-story {
  padding: 2rem;
}
.about-story h3 {
  font-size: 1.55rem;
  color: #ffffff;
}
.about-story-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.about-story-tag {
  max-width: 28ch;
  margin: 0;
  color: rgba(255, 196, 107, 0.94);
  font-weight: 700;
  line-height: 1.6;
  font-size: 0.9rem;
}
.about-copy-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}
.about-copy-columns p {
  margin: 0;
  color: rgba(223, 232, 245, 0.82);
  font-size: 1.02rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

.about-side {
  display: grid;
  gap: 1rem;
}
.about-photo-card,
.quote-card {
  background: linear-gradient(145deg, rgba(8, 18, 31, 0.95), rgba(18, 31, 50, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.about-photo-card {
  position: relative;
  overflow: visible;
  padding: 1rem;
}
.about-photo-card img {
  border-radius: 22px;
  object-fit: cover;
}

.about-facts {
  display: grid;
  gap: 0.9rem;
}
.about-fact {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 28, 47, 0.96), rgba(24, 43, 67, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
}
.about-fact span,
.package-type,
.project-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-fact span,
.package-type {
  color: var(--accent-warm);
}
.package-type {
  color: var(--accent-deep);
}
.about-fact strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  color: #ffffff;
}

.quote-card {
  position: relative;
  padding: 1.3rem 1.35rem 1.3rem 1.6rem;
  overflow: hidden;
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
}
.quote-mark {
  color: var(--accent);
  opacity: 0.4;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.quote-card p {
  margin: 0;
  color: rgba(248, 251, 255, 0.92);
  font-weight: 700;
  line-height: 1.7;
  font-size: 1.02rem;
}

/* ---------- About values ---------- */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}
.value-card {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 19, 33, 0.94), rgba(18, 32, 51, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.value-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(70, 211, 176, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 211, 176, 0.25);
}
.value-card:hover::after {
  opacity: 1;
}
.value-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 196, 107, 0.18), rgba(70, 211, 176, 0.12));
  color: var(--accent-warm);
  font-weight: 800;
  font-family: var(--font-display);
}
.value-card h3 {
  font-size: 1.18rem;
  color: #ffffff;
}
.value-card p {
  margin: 0.85rem 0 0;
  color: rgba(223, 232, 245, 0.78);
  line-height: 1.7;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(70, 211, 176, 0.4) 8%, rgba(255, 196, 107, 0.4) 92%, transparent);
  transform: translateX(-1px);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: start;
}
.timeline-meta {
  position: relative;
  padding: 1.35rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: start;
  justify-self: end;
  max-width: 360px;
  backdrop-filter: blur(10px);
}
.timeline-meta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2.15rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 6px rgba(255, 196, 107, 0.18), 0 0 18px rgba(255, 196, 107, 0.5);
  transform: translateY(-50%);
  animation: pulseDot 2.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 196, 107, 0.18), 0 0 18px rgba(255, 196, 107, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 196, 107, 0.08), 0 0 24px rgba(255, 196, 107, 0.7); }
}
.timeline-period {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(219, 230, 244, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
}
.timeline-period i {
  color: var(--accent);
  font-size: 0.8rem;
}
.timeline-meta span,
.timeline-meta strong {
  display: block;
}
.timeline-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
}
.timeline-meta strong i {
  color: var(--accent-warm);
  font-size: 0.78rem;
}

.timeline-card {
  padding: 1.7rem 1.8rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 44px rgba(2, 10, 21, 0.24);
  max-width: 620px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 211, 176, 0.25);
}
.timeline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.timeline-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.25), rgba(70, 211, 176, 0.1));
  border: 1px solid rgba(70, 211, 176, 0.35);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-item:nth-child(odd) .timeline-meta {
  grid-column: 1;
  grid-row: 1;
}
.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 2;
  grid-row: 1;
}
.timeline-item:nth-child(even) .timeline-meta {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}
.timeline-item:nth-child(even) .timeline-meta::after {
  left: -2.15rem;
  right: auto;
}
.timeline-item:nth-child(even) .timeline-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}
.timeline-card h3 {
  font-size: 1.35rem;
}
.timeline-company {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-weight: 800;
  color: var(--accent-warm);
  font-size: 0.98rem;
}
.timeline-company i {
  font-size: 0.85rem;
}
.timeline-card p {
  margin: 0.92rem 0 0;
  color: rgba(224, 233, 246, 0.88);
}

.timeline-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.timeline-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(224, 233, 246, 0.86);
  font-size: 0.93rem;
  line-height: 1.6;
}
.timeline-points li i {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
}

/* ---------- Skills ---------- */
.skills-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}
.skills-card {
  position: relative;
  padding: 1.85rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(8, 18, 31, 0.95) 0%, rgba(18, 32, 52, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.skills-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(70, 211, 176, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skills-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 211, 176, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.skills-card:hover::before {
  opacity: 1;
}
.skills-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.skills-card-head i {
  font-size: 1.25rem;
  color: var(--accent);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.18), rgba(124, 169, 255, 0.1));
}
.skills-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.skills-card p {
  margin: 0 0 1.1rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.93rem;
  line-height: 1.7;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skills-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(70, 211, 176, 0.1);
  border: 1px solid rgba(70, 211, 176, 0.22);
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
}
.skills-tags span:hover {
  transform: translateY(-2px);
  background: rgba(70, 211, 176, 0.22);
  color: #ffffff;
}

.subsection-heading {
  margin: 3.6rem 0 1.45rem;
}
.subsection-heading h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fbff;
}

/* ---------- 3-column grids ---------- */
.three-column-grid,
.projects-grid,
.package-grid,
.certificate-grid {
  display: grid;
  gap: 1.4rem;
}
.three-column-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- CP cards ---------- */
.cp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(8, 18, 31, 0.95) 0%, rgba(18, 32, 52, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.cp-card:hover {
  transform: translateY(-4px);
  border-color: var(--cp-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.cp-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.cp-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}
.cp-body {
  padding: 0.85rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.cp-row:last-of-type {
  border-bottom: none;
}
.cp-label {
  font-size: 0.82rem;
  color: rgba(219, 230, 244, 0.6);
  font-weight: 500;
}
.cp-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-accent);
}
.cp-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(223, 232, 245, 0.8);
}
.cp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(223, 232, 245, 0.8);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease;
  margin-top: auto;
}
.cp-link:hover {
  color: var(--cp-accent);
  background: color-mix(in srgb, var(--cp-accent) 8%, transparent);
}

/* ---------- Projects ---------- */
.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.project-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(12, 24, 39, 0.92), rgba(17, 33, 54, 0.86));
  border: 1px solid rgba(124, 169, 255, 0.2);
  box-shadow: 0 20px 48px rgba(5, 13, 24, 0.3);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    rgba(124, 169, 255, 0.18) 0%,
    rgba(70, 211, 176, 0.12) 45%,
    rgba(255, 196, 107, 0.14) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 169, 255, 0.45);
  box-shadow: 0 30px 64px rgba(5, 13, 24, 0.42);
}
.project-card:hover::before {
  opacity: 0.9;
}
.project-media {
  display: flex;
  position: relative;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 70px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(7, 17, 28, 0.64) 100%);
}
.project-card:hover .project-media img {
  transform: scale(1.08);
}
.project-label {
  display: inline-flex;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 17, 28, 0.78);
  border: 1px solid rgba(70, 211, 176, 0.3);
  color: #ffffff;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.project-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}
.project-kicker {
  margin: 0;
  color: rgba(255, 196, 107, 0.9);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.project-body p {
  margin: 0;
  color: rgba(223, 232, 245, 0.78);
  font-size: 0.85rem;
  line-height: 1.6;
}
.project-body h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0.1rem 0 0.35rem;
}
.project-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.1rem;
}
.project-card .tag-row span {
  display: inline-flex;
  align-items: center;
  background: rgba(124, 169, 255, 0.15);
  border: 1px solid rgba(124, 169, 255, 0.25);
  color: rgba(233, 242, 255, 0.95);
  padding: 0.26rem 0.58rem;
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 999px;
}
.project-actions {
  margin-top: 0.2rem;
  gap: 0.55rem;
}
.project-actions .button {
  padding: 0.5rem 0.85rem;
  font-size: 0.74rem;
  border-radius: 999px;
  min-height: auto;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.project-actions .button::after {
  content: none;
}
.project-actions .button:hover {
  transform: translateY(-1px);
}
.project-card .button-primary {
  color: #072241;
  background: linear-gradient(120deg, #7ca9ff, #46d3b0);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 20px rgba(70, 211, 176, 0.28);
}
.project-actions .button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(237, 245, 255, 0.95);
}

/* ---------- OSS stats ---------- */
.oss-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.oss-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.3rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(8, 18, 31, 0.7), rgba(18, 32, 52, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.oss-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 211, 176, 0.3);
  background: linear-gradient(160deg, rgba(70, 211, 176, 0.08), rgba(18, 32, 52, 0.6));
}
.oss-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.18), rgba(255, 196, 107, 0.12));
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.oss-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}
.oss-stat span {
  font-size: 0.76rem;
  color: rgba(223, 232, 245, 0.6);
  font-weight: 500;
}

/* ---------- Package cards ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(8, 18, 31, 0.95), rgba(18, 32, 52, 0.95));
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.package-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--pkg-accent, var(--accent)) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pkg-accent, var(--accent)) 40%, transparent);
  box-shadow: var(--shadow-sm);
}
.package-card:hover::before {
  opacity: 1;
}
.package-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--pkg-accent) 16%, transparent);
  color: var(--pkg-accent);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--pkg-accent) 30%, transparent);
}
.package-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.package-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.pkg-version {
  font-size: 0.75rem;
  color: rgba(219, 230, 244, 0.7);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.package-body p {
  margin: 0;
  color: rgba(223, 232, 245, 0.78);
  font-size: 0.86rem;
  line-height: 1.65;
}
.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.6rem;
}
.package-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(223, 232, 245, 0.7);
  font-weight: 500;
}
.package-meta i {
  font-size: 0.72rem;
  color: var(--accent);
}
.package-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(223, 232, 245, 0.85);
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: 0.3rem;
}
.package-link:hover {
  color: var(--accent-warm);
  gap: 0.6rem;
}
.package-link i {
  font-size: 0.74rem;
}
.package-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at top right, rgba(255, 196, 107, 0.12), transparent 50%),
    linear-gradient(145deg, rgba(8, 18, 31, 0.95), rgba(18, 32, 52, 0.95));
  border-color: rgba(255, 196, 107, 0.18);
}
.package-card-cta:hover {
  border-color: rgba(255, 196, 107, 0.35);
}
.package-cta-content h3 {
  font-size: 1.25rem;
  margin: 0.55rem 0;
  color: #ffffff;
}
.package-cta-content p {
  margin: 0;
  color: rgba(223, 232, 245, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
}
.package-card-cta .button {
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

/* ---------- Certificates ---------- */
.certificate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(8, 18, 31, 0.95) 0%, rgba(18, 32, 52, 0.95) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--cert-accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  outline: none;
}
.cert-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(7, 17, 28, 0.85);
  border: 1px solid color-mix(in srgb, var(--cert-accent) 40%, transparent);
  color: var(--cert-accent);
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
}
.cert-image {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.cert-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.cert-card:hover .cert-image img {
  transform: scale(1.05);
}
.cert-zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(7, 17, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}
.cert-card:hover .cert-zoom {
  opacity: 1;
  transform: translateY(0);
}
.cert-info {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cert-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.cert-info span {
  font-size: 0.78rem;
  color: var(--cert-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 8, 16, 0.92);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: min(900px, 90vw);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
}
.lightbox.is-open .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-content figcaption {
  color: #ffffff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Contact ---------- */
.contact-section {
  padding-top: 2.5rem;
}
.contact-panel {
  position: relative;
  padding: 2.4rem;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 107, 0.2), transparent 22%),
    radial-gradient(circle at bottom left, rgba(70, 211, 176, 0.16), transparent 26%),
    linear-gradient(145deg, #08131f 0%, #13253d 100%);
  box-shadow: 0 28px 68px rgba(6, 14, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-copy {
  position: relative;
  z-index: 1;
}
.contact-panel h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
}
.contact-panel p {
  margin: 1rem 0 0;
  color: rgba(223, 232, 245, 0.84);
}
.contact-channels {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.contact-channel:hover {
  transform: translateX(4px);
  background: rgba(70, 211, 176, 0.1);
  border-color: rgba(70, 211, 176, 0.3);
}
.contact-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.2), rgba(255, 196, 107, 0.14));
  color: var(--accent);
  flex-shrink: 0;
}
.contact-channel span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.contact-channel small {
  color: rgba(219, 230, 244, 0.6);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-channel strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: rgba(7, 17, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.contact-form-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}
.form-row {
  display: grid;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(219, 230, 244, 0.7);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(219, 230, 244, 0.4);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(70, 211, 176, 0.55);
  background: rgba(70, 211, 176, 0.06);
  box-shadow: 0 0 0 4px rgba(70, 211, 176, 0.12);
}
.form-submit {
  width: 100%;
  margin-top: 0.4rem;
}
.form-status {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 1.2rem;
}
.form-status.is-success {
  color: var(--accent);
}
.form-status.is-error {
  color: #ff8a8a;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 5rem;
  background: #07111c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.2rem 0;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #07111c;
  font-size: 1.05rem;
  font-weight: 800;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-brand strong {
  color: #ffffff;
  font-size: 0.95rem;
}
.footer-brand span {
  color: rgba(219, 230, 244, 0.55);
  font-size: 0.78rem;
}
.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(219, 230, 244, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(219, 230, 244, 0.7);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  color: #ffffff;
  background: rgba(70, 211, 176, 0.18);
  transform: translateY(-2px);
}
.footer-copy {
  margin: 0;
  color: rgba(219, 230, 244, 0.45);
  font-size: 0.82rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(70, 211, 176, 0.4);
  background: linear-gradient(135deg, rgba(70, 211, 176, 0.95), rgba(17, 157, 123, 0.95));
  color: #07111c;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), visibility 0.3s ease, box-shadow 0.3s ease;
  z-index: 90;
  box-shadow: 0 12px 28px rgba(17, 157, 123, 0.35);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(17, 157, 123, 0.45);
}

/* ---------- Custom cursor active states ---------- */
@media (pointer: fine) {
  .js body,
  .js a,
  .js button,
  .js .project-card,
  .js .profile-card,
  .js .package-card,
  .js .cert-card,
  .js .value-card {
    cursor: none;
  }
  .cursor-ready .cursor-ring,
  .cursor-ready .cursor-dot {
    opacity: 1;
  }
  body.cursor-active .cursor-ring {
    width: 86px;
    height: 86px;
    background: rgba(70, 211, 176, 0.12);
    border-color: rgba(70, 211, 176, 0.45);
  }
  body.cursor-active .cursor-text {
    opacity: 1;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay),
    transform 0.9s var(--ease-out) var(--reveal-delay),
    filter 0.9s var(--ease-out) var(--reveal-delay);
  will-change: opacity, transform, filter;
}
.js .reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* ---------- Keyframes ---------- */
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes techFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid,
  .about-grid,
  .skills-layout,
  .about-values,
  .three-column-grid,
  .package-grid,
  .certificate-grid,
  .contact-grid,
  .oss-stats {
    grid-template-columns: 1fr;
  }
  .oss-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-proof,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline::before {
    left: 18px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 3rem;
  }
  .timeline-item:nth-child(odd) .timeline-meta,
  .timeline-item:nth-child(even) .timeline-meta {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
  }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    max-width: none;
  }
  .timeline-meta::after {
    left: -2.4rem !important;
    right: auto !important;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(7, 17, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open {
    display: flex;
    animation: navFade 0.3s var(--ease-out);
  }
  @keyframes navFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .site-nav .nav-resume {
    width: 100%;
  }
  .hero {
    padding-top: 5rem;
  }
  .hero-grid {
    gap: 2.4rem;
  }
  .hero-proof,
  .projects-grid,
  .about-copy-columns {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    position: static;
    max-width: none;
    margin: 0 auto 1rem;
  }
  .hero-badge-bottom {
    margin-top: 1rem;
    margin-bottom: 0;
  }
  .portrait-stage {
    padding: 0;
  }
  .tech-pill {
    font-size: 0.72rem;
    padding: 0.42rem 0.65rem;
  }
  .tech-pill img {
    width: 16px;
    height: 16px;
  }
  .contact-actions {
    width: 100%;
  }
  .oss-stats {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .tech-orbit {
    display: none;
  }
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }
  .section {
    padding: 4.4rem 0;
  }
  .hero-actions,
  .project-actions,
  .contact-actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .about-story,
  .skills-summary,
  .skills-bars,
  .profile-card,
  .package-card,
  .timeline-card,
  .contact-panel {
    padding: 1.4rem;
  }
  .hero-proof {
    margin-top: 1.8rem;
  }
  .proof-card,
  .timeline-meta {
    padding: 1.1rem;
  }
  .cursor-ring,
  .cursor-dot {
    display: none !important;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
  .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
