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

/* ===== CSS Variables / Design Tokens ===== */
:root {
  /* Primary Palette */
  --clr-primary: #6C63FF;
  --clr-primary-light: #8B83FF;
  --clr-primary-dark: #4F46E5;
  --clr-accent: #00D4AA;
  --clr-accent-light: #34E0C0;
  --clr-accent-2: #FF6B6B;
  --clr-accent-3: #FFC857;

  /* Backgrounds */
  --clr-bg-deep: #0A0A1A;
  --clr-bg-primary: #0F0F23;
  --clr-bg-secondary: #161632;
  --clr-bg-card: rgba(22, 22, 50, 0.6);
  --clr-bg-glass: rgba(255, 255, 255, 0.04);
  --clr-bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Text */
  --clr-text-primary: #F0F0F5;
  --clr-text-secondary: #A0A0C0;
  --clr-text-muted: #6B6B8D;

  /* Borders */
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(108, 99, 255, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6C63FF, #00D4AA);
  --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #4F46E5 40%, #00D4AA 100%);
  --gradient-card: linear-gradient(145deg, rgba(108, 99, 255, 0.08), rgba(0, 212, 170, 0.04));
  --gradient-text: linear-gradient(135deg, #6C63FF, #00D4AA);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
  --shadow-glow-accent: 0 0 30px rgba(0, 212, 170, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg-deep);
  color: var(--clr-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

/* ===== Aurora Gradient Background ===== */
.aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora__canvas {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  filter: blur(100px) saturate(1.4);
  opacity: 0.45;
}

/* Aurora Blobs — each with unique color, path, size, and timing */
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Blob 1: Primary purple — large, slow drift top-right */
.aurora__blob--1 {
  width: 45%;
  height: 45%;
  background: radial-gradient(circle at center, #7B68EE, #6C63FF 40%, transparent 70%);
  top: 5%;
  right: 10%;
  animation: aurora1 18s ease-in-out infinite alternate;
}

/* Blob 2: Teal/Cyan — mid-size, flowing bottom-left */
.aurora__blob--2 {
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at center, #00F5D4, #00D4AA 40%, transparent 70%);
  bottom: 5%;
  left: 5%;
  animation: aurora2 22s ease-in-out infinite alternate;
}

/* Blob 3: Deep indigo — subtle, center wanderer */
.aurora__blob--3 {
  width: 50%;
  height: 50%;
  background: radial-gradient(circle at center, #4338CA, #3730A3 35%, transparent 65%);
  top: 20%;
  left: 25%;
  animation: aurora3 25s ease-in-out infinite alternate;
}

/* Blob 4: Emerald green — small accent, drifts diagonally */
.aurora__blob--4 {
  width: 30%;
  height: 30%;
  background: radial-gradient(circle at center, #34D399, #10B981 40%, transparent 70%);
  top: 50%;
  right: 20%;
  animation: aurora4 20s ease-in-out infinite alternate;
}

/* Blob 5: Soft violet — large background wash */
.aurora__blob--5 {
  width: 55%;
  height: 55%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.6), rgba(109, 40, 217, 0.3) 40%, transparent 65%);
  bottom: 15%;
  right: 25%;
  animation: aurora5 28s ease-in-out infinite alternate;
}

/* Blob 6: Electric cyan — small fast accent */
.aurora__blob--6 {
  width: 25%;
  height: 25%;
  background: radial-gradient(circle at center, #22D3EE, #06B6D4 40%, transparent 70%);
  top: 35%;
  left: 10%;
  animation: aurora6 15s ease-in-out infinite alternate;
}

/* Aurora Keyframes — organic, flowing paths */
@keyframes aurora1 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-8%, 12%) rotate(45deg) scale(1.15);
  }
  50% {
    transform: translate(5%, -8%) rotate(90deg) scale(0.9);
  }
  75% {
    transform: translate(-12%, -5%) rotate(135deg) scale(1.1);
  }
  100% {
    transform: translate(10%, 8%) rotate(180deg) scale(1.05);
  }
}

@keyframes aurora2 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  20% {
    transform: translate(15%, -10%) rotate(-30deg) scale(1.2);
  }
  40% {
    transform: translate(-5%, -18%) rotate(-60deg) scale(0.85);
  }
  60% {
    transform: translate(10%, 5%) rotate(-120deg) scale(1.1);
  }
  80% {
    transform: translate(-10%, 12%) rotate(-160deg) scale(0.95);
  }
  100% {
    transform: translate(8%, -6%) rotate(-180deg) scale(1.05);
  }
}

@keyframes aurora3 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(10%, 10%) scale(1.2) rotate(60deg);
  }
  66% {
    transform: translate(-8%, 5%) scale(0.85) rotate(120deg);
  }
  100% {
    transform: translate(5%, -12%) scale(1.1) rotate(180deg);
  }
}

@keyframes aurora4 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  30% {
    transform: translate(-20%, 8%) rotate(40deg) scale(1.3);
  }
  60% {
    transform: translate(12%, -15%) rotate(100deg) scale(0.8);
  }
  100% {
    transform: translate(-8%, 12%) rotate(180deg) scale(1.15);
  }
}

@keyframes aurora5 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-6%, -8%) rotate(90deg) scale(1.15);
  }
  100% {
    transform: translate(8%, 5%) rotate(180deg) scale(0.9);
  }
}

@keyframes aurora6 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  20% {
    transform: translate(18%, 12%) rotate(-50deg) scale(1.4);
  }
  50% {
    transform: translate(-12%, -8%) rotate(-100deg) scale(0.75);
  }
  80% {
    transform: translate(8%, -15%) rotate(-150deg) scale(1.2);
  }
  100% {
    transform: translate(-5%, 10%) rotate(-180deg) scale(1);
  }
}

/* Noise texture overlay — adds organic grain */
.aurora__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Subtle grid pattern */
.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.75rem 2rem;
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

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

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
  border-radius: 1px;
}

.navbar__link:hover {
  color: var(--clr-text-primary);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Section Base ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section__container {
  max-width: 1100px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.section__label::before,
.section__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--clr-accent);
  opacity: 0.5;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.2;
}

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
}

/* ===== Dynamic Avatar Container ===== */
.hero__avatar-container {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glow backdrop */
.hero__avatar-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, rgba(0, 212, 170, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* SVG Orbit Rings */
.hero__avatar-orbit {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__orbit-svg {
  width: 100%;
  height: 100%;
}

.hero__avatar-orbit--1 {
  width: 260px;
  height: 260px;
  animation: orbitSpin 20s linear infinite;
}

.hero__avatar-orbit--2 {
  width: 310px;
  height: 310px;
  animation: orbitSpin 30s linear infinite reverse;
}

.hero__avatar-orbit--3 {
  width: 340px;
  height: 340px;
  animation: orbitSpin 40s linear infinite;
}

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

/* ===== Orbiting Skill Icons ===== */
.hero__orbit-icons {
  position: absolute;
  width: 300px;
  height: 300px;
  animation: orbitSpin 24s linear infinite;
}

.hero__orbit-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 15, 35, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: var(--transition-base);
  /* Counter-rotate to keep icons upright */
  animation: counterSpin 24s linear infinite;
  z-index: 5;
}

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

.hero__orbit-icon:hover {
  transform: rotate(0deg) scale(1.3) !important;
  border-color: var(--clr-primary-light);
  box-shadow:
    0 0 20px rgba(108, 99, 255, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Position each icon around the circle (300px diameter, radius=150px) */
.hero__orbit-icon--1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero__orbit-icon--2 {
  top: 20%;
  right: 0;
  transform: translateY(-50%);
}

.hero__orbit-icon--3 {
  bottom: 20%;
  right: 0;
  transform: translateY(50%);
}

.hero__orbit-icon--4 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero__orbit-icon--5 {
  bottom: 20%;
  left: 0;
  transform: translateY(50%);
}

.hero__orbit-icon--6 {
  top: 20%;
  left: 0;
  transform: translateY(-50%);
}

/* Individual icon glow colors on hover */
.hero__orbit-icon--1:hover { border-color: #6C63FF; box-shadow: 0 0 20px rgba(108, 99, 255, 0.4), 0 4px 16px rgba(0,0,0,0.3); }
.hero__orbit-icon--2:hover { border-color: #00D4AA; box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 4px 16px rgba(0,0,0,0.3); }
.hero__orbit-icon--3:hover { border-color: #22D3EE; box-shadow: 0 0 20px rgba(34, 211, 238, 0.4), 0 4px 16px rgba(0,0,0,0.3); }
.hero__orbit-icon--4:hover { border-color: #FFC857; box-shadow: 0 0 20px rgba(255, 200, 87, 0.4), 0 4px 16px rgba(0,0,0,0.3); }
.hero__orbit-icon--5:hover { border-color: #FF6B6B; box-shadow: 0 0 20px rgba(255, 107, 107, 0.4), 0 4px 16px rgba(0,0,0,0.3); }
.hero__orbit-icon--6:hover { border-color: #34D399; box-shadow: 0 0 20px rgba(52, 211, 153, 0.4), 0 4px 16px rgba(0,0,0,0.3); }

/* ===== Floating Particles ===== */
.hero__particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--clr-primary-light);
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

.hero__particle--1 {
  width: 4px; height: 4px;
  top: 10%; left: 15%;
  background: #6C63FF;
  animation-delay: 0s;
  animation-duration: 5s;
}

.hero__particle--2 {
  width: 3px; height: 3px;
  top: 25%; right: 10%;
  background: #00D4AA;
  animation-delay: 0.8s;
  animation-duration: 6.5s;
}

.hero__particle--3 {
  width: 5px; height: 5px;
  bottom: 20%; left: 8%;
  background: #22D3EE;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.hero__particle--4 {
  width: 3px; height: 3px;
  bottom: 10%; right: 20%;
  background: #FFC857;
  animation-delay: 2.2s;
  animation-duration: 5.5s;
}

.hero__particle--5 {
  width: 4px; height: 4px;
  top: 50%; left: 2%;
  background: #FF6B6B;
  animation-delay: 3s;
  animation-duration: 6s;
}

.hero__particle--6 {
  width: 3px; height: 3px;
  top: 5%; right: 30%;
  background: #7B68EE;
  animation-delay: 0.5s;
  animation-duration: 7.5s;
}

.hero__particle--7 {
  width: 5px; height: 5px;
  bottom: 30%; right: 5%;
  background: #34D399;
  animation-delay: 1.8s;
  animation-duration: 5.8s;
}

.hero__particle--8 {
  width: 3px; height: 3px;
  top: 40%; right: 2%;
  background: #6C63FF;
  animation-delay: 2.8s;
  animation-duration: 6.2s;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  20% {
    opacity: 0.8;
    transform: translate(5px, -10px) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-3px, -20px) scale(1.2);
  }
  80% {
    opacity: 0.6;
    transform: translate(8px, -30px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(0, -40px) scale(0);
  }
}

/* ===== Main Photo Avatar (inside container) ===== */
.hero__avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hero__avatar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--clr-primary);
  border-right-color: var(--clr-accent);
  animation: ringRotate 4s linear infinite;
}

.hero__avatar-ring--2 {
  width: 115%;
  height: 115%;
  border-top-color: var(--clr-accent);
  border-right-color: var(--clr-primary);
  animation-direction: reverse;
  animation-duration: 6s;
}

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

.hero__avatar-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  border: 3px solid rgba(108, 99, 255, 0.3);
  box-shadow:
    0 0 20px rgba(108, 99, 255, 0.2),
    0 0 40px rgba(0, 212, 170, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition-base);
}

.hero__avatar:hover .hero__avatar-photo {
  border-color: var(--clr-accent);
  box-shadow:
    0 0 30px rgba(108, 99, 255, 0.3),
    0 0 60px rgba(0, 212, 170, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

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

.hero__title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--clr-text-secondary);
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--clr-primary-light);
  background: var(--clr-bg-glass);
  transform: translateY(-2px);
}

.btn__icon {
  font-size: 1.1em;
}

/* ===== About Section ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__grid--3col {
  grid-template-columns: 280px 1fr 1fr;
  gap: 2.5rem;
}

/* About Photo */
.about__photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about__photo-frame {
  position: relative;
  width: 240px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
}

.about__photo-frame:hover .about__photo {
  transform: scale(1.05);
}

.about__photo-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: var(--gradient-primary) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: var(--transition-base);
}

.about__photo-frame:hover .about__photo-border {
  opacity: 1;
}

.about__photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.6), transparent);
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about__photo-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.about__photo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-primary);
}

.about__photo-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-accent);
  padding: 0.2rem 0.75rem;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-full);
}

.about__text p {
  color: var(--clr-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about__info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.about__info-item:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-bg-glass-hover);
  transform: translateX(4px);
}

.about__info-icon {
  font-size: 1.25rem;
  color: var(--clr-primary-light);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius-sm);
}

.about__info-content {
  flex: 1;
}

.about__info-label {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.about__info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-primary);
}

/* Interests */
.about__interests {
  margin-top: 2rem;
}

.about__interests-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: 1rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__tag {
  padding: 0.4rem 1rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--clr-text-secondary);
  transition: var(--transition-base);
}

.about__tag:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(0, 212, 170, 0.08);
}

/* ===== Education Section ===== */
.education__timeline {
  position: relative;
  padding-left: 3rem;
}

.education__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent), transparent);
}

.education__item {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.education__item:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(8px);
}

.education__item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 2rem;
  width: 14px;
  height: 14px;
  background: var(--clr-primary);
  border-radius: 50%;
  border: 3px solid var(--clr-bg-deep);
  transform: translateX(-6px);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2);
}

.education__year {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  background: rgba(108, 99, 255, 0.12);
  color: var(--clr-primary-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.education__degree {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 0.25rem;
}

.education__school {
  font-size: 0.95rem;
  color: var(--clr-accent);
  font-weight: 500;
}

/* ===== Experience Section ===== */
.experience__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.experience__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.experience__card:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.experience__card:hover::before {
  opacity: 1;
}

.experience__card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.experience__card-icon--edu {
  background: rgba(108, 99, 255, 0.12);
  color: var(--clr-primary-light);
}

.experience__card-icon--research {
  background: rgba(0, 212, 170, 0.12);
  color: var(--clr-accent);
}

.experience__card-icon--teach {
  background: rgba(255, 200, 87, 0.12);
  color: var(--clr-accent-3);
}

.experience__card-icon--admin {
  background: rgba(255, 107, 107, 0.12);
  color: var(--clr-accent-2);
}

.experience__card-icon--biz {
  background: rgba(0, 212, 170, 0.12);
  color: var(--clr-accent);
}

.experience__card-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary-light);
  margin-bottom: 0.25rem;
}

.experience__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 0.25rem;
}

.experience__card-org {
  font-size: 0.9rem;
  color: var(--clr-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.experience__card-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ===== Skills Section ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skills__category {
  padding: 2rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.skills__category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: var(--transition-base);
}

.skills__category:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skills__category:hover::after {
  opacity: 1;
}

.skills__category--academic::after { background: var(--clr-primary); }
.skills__category--managerial::after { background: var(--clr-accent); }
.skills__category--tech::after { background: var(--clr-accent-3); }
.skills__category--business::after { background: var(--clr-accent-2); }

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

.skills__category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.skills__category--academic .skills__category-icon {
  background: rgba(108, 99, 255, 0.12);
  color: var(--clr-primary-light);
}

.skills__category--managerial .skills__category-icon {
  background: rgba(0, 212, 170, 0.12);
  color: var(--clr-accent);
}

.skills__category--tech .skills__category-icon {
  background: rgba(255, 200, 87, 0.12);
  color: var(--clr-accent-3);
}

.skills__category--business .skills__category-icon {
  background: rgba(255, 107, 107, 0.12);
  color: var(--clr-accent-2);
}

.skills__category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text-primary);
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  transition: var(--transition-fast);
}

.skills__item:hover {
  background: var(--clr-bg-glass-hover);
  color: var(--clr-text-primary);
  transform: translateX(4px);
}

.skills__item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skills__category--academic .skills__item-dot { background: var(--clr-primary); }
.skills__category--managerial .skills__item-dot { background: var(--clr-accent); }
.skills__category--tech .skills__item-dot { background: var(--clr-accent-3); }
.skills__category--business .skills__item-dot { background: var(--clr-accent-2); }

/* ===== Research Section ===== */
.research__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.research__text p {
  color: var(--clr-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.research__area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.research__area:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-bg-glass-hover);
  transform: translateX(6px);
}

.research__area-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.research__area-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-primary);
}

/* ===== Quote / Motto Section ===== */
.motto {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.motto__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.motto__inner::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-family: var(--font-serif);
  font-size: 12rem;
  color: var(--clr-primary);
  opacity: 0.08;
  line-height: 1;
}

.motto__text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--clr-text-primary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.motto__author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--clr-accent);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--clr-border);
}

.footer__text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.footer__text span {
  color: var(--clr-accent);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ===== Counter Animation ===== */
.counter-animate {
  display: inline-block;
}

/* =======================================================
   RESPONSIVE DESIGN — Desktop, Tablet, Mobile
   ======================================================= */

/* ----- Tablet landscape & small desktop (≤1024px) ----- */
@media (max-width: 1024px) {
  .section__container {
    max-width: 90%;
  }

  /* About: 3-col → stacked */
  .about__grid,
  .about__grid--3col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__photo-wrapper {
    order: -1;
  }

  .about__photo-frame {
    width: 200px;
    height: 260px;
    margin: 0 auto;
  }

  /* Skills: keep 2-col on tablet */
  .skills__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Research: single column */
  .research__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Education timeline */
  .education__timeline {
    padding-left: 2.5rem;
  }
}

/* ----- Tablet portrait & large mobile (≤768px) ----- */
@media (max-width: 768px) {
  /* Section spacing */
  .section {
    padding: 3.5rem 1.25rem;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

  .section__title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* ----- Navigation: hamburger menu ----- */
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--clr-border);
    z-index: 1000;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
  }

  /* ----- Hero section ----- */
  .hero {
    padding: 6rem 1.25rem 4rem;
    min-height: auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__name {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero__description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero__stats {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .hero__stat-number {
    font-size: 1.6rem;
  }

  .hero__stat-label {
    font-size: 0.7rem;
  }

  /* ----- Dynamic avatar scaling ----- */
  .hero__avatar-container {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
  }

  .hero__avatar {
    width: 130px;
    height: 130px;
  }

  .hero__avatar-photo {
    width: 110px;
    height: 110px;
  }

  .hero__avatar-orbit--1 { width: 210px; height: 210px; }
  .hero__avatar-orbit--2 { width: 250px; height: 250px; }
  .hero__avatar-orbit--3 { width: 280px; height: 280px; }
  .hero__orbit-icons { width: 240px; height: 240px; }

  .hero__orbit-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .hero__avatar-glow {
    width: 160px;
    height: 160px;
  }

  /* ----- Buttons ----- */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  /* ----- About section ----- */
  .about__text p {
    font-size: 0.9rem;
  }

  .about__tags {
    gap: 0.4rem;
  }

  .about__tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }

  .about__info-item {
    padding: 0.85rem 1rem;
  }

  .about__info-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .about__info-value {
    font-size: 0.85rem;
  }

  .about__info-label {
    font-size: 0.7rem;
  }

  /* ----- Education ----- */
  .education__timeline {
    padding-left: 2rem;
  }

  .education__item {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .education__item::before {
    left: -2rem;
    width: 12px;
    height: 12px;
    transform: translateX(-5px);
  }

  .education__degree {
    font-size: 1.05rem;
  }

  .education__school {
    font-size: 0.85rem;
  }

  /* ----- Experience ----- */
  .experience__card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .experience__card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .experience__card-title {
    font-size: 1.05rem;
  }

  .experience__card-desc {
    font-size: 0.82rem;
  }

  /* ----- Skills ----- */
  .skills__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skills__category {
    padding: 1.5rem;
  }

  .skills__category-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .skills__item {
    font-size: 0.82rem;
    padding: 0.5rem 0.7rem;
  }

  /* ----- Research ----- */
  .research__area {
    padding: 0.85rem 1rem;
  }

  .research__area-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .research__area-text {
    font-size: 0.85rem;
  }

  /* ----- Motto ----- */
  .motto {
    padding: 4rem 1.25rem;
  }

  .motto__inner {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .motto__text {
    font-size: 1rem;
  }

  .motto__inner::before {
    font-size: 8rem;
    top: -15px;
    left: 15px;
  }

  /* ----- Footer ----- */
  .footer {
    padding: 2rem 1.25rem;
  }

  .footer__text {
    font-size: 0.8rem;
  }

  /* Reduce aurora animation complexity on mobile for performance */
  .aurora__canvas {
    filter: blur(80px) saturate(1.2);
    opacity: 0.35;
  }
}

/* ----- Mobile (≤480px) ----- */
@media (max-width: 480px) {
  /* Hero */
  .hero {
    padding: 5.5rem 1rem 3rem;
  }

  .hero__name {
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1.2;
  }

  .hero__title {
    font-size: 0.85rem;
  }

  .hero__description {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .hero__stats {
    flex-direction: row;
    gap: 1rem;
  }

  .hero__stat-number {
    font-size: 1.4rem;
  }

  .hero__stat-label {
    font-size: 0.65rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  /* Avatar further scale */
  .hero__avatar-container {
    width: 240px;
    height: 240px;
    margin-bottom: 1.5rem;
  }

  .hero__avatar {
    width: 110px;
    height: 110px;
  }

  .hero__avatar-photo {
    width: 95px;
    height: 95px;
    border-width: 2px;
  }

  .hero__avatar-orbit--1 { width: 180px; height: 180px; }
  .hero__avatar-orbit--2 { width: 210px; height: 210px; }
  .hero__avatar-orbit--3 { width: 240px; height: 240px; }
  .hero__orbit-icons { width: 200px; height: 200px; }

  .hero__orbit-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .hero__particles {
    display: none;
  }

  .hero__avatar-glow {
    width: 120px;
    height: 120px;
  }

  /* Section */
  .section {
    padding: 3rem 1rem;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .section__label {
    font-size: 0.7rem;
  }

  .section__label::before,
  .section__label::after {
    width: 16px;
  }

  /* About photo */
  .about__photo-frame {
    width: 170px;
    height: 220px;
  }

  .about__photo-name {
    font-size: 0.9rem;
  }

  .about__interests-title {
    font-size: 0.9rem;
  }

  /* Education */
  .education__timeline {
    padding-left: 1.75rem;
  }

  .education__item {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .education__item::before {
    left: -1.75rem;
    width: 10px;
    height: 10px;
    transform: translateX(-4px);
  }

  .education__degree {
    font-size: 0.95rem;
  }

  .education__year {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }

  /* Experience */
  .experience__card {
    padding: 1.25rem;
  }

  .experience__card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .experience__card-title {
    font-size: 0.95rem;
  }

  .experience__card-period {
    font-size: 0.72rem;
  }

  .experience__card-org {
    font-size: 0.82rem;
  }

  .experience__card-desc {
    font-size: 0.78rem;
  }

  /* Skills */
  .skills__category {
    padding: 1.25rem;
  }

  .skills__category-title {
    font-size: 0.95rem;
  }

  .skills__item {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  /* Motto */
  .motto {
    padding: 3rem 1rem;
  }

  .motto__inner {
    padding: 2rem 1.25rem;
  }

  .motto__text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .motto__author {
    font-size: 0.8rem;
  }

  .motto__inner::before {
    font-size: 6rem;
    top: -10px;
    left: 10px;
  }

  /* Navbar mobile */
  .navbar {
    padding: 0.65rem 1rem;
  }

  .navbar__logo {
    font-size: 1.25rem;
  }

  .navbar__links {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--clr-border);
  }

  /* Research */
  .research__text p {
    font-size: 0.85rem;
  }

  .research__area {
    padding: 0.75rem 0.85rem;
  }

  .research__area-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .research__area-text {
    font-size: 0.8rem;
  }

  /* Reduce aurora even more for mobile performance */
  .aurora__canvas {
    filter: blur(60px) saturate(1.1);
    opacity: 0.3;
  }

  .aurora__blob--5,
  .aurora__blob--6 {
    display: none;
  }
}

/* ----- Very small phones (≤360px) ----- */
@media (max-width: 360px) {
  .hero__name {
    font-size: 1.4rem;
  }

  .hero__title {
    font-size: 0.78rem;
  }

  .hero__avatar-container {
    width: 210px;
    height: 210px;
  }

  .hero__avatar {
    width: 95px;
    height: 95px;
  }

  .hero__avatar-photo {
    width: 82px;
    height: 82px;
  }

  .hero__avatar-orbit--1 { width: 160px; height: 160px; }
  .hero__avatar-orbit--2 { width: 185px; height: 185px; }
  .hero__avatar-orbit--3 { width: 210px; height: 210px; }
  .hero__orbit-icons { width: 175px; height: 175px; }

  .hero__orbit-icon {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .about__photo-frame {
    width: 150px;
    height: 200px;
  }

  .about__tag {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .education__item {
    padding: 1rem;
  }

  .experience__card {
    padding: 1rem;
  }

  .skills__category {
    padding: 1rem;
  }

  .motto__inner {
    padding: 1.5rem 1rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* ----- Touch & hover adjustments ----- */
@media (hover: none) {
  /* Remove hover-only effects on touch devices */
  .experience__card:hover,
  .skills__category:hover,
  .about__info-item:hover,
  .education__item:hover,
  .research__area:hover {
    transform: none;
  }

  /* Ensure tap targets are large enough (44px min) */
  .navbar__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    min-height: 44px;
  }
}

/* ----- Landscape mobile ----- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 2rem 3rem;
  }

  .hero__avatar-container {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
  }

  .hero__avatar {
    width: 90px;
    height: 90px;
  }

  .hero__avatar-photo {
    width: 78px;
    height: 78px;
  }

  .hero__stats {
    margin-top: 1.5rem;
  }
}

/* ----- Safe area for notched phones ----- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .navbar {
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }

  .navbar__links {
    padding-top: calc(2rem + env(safe-area-inset-top));
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--clr-bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary-dark);
}
