/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222233;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

body.custom-cursor,
body.custom-cursor a,
body.custom-cursor button {
  cursor: none;
}

/* ===== Ultra Animation Layers ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 10001;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.cursor-glow,
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.custom-cursor .cursor-glow,
body.custom-cursor .cursor-dot {
  opacity: 1;
}

.cursor-glow {
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  transition: transform 0.15s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.08s ease-out;
}

body.cursor-hover .cursor-dot {
  transform: scale(2.5);
  background: #a78bfa;
}

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

ul {
  list-style: none;
}

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

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section__title.visible::after {
  width: 60px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: gradientShift 4s ease infinite;
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

.btn--primary span,
.btn--outline span {
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.08);
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

main {
  position: relative;
  z-index: 1;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav__menu {
  display: flex;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

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

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

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

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

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb--1 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.orb--2 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  bottom: 20%;
  left: -5%;
  animation-delay: -3s;
}

.orb--3 {
  width: 200px;
  height: 200px;
  background: #a78bfa;
  top: 50%;
  left: 40%;
  animation-delay: -5s;
}

.hero-anim {
  opacity: 0;
  transform: translateY(40px);
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.15s * var(--i) + 0.3s);
}

.shimmer-text {
  background: linear-gradient(90deg, #6366f1, #a78bfa, #6366f1, #8b5cf6);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, shimmer 4s linear infinite;
  animation-delay: calc(0.15s * var(--i) + 0.3s), 0s;
}

.typed-cursor {
  color: var(--accent-light);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.marquee__track span:hover {
  color: var(--accent-light);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(139, 92, 246, 0.08), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 24px 100px;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__text {
  min-width: 0;
}

.hero__photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: clamp(260px, 30vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.photo-frame__glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  animation: photoGlow 3s ease-in-out infinite;
  z-index: 0;
}

.photo-frame__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    var(--gradient) border-box;
  animation: ringRotate 6s linear infinite;
  z-index: 1;
}

.photo-frame__ring--2 {
  inset: -16px;
  opacity: 0.4;
  animation-direction: reverse;
  animation-duration: 10s;
}

.photo-frame__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-frame__badge {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.photo-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

.about__profile {
  display: flex;
  justify-content: center;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--accent-glow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}

.about-photo__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(transparent 40%, rgba(10, 10, 15, 0.95));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-photo:hover .about-photo__overlay {
  opacity: 1;
}

.about-photo__overlay span:first-child {
  font-weight: 700;
  font-size: 1.1rem;
}

.about-photo__overlay span:last-child {
  font-size: 0.85rem;
  color: var(--accent-light);
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.hero__name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 1.6em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 24px;
}

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

.hero__location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

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

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.highlight-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.highlight-card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline__progress {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  height: 0;
  background: var(--gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: height 0.1s linear;
  z-index: 1;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent);
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline__item.visible .timeline__marker {
  animation: markerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.timeline__content:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
}

.timeline__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.timeline__company {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.timeline__location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline__content > p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Skills ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.skill-group:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 16px;
  font-weight: 600;
}

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

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
}

.skill-group.visible .skill-tag {
  animation: tagPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.skill-group.visible .skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-group.visible .skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-group.visible .skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-group.visible .skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-group.visible .skill-tag:nth-child(5) { animation-delay: 0.25s; }
.skill-group.visible .skill-tag:nth-child(6) { animation-delay: 0.3s; }

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  transform: scale(1.08) translateY(-2px);
}

/* ===== Education ===== */
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.edu__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-light);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.edu-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
}

.edu-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.cert-card__badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact__intro {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

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

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer__top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer__top:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left {
  transform: translateX(-50px);
}

.reveal--right {
  transform: translateX(50px);
}

.reveal--scale {
  transform: scale(0.9);
}

.reveal:not(.reveal--left):not(.reveal--right):not(.reveal--scale) {
  transform: translateY(40px);
}

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

/* ===== Keyframes ===== */
@keyframes heroSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes markerPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

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

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

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

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

@keyframes navLogoPulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px var(--accent-glow); }
}

.nav__logo {
  animation: navLogoPulse 3s ease-in-out infinite;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particles,
  .cursor-glow,
  .cursor-dot,
  .hero__orbs,
  .marquee__track {
    display: none;
  }

  .hero-anim,
  .reveal,
  .skill-tag {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__photo {
    order: -1;
  }

  .hero__location,
  .hero__cta,
  .hero__stats {
    justify-content: center;
  }

  .hero__location {
    display: inline-flex;
  }

  .hero__cta {
    display: flex;
    justify-content: center;
  }

  .hero__stats {
    display: flex;
    justify-content: center;
  }

  .about__grid,
  .edu__grid {
    grid-template-columns: 1fr;
  }

  .about__profile {
    order: -1;
  }

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

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

@media (max-width: 768px) {
  .cursor-glow,
  .cursor-dot {
    display: none !important;
  }

  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button {
    cursor: auto;
  }

  .marquee {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero__stats {
    gap: 32px;
  }

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

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

  .section {
    padding: 72px 0;
  }
}

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

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}