﻿/* ============================================================
   Agan Sulisfiana — IT Support Portfolio
   Cohesive Dark Mode (OLED) design system
   Monochrome + blue accent · Inter typography
   ============================================================ */

:root {
  /* Color tokens — dark surfaces */
  --bg-base: #09090b;
  --bg-elevated: #111114;
  --surface: rgba(24, 24, 27, 0.72);
  --surface-solid: #18181b;
  --surface-hover: rgba(39, 39, 42, 0.85);

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;

  /* Accent — blue */
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.16);
  --accent-border: rgba(59, 130, 246, 0.4);

  /* Borders */
  --border: rgba(63, 63, 70, 0.6);
  --border-strong: rgba(82, 82, 91, 0.8);

  /* Effects */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 24px rgba(59, 130, 246, 0.18);
  --glow: 0 0 12px rgba(59, 130, 246, 0.5);

  /* Layout */
  --container: 1180px;
  --nav-h: 66px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.28s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10000;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 92%;
  max-width: var(--container);
  margin: auto;
}

#vanta-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(59, 130, 246, 0.1), transparent 70%),
    var(--bg-base);
}

body > :not(#vanta-bg):not(.aurora):not(.scroll-progress) {
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  color: var(--text-primary);
  gap: 16px;
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 17px;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-menu a {
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
  padding: 6px 2px;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-bright);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-bright);
}

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

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.92), rgba(17, 17, 20, 0.88) 55%, rgba(37, 99, 235, 0.22));
  color: var(--text-primary);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h2 {
  color: var(--accent-bright);
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
  min-height: 38px;
  font-weight: 600;
}

#typing-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#typing-title::after {
  content: "";
  width: 3px;
  height: 1.15em;
  border-radius: 999px;
  background: var(--accent-bright);
  animation: cursorBlink .8s steps(2, start) infinite;
}

.hero p {
  color: var(--text-secondary);
  max-width: 700px;
  font-size: 16px;
  margin-bottom: 28px;
}

.hero-text > .badge,
.hero-animate {
  opacity: 0;
  transform: translateY(26px);
  animation: heroFadeUp .7s var(--ease) forwards;
}

.hero-text > .badge,
.hero-badge {
  animation-delay: .55s;
}

.hero-name {
  animation-delay: .2s;
}

.hero-title {
  animation-delay: .95s;
}

.hero-description {
  animation-delay: 2.75s;
}

.hero-actions {
  animation-delay: 3.05s;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-bright);
  box-shadow: 0 14px 32px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* ---------- Profile card ---------- */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.3);
  margin: 0 auto 20px;
  background: var(--surface-hover);
}

.profile-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.profile-card > p {
  margin: 0;
  color: var(--text-muted);
}

.contact-mini {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  text-align: left;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-mini-item svg,
.contact-list-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--accent-bright);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */
section {
  padding: 78px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading span {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-primary);
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subtitle {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- About / Stats ---------- */
.about-card {
  background: var(--surface);
  padding: 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.stat {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

.stat h3 {
  color: var(--accent-bright);
  font-size: 34px;
  margin-bottom: 6px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card,
.job-card,
.education-card,
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: visible;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skill-card:hover,
.job-card:hover,
.education-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

.skill-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 22px;
  border: 1px solid var(--accent-border);
}

.skill-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Certificates ---------- */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.certificate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.certificate-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

.certificate-thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}

.certificate-card:hover .certificate-thumb img {
  transform: scale(1.04);
}

.certificate-info {
  padding: 16px;
}

.certificate-info span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.certificate-info h3 {
  color: var(--text-primary);
  font-size: 17px;
  margin: 0;
  font-weight: 700;
}

/* ---------- Experience timeline ---------- */
.timeline {
  display: grid;
  gap: 22px;
  position: relative;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.job-top h3 {
  font-size: 21px;
  color: var(--text-primary);
  font-weight: 700;
}

.company {
  color: var(--accent-bright);
  font-weight: 700;
}

.date {
  background: var(--accent-soft);
  color: var(--accent-bright);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  height: fit-content;
  border: 1px solid var(--accent-border);
}

.job-card ul {
  margin-left: 20px;
  color: var(--text-secondary);
}

.job-card li {
  margin-bottom: 7px;
}

.highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  background: var(--surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Projects ---------- */
.projects-grid,
.activity-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow: visible;
  position: relative;
}

.portfolio-group + .portfolio-group {
  margin-top: 42px;
}

.portfolio-title {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 18px;
  font-weight: 700;
}

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

.project-card {
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
  z-index: 1000;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  transform:
    perspective(900px)
    translateY(-6px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
  z-index: 1000;
}

.project-card h3,
.education-card h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.project-card p,
.education-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.project-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 14px;
  border: 1px solid var(--accent-border);
}

.project-icon svg,
.activity-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--accent-border);
}

.activity-card {
  padding: 0;
  overflow: hidden;
}

.activity-thumb {
  position: relative;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--surface-hover);
  transition: transform .35s var(--ease);
}

.activity-card:hover img {
  transform: scale(1.04);
}

.activity-icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(9, 9, 11, 0.85);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.activity-card h3 {
  color: var(--text-primary);
  font-size: 15px;
  padding: 16px;
  margin: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
}

/* ---------- Education ---------- */
.education-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 14px;
  border: 1px solid var(--accent-border);
}

.education-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Contact ---------- */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.08));
  color: var(--text-primary);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.contact-box h2 {
  font-size: 34px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-box p {
  color: var(--text-secondary);
}

.contact-list {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(2, 6, 23, 0.6);
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

/* ---------- Keyframes ---------- */
@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

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

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: none;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
  z-index: 9999;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--accent-bright);
}

.back-to-top.show {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Mobile menu */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ease), opacity .25s var(--ease);
  }

  .nav-menu.open {
    max-height: 420px;
    opacity: 1;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 6%;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a::after {
    display: none;
  }
}

@media (max-width: 560px) {
  section {
    padding: 58px 0;
  }

  .skills-grid,
  .certificates-grid,
  .projects-grid,
  .activity-grid,
  .education-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce), (hover: none) {
  .tilt-card {
    will-change: auto;
  }

  .tilt-card:hover {
    transform: none;
  }

  .hero-text > .badge,
  .hero-animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  #typing-title::after {
    animation: none;
  }

  .aurora-blob {
    animation: none !important;
  }

  .gradient-text {
    animation: none;
  }

  .reveal {
    transition-delay: 0s !important;
  }
}

/* ============================================================
   ENHANCEMENTS
   A. Aurora ambient blobs · B. Staggered reveal ·
   C. Spotlight hover · E. Scroll progress bar ·
   F. Animated gradient text
   ============================================================ */

/* ---------- A. Aurora ambient blobs ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-blob-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 65%);
  animation: auroraFloat1 18s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 65%);
  animation: auroraFloat2 22s ease-in-out infinite;
}

.aurora-blob-3 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: 35%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.32), transparent 65%);
  animation: auroraFloat3 26s ease-in-out infinite;
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.12); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 50px) scale(1.08); }
}

@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -70px) scale(1.15); }
}

/* ---------- B. Staggered reveal ---------- */
.reveal {
  transition-delay: var(--reveal-delay, 0s);
}

/* ---------- C. Spotlight hover on cards ---------- */
.skill-card,
.project-card,
.certificate-card,
.education-card,
.stat {
  --spot-x: 50%;
  --spot-y: 50%;
}

.skill-card::before,
.project-card::before,
.certificate-card::before,
.education-card::before,
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--spot-x) var(--spot-y),
    rgba(59, 130, 246, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
  z-index: 0;
}

.skill-card:hover::before,
.project-card:hover::before,
.certificate-card:hover::before,
.education-card:hover::before,
.stat:hover::before {
  opacity: 1;
}

/* keep card content above the spotlight layer */
.skill-card > *,
.project-card > *,
.certificate-card > *,
.education-card > *,
.stat > * {
  position: relative;
  z-index: 1;
}

/* ---------- E. Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- F. Animated gradient text ---------- */
.gradient-text {
  background: linear-gradient(
    100deg,
    var(--text-primary) 0%,
    var(--accent-bright) 35%,
    #93c5fd 50%,
    var(--accent-bright) 65%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation-name: heroFadeUp, gradientShift;
  animation-duration: .7s, 6s;
  animation-timing-function: var(--ease), linear;
  animation-delay: .2s, 0s;
  animation-fill-mode: forwards, none;
}

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