/* =========================================================
   PARAS KUMAR KUSHWAHA — PORTFOLIO
   Design tokens: dark base #0B0F19, gradient accents
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (code)
========================================================= */

:root {
  /* Palette */
  --bg: #0b0f19;
  --bg-alt: #0e1424;
  --surface: #121a2c;
  --surface-2: #161f35;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7eaf3;
  --text-dim: #9ba3b7;
  --text-faint: #626b82;

  --purple: #7c3aed;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --orange: #f59e0b;

  --grad-main: linear-gradient(
    120deg,
    var(--purple),
    var(--blue) 55%,
    var(--cyan)
  );
  --grad-warm: linear-gradient(120deg, var(--orange), var(--purple));

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -8px rgba(124, 58, 237, 0.45);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

/* Light theme override */
body.light {
  --bg: #f5f6fb;
  --bg-alt: #eef0f8;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: rgba(15, 20, 35, 0.08);
  --text: #12131c;
  --text-dim: #4b5165;
  --text-faint: #8890a3;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(15, 20, 35, 0.08);
  --shadow-soft: 0 20px 60px -25px rgba(20, 25, 45, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
::selection {
  background: var(--purple);
  color: #fff;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   LOADER
========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s var(--ease);
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.loader-prompt {
  color: var(--cyan);
}
.loader-cursor {
  animation: blink 1s step-end infinite;
  color: var(--purple);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* =========================================================
   SCROLL PROGRESS
========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-main);
  z-index: 9000;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
  transition: width 0.1s linear;
}

/* =========================================================
   CUSTOM CURSOR
========================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 8000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(124, 58, 237, 0.55);
  transition:
    transform 0.15s var(--ease),
    opacity 0.3s ease,
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
}
.cursor-ring.active {
  width: 54px;
  height: 54px;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 99999;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    height 0.3s var(--ease),
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  height: 68px;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
body.light .navbar.scrolled {
  background: rgba(245, 246, 251, 0.75);
}

.nav-inner {
  width: min(1280px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.nav-logo .dot {
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 2.1rem;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-main);
  transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition:
    color 0.25s,
    border-color 0.25s,
    transform 0.3s;
}
.theme-toggle:hover {
  color: var(--cyan);
  transform: rotate(20deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.icon-moon {
  display: none;
}
body.light .icon-sun {
  display: none;
}
body.light .icon-moon {
  display: block;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
/* ==========================================
   MOBILE NAVBAR
========================================== */
@media (max-width: 768px) {

  .navbar {
    height: 72px;
  }

  .navbar.scrolled {
    height: 72px;
  }

  .nav-inner {
    width: 92%;
    height: 100%;
    gap: 0.75rem;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .nav-actions {
    gap: 0.6rem;
  }

  /* Hide desktop CTA */
  .nav-actions .btn {
    display: none;
  }

  /* Show Hamburger */
  .nav-burger {
    display: flex;
    justify-content: center;
    width: 28px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-burger span {
    width: 100%;
    height: 2px;
    border-radius: 3px;
    background: var(--text);
    transition: .3s ease;
  }

  /* Mobile Menu */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    background: rgba(15, 23, 42, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 20px 40px rgba(0,0,0,.35);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition: all .35s ease;

    z-index: 999;
  }

  body.light .nav-links {
    background: rgba(255,255,255,.98);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;

    padding: 18px 22px;

    text-align: left;

    font-size: 1rem;
    font-weight: 500;

    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  body.light .nav-link {
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background: rgba(124,58,237,.08);
  }

  /* Hamburger Animation */

  .nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s;
  isolation: isolate;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.82rem;
}
.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(124, 58, 237, 0.7);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--text);
}

/* ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: floatBlob 16s ease-in-out infinite;
}
.blob-purple {
  width: 480px;
  height: 480px;
  background: var(--purple);
  top: -10%;
  left: -8%;
}
.blob-blue {
  width: 420px;
  height: 420px;
  background: var(--blue);
  bottom: -15%;
  right: -5%;
  animation-delay: -5s;
}
.blob-cyan {
  width: 320px;
  height: 320px;
  background: var(--cyan);
  top: 35%;
  left: 45%;
  animation-delay: -10s;
  opacity: 0.35;
}
@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.08);
  }
  66% {
    transform: translate(-25px, 25px) scale(0.95);
  }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%);
  opacity: 0.5;
}
#particles {
  position: absolute;
  inset: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.eyebrow.center {
  display: flex;
  justify-content: center;
  width: 100%;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  50% {
    transform: scale(1.4);
  }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.05;
}
.hero-hi {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.hero-name {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-role {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.6em;
}
@media (max-width: 768px) {
  .hero-copy {
    text-align: center;
    align-items: center;
  }

  .hero-role {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}
.role-bracket {
  color: var(--purple);
  font-weight: 600;
}
.role-text {
  color: var(--orange);
}
.typing-caret {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

.hero-desc {
  margin-top: 1.4rem;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-socials {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text-dim);
  backdrop-filter: blur(10px);
  transition:
    color 0.3s,
    border-color 0.3s,
    transform 0.35s var(--ease),
    box-shadow 0.3s;
}
.social-icon svg {
  width: 19px;
  height: 19px;
}
.social-icon:hover {
  color: #fff;
  border-color: transparent;
  background: var(--grad-main);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.6);
}

/* portrait */
.hero-visual {
  display: flex;
  justify-content: center;
}
.portrait-frame {
  position: relative;
  width: min(360px, 80vw);
}
.portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: var(--radius-lg);
  background: conic-gradient(
    from 0deg,
    var(--purple),
    var(--blue),
    var(--cyan),
    var(--orange),
    var(--purple)
  );
  animation: linear infinite;
  filter: blur(1px);
}
.portrait-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.35),
    transparent 70%
  );
  filter: blur(20px);
  z-index: -1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.portrait-img {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 6px solid var(--bg);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 600;
  animation: floatCard 5s ease-in-out infinite;
}
.float-card svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}
.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.float-card-1 {
  top: 8%;
  left: -14%;
  animation-delay: 0s;
}
.float-card-2 {
  bottom: 14%;
  left: -12%;
  animation-delay: -2s;
}
.float-card-2 strong {
  display: block;
  font-size: 1rem;
}
.float-card-2 span {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.72rem;
}
.float-card-3 {
  top: 42%;
  right: -16%;
  animation-delay: -3.5s;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 2;
}
.scroll-cue svg {
  width: 16px;
  height: 16px;
}
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* =========================================================
   SECTIONS (shared)
========================================================= */
.section {
  padding: 4rem 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-title.center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.about-text {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 540px;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1.in-view {
  transition-delay: 0.1s;
}
.delay-2.in-view {
  transition-delay: 0.2s;
}
.delay-3.in-view {
  transition-delay: 0.3s;
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-wrap img {
  border-radius: var(--radius-lg);
  aspect-ratio: 5/6;
  object-fit: cover;
}
.about-img-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px -30px rgba(124, 58, 237, 0.4);
  pointer-events: none;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 2.2rem;
}
.tag {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition:
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.tag:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.stat-card {
  padding: 1.4rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   SKILLS
========================================================= */
.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}
.skill-tab {
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.skill-tab:hover {
  color: var(--text);
}
.skill-tab.active {
  color: #fff;
  background: var(--grad-main);
  border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.6);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.skill-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
  display: none;
}
.skill-card.show {
  display: block;
  animation: fadeIn 0.5s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 20px 40px -18px rgba(6, 182, 212, 0.4);
}
.skill-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.skill-icon {
  font-size: 1.3rem;
}
.skill-name {
  font-weight: 600;
  flex: 1;
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.skill-bar {
  height: 7px;
  border-radius: 100px;
  background: var(--surface-2);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--grad-main);
  transition: width 1.4s var(--ease);
}

/* =========================================================
   PROJECTS
========================================================= */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--grad-main);
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project-card {
  display: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 0.1s ease-out,
    box-shadow 0.4s var(--ease),
    border-color 0.4s;
}
.project-card.show {
  display: block;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-main);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  box-shadow: 0 40px 80px -30px rgba(124, 58, 237, 0.5);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-media img {
  transform: scale(1.08);
}
.project-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.75), transparent 55%);
}

.project-body {
  padding: 1.8rem;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.project-body > p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.project-features {
  margin-bottom: 1.1rem;
}
.project-features li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.project-stack span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.project-links {
  display: flex;
  gap: 0.8rem;
}

/* =========================================================
   TIMELINE
========================================================= */
.timeline {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-left: 2.4rem;
}
.timeline-line {
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--purple), var(--cyan));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.4rem;
}
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15);
}
.timeline-card {
  padding: 1.8rem 2rem;
  border-radius: var(--radius-md);
}
.timeline-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.timeline-org {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.3rem 0 0.9rem;
}
.timeline-meta {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}
.timeline-card ul {
  margin-bottom: 0.6rem;
}
.timeline-card li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.timeline-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}
.timeline-achieve {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* =========================================================
   CERTIFICATIONS
========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.cert-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.cert-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cert-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.cert-card p {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* =========================================================
   SERVICES
========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  padding: 2.2rem;
  border-radius: var(--radius-md);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(59, 130, 246, 0.4);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-main);
  color: #fff;
}
.service-icon svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial-card {
  min-width: 100%;
  padding: 2.6rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-author div {
  text-align: left;
  font-size: 0.85rem;
}
.testimonial-author strong {
  display: block;
}
.testimonial-author span {
  color: var(--text-faint);
  font-size: 0.78rem;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition:
    background 0.3s,
    transform 0.3s;
}
.testimonial-dots button.active {
  background: var(--grad-main);
  transform: scale(1.3);
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-form {
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 1.1rem 1rem 0.55rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form-field textarea {
  min-height: 120px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}
.form-field label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: var(--text-faint);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.2s var(--ease);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 0.4rem;
  font-size: 0.68rem;
  color: var(--cyan);
}
.form-note {
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--cyan);
}

/* =========================================================
   FOOTER
========================================================= */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}
.back-to-top:hover {
  transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-socials {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }
  .float-card-1,
  .float-card-2 {
    left: 2%;
  }
  .float-card-3 {
    right: 2%;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .btn.btn-primary.magnetic.btn-small {
    display: none;
  }

  .section {
    padding: 5.5rem 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .cert-grid,
  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.3rem;
  }
  .float-card {
    font-size: 0.72rem;
    padding: 0.5rem 0.8rem;
  }
  .portrait-frame {
    width: 78vw;
  }
}
