/* ============================================================
   ALEX CARTER — PORTFOLIO · GLASSMORPHISM EDITION
   Vanilla CSS · Poppins · bluish purple / white / black
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Bluish purple scale */
  --purple-50:  #f3f2ff;
  --purple-100: #ebe9fe;
  --purple-200: #d9d5fd;
  --purple-300: #beb6fb;
  --purple-400: #a08df7;
  --purple-500: #6d5ef0;
  --purple-600: #5a44e4;
  --purple-700: #4b34cc;
  --purple-800: #3e2ca6;
  --purple-900: #362b83;

  /* Blacks & dark surfaces */
  --ink:        #0b0b14;
  --ink-2:      #10101c;
  --line-d:     rgba(255, 255, 255, 0.10);

  /* Whites & light */
  --white:      #ffffff;
  --bg-tint:    #f7f7fc;
  --line-l:     #e9e9f2;

  /* Text */
  --text:       #17171f;
  --muted:      #57576a;
  --text-inv:   #f4f4fb;
  --muted-inv:  #a2a2b8;

  /* Gradient */
  --grad:       linear-gradient(135deg, var(--purple-500) 0%, #9a66ff 100%);
  --grad-soft:  linear-gradient(135deg, var(--purple-400), var(--purple-600));

  /* Glass recipes */
  --glass-l-fill: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.45));
  --glass-l-border: rgba(255, 255, 255, 0.75);
  --glass-d-fill: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  --glass-d-border: rgba(255, 255, 255, 0.16);
  --blur: blur(18px) saturate(160%);
  --blur-sm: blur(12px) saturate(150%);

  /* Type */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(11, 11, 20, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 11, 20, 0.10);
  --shadow-glass: 0 20px 46px rgba(61, 44, 166, 0.14);
  --shadow-glass-hover: 0 28px 60px rgba(61, 44, 166, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 110% -5%, rgba(190, 182, 251, 0.35), transparent 60%),
    radial-gradient(800px 480px at -10% 30%, rgba(217, 213, 253, 0.30), transparent 55%),
    var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

::selection { background: var(--purple-500); color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-tint); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple-500), var(--purple-700));
  border-radius: 99px;
  border: 2px solid var(--bg-tint);
}

:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. LAYOUT UTILITIES ---------- */
.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 118px);
  position: relative;
}

/* Keep content above decorative orbs */
.section > .container { position: relative; z-index: 1; }

.tinted-bg { background: var(--bg-tint); }

/* Decorative glow orbs behind glass */
.orbs::before,
.orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orbs::before {
  width: 420px; height: 420px;
  background: rgba(160, 141, 247, 0.40);
  top: -80px; right: -120px;
}

.orbs::after {
  width: 380px; height: 380px;
  background: rgba(217, 213, 253, 0.65);
  bottom: -100px; left: -110px;
}

.about, .projects, .experience { overflow: hidden; }

.projects {
  background: linear-gradient(180deg, var(--white) 0%, #f1edfe 55%, #ebe6fd 100%);
}

.experience::before {
  width: 360px; height: 360px;
  background: rgba(190, 182, 251, 0.45);
}
.experience::after {
  width: 340px; height: 340px;
  background: rgba(226, 219, 253, 0.75);
}

/* ---------- 4. TYPE HELPERS ---------- */
.accent { color: var(--purple-500); }
.accent-text { color: var(--purple-500); font-style: italic; }
.fw-semibold { font-weight: 600; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. SECTION HEADERS ---------- */
.section-head {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-600);
  background: rgba(109, 94, 240, 0.10);
  border: 1px solid rgba(109, 94, 240, 0.22);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}

.eyebrow-light {
  background: rgba(109, 94, 240, 0.16);
  border-color: rgba(109, 94, 240, 0.40);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title-light { color: var(--text-inv); }

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
}

.section-dark .section-sub { color: var(--muted-inv); }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}

.btn i { font-size: 0.9em; transition: transform 0.35s var(--ease); }
.btn:hover i.fa-paper-plane { transform: translateX(4px); }
.btn:hover i.fa-download { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30),
              0 10px 26px rgba(109, 94, 240, 0.38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 16px 34px rgba(109, 94, 240, 0.48); }

.btn-outline {
  border: 2px solid rgba(233, 233, 242, 0.9);
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  border-color: var(--purple-400);
  color: var(--purple-600);
  transform: translateY(-3px);
}

.btn-dark { background: var(--ink); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-dark:hover { background: var(--purple-600); transform: translateY(-3px); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- 7. SOCIALS ---------- */
.socials { display: flex; gap: 12px; }

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.35s var(--ease);
}

.hero-socials a {
  border: 1.5px solid var(--glass-l-border);
  color: var(--muted);
  background: var(--glass-l-fill);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.hero-socials a:hover {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(109, 94, 240, 0.35);
}

.contact-socials { margin-top: 30px; }
.contact-socials a {
  border: 1.5px solid var(--glass-d-border);
  color: var(--muted-inv);
  background: var(--glass-d-fill);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}
.contact-socials a:hover {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: var(--white);
  transform: translateY(-4px);
}

/* ---------- 8. NAVBAR ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background-color 0.4s, box-shadow 0.4s, height 0.4s,
              border-color 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 30px rgba(11, 11, 20, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 102;
}

.nav-menu { display: flex; align-items: center; gap: 34px; }

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta-wrap { margin-left: 6px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  padding: 8px;
  z-index: 102;
}

.hamburger .bar {
  width: 26px;
  height: 2.6px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8.1px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8.1px) rotate(-45deg); }

/* ---------- 9. HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 16s ease-in-out infinite alternate;
}

.blob-a {
  width: 520px; height: 520px;
  background: rgba(139, 120, 255, 0.55);
  top: -140px; right: -110px;
}

.blob-b {
  width: 460px; height: 460px;
  background: rgba(185, 168, 255, 0.50);
  bottom: -160px; left: -130px;
  animation-delay: -8s;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(201, 181, 255, 0.45);
  filter: blur(70px);
  top: 54%; left: 58%;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-44px, 44px) scale(1.12); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-l-border);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  to { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-typing {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 1.6em;
}

.typed-cursor {
  font-weight: 200;
  animation: blink 0.9s step-end infinite;
  margin-left: 1px;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 520px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

/* Hero figure */
.hero-figure {
  position: relative;
  justify-self: center;
  width: min(380px, 82vw);
  aspect-ratio: 1;
}

.figure-ring {
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  border: 2px dashed rgba(160, 141, 247, 0.65);
  animation: spin-slow 26s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-glass-hover);
  position: relative;
  z-index: 1;
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-md);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  font-size: 1.5rem;
  animation: float 4.5s ease-in-out infinite;
}

.fb-1 { top: -22px; left: -26px;  color: #a259ff; animation-delay: 0s; }
.fb-2 { top: 38%; right: -34px;   color: #45b7f7; animation-delay: -1.2s; }
.fb-3 { bottom: -20px; left: 8%;  color: #3ddc84; animation-delay: -2.4s; }
.fb-4 { bottom: 26%; left: -34px; color: #f05138; animation-delay: -3.6s; }

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

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  opacity: 0.65;
  transition: opacity 0.3s;
  z-index: 2;
}
.scroll-down:hover { opacity: 1; }

.mouse {
  display: block;
  width: 25px; height: 41px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--purple-500);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 10. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.about-figure {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass-hover);
}

.about-figure::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  opacity: 0.85;
  z-index: -1;
}

.exp-badge {
  position: absolute;
  right: -24px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-l-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), var(--shadow-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  line-height: 1.3;
}

.exp-badge strong {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.exp-badge span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.about-content h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-block: 30px;
}

.info-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.info-grid i {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(109, 94, 240, 0.12);
  color: var(--purple-600);
  font-size: 0.95rem;
}

.info-grid div { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.info-grid span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.info-grid strong { font-weight: 600; word-break: break-word; font-size: 0.88rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(28px, 5vw, 56px);
  margin-block: 8px 34px;
  padding-block: 26px;
  border-block: 1px solid rgba(87, 87, 106, 0.16);
}

.stat-num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- 11. SKILLS (dark section) ---------- */
.section-dark {
  background:
    radial-gradient(720px 340px at 85% -10%, rgba(109, 94, 240, 0.30), transparent 60%),
    radial-gradient(640px 320px at 0% 110%, rgba(154, 102, 255, 0.20), transparent 60%),
    var(--ink);
  color: var(--text-inv);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-card {
  position: relative;
  background: var(--glass-d-fill);
  border: 1px solid var(--glass-d-border);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.skill-card:hover {
  transform: translateY(-7px);
  border-color: rgba(160, 141, 247, 0.60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 20px 44px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(109, 94, 240, 0.18);
}

.skill-icon { font-size: 2.1rem; margin-bottom: 16px; display: inline-block; }

.ic-figma   { color: #a259ff; }
.ic-pen     { color: #f06595; }
.ic-flutter { color: #45b7f7; }
.ic-react   { color: #61dafb; }
.ic-android { color: #3ddc84; }
.ic-swift   { color: #f05138; }
.ic-proto   { color: #8b5cf6; }
.ic-brand   { color: #f59e0b; }

.skill-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.skill-card p {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--muted-inv);
  line-height: 1.6;
  margin-bottom: 18px;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  transition: width 1.3s var(--ease) 0.25s;
}

.skill-card.visible .bar span { width: var(--level); }

.bar-value {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 0.74rem;
  font-style: italic;
  font-weight: 500;
  color: var(--purple-300);
}

/* ---------- 12. PROJECTS ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
}

.filter-btn {
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  transition: all 0.35s var(--ease);
}

.filter-btn:hover { border-color: var(--purple-300); color: var(--purple-600); }

.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(109, 94, 240, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--glass-l-fill);
  border: 1px solid var(--glass-l-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), var(--shadow-glass);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-glass-hover);
}

.project-card.hide { display: none; }

.project-thumb { display: block; overflow: hidden; }
.project-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.06); }

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-600);
  background: rgba(109, 94, 240, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-body > p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 18px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 20px;
}

.tech-list li {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}

.project-links {
  display: flex;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(87, 87, 106, 0.14);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s, gap 0.3s var(--ease);
}

.link-icon i { color: var(--purple-500); }
.link-icon:hover { color: var(--purple-600); gap: 11px; }

/* ---------- 13. EXPERIENCE TIMELINE ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, var(--purple-200), var(--purple-500), var(--purple-200));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 52px;
  padding-bottom: 44px;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 52px;
}

.timeline-dot {
  position: absolute;
  top: 2px;
  right: -23px;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 0 0 6px rgba(247, 247, 252, 0.9), 0 10px 20px rgba(109, 94, 240, 0.4);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -23px;
}

.timeline-card {
  background: var(--glass-l-fill);
  border: 1px solid var(--glass-l-border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--shadow-glass);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow-glass-hover);
}

.timeline-date {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--purple-600);
  background: rgba(109, 94, 240, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.timeline-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-card h4 {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--purple-600);
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- 14. CONTACT (dark section) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--glass-d-fill);
  border: 1px solid var(--glass-d-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.info-card:hover {
  transform: translateX(6px);
  border-color: rgba(160, 141, 247, 0.60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 12px 28px rgba(0, 0, 0, 0.3);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--grad);
  color: var(--white);
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 8px 18px rgba(109, 94, 240, 0.35);
}

.info-card div { display: flex; flex-direction: column; line-height: 1.5; }
.info-card span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-inv); font-weight: 500; }
.info-card strong { font-size: 0.93rem; font-weight: 500; color: var(--text-inv); word-break: break-word; }

.contact-form {
  background: var(--glass-d-fill);
  border: 1px solid var(--glass-d-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-inv);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-inv);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(162, 162, 184, 0.55); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  background: rgba(109, 94, 240, 0.10);
  box-shadow: 0 0 0 4px rgba(109, 94, 240, 0.18);
}

.form-status {
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ---------- 15. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line-d);
  padding-block: 44px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.logo-footer { font-size: 1.3rem; color: var(--white); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
}

.footer-links a {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--muted-inv);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--purple-300); }

.copyright {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted-inv);
}

/* ---------- 16. BACK TO TOP ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 12px 26px rgba(109, 94, 240, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.4s var(--ease);
}

.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 17. REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }

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

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 24px 40px rgba(11, 11, 20, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 6vw 26px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }

  .nav-menu.active { clip-path: inset(0 0 0 0); }

  .nav-menu li { border-bottom: 1px solid rgba(87, 87, 106, 0.10); }
  .nav-menu li:last-child { border-bottom: none; }

  .nav-link { display: block; padding: 15px 2px; font-size: 1rem; }
  .nav-link::after { display: none; }

  .nav-cta-wrap { margin: 16px 0 0; }
  .nav-cta { width: 100%; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 12px;
  }

  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-socials { justify-content: center; }

  .hero-figure { order: -1; margin-top: 8px; }
  .scroll-down { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 380px; }
  .exp-badge { right: -10px; }

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

@media (max-width: 768px) {
  .timeline::before { left: 21px; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 64px;
    padding-right: 0;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: -2px;
    right: auto;
  }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .stat-label { white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .float-badge { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 12px; }
  .fb-2 { right: -12px; }
  .fb-4 { left: -12px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
