/* Portfolio Stylesheet
   This file contains all visual styling for the portfolio page.
   Each major section below matches a section in index.html. */
/* ─── RESET & VARIABLES ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04060d;
  --surface: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-b: rgba(255, 255, 255, 0.12);
  --white: #f0f2f8;
  --muted: rgba(240, 242, 248, 0.45);
  --accent: #c8d8ff;
  --glow: #3a6fff;
  --glow2: #1a3a8a;
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(255, 255, 255, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "Space Mono", monospace;
}

html {
  /* Disabled smooth scroll as it conflicts with GSAP ScrollTrigger scrubbing */
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

/* Ensure interactive elements also hide the cursor */
a,
button,
input,
select,
textarea,
.nav-hamburger,
.project-card,
.cert-stack-card {
  cursor: none !important;
}

body.is-loading {
  overflow: hidden;
}

/* ─── CUSTOM STAR CURSOR ────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  z-index: 99999;
  pointer-events: none; /* Let clicks pass through */
  mix-blend-mode: difference; /* The X-ray/Invert effect */
  transform: translate(-50%, -50%);
  transition:
    transform 0.05s ease-out,
    opacity 0.5s ease-in-out;
  opacity: 0;
  will-change: transform, opacity;
}

.custom-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  /* Helps smooth out edges and prevent "box" ghosting */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ─── CURSOR PARTICLES ─────────────────────────────────────── */
.cursor-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: white;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: particleOut 0.8s ease-out forwards;
}

@keyframes particleOut {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0);
    opacity: 0;
  }
}

/* ─── LOADING SCREEN ─────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(58, 111, 255, 0.2),
      transparent 34%
    ),
    linear-gradient(135deg, #03050c 0%, #080d1a 48%, #04060d 100%);
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.preloader::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.preloader::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(58, 111, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(rgba(4, 6, 13, 0.68), rgba(4, 6, 13, 0.78)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    cover,
    cover,
    44px 44px,
    44px 44px;
}

.preloader-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.9) contrast(1.05);
  pointer-events: none;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-shell {
  position: relative;
  z-index: 3;
  width: min(100%, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-icons {
  display: flex;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.3rem);
  margin-bottom: 1.35rem;
}

.preloader-icon {
  width: clamp(58px, 9vw, 76px);
  height: clamp(58px, 9vw, 76px);
  border-radius: 20px;
  border: 1px solid rgba(200, 216, 255, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(9, 14, 29, 0.82);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: loaderIconFloat 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}

.preloader-icon svg {
  width: 48%;
  height: 48%;
  filter: drop-shadow(0 0 14px rgba(200, 216, 255, 0.35));
}

.preloader-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  text-shadow:
    0 0 26px rgba(200, 216, 255, 0.24),
    0 12px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 242, 248, 0.62);
  margin-bottom: 1.2rem;
}

.preloader-progress {
  width: min(100%, 430px);
  height: 8px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8d8ff, #7fa2ff 55%, #f0f2f8);
  box-shadow: 0 0 24px rgba(127, 162, 255, 0.65);
  transition: width 0.18s ease-out;
}

.preloader-percent {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

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

@media (max-width: 520px) {
  .preloader {
    padding: 1.4rem;
  }

  .preloader-icons {
    gap: 0.7rem;
  }

  .preloader-icon {
    border-radius: 16px;
  }

  .preloader-text {
    max-width: 260px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader-icon,
  .preloader-bar {
    animation: none;
    transition: none;
  }
}

/* ─── CANVAS STARS ───────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── GLOBAL LAYOUT ──────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 4rem);
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: rgba(4, 6, 13, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-h);
  box-shadow:
    0 0 40px rgba(58, 111, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.5);
  /* CHANGE: Added max-height and border-radius to the transition */
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    max-height 0.22s ease;
  /* CHANGE: Set a default max-height for desktop */
  max-height: 70px;
  overflow: hidden;
}

#nav.scrolled {
  background: rgba(4, 6, 13, 0.85);
  box-shadow:
    0 0 60px rgba(58, 111, 255, 0.12),
    0 12px 48px rgba(0, 0, 0, 0.7);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
}

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

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(5.8rem, 8vh, 6.75rem) 2rem 2.75rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(4, 6, 13, 0.2) 0%,
      rgba(4, 6, 13, 0.64) 56%,
      rgba(4, 6, 13, 0.92) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(4, 6, 13, 0.45) 0%,
      rgba(4, 6, 13, 0.2) 42%,
      var(--bg) 100%
    );
  pointer-events: none;
}

#home > :not(.home-bg-video):not(.hero-aura) {
  position: relative;
  z-index: 2;
}

.home-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: brightness(0.8) contrast(1.05);
  pointer-events: none;
}

.hero-aura {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(58, 111, 255, 0.18) 0%,
    rgba(26, 58, 138, 0.1) 40%,
    transparent 70%
  );
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auraPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.25);
  background: rgba(58, 111, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  animation: fadeDown 0.8s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4afa7e;
  box-shadow: 0 0 8px #4afa7e;
  animation: blink 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  animation: fadeDown 0.9s 0.1s ease both;
}

.hero-typing-wrap {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--accent);
  letter-spacing: 0.08em;
  height: 1.8em;
  margin-bottom: 1rem;
  animation: fadeDown 1s 0.2s ease both;
}

#typing-text {
  border-right: 2px solid var(--accent);
  padding-right: 3px;
}

.hero-desc {
  max-width: 560px;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  line-height: 1.75;
  animation: fadeDown 1s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
  animation: fadeDown 1s 0.4s ease both;
}

.btn-primary {
  padding: 0.8rem 2rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(200, 216, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(200, 216, 255, 0.3);
}

.btn-ghost {
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(200, 216, 255, 0.06);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeDown 1s 0.5s ease both;
}

.stat-card {
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  text-align: center;
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-card .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 2;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ─── MODERN ABOUT PREMIUM CARD ────────────────────────────── */
.about-premium-card-wrapper {
  color: #1a1a1a;
  margin: 0 4vw;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.light-section {
  position: relative;
  width: min(1120px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 6rem 0 5rem;
  padding-bottom: 9rem;
  padding-bottom: 3rem;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 72%,
    rgba(255, 255, 255, 0.6) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 80px 80px 0 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}

.dark-title {
  color: #04060d !important;
}
.dark-tag {
  color: #3a6fff !important;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 1.5rem;
  align-items: center;
}

.about-visual {
  max-width: 430px;
  position: relative;
  margin-inline: auto;
  padding: 1rem 0.5rem 1rem;
}

.portrait-frame {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(58, 111, 255, 0.12);
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(58, 111, 255, 0.16),
      transparent 44%
    ),
    #06070d;
  max-width: 100%;
  isolation: isolate;
}

.portrait-img {
  width: 100%;
  display: block;
  transform: scale(1.04);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
  filter: contrast(1.02) saturate(1.04);
}

.portrait-frame:hover .portrait-img {
  transform: scale(1.08);
  filter: contrast(1.05) saturate(1.08);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(135deg, transparent 55%, rgba(58, 111, 255, 0.18) 100%);
  pointer-events: none;
}

.portrait-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(200, 216, 255, 0.14);
  box-shadow: 0 0 40px rgba(58, 111, 255, 0.08);
  animation: ringFloat 8s ease-in-out infinite;
}

.portrait-ring-1 {
  inset: -18px;
  border-style: solid;
}

.portrait-ring-2 {
  inset: -42px;
  border-style: dashed;
  opacity: 0.7;
  animation-delay: -2.5s;
}

@keyframes ringFloat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.02) rotate(6deg);
  }
}

/* Modern Square Status Badge (Inside) */
.portrait-status-square {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.about-content {
  position: relative;
  transform: translateY(-6px);
  overflow: visible;
  padding-top: 0.5rem;
}

.status-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #3a6fff;
  flex-shrink: 0;
}

.status-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.availability {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 4px;
}

.availability::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4afa7e;
  box-shadow: 0 0 6px #4afa7e;
}

.about-glass-square {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(58, 111, 255, 0.2),
      transparent 38%
    ),
    linear-gradient(145deg, rgba(4, 6, 13, 0.98), rgba(10, 16, 34, 0.96));
  display: block;
  text-decoration: none;
}

.about-glass-row {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0.65rem 0 1rem;
  max-width: 300px;
  flex-wrap: wrap;
}

.glass-square-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  z-index: 2;
}

.about-intro {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #3a6fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #04060d;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-bio {
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.dark-ghost {
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #04060d !important;
}

.dark-ghost:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: #04060d !important;
}

.about-btns .btn-primary,
.about-btns .btn-ghost {
  background: #000000;
  border: 1px solid #1a1a1a;
  color: #ffffff;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease,
    transform 0.2s ease,
    box-shadow 0.45s ease;
}

.about-btns .btn-primary:hover,
.about-btns .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #000000;
  box-shadow: none;
}

/* ─── HIRE ME GRID ─────────────────────────────────────────── */
.hire-me-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.hire-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(6, 9, 22, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hire-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(58, 111, 255, 0.12),
    transparent 46%
  );
  pointer-events: none;
  opacity: 0.6;
}

.hire-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 216, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(200, 216, 255, 0.18),
    0 0 60px rgba(58, 111, 255, 0.14),
    0 0 120px rgba(58, 111, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hire-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(200, 216, 255, 0.15);
  background: rgba(200, 216, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.hire-card:hover .hire-icon {
  border-color: rgba(200, 216, 255, 0.28);
  background: rgba(200, 216, 255, 0.08);
}

.hire-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  width: 1.5rem;
  height: 1.5rem;
}
.hire-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.hire-desc {
  font-size: 1.03rem;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

#hire-me {
  position: relative;
  padding-top: 3.5rem;
}

/* ─── CERTIFICATIONS — GSAP SCROLL STACK ────────────────────── */
#certifications {
  padding: 7rem 0 0;
}

.cert-pin-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Stage height is written by JS after measuring the tallest card */
.cert-stage {
  position: relative;
  min-height: 460px; /* fallback only */
}

/* ── Base card shell ── */
.cert-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(6, 9, 22, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  will-change: transform, opacity;
  opacity: 0;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    box-shadow 0.4s,
    border-color 0.4s;
}

/* Glow when on top */
.cert-stack-card.is-top {
  border-color: rgba(200, 216, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(200, 216, 255, 0.18),
    0 0 60px rgba(58, 111, 255, 0.14),
    0 0 120px rgba(58, 111, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ── LEFT: badge zone ── */
.cert-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.8rem 1.8rem;
  border-right: 1px solid var(--border);
  background: rgba(200, 216, 255, 0.02);
  overflow: hidden;
}

/* Subtle radial glow behind badge area */
.cert-left::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(58, 111, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Badge placeholder — swap with real SVG later */
.cert-badge-area {
  width: 136px;
  height: 136px;
  border-radius: 28px;
  border: 1px solid rgba(200, 216, 255, 0.15);
  background: rgba(200, 216, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.cert-stack-card.is-top .cert-badge-area {
  border-color: rgba(200, 216, 255, 0.28);
  background: rgba(200, 216, 255, 0.08);
}

.cert-badge-area svg,
.cert-badge-area img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.cert-badge-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.35);
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.cert-year-tag {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 0.48rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.18);
  background: rgba(200, 216, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* ── RIGHT: content ── */
.cert-right {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.4rem;
  gap: 1.1rem;
  overflow: visible;
  min-height: 0;
}

.cert-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.cert-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cert-verified {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74, 250, 126, 0.75);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 250, 126, 0.2);
  background: rgba(74, 250, 126, 0.07);
  white-space: nowrap;
}

.cert-verified-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-link-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition:
    color 0.25s,
    transform 0.25s;
}

.cert-stack-card.is-top .cert-link-arrow {
  color: var(--accent);
}
.cert-stack-card:hover .cert-link-arrow {
  transform: translateX(4px) translateY(-2px);
}

.cert-stack-card,
.cert-verified-link {
  cursor: pointer;
}

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cert-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(14px);
}

.cert-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(92vh, 960px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(200, 216, 255, 0.16);
  background: rgba(6, 9, 22, 0.96);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(200, 216, 255, 0.08);
  z-index: 1;
}

.cert-modal-media {
  min-height: 0;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(58, 111, 255, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.cert-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.cert-modal-content {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

.cert-modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-modal-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--white);
}

.cert-modal-note {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.cert-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.16);
  background: rgba(8, 12, 24, 0.82);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

body.cert-modal-open {
  overflow: hidden;
}

/* Description */
.cert-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.78;
  flex-shrink: 0;
}

/* Skills box */
.cert-skills-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: rgba(200, 216, 255, 0.03);
  transition: border-color 0.3s;
}

.cert-stack-card.is-top .cert-skills-box {
  border-color: rgba(200, 216, 255, 0.12);
  background: rgba(200, 216, 255, 0.05);
}

.cert-skills-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.35);
  margin-bottom: 0.65rem;
}

.cert-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cert-chip {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.16);
  background: rgba(200, 216, 255, 0.06);
  white-space: nowrap;
  transition: color 0.2s;
}

.cert-stack-card.is-top .cert-chip {
  border-color: rgba(200, 216, 255, 0.28);
  background: rgba(200, 216, 255, 0.1);
  color: var(--white);
}

/* Scroll hint */
.cert-scroll-hint {
  text-align: center;
  padding: 2rem 0 5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.cert-scroll-hint::before,
.cert-scroll-hint::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(200, 216, 255, 0.1);
}

/* Counter */
.cert-counter {
  position: absolute;
  top: -2.6rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-counter-dots {
  display: flex;
  gap: 0.35rem;
}

.cert-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition:
    background 0.4s,
    box-shadow 0.4s,
    width 0.4s;
}

.cert-counter-dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 216, 255, 0.45);
}

/* ── Responsive: mobile disables stack, shows vertical list ── */
@media (max-width: 768px) {
  /* Hide desktop-only chrome */
  .cert-counter,
  .cert-scroll-hint {
    display: none !important;
  }

  /* Un-wrap the pin wrapper */
  .cert-pin-wrapper {
    max-width: 100%;
  }

  /* Stage becomes normal block flow */
  .cert-stage {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-bottom: 2rem;
  }

  /* Every card becomes a visible, stacked block — GSAP transforms are overridden */
  .cert-stack-card {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    /* Simple fade-up entrance */
    animation: mobileCardIn 0.55s ease both;
  }

  .cert-stack-card:nth-child(1) {
    animation-delay: 0.05s;
  }
  .cert-stack-card:nth-child(2) {
    animation-delay: 0.18s;
  }
  .cert-stack-card:nth-child(3) {
    animation-delay: 0.31s;
  }
  .cert-stack-card:nth-child(4) {
    animation-delay: 0.44s;
  }

  /* All cards show the "active" styling on mobile */
  .cert-stack-card {
    border-color: rgba(200, 216, 255, 0.16);
  }
  .cert-stack-card .cert-chip {
    color: var(--white);
  }
  .cert-stack-card .cert-skills-box {
    border-color: rgba(200, 216, 255, 0.12);
    background: rgba(200, 216, 255, 0.04);
  }
  .cert-stack-card .cert-link-arrow {
    color: var(--accent);
  }

  .cert-modal-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .cert-modal-content {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .cert-modal-media img {
    max-height: 56vh;
  }

  /* Left panel: horizontal compact bar */
  .cert-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 1.6rem;
    gap: 1.2rem;
  }
  .cert-left::before {
    display: none;
  }

  .cert-badge-area {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    flex-shrink: 0;
  }
  .cert-badge-area svg,
  .cert-badge-area img {
    width: 52px;
    height: 52px;
  }

  /* Compact left meta */
  .cert-badge-label {
    font-size: 0.52rem;
  }
  .cert-year-tag {
    font-size: 1.15rem;
    padding: 0.34rem 0.9rem;
  }

  /* Right panel */
  .cert-right {
    padding: 1.4rem 1.5rem;
    gap: 0.9rem;
    overflow: visible;
  }

  .cert-top-row {
    flex-wrap: wrap;
    row-gap: 0.7rem;
  }

  .cert-top-row > div:first-child {
    min-width: 0;
    flex: 1 1 180px;
  }

  .cert-title {
    font-size: 1.03rem;
  }

  .cert-meta-col {
    margin-left: auto;
    align-items: flex-end;
    flex-shrink: 0;
  }

  .cert-verified {
    font-size: 0.5rem;
    padding: 0.18rem 0.55rem;
  }

  .cert-link-arrow {
    font-size: 1rem;
    line-height: 1;
  }

  .cert-desc {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .cert-skills-box {
    padding: 0.8rem 0.95rem;
  }
  .cert-skills-chips {
    gap: 0.08rem 0;
  }
  .cert-chip {
    font-size: 0.58rem;
  }

  .cert-chip + .cert-chip::before {
    margin: 0 0.38rem;
  }

  #certifications {
    padding-bottom: 4rem;
  }
}

@keyframes mobileCardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#skills {
  padding: 6rem 0;
}

.skills-shell {
  position: relative;
  margin-top: 0.5rem;
}

.skills-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.skills-category-chip {
  appearance: none;
  border: 1px solid rgba(200, 216, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.skills-category-chip:hover,
.skills-category-chip.is-active {
  color: var(--white);
  border-color: rgba(200, 216, 255, 0.28);
  background: rgba(58, 111, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(200, 216, 255, 0.08);
  transform: translateY(-1px);
}

.skills-pool {
  position: relative;
  min-height: 640px;
  padding: 1.1rem;
  border-radius: 30px;
  border: 1px solid rgba(200, 216, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 111, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(7, 11, 23, 0.92), rgba(4, 6, 13, 0.98));
  overflow: hidden;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skills-pool::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.5;
  pointer-events: none;
}

.skills-pool-glow {
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(58, 111, 255, 0.2) 0%,
    rgba(58, 111, 255, 0.1) 35%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
}

.skills-pool-inner {
  position: relative;
  min-height: 610px;
  height: clamp(560px, 72vh, 760px);
}

.skill-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.6rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.skill-tag .skill-tag-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.skill-tag.is-muted {
  opacity: 0.18;
  filter: saturate(0.3) blur(0.15px);
}

.skill-tag.is-focused {
  opacity: 1;
  filter: saturate(1.12);
}

.skill-tag.is-dimmed {
  opacity: 0.42;
}

.skill-tag.is-small {
  font-size: 0.66rem;
  padding: 0.62rem 0.9rem;
}

.skill-tag.is-wide {
  padding-inline: 1.15rem;
}

@media (max-width: 768px) {
  #skills {
    padding: 4.5rem 0;
  }

  .skills-pool {
    min-height: 540px;
    padding: 0.9rem;
    border-radius: 22px;
  }

  .skills-pool-inner {
    height: clamp(460px, 68vh, 640px);
    min-height: 460px;
  }

  .skills-category-chip {
    font-size: 0.6rem;
    padding: 0.62rem 0.82rem;
  }

  .skill-tag {
    font-size: 0.86rem;
    min-height: 2.35rem;
    padding: 0.62rem 0.88rem;
  }
}

@media (max-width: 520px) {
  .skills-category-bar {
    gap: 0.5rem;
  }

  .skills-pool {
    min-height: 500px;
  }

  .skills-pool-inner {
    height: 500px;
    min-height: 500px;
  }

  .skills-category-chip {
    width: calc(50% - 0.25rem);
    text-align: center;
  }
}

/* ─── EXPERIENCE ─────────────────────────────────────────────── */
#experience {
  padding: 7rem 0;
}

.exp-timeline {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
}

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-h) 15%,
    var(--border-h) 85%,
    transparent
  );
}

.exp-timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: top;
  transform: scaleY(var(--exp-line-progress, 0));
  background: linear-gradient(
    to bottom,
    rgba(120, 178, 255, 0.15),
    rgba(120, 178, 255, 0.75) 35%,
    rgba(235, 243, 255, 1) 50%,
    rgba(120, 178, 255, 0.75) 65%,
    rgba(120, 178, 255, 0.15)
  );
  box-shadow: 0 0 18px rgba(124, 181, 255, 0.55);
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(124, 181, 255, 0.35));
}

.exp-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 2.5rem 0;
  opacity: 0;
  transform: translateX(-20px);
  box-sizing: border-box;
}

.exp-item.visible {
  animation: slideRight 0.6s ease forwards;
}

.exp-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 2.5rem 2.5rem;
  transform: translateX(20px);
}

.exp-dot {
  position: absolute;
  left: auto;
  right: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(200, 216, 255, 0.5);
}

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

.exp-card {
  position: relative;
  max-width: 430px;
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(200, 216, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(58, 111, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(6, 9, 18, 0.92));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    transparent 32%,
    transparent 68%,
    rgba(255, 255, 255, 0.03)
  );
  pointer-events: none;
}

.exp-item:hover .exp-card {
  transform: translateY(-6px);
  border-color: rgba(58, 111, 255, 0.28);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(58, 111, 255, 0.08),
    0 0 28px rgba(58, 111, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.exp-item:hover .exp-dot {
  transform: scale(1.25);
  box-shadow:
    0 0 0 4px rgba(58, 111, 255, 0.1),
    0 0 18px rgba(200, 216, 255, 0.7);
}

.exp-item:hover .exp-role {
  color: var(--white);
}

.exp-item:hover .exp-org {
  color: rgba(244, 247, 255, 0.82);
}

.exp-item:hover .exp-desc {
  color: rgba(244, 247, 255, 0.9);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.exp-org {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.exp-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .exp-timeline {
    max-width: 700px;
    padding-left: 2rem;
  }

  .exp-timeline::before {
    left: 0;
  }

  .exp-timeline::after {
    left: 0;
  }

  .exp-item,
  .exp-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2.5rem 2.5rem;
    transform: translateX(-20px);
  }

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

  .exp-card {
    max-width: 100%;
  }
}

/* ─── PROJECTS ───────────────────────────────────────────────── */
#projects {
  width: min(1120px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 7rem 0 6rem;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 64%,
    rgba(255, 255, 255, 0.72) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 80px 80px 0 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}

#projects .section-title {
  color: #04060d;
}

.projects-scroll-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 2rem 4.5rem;
  cursor: grab;
  display: flex;
  gap: 1.4rem;
}

.projects-swipe-hint {
  display: none;
}

.projects-scroll-wrap::-webkit-scrollbar {
  display: none;
}
.projects-scroll-wrap:active {
  cursor: grabbing;
}

.project-card {
  flex: 0 0 340px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
}

.project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.4s, transform 0.4s;
}

.project-card:hover .project-bg {
  opacity: 1;
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.03);
}

.project-card:hover .project-content {
  background: linear-gradient(
    to top,
    rgba(4, 6, 13, 0.96) 0%,
    rgba(4, 6, 13, 0.86) 30%,
    rgba(4, 6, 13, 0.48) 62%,
    transparent 100%
  );
}

.project-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  background: linear-gradient(
    to top,
    rgba(4, 6, 13, 0.96) 0%,
    rgba(4, 6, 13, 0.82) 28%,
    rgba(4, 6, 13, 0.42) 58%,
    transparent 100%
  );
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.project-card:hover .project-desc {
  opacity: 1;
  transform: translateY(0);
}

.project-cta {
  appearance: none;
  display: inline-block;
  padding: 0.76rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 24, 0.9);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.82);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  width: fit-content;
}

.project-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 111, 255, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 111, 255, 0.2), transparent 55%),
    rgba(12, 18, 34, 0.98);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(58, 111, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-card .project-accent {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-accent {
  opacity: 1;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.project-modal.is-open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 13, 0.78);
  backdrop-filter: blur(10px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(94vh, 980px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(200, 216, 255, 0.16);
  background: rgba(6, 9, 22, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  padding: 1.75rem;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  font-size: 1.4rem;
  cursor: pointer;
}

.project-modal-head {
  padding-right: 3rem;
  margin-bottom: 1rem;
}

.project-modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.project-modal-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 0 0 0.35rem;
}

.project-modal-note {
  color: var(--muted);
}

.project-modal-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  justify-content: center;
  gap: 1rem;
  max-height: min(78vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2.5rem;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.project-modal-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200, 216, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.project-modal-item img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.project-modal-item-body {
  padding: 0.95rem 1rem 1rem;
}

.project-modal-item-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.project-modal-item-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.project-modal-item-stack {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(240, 242, 248, 0.65);
  margin-bottom: 0.55rem;
}

.project-modal-item-note {
  font-size: 0.84rem;
  color: rgba(240, 242, 248, 0.78);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.project-modal-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.project-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 216, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 255, 0.88);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal-btn.is-primary {
  background: linear-gradient(180deg, #3a6fff, #264fd6);
  border-color: transparent;
  color: #fff;
}

.project-modal-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.project-modal-empty {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px dashed rgba(200, 216, 255, 0.16);
  color: rgba(240, 242, 248, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

body.project-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .project-modal-panel {
    width: min(1100px, calc(100% - 1rem));
    max-height: 94vh;
    padding: 1.15rem;
  }

  .project-modal-track {
    grid-template-columns: 1fr;
    max-height: 78vh;
    padding-bottom: 3rem;
  }

  .project-modal-item {
    width: 100%;
  }
}

/* ─── CONTACT ────────────────────────────────────────────────── */
#contact {
  padding: 7rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.contact-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.cstat {
  text-align: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cstat:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 216, 255, 0.22);
  background: rgba(200, 216, 255, 0.06);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(200, 216, 255, 0.08);
}

.cstat-n {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.cstat-l {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.review-card {
  width: 100%;
  box-sizing: border-box;
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 216, 255, 0.22);
  background: rgba(200, 216, 255, 0.05);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(200, 216, 255, 0.08);
}

.review-link {
  cursor: pointer;
}

.review-stars {
  color: #ffd060;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow), #8b2fc9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
}

.review-meta .name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.review-meta .role {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ─── FORM ───────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(0, 0, 0, 0.92) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.contact-form:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 216, 255, 0.16);
  filter: brightness(1.03);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition:
    border-color 0.25s,
    background 0.25s;
  resize: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 242, 248, 0.2);
}

.form-group select option {
  background: #0d1120;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(200, 216, 255, 0.4);
  background: rgba(200, 216, 255, 0.04);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-dein {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
  filter: blur(1px);
  user-select: none;
}

.footer-anim {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

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

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.social-btn:hover {
  border-color: var(--border-h);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.footer-copy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: rgba(240, 242, 248, 0.2);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── UFO PARTICLE TRAILS ────────────────────────────────────── */
.ufo-trail {
  position: fixed;
  width: 2px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(200, 216, 255, 0.6), transparent);
  pointer-events: none;
  z-index: 0;
  animation: ufoFall linear infinite;
  opacity: 0;
}

@keyframes ufoFall {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(var(--angle, 15deg));
  }
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none !important;
  }

  a,
  button,
  input,
  select,
  textarea {
    cursor: auto;
  }

  .project-card {
    --mobile-project-glow: rgba(58, 111, 255, 0.16);
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
  }

  .contact-grid > div:first-child {
    order: 1;
  }

  .contact-grid > div:last-child {
    order: 2;
  }

  #nav {
    flex-wrap: wrap;
    align-items: center;
    top: 1rem;
    width: calc(100% - 1rem);
    max-height: 56px;
    border-radius: 26px;
  }

  #nav.open {
    max-height: 270px;
    border-radius: 26px;
    background: rgba(4, 6, 13, 0.72);
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.13em;
  }

  .nav-logo {
    font-size: 1.2rem;
    margin-top: -0.1rem;
  }

  .nav-hamburger {
    display: flex;
    align-self: flex-start;
    margin-top: 0.38rem;
    order: 2;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 1.2rem 0 0.4rem;
    order: 3;
    opacity: 0;
    pointer-events: none;
  }

  #nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  .project-card {
    background: radial-gradient(
        circle at 50% 18%,
        color-mix(in srgb, var(--mobile-project-glow) 78%, transparent),
        transparent 42%
      ),
      linear-gradient(180deg, rgba(7, 11, 23, 0.98), rgba(8, 13, 27, 0.96));
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .project-bg {
    opacity: 0.42;
    filter: grayscale(0.15) contrast(1.05) saturate(1.06);
  }

  .project-content {
    background: linear-gradient(
      to top,
      rgba(4, 6, 13, 0.9) 0%,
      rgba(4, 6, 13, 0.72) 35%,
      rgba(4, 6, 13, 0.34) 66%,
      transparent 100%
    );
  }

  .project-card:hover .project-bg,
  .project-card:hover .project-content,
  .project-card:hover .project-accent {
    opacity: inherit;
    transform: none;
  }

  /* Burger to X */
  #nav.open .nav-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  #nav.open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }

  #nav.open .nav-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .hero-badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }

  .availability {
    font-size: 0.5rem;
    white-space: nowrap;
  }

  .cert-skills-box {
    display: none;
  }

  .cert-desc {
    display: block;
  }

  #contact {
    padding-bottom: 1.2rem;
  }

  #footer {
    padding-top: 2.2rem;
  }

  .footer-anim {
    margin-bottom: 1.6rem;
  }

  .footer-contact {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 768px) {
  .about-premium-card-wrapper {
    margin: 0 1rem;
  }

  .light-section {
    width: calc(100% - 1.25rem);
    border-radius: 24px;
    padding: 2rem 0 3.5rem;
  }

  #projects {
    width: calc(100% - 1.25rem);
    border-radius: 24px;
    padding-top: 2rem;
    padding-bottom: 5.5rem;
    background: linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 58%,
      rgba(255, 255, 255, 0.42) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .projects-scroll-wrap {
    padding: 0.4rem 7vw 5.5rem;
    gap: 0.9rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 7vw;
    -webkit-overflow-scrolling: touch;
  }

  .project-card {
    flex: 0 0 86vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin-bottom: 1rem;
  }

  .projects-swipe-hint {
    display: block;
    margin: -1.1rem 7vw 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(4, 6, 13, 0.55);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    order: 1;
    max-width: 360px;
    width: 100%;
    padding: 0;
  }

  .about-content {
    order: 2;
    transform: none;
    padding-top: 0;
  }

  .portrait-frame {
    border-radius: 34px;
  }

  .portrait-status-square {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .status-avatar-circle {
    width: 38px;
    height: 38px;
  }

  .handle {
    font-size: 0.72rem;
  }

  .availability {
    font-size: 0.55rem;
  }

  .about-glass-row {
    justify-content: flex-start;
    max-width: 100%;
    margin: 0.9rem 0 1rem;
  }

  .about-bio {
    font-size: 1.03rem;
    margin-bottom: 2rem;
  }

  .about-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
  }

  .about-btns .btn-primary,
  .about-btns .btn-ghost {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hire-me-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }

  .hire-card {
    padding: 1.75rem 1.35rem;
    border-radius: 20px;
  }

  .hire-card h3 {
    font-size: 1.1rem;
  }

  .hire-card p {
    font-size: 1.15rem;
  }
}

@media (max-width: 520px) {
  .contact-grid > div {
    width: 100%;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.72rem 0.9rem;
  }

  .form-note {
    font-size: 0.75rem;
  }

  #hire-me {
    padding-top: 2.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  #contact {
    padding-top: 4.5rem;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hire-card {
    padding: 1.5rem 1.1rem;
  }

  .hire-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
  }
}

/* Contact Submit Button Styling */
.contact-submit {
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 1rem;
  font-size: 0.92rem;
}

/* Message Sent Button State */
.contact-submit.is-sent {
  background: rgba(74, 250, 126, 0.15);
  color: #4afa7e;
  border: 1px solid rgba(74, 250, 126, 0.3);
}

/* Footer Content Layer */
.footer-container {
  position: relative;
  z-index: 1;
}

/* Skills row title placement override */
.skills-category-bar {
  display: none;
}

.skills-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills-row {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--row-color) 28%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--row-color) 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(6, 9, 22, 0.96), rgba(10, 15, 30, 0.9));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill-cat-title {
  display: block;
  width: fit-content;
  margin-bottom: 0.85rem;
}

.skill-cat-title.align-right {
  margin-left: auto;
  margin-right: 0;
}

.skill-cat-title.align-left {
  margin-left: 0;
  margin-right: auto;
}

.skills-track {
  min-height: 4.75rem;
}

@media (max-width: 520px) {
  .skill-cat-title {
    width: 100%;
    text-align: center;
  }
}

/* ─── SKILLS ROWS ───────────────────────────────────────────── */
#skills {
  padding: 7rem 0;
}

.skills-section-shell {
  position: relative;
  z-index: 1;
}

.skills-modern-ui {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: center;
}

.skills-row-shell,
.skills-rows.is-hidden-source {
  display: none;
}

.skills-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.skills-filter-chip {
  appearance: none;
  border: 1px solid rgba(200, 216, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 24, 0.9);
  color: rgba(244, 247, 255, 0.82);
  border-radius: 999px;
  padding: 0.76rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.skills-filter-chip:hover,
.skills-filter-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(58, 111, 255, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 111, 255, 0.2), transparent 55%),
    rgba(12, 18, 34, 0.98);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(58, 111, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.skills-grid-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.skills-grid-empty {
  padding: 1.3rem 1rem;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 24, 0.62);
  color: rgba(240, 244, 255, 0.72);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 1.5in);
  justify-content: center;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
}

.skill-card {
  width: 1.5in;
  height: 1.5in;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 22%, rgba(58, 111, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(4, 6, 13, 0.98), rgba(10, 16, 34, 0.96));
  color: #f6f8ff;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 111, 255, 0.3);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(58, 111, 255, 0.08),
    0 0 28px rgba(58, 111, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  filter: saturate(1.06);
}

.skill-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
}

.skill-card-icon img,
.skill-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.skill-card-label {
  text-align: center;
  font: 700 0.8rem/1.2 var(--font-body);
  color: inherit;
}

.skills-category-bar {
  display: none;
}

.skills-row-shell {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skill-cat-title {
  appearance: none;
  color: var(--skill-color);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
  width: fit-content;
  margin: 0;
}

.skill-cat-title.align-right {
  margin-left: auto;
  margin-right: 0;
}

.skill-cat-title.align-left {
  margin-left: 0;
  margin-right: auto;
}

.skill-cat-title:hover,
.skill-cat-title.is-active {
  color: color-mix(in srgb, var(--skill-color) 82%, white 18%);
  transform: translateY(-1px);
  text-shadow: 0 0 18px color-mix(in srgb, var(--skill-color) 30%, transparent);
}

.skills-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills-row {
  padding: 0.95rem 1.05rem 1rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--row-color) 28%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--row-color) 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(6, 9, 22, 0.96), rgba(10, 15, 30, 0.9));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.skills-row.is-reverse {
  border-color: color-mix(in srgb, var(--row-color) 20%, rgba(255, 255, 255, 0.08));
}

.skills-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.skills-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  will-change: transform;
  animation: skillRowSlide 14s linear infinite;
  transform: translate3d(0, 0, 0);
}

.skills-row.is-reverse .skills-track {
  animation-direction: reverse;
}

.skills-track-group {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 1rem;
  flex: 0 0 auto;
}

@keyframes skillRowSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--skill-color);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    filter 0.22s ease,
    color 0.22s ease,
    text-shadow 0.22s ease;
}

.skill-chip:hover {
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 0 14px color-mix(in srgb, var(--skill-color) 26%, transparent);
}

.skill-chip-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  flex: 0 0 1.65rem;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  color: inherit;
  min-width: 0;
}

.skill-chip-icon svg,
.skill-chip-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.skill-chip-label {
  line-height: 1.2;
  color: inherit;
  font-size: 1.03em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.skill-separator {
  flex: 0 0 auto;
  color: rgba(240, 242, 248, 0.34);
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1;
  margin: 0 0.9rem;
  user-select: none;
  transform: translateY(-0.02em);
}

.skill-chip.is-muted {
  opacity: 0.22;
  filter: saturate(0.22);
}

@media (max-width: 768px) {
  #skills {
    padding: 5.5rem 0;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, 1.35in);
    gap: 0.75rem;
  }

  .skills-row-shell {
    gap: 0.7rem;
  }

  .skills-row {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .skills-track {
    min-height: 4.35rem;
    animation-duration: 10s;
  }

  .skills-filter-chip {
    padding: 0.68rem 0.88rem;
    font-size: 0.64rem;
  }

  .skill-chip {
    font-size: 0.97rem;
  }

  .skill-separator {
    font-size: 1rem;
    margin: 0 0.5rem;
  }
}

@media (max-width: 520px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1.35in);
    gap: 0.7rem;
  }

  .skill-card {
    width: 1.35in;
    height: 1.35in;
    border-radius: 10px;
    padding: 0.65rem;
    gap: 0.45rem;
  }

  .skill-card-icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .skill-card-label {
    font-size: 0.72rem;
  }

  .skill-cat-title {
    width: fit-content;
    font-size: 1.03rem;
  }

  .skills-row-shell.is-reverse .skill-cat-title,
  .skill-cat-title.align-right {
    margin-left: auto;
    margin-right: 0;
  }

  .skill-chip {
    font-size: 0.9rem;
  }

  .skill-chip-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-basis: 1.3rem;
  }

  .skill-separator {
    font-size: 1.1rem;
    margin: 0 0.35rem;
  }
}
