/* ============================================================
   PORTFOLIO DESIGN SYSTEM — Futuristic Dark + Professional Light
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — DARK (default)
   ============================================================ */
:root {
  /* backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 70, 0.75);
  --bg-navbar: rgba(10, 14, 26, 0.72);
  --bg-hero-grad: linear-gradient(135deg, #0a0e1a 0%, #020617 40%, #0c0a2a 100%);
  --bg-section-alt: rgba(15, 23, 42, 0.35);

  /* accents */
  --accent-primary: #6366f1;
  --accent-secondary: #06b6d4;
  --accent-pink: #ec4899;
  --accent-purple: #a78bfa;

  /* glow */
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 60px rgba(99, 102, 241, 0.10);
  --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.30), 0 0 60px rgba(6, 182, 212, 0.08);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.30);
  --glow-card: 0 4px 30px rgba(0, 0, 0, 0.40);
  --glow-btn: 0 0 18px rgba(99, 102, 241, 0.55), 0 0 60px rgba(99, 102, 241, 0.15);

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

  /* borders */
  --border-card: 1px solid rgba(99, 102, 241, 0.18);
  --border-subtle: 1px solid rgba(148, 163, 184, 0.08);

  /* glassmorphism */
  --glass-blur: 16px;
  --glass-bg: rgba(15, 23, 42, 0.55);

  /* misc */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);

  /* nav height */
  --nav-h: 72px;

  /* orb colors */
  --orb1: rgba(99, 102, 241, 0.18);
  --orb2: rgba(6, 182, 212, 0.14);
  --orb3: rgba(236, 72, 153, 0.12);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(241, 245, 249, 0.92);
  --bg-navbar: rgba(255, 255, 255, 0.78);
  --bg-hero-grad: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #ede9fe 100%);
  --bg-section-alt: rgba(241, 245, 249, 0.55);

  --accent-primary: #4f46e5;
  --accent-secondary: #0ea5e9;
  --accent-pink: #db2777;
  --accent-purple: #7c3aed;

  --glow-primary: 0 0 0 transparent;
  --glow-secondary: 0 0 0 transparent;
  --glow-pink: 0 0 0 transparent;
  --glow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --glow-btn: 0 4px 14px rgba(79, 70, 229, 0.22);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #4f46e5;

  --border-card: 1px solid rgba(0, 0, 0, 0.07);
  --border-subtle: 1px solid rgba(0, 0, 0, 0.04);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);

  --orb1: rgba(79, 70, 229, 0.08);
  --orb2: rgba(14, 165, 233, 0.06);
  --orb3: rgba(219, 39, 119, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity .5s ease, visibility .5s ease;
}

.loader-wrap.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--text-muted);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* ============================================================
   ANIMATED BACKGROUND ORBS
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.bg-orbs .o1 {
  width: 520px;
  height: 520px;
  top: -10%;
  left: -8%;
  background: var(--orb1);
}

.bg-orbs .o2 {
  width: 440px;
  height: 440px;
  bottom: -12%;
  right: -6%;
  background: var(--orb2);
  animation-delay: -6s;
  animation-duration: 22s;
}

.bg-orbs .o3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 55%;
  background: var(--orb3);
  animation-delay: -12s;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, -40px) scale(1.12);
  }

  100% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: var(--border-subtle);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-card);
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.theme-toggle-icon {
  font-size: 1.35rem;
  color: var(--text-primary);
  transition: color var(--transition), transform var(--transition);
}

.theme-toggle:hover .theme-toggle-icon {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* mobile nav */
@media (max-width:768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: 70%;
    height: calc(100vh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-navbar);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-left: var(--border-card);
    transition: right var(--transition);
    gap: 1.6rem;
  }

  .nav-links.open {
    right: 0;
  }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem clamp(1.5rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: .75rem;
}

.section-label i {
  font-size: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .6rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 3rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  background: var(--bg-hero-grad);
  overflow: hidden;
}

/* decorative grid behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--text-muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1280px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text-side {
  flex: 1;
  text-align: left;
}

.hero-image-side {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .hero-text-side {
    text-align: center;
  }
}

.hero-img-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
}

@media (max-width: 992px) {
  .hero-img-wrap {
    width: 280px;
    height: 280px;
  }
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 5px solid var(--bg-primary);
  position: relative;
  z-index: 2;
}

.hero-img-backdrop {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  filter: blur(30px);
  border-radius: 50%;
  opacity: 0.35;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.22);
  margin-bottom: 1.6rem;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.15);
  }

  50% {
    box-shadow: 0 0 18px 4px rgba(6, 182, 212, 0.10);
  }
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero-name .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.hero-desc {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .hero-desc {
    margin: 0 auto 2rem auto;
  }
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .6rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 992px) {
  .hero-tools {
    justify-content: center;
  }
}

.hero-tools span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: .32rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-accent);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  transition: all var(--transition);
}

.hero-tools span:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.hero-tools img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: #fff;
  box-shadow: var(--glow-btn);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.65), 0 0 80px rgba(99, 102, 241, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* ============================================================
   GLASS CARD (reusable)
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width:768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  padding: 2rem;
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-card .icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  background: rgba(99, 102, 241, 0.10);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.about-card p {
  color: var(--text-secondary);
  font-size: .94rem;
}

/* highlight stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.2rem 1.8rem;
  flex: 1;
  min-width: 140px;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-top: .2rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.skill-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.skill-category-title i {
  color: var(--accent-primary);
  font-size: 1.3rem;
  background: rgba(99, 102, 241, 0.1);
  padding: .3rem .4rem;
  border-radius: var(--radius-sm);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all var(--transition);
}

.skill-tags span img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.skill-tags span i {
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.skill-tags span:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.25);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2rem;
}

.experience-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(99, 102, 241, 0.1));
}

.experience-item {
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-primary);
  z-index: 2;
  transition: all var(--transition);
}

.experience-item:hover::before {
  background: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary);
}

.experience-card {
  padding: 2rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: .2rem;
}

.exp-company {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-date {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.exp-body ul {
  padding-left: 1.2rem;
  margin-top: .5rem;
}

.exp-body li {
  position: relative;
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: .6rem;
  list-style-type: disc;
}

.exp-body li::marker {
  color: var(--accent-secondary);
}

.exp-tools {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.exp-tools span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  transition: all var(--transition);
}

.exp-tools span img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.exp-tools span i {
  font-size: 1rem;
  color: var(--accent-primary);
}

.exp-tools span:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.exp-hierarchy {
  border-left: 2px solid rgba(99, 102, 241, 0.2);
  padding-left: 1.5rem;
  margin-left: 0.4rem;
  margin-top: 1rem;
}

.exp-role {
  position: relative;
}

.exp-role::before {
  content: '';
  position: absolute;
  left: -1.82rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  transition: all var(--transition);
}

.exp-role:hover::before {
  background: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  /* important for overlay */
}

.project-card-header {
  padding: 1.6rem 1.6rem .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.project-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.project-card-icon.c1 {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

.project-card-icon.c2 {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-secondary);
}

.project-card-icon.c3 {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

.project-card-icon.c4 {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-purple);
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.project-card-body {
  padding: 0 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-problem {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: var(--border-subtle);
}

.project-tags span {
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-accent);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.project-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: var(--border-subtle);
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

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

.btn-see-more {
  margin-top: 1rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-see-more i {
  transition: transform 0.2s ease;
}

.btn-see-more:hover i {
  transform: translateX(4px);
}

/* ============================================================
   PROJECT MODALS
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  /* hidden by default */
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem 1rem 1rem;
}

.project-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal .modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-right: 2rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
}

@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-col h4 i {
  color: var(--accent-primary);
}

.modal-col p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-insights h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-insights h4 i {
  color: var(--accent-secondary);
}

.modal-insights ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.modal-insights li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.modal-insights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.project-modal .project-tags {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.achievement-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.achievement-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: var(--border-subtle);
}

.achievement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.achievement-card:hover .achievement-img {
  transform: scale(1.05);
}

.achievement-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.achievement-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: .4rem;
}

.achievement-org {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.achievement-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.achievement-desc strong {
  color: var(--text-primary);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


.education-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.edu-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: var(--border-subtle);
  padding-bottom: 1rem;
}

.edu-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
}

.edu-details {
  flex: 1;
  min-width: 200px;
}

.edu-school {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.edu-location {
  font-size: .85rem;
  color: var(--text-muted);
}

.edu-date {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.edu-body {
  margin-top: .5rem;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: .6rem;
}

.edu-grade {
  font-size: .95rem;
  color: var(--text-secondary);
}

.edu-grade strong {
  color: var(--text-primary);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Contact Form */
.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  margin-top: 0.5rem;
  justify-content: center;
  width: 100%;
}

.contact-card {
  padding: 1.8rem;
  text-align: center;
}

.contact-card i {
  font-size: 1.8rem;
  margin-bottom: .8rem;
  color: var(--accent-primary);
}

.contact-card h4 {
  font-size: .95rem;
  margin-bottom: .3rem;
}

.contact-card p {
  font-size: .88rem;
  color: var(--text-secondary);
}

.contact-card a {
  color: var(--text-accent);
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--accent-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
  border-top: var(--border-subtle);
}

.footer .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 999px;
}

/* ============================================================
   RESPONSIVE POLISH
   ============================================================ */
@media (max-width: 1024px) {

  .skills-grid,
  .achievements-grid,
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .about-grid,
  .skills-grid,
  .project-grid,
  .achievements-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .section {
    padding: 4rem 1.2rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .stats-row {
    flex-direction: column;
  }

  .about-grid {
    gap: 1.2rem;
  }

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

  .resume-content {
    flex-direction: column;
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

.clickable-img {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.clickable-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}