/*============================================
  GHANSHYAM RAMOLE — PORTFOLIO 
         ghanshyam.space
============================================*/

/* ──────────────────────────────────────────
   CSS CUSTOM PROPERTIES
────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-primary: #6366f1;
  --clr-primary-light: #818cf8;
  --clr-primary-dark: #4f46e5;
  --clr-accent: #f59e0b;
  --clr-accent-light: #fbbf24;
  --clr-cyan: #22d3ee;
  --clr-green: #10b981;

  /* Backgrounds */
  --bg-base: #0a0a1a;
  --bg-raised: #111127;
  --bg-card: #161630;
  --bg-overlay: #1e1e3f;
  --bg-glass: rgba(22, 22, 48, 0.8);

  /* Text */
  --txt-primary: #f1f5f9;
  --txt-secondary: #94a3b8;
  --txt-muted: #64748b;
  --txt-accent: #818cf8;

  /* Borders */
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.4);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1, #f59e0b);
  --grad-card: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(245, 158, 11, 0.04));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.35);
  --shadow-glow-accent: 0 0 32px rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Layout */
  --max-w: 1200px;
  --pad-x: clamp(1rem, 4vw, 2rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow: 0.5s ease;
  --t-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────────────────────────────
   RESET
────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--txt-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-active {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}
li {
  list-style: none;
}
a {
  color: var(--txt-accent);
  text-decoration: none;
  transition: var(--t-fast);
}
a:hover {
  color: var(--clr-primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--txt-primary);
  line-height: 1.2;
  font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-raised);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border-radius: var(--r-full);
}

/* ──────────────────────────────────────────
   UTILITIES
────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--txt-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--txt-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-desc {
  margin: 0 auto;
}

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

/* Scroll reveal */
.reveal,
.reveal-l,
.reveal-r {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal {
  transform: translateY(36px);
}
.reveal-l {
  transform: translateX(-36px);
}
.reveal-r {
  transform: translateX(36px);
}
.reveal.in,
.reveal-l.in,
.reveal-r.in {
  opacity: 1;
  transform: translate(0);
}

/* ──────────────────────────────────────────
   SCROLL PROGRESS
────────────────────────────────────────── */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ──────────────────────────────────────────
   PRELOADER
────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.preloader-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--txt-muted);
  animation: pulse 1.5s ease infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ──────────────────────────────────────────
   HEADER
────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--t-normal);
}

.header.active {
  background: rgba(10, 10, 26, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.head {
  z-index: 1001;
}

#logo {
  width: 60px;
  height: 42px;
  border-radius: var(--r-md);
  object-fit: contain;
  transition: var(--t-normal);
}

#logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

/* Desktop nav */
.desktop-nav {
  display: none;
}

.tail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tail li {
  list-style: none;
}

.tail a {
  color: var(--txt-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-md);
  transition: var(--t-normal);
  position: relative;
}

.tail a:hover,
.tail a.active-link {
  color: var(--txt-primary);
  background: rgba(99, 102, 241, 0.12);
}

.tail a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  transition: var(--t-normal);
}

.tail a.active-link::after {
  width: 70%;
}

/* Mobile nav */
.mobile-nav-container {
  display: flex;
  align-items: center;
}

.nav-toggle-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--t-normal);
  z-index: 1001;
}

.nav-toggle-btn:hover {
  border-color: var(--border-hover);
}

.line {
  width: 20px;
  height: 2px;
  background: var(--txt-primary);
  border-radius: 2px;
  transition: var(--t-normal);
}

.nav-toggle-btn.active .line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle-btn.active .line-2 {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  padding: 5rem var(--space-lg) var(--space-lg);
  transition: var(--t-normal);
  z-index: 1000;
}

.navbar.active {
  right: 0;
}

.navbar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.navbar-link {
  color: var(--txt-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-sm);
  border-radius: var(--r-md);
  display: block;
  transition: var(--t-normal);
}

.navbar-link:hover,
.navbar-link.active-link {
  color: var(--txt-primary);
  background: rgba(99, 102, 241, 0.12);
  transform: translateX(6px);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--t-normal);
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
  .mobile-nav-container {
    display: none;
  }
}

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--bg-base);
  overflow: hidden;
  padding: 7rem var(--pad-x) 4rem;
}

/* Animated background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.12);
  top: -150px;
  left: -150px;
  animation: orbMove 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.08);
  bottom: -100px;
  right: -100px;
  animation: orbMove 13s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(34, 211, 238, 0.07);
  top: 40%;
  left: 40%;
  animation: orbMove 8s ease-in-out infinite 2s;
}

@keyframes orbMove {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* Grid layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--clr-primary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-green);
  animation: pulseGlow 2s ease infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* Name */
.hero-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f1f5f9 30%, #818cf8 70%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Typewriter */
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--txt-muted);
  margin-bottom: 22px;
  min-height: 2rem;
}

.hero-role .tw {
  color: var(--clr-accent);
  border-right: 2px solid var(--clr-accent);
  padding-right: 3px;
  animation: caretBlink 0.75s step-end infinite;
}

@keyframes caretBlink {
  50% {
    border-color: transparent;
  }
}

/* Description */
.hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--txt-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--grad-primary);
  color: #fff;
  text-decoration: none;
  transition: var(--t-normal);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border-hover);
  color: var(--txt-primary);
  text-decoration: none;
  transition: var(--t-normal);
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--clr-primary);
  color: var(--txt-primary);
  transform: translateY(-3px);
}

/* Social */
.hero-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  color: var(--txt-secondary);
  font-size: 1.1rem;
  transition: var(--t-normal);
}

.hero-socials a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item__val {
  font-size: 1.7rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 11px;
  color: var(--txt-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Profile image */
.hero-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-ring {
  position: relative;
  width: clamp(260px, 35vw, 380px);
  height: clamp(260px, 35vw, 380px);
}

/* Spinning gradient ring */
.hero-img-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--clr-primary),
    var(--clr-accent),
    var(--clr-cyan),
    var(--clr-primary)
  );
  animation: spin 6s linear infinite;
  z-index: 0;
}

.hero-img-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-base);
  z-index: 1;
}

.hero-img-ring img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  animation: imageFloat 5s ease-in-out infinite;
}

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

/* Floating tech tags */
.hero-tag {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-primary);
  z-index: 3;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: tagFloat 4s ease-in-out infinite;
}

.hero-tag:nth-child(2) {
  top: 10%;
  right: -20px;
  animation-delay: 0.5s;
}
.hero-tag:nth-child(3) {
  bottom: 20%;
  left: -30px;
  animation-delay: 1s;
}
.hero-tag:nth-child(4) {
  top: 50%;
  right: -40px;
  animation-delay: 1.5s;
}
.hero-tag:nth-child(5) {
  top: 30%;
  left: -20px;
  animation-delay: 1s;
}
.hero-tag:nth-child(6) {
  bottom: -10%;
  right: 130px;
  animation-delay: 0.5s;
}
.hero-tag:nth-child(7) {
  top: -10%;
  left: 130px;
  animation-delay: 1s;
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-desc {
    margin: 0 auto 32px;
  }
  .hero-img-wrap {
    order: -1;
  }
  .hero-tag {
    display: none;
  }
  .hero-img-ring {
    width: 240px;
    height: 240px;
  }
}

/* ──────────────────────────────────────────
   ABOUT
────────────────────────────────────────── */
.about-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
}

.about__img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

.about__img:hover {
  transform: scale(1.02);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.about__badge span {
  display: block;
  font-size: 26px;
  font-weight: 900;
}

.about__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--txt-primary), var(--clr-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__content h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.about__content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--txt-secondary);
  margin-bottom: 14px;
}

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

.about__stat {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  transition: var(--t-normal);
}

.about__stat:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.about__stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  font-size: 11px;
  color: var(--txt-muted);
  display: block;
  line-height: 1.3;
}

.about__edu {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: var(--t-normal);
}

.about__edu:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--border-hover);
}

.about__edu-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.about__edu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-primary);
  margin: 0 0 4px;
}

.about__edu-sub {
  font-size: 13px;
  color: var(--txt-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__img-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .about__badge {
    bottom: -12px;
    right: -12px;
  }
}

/* ──────────────────────────────────────────
   PROJECTS
────────────────────────────────────────── */
.projects-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-base);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-hover);
}

.project-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 0;
  line-height: 1.3;
}

.project-card__solo {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.15);
  color: var(--clr-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.05em;
}

.project-card__subtitle {
  font-size: 12px;
  color: var(--txt-muted);
  margin: 0;
  line-height: 1.5;
}

.project-card__desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--txt-secondary);
  margin: 0;
  flex: 1;
}

.pipeline-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 8px;
}

.project-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pipe-step {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 11px;
  color: var(--txt-secondary);
  font-weight: 500;
}

.pipe-arrow {
  font-size: 10px;
  color: var(--txt-muted);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.project-metrics.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  padding: 10px 6px;
  text-align: center;
  transition: var(--t-fast);
}

.metric-box:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--border);
}

.metric-box__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt-primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-box__label {
  font-size: 10px;
  color: var(--txt-muted);
  display: block;
  line-height: 1.3;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stk {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
}

.stk-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.22);
}
.stk-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.22);
}
.stk-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.22);
}
.stk-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.22);
}
.stk-coral {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.22);
}
.stk-green {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.22);
}

.project-highlight {
  background: rgba(99, 102, 241, 0.07);
  border-left: 3px solid var(--clr-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--txt-secondary);
}

.project-card__links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r-md);
  padding: 7px 13px;
  text-decoration: none;
  transition: var(--t-normal);
}

.project-card__link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--clr-primary);
  color: var(--txt-primary);
  transform: translateY(-1px);
}

/* ── Hidden projects wrapper ── */
.projects-more {
  display: contents; /* Children become direct grid items of .projects-grid */
}

.projects-more .project-card {
  display: none; /* hidden by default */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.projects-more.open .project-card {
  display: flex;
}

.projects-more.open .project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── View More trigger card ── */
.card-view-more {
  background: var(--bg-card, #161630);
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--r-xl, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
  min-height: 300px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-view-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-view-more:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-4px);
}

.card-view-more:hover::before {
  opacity: 1;
}

.card-view-more.open {
  display: none; /* hide trigger once expanded */
}

.vmk-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition:
    transform 0.4s ease,
    background 0.3s ease;
}

.card-view-more:hover .vmk-icon {
  transform: scale(1.1) rotate(10deg);
  background: rgba(99, 102, 241, 0.2);
}

.vmk-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt-primary, #f1f5f9);
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.vmk-subtitle {
  font-size: 13px;
  color: var(--txt-muted, #64748b);
  margin: 0;
  line-height: 1.6;
  max-width: 220px;
}

.vmk-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--clr-primary-light, #818cf8);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.vmk-projects-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 280px;
}

.vmk-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--txt-secondary, #94a3b8);
}

.vmk-arrow {
  font-size: 20px;
  color: var(--clr-primary-light, #818cf8);
  animation: bounceDown 1.5s ease infinite;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ── Collapse button ── */
.btn-collapse {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  background: transparent;
  color: var(--clr-primary-light, #818cf8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-collapse:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.6);
  color: var(--txt-primary, #f1f5f9);
}

.btn-collapse.show {
  display: flex;
}

.divider-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 2px 0;
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-metrics.c4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ──────────────────────────────────────────
   SKILLS
────────────────────────────────────────── */
.skills-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-raised);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: var(--t-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card__hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.skill-card__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ico-blue {
  background: rgba(59, 130, 246, 0.15);
}
.ico-teal {
  background: rgba(20, 184, 166, 0.15);
}
.ico-purple {
  background: rgba(139, 92, 246, 0.15);
}
.ico-amber {
  background: rgba(245, 158, 11, 0.15);
}
.ico-coral {
  background: rgba(239, 68, 68, 0.15);
}
.ico-green {
  background: rgba(16, 185, 129, 0.15);
}

.skill-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--txt-secondary);
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
  transition: var(--t-normal);
}

.skill-tag:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* ──────────────────────────────────────────
   CERTIFICATIONS
────────────────────────────────────────── */
.certs-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-base);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--t-normal);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cert-card:hover::after {
  transform: scaleX(1);
}

.cert-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cert-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 0;
  line-height: 1.3;
}

.cert-card__issuer {
  font-size: 13px;
  color: var(--txt-muted);
  margin: 0;
}

.cert-card__status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  width: fit-content;
  letter-spacing: 0.03em;
}

.status-progress {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-planned {
  background: rgba(99, 102, 241, 0.15);
  color: var(--clr-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.cert-card__desc {
  font-size: 13px;
  color: var(--txt-muted);
  line-height: 1.65;
  margin: 0;
}

/* ──────────────────────────────────────────
   CONTACT
────────────────────────────────────────── */
.contact-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-raised);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}
.contact-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}
.contact-header p {
  color: var(--txt-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-map iframe {
  width: 100%;
  min-height: 360px;
  border-radius: var(--r-xl);
  border: none;
  filter: grayscale(20%) contrast(1.05) brightness(0.85);
}

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

.contact-form .input-row {
  display: flex;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--txt-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--t-normal);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--txt-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form button {
  background: var(--grad-primary);
  border: none;
  padding: 14px 28px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: var(--t-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.form-status {
  font-size: 13px;
  min-height: 18px;
  line-height: 1.5;
}
.fa-spinner.fa-spin {
  animation: spin 0.8s linear infinite;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-form .input-row {
    flex-direction: column;
  }
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-primary);
  margin-bottom: 6px;
}
.footer-column a,
.footer-column p {
  color: var(--txt-muted);
  font-size: 14px;
}
.footer-column a:hover {
  color: var(--clr-primary-light);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--txt-muted);
  font-size: 1rem;
  transition: var(--t-normal);
}

.social-icons a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}

/* ──────────────────────────────────────────
   BACK TO TOP
────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--grad-primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--t-normal);
  z-index: 900;
  box-shadow: var(--shadow-glow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
}

/* ── Experience Section ── */
.experience-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07), transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

/* ── Timeline wrapper ── */
.exp-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-accent), transparent);
  border-radius: 2px;
}

/* ── Timeline item ── */
.exp-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.exp-item.show {
  opacity: 1;
  transform: translateX(0);
}

.exp-item:last-child {
  margin-bottom: 0;
}

/* Dot on timeline */
.exp-dot {
  position: absolute;
  left: -47px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  z-index: 1;
}

.exp-item:hover .exp-dot {
  background: var(--clr-primary);
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.2),
    0 0 20px rgba(99, 102, 241, 0.4);
}

/* Card */
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 2px 2px 0 0;
}

.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

.exp-card:hover::before {
  transform: scaleX(1);
}

/* Card header */
.exp-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.exp-card__left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.exp-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.exp-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 0 0 3px;
  font-family: var(--font-head);
  line-height: 1.3;
}

.exp-card__company {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-accent);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--txt-muted);
}

.exp-meta-item i {
  font-size: 13px;
}

/* Status badges */
.exp-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-current {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
  animation: currentPulse 2s ease infinite;
}

@keyframes currentPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

.badge-past {
  background: rgba(99, 102, 241, 0.1);
  color: var(--clr-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-intern {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Divider */
.exp-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}

/* Responsibilities */
.exp-responsibilities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.exp-responsibility {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--txt-secondary);
}

.exp-responsibility::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Tech stack used */
.exp-stack-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 8px;
}

.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}

/* Highlight metric */
.exp-highlight {
  background: rgba(99, 102, 241, 0.07);
  border-left: 3px solid var(--clr-primary);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--txt-secondary);
  margin-top: 12px;
}

.exp-highlight strong {
  color: var(--txt-primary);
}

/* Education card */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #f59e0b);
  border-radius: 0 0 20px 20px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.edu-card:hover::before {
  transform: scaleX(1);
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.edu-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-degree {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 0 0 4px;
  font-family: var(--font-head);
}

.edu-spec {
  font-size: 12px;
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-meta span {
  font-size: 12px;
  color: var(--txt-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Publications mini card */
.pub-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--txt-secondary);
  line-height: 1.6;
}

.pub-card i {
  font-size: 18px;
  color: var(--clr-primary-light);
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .exp-timeline {
    padding-left: 28px;
  }
  .exp-timeline::before {
    left: 10px;
  }
  .exp-dot {
    left: -38px;
    width: 24px;
    height: 24px;
  }
  .exp-card {
    padding: 20px;
  }
  .exp-card__header {
    flex-direction: column;
  }
}

/* ──────────────────────────────────────────
   UPDATE POPUP
────────────────────────────────────────── */
.update-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.update-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.update-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.update-popup-overlay.show .update-popup {
  transform: scale(1) translateY(0);
}

.update-popup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.update-popup__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.update-popup__title-block {
  flex: 1;
}

.update-popup__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-popup__badge--project { background: rgba(99,102,241,0.15); color: var(--clr-primary-light); }
.update-popup__badge--certification { background: rgba(245,158,11,0.15); color: #fcd34d; }
.update-popup__badge--feature { background: rgba(34,211,238,0.15); color: #67e8f9; }
.update-popup__badge--achievement { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.update-popup__badge--blog { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.update-popup__badge--experience { background: rgba(239,68,68,0.15); color: #fca5a5; }

.update-popup__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt-primary);
  margin: 4px 0 0;
}

.update-popup__close {
  background: none;
  border: none;
  color: var(--txt-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}
.update-popup__close:hover { color: var(--txt-primary); }

.update-popup__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.update-popup__desc {
  color: var(--txt-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.update-popup__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--txt-muted);
}

.update-popup__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.update-popup__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(99,102,241,0.1);
  color: var(--clr-primary-light);
  border: 1px solid rgba(99,102,241,0.2);
}

.update-popup__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary-light);
  transition: color 0.2s ease;
}
.update-popup__link:hover { color: var(--txt-primary); }

.update-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.update-popup__version {
  font-size: 12px;
  color: var(--txt-muted);
}

/* ──────────────────────────────────────────
   REDUCED MOTION
────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-orb,
  .hero-img-ring::before,
  .hero-img-ring img,
  .hero-tag,
  .hero-badge .pulse,
  .hero-name,
  .preloader-ring,
  .preloader-text,
  @keyframes spin,
  @keyframes pulse,
  @keyframes pulseGlow,
  @keyframes shimmer,
  @keyframes caretBlink,
  @keyframes imageFloat,
  @keyframes tagFloat,
  @keyframes orbMove,
  @keyframes bounceDown {
    animation: none !important;
  }
}
