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

:root {
  --bg-primary: #03020a;
  --bg-secondary: #07061a;
  --bg-tertiary: #0d0a26;
  --text-primary: #f5f3ff;
  --text-secondary: #b8b5d1;
  --text-muted: #6e6a8a;
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --accent-4: #6366f1;
  --gradient: linear-gradient(135deg, #a855f7 0%, #22d3ee 50%, #f472b6 100%);
  --gradient-2: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #22d3ee 100%);
  --gradient-cosmic: linear-gradient(135deg, #6366f1 0%, #a855f7 35%, #ec4899 70%, #f59e0b 100%);
  --border: rgba(168, 85, 247, 0.12);
  --border-hover: rgba(168, 85, 247, 0.5);
  --glass: rgba(168, 85, 247, 0.04);
  --glow: 0 0 40px rgba(168, 85, 247, 0.4);
  --star-color: rgba(255, 255, 255, 0.9);
}

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

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

::selection {
  background: var(--accent);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-3));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--accent-3), var(--accent));
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Custom Cursor (Glowing Star) ===== */
.cursor, .cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, filter;
  transition: transform 0.12s ease;
}

.cursor {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fce7f3 25%, #f472b6 55%, #a855f7 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(168, 85, 247, 0.85))
    drop-shadow(0 0 24px rgba(244, 114, 182, 0.55));
  animation: cursorPulse 1.6s ease-in-out infinite;
}

.cursor-follower {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 85, 247, 0.55);
  box-shadow:
    inset 0 0 18px rgba(168, 85, 247, 0.18),
    0 0 26px rgba(168, 85, 247, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: followerSpin 8s linear infinite;
}

.cursor.expand {
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 1))
    drop-shadow(0 0 22px rgba(244, 114, 182, 1))
    drop-shadow(0 0 38px rgba(168, 85, 247, 0.9));
}

.cursor-follower.expand {
  border-color: var(--accent-3);
  background: rgba(168, 85, 247, 0.12);
  box-shadow:
    inset 0 0 24px rgba(244, 114, 182, 0.32),
    0 0 40px rgba(168, 85, 247, 0.4);
}

@keyframes cursorPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 14px rgba(168, 85, 247, 0.85))
      drop-shadow(0 0 24px rgba(244, 114, 182, 0.55));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 1))
      drop-shadow(0 0 22px rgba(244, 114, 182, 0.95))
      drop-shadow(0 0 36px rgba(168, 85, 247, 0.85));
  }
}

@keyframes followerSpin {
  to { rotate: 360deg; }
}

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
}

/* ===== Cosmic Background ===== */
body::before {
  /* deep space gradient */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(99, 102, 241, 0.18), transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.16), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(180deg, #03020a 0%, #07061a 100%);
}

/* Nebula glow that slowly drifts */
.nebula {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.22), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(244, 114, 182, 0.16), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(34, 211, 238, 0.14), transparent 35%);
  filter: blur(40px);
  animation: nebulaDrift 28s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.06); }
  100% { transform: translate(2%, -3%) scale(1.03); }
}

/* Layered star fields using radial-gradient backgrounds */
.stars-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  background-repeat: repeat;
}

.stars-1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 130px 80px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 160px 120px, #fff, transparent),
    radial-gradient(1px 1px at 200px 50px, rgba(199,210,254,0.95), transparent),
    radial-gradient(1.2px 1.2px at 240px 160px, #fff, transparent);
  background-size: 280px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.stars-2 {
  background-image:
    radial-gradient(1px 1px at 50px 90px, rgba(244,114,182,0.85), transparent),
    radial-gradient(1.5px 1.5px at 110px 30px, #fff, transparent),
    radial-gradient(1px 1px at 180px 110px, rgba(167,139,250,0.9), transparent),
    radial-gradient(1.5px 1.5px at 260px 60px, #fff, transparent),
    radial-gradient(1px 1px at 320px 150px, rgba(255,255,255,0.85), transparent);
  background-size: 360px 220px;
  animation: twinkle 6s ease-in-out infinite alternate-reverse;
  opacity: 0.85;
}

.stars-3 {
  background-image:
    radial-gradient(2px 2px at 80px 50px, rgba(255,255,255,0.95), transparent),
    radial-gradient(2px 2px at 220px 180px, rgba(34,211,238,0.85), transparent),
    radial-gradient(2.5px 2.5px at 380px 90px, rgba(255,255,255,0.95), transparent),
    radial-gradient(2px 2px at 500px 240px, rgba(244,114,182,0.85), transparent);
  background-size: 600px 320px;
  animation: twinkle 8s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Shooting stars */
.shooting-star {
  position: fixed;
  top: 20%;
  left: -10%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  z-index: -2;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.9));
  transform: rotate(-18deg);
  opacity: 0;
  animation: shoot 8s ease-in infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  right: 0;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.95);
}

.shooting-star.delay-1 { top: 35%; animation-delay: 2s;  animation-duration: 9s; }
.shooting-star.delay-2 { top: 55%; animation-delay: 4s;  animation-duration: 11s; }
.shooting-star.delay-3 { top: 75%; animation-delay: 6s;  animation-duration: 13s; }
.shooting-star.delay-4 { top: 90%; animation-delay: 9s;  animation-duration: 15s; }

@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(-18deg); opacity: 0; }
  3%   { opacity: 1; }
  18%  { transform: translate(120vw, 40vh) rotate(-18deg); opacity: 0; }
  100% { transform: translate(120vw, 40vh) rotate(-18deg); opacity: 0; }
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(3, 2, 10, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(3, 2, 10, 0.88);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--glass);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  min-height: 1.5em;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: scroll 1.8s infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===== Section ===== */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-number {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.image-frame {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
}

.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  font-weight: 700;
  color: white;
  letter-spacing: -4px;
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.4);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%);
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  border-radius: 30px;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.about-heading {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

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

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: -0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.download-btn {
  margin-top: 1rem;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .skill-icon {
  background: var(--gradient);
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  position: relative;
}

.project-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
}

.project-card:hover .project-bg {
  transform: scale(1.08);
}

.project-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-tags span {
  padding: 0.3rem 0.75rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.project-link:hover {
  color: var(--accent);
}

.project-link:hover::after {
  width: 100%;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.15rem;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-all;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.1rem 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group textarea {
  min-height: 120px;
  padding-top: 1.4rem;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  outline: none;
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.05);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.3rem;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-btn {
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(3, 2, 10, 0.55);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-sub {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials .social-link {
  width: 38px;
  height: 38px;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-frame {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .container,
  .nav-container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(3, 2, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .stat-number { font-size: 2rem; }

  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .image-placeholder {
    font-size: 4.5rem;
  }
  .skill-card,
  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== Cosmic Decorations ===== */

/* Orbiting planets in hero (right side) */
.orbit-system {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 220px; height: 220px; animation: orbitSpin 18s linear infinite; }
.orbit-2 { width: 360px; height: 360px; animation: orbitSpin 28s linear infinite reverse; border-color: rgba(34, 211, 238, 0.18); }
.orbit-3 { width: 500px; height: 500px; animation: orbitSpin 40s linear infinite; border-color: rgba(244, 114, 182, 0.18); }

.planet {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent) 70%);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.9), 0 0 40px rgba(168, 85, 247, 0.4);
  transform: translateX(-50%);
}

.planet-sm {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent-2) 70%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.9), 0 0 36px rgba(34, 211, 238, 0.4);
}

.planet-xs {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent-3) 70%);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.9), 0 0 28px rgba(244, 114, 182, 0.4);
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Orbit rings around the avatar in About */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.orbit-ring-1 {
  width: 116%;
  height: 116%;
  animation: orbitSpin 22s linear infinite;
}

.orbit-ring-1::before,
.orbit-ring-2::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent-2));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.9);
  transform: translateX(-50%);
}

.orbit-ring-2 {
  width: 132%;
  height: 132%;
  border-color: rgba(244, 114, 182, 0.3);
  animation: orbitSpin 32s linear infinite reverse;
}

.orbit-ring-2::before {
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent-3));
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.9);
}

/* MK avatar replaced by a moon/planet style */
.image-placeholder {
  background: var(--gradient-cosmic) !important;
  position: relative;
}

.image-placeholder::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, transparent 30%, rgba(0, 0, 0, 0.4) 70%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Hide orbit-system on smaller screens to keep hero clean */
@media (max-width: 1100px) {
  .orbit-system { right: -25%; opacity: 0.4; }
}

@media (max-width: 768px) {
  .orbit-system { display: none; }
  .orbit-ring-1, .orbit-ring-2 { display: none; }
}

/* Glow on the planet logo */
.logo:hover .logo-bracket {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

/* Footer dark gradient overlay */
.footer {
  background: linear-gradient(180deg, transparent, rgba(7, 6, 26, 0.8)) !important;
}

/* Hide grid background remnants if referenced */
.bg-grid, .bg-gradient { display: none; }

/* ===========================================================
   COSMIC FX: sparkle trail, click burst, aurora, comet,
   saturn, asteroid, gradient text glow, magnetic, glitch
   =========================================================== */

/* ----- Sparkle trail behind cursor ----- */
.sparkle {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fce7f3 35%, #f472b6 70%, transparent 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 4px rgba(244, 114, 182, 1)) drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  transform: translate(-50%, -50%);
  animation: sparkleFade 0.85s ease-out forwards;
}

@keyframes sparkleFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  60%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1) rotate(160deg); }
}

/* ----- Click burst stars ----- */
.burst-star {
  position: fixed;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fce7f3 30%, #f472b6 60%, #a855f7 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1)) drop-shadow(0 0 10px rgba(244, 114, 182, 0.9));
  animation: burstFly 0.95s cubic-bezier(0.18, 0.7, 0.25, 1) forwards;
}

@keyframes burstFly {
  0%   {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(0.2) rotate(360deg);
  }
}

/* ----- Aurora ribbon at top ----- */
.aurora {
  position: fixed;
  top: -120px;
  left: -10%;
  right: -10%;
  height: 420px;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 100% at 25% 0%, rgba(34, 211, 238, 0.30), transparent 70%),
    radial-gradient(ellipse 60% 100% at 55% 0%, rgba(168, 85, 247, 0.32), transparent 70%),
    radial-gradient(ellipse 50% 100% at 80% 0%, rgba(244, 114, 182, 0.26), transparent 70%);
  filter: blur(50px);
  animation: auroraDance 14s ease-in-out infinite alternate;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 30%, transparent 100%);
}

@keyframes auroraDance {
  0%   { transform: translateX(-3%) scale(1); opacity: 0.7; }
  50%  { transform: translateX(2%) scale(1.06); opacity: 1; }
  100% { transform: translateX(-1%) scale(1.02); opacity: 0.85; }
}

/* ----- Slow drifting comet (tail + head) ----- */
.comet {
  position: fixed;
  top: 18%;
  left: -25%;
  width: 260px;
  height: 2px;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(244, 114, 182, 0.7) 60%,
    rgba(255, 255, 255, 0.95) 92%,
    #fff 100%
  );
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.8));
  transform: rotate(-22deg);
  opacity: 0;
  animation: cometFly 16s ease-in-out infinite;
}

.comet::before {
  content: '';
  position: absolute;
  right: -2px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #fce7f3 35%, #f472b6 70%, #a855f7 100%);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 1),
    0 0 28px rgba(244, 114, 182, 0.9),
    0 0 48px rgba(168, 85, 247, 0.6);
}

.comet.delay-1 {
  top: 60%;
  animation-delay: 7s;
  animation-duration: 22s;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.9));
}

.comet.delay-1::before {
  background: radial-gradient(circle at 30% 30%, #fff, #cffafe 35%, #22d3ee 70%, #6366f1 100%);
  box-shadow: 0 0 16px #fff, 0 0 28px rgba(34, 211, 238, 0.9), 0 0 48px rgba(99, 102, 241, 0.6);
}

@keyframes cometFly {
  0%   { transform: rotate(-22deg) translate(0, 0); opacity: 0; }
  6%   { opacity: 1; }
  60%  { transform: rotate(-22deg) translate(80vw, 40vh); opacity: 1; }
  100% { transform: rotate(-22deg) translate(150vw, 70vh); opacity: 0; }
}

/* ----- Floating Saturn (About) ----- */
.cosmic-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.saturn {
  top: 10%;
  right: 6%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fde68a 0%, #f59e0b 45%, #b45309 80%, #78350f 100%);
  box-shadow:
    inset -8px -10px 20px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(245, 158, 11, 0.4);
  animation: floatY 9s ease-in-out infinite alternate, saturnSpin 60s linear infinite;
}

.saturn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -32%;
  width: 164%;
  height: 22%;
  border: 2px solid rgba(244, 114, 182, 0.7);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-22deg);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.55);
  filter: blur(0.4px);
}

.saturn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -32%;
  width: 164%;
  height: 22%;
  border-top: 2px solid rgba(168, 85, 247, 0.55);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-22deg);
  pointer-events: none;
}

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

@keyframes floatY {
  0%   { translate: 0 0; }
  50%  { translate: 0 -22px; }
  100% { translate: 0 4px; }
}

/* ----- Asteroid (Skills section) ----- */
.asteroid {
  bottom: 8%;
  left: 4%;
  width: 60px;
  height: 60px;
  border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%;
  background:
    radial-gradient(circle at 30% 30%, #6b7280 0%, #4b5563 50%, #1f2937 100%);
  box-shadow:
    inset -6px -8px 14px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(99, 102, 241, 0.35);
  animation: asteroidFloat 12s ease-in-out infinite, saturnSpin 30s linear infinite;
  opacity: 0.5;
}

.asteroid::before,
.asteroid::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

.asteroid::before { top: 25%; left: 30%; width: 14px; height: 14px; }
.asteroid::after  { top: 55%; left: 55%; width: 9px; height: 9px; }

@keyframes asteroidFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(15px, -25px); }
}

/* Make sections allow overlay decorations */
#about, #skills, #projects { position: relative; overflow: hidden; }

/* ----- Wormhole ring near Projects header ----- */
.wormhole {
  position: absolute;
  top: 20%;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(168, 85, 247, 0.55) 60deg,
      rgba(34, 211, 238, 0.55) 180deg,
      rgba(244, 114, 182, 0.55) 300deg,
      transparent 360deg
    );
  filter: blur(18px);
  animation: saturnSpin 18s linear infinite;
}

.wormhole::before {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #03020a 35%, transparent 70%);
}

/* ----- Gradient text glow + glitch ----- */
.gradient-text {
  filter: drop-shadow(0 0 0 transparent);
  animation: gradientShift 5s ease infinite, gradientGlow 3.4s ease-in-out infinite;
}

@keyframes gradientGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.35)); }
  50%      { filter: drop-shadow(0 0 18px rgba(244, 114, 182, 0.7)) drop-shadow(0 0 30px rgba(34, 211, 238, 0.45)); }
}

/* Hero name special — periodic subtle glitch */
.hero-name {
  position: relative;
  display: inline-block;
}

.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

.hero-name::before {
  text-shadow: 2px 0 #22d3ee;
  animation: glitchA 6s steps(1) infinite;
}

.hero-name::after {
  text-shadow: -2px 0 #f472b6;
  animation: glitchB 6s steps(1) infinite;
}

@keyframes glitchA {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { opacity: 0.85; transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); }
  95% { opacity: 0.85; transform: translate(2px, 0); clip-path: inset(40% 0 20% 0); }
  97% { opacity: 0.6; transform: translate(-1px, 1px); clip-path: inset(60% 0 0 0); }
}

@keyframes glitchB {
  0%, 90%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  92% { opacity: 0.7; transform: translate(2px, 0); clip-path: inset(20% 0 50% 0); }
  94% { opacity: 0.7; transform: translate(-2px, 0); clip-path: inset(50% 0 10% 0); }
  98% { opacity: 0.5; transform: translate(1px, -1px); clip-path: inset(80% 0 0 0); }
}

/* ----- Hero title soft glow on hover ----- */
.hero-title:hover .gradient-text {
  filter: drop-shadow(0 0 24px rgba(244, 114, 182, 0.85));
}

/* ----- Magnetic-ready buttons keep hover but allow JS translate ----- */
.btn { will-change: transform; }

/* ----- Skill card holographic shimmer ----- */
.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::after {
  opacity: 1;
  animation: holoShimmer 1.4s linear infinite;
}

@keyframes holoShimmer {
  0%   { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}

/* ----- Section number radar ping ----- */
.section-number {
  position: relative;
}

.section-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: radarPing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes radarPing {
  0%   { opacity: 0.7; transform: scale(0.9); }
  80%  { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ----- Scroll-top button: cosmic launch ----- */
.scroll-top {
  position: fixed;
}

.scroll-top::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.6);
  animation: saturnSpin 6s linear infinite;
  pointer-events: none;
}

/* ----- Project card: glowing border on hover ----- */
.project-card {
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  transition: opacity 0.4s ease;
}

.project-card:hover::after {
  opacity: 0.55;
}

/* ----- Prefer reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-follower, .sparkle, .burst-star,
  .aurora, .comet, .saturn, .asteroid, .wormhole,
  .stars-layer, .nebula, .shooting-star,
  .hero-name::before, .hero-name::after,
  .gradient-text, .section-number::after,
  .scroll-top::before, .skill-card::after {
    animation: none !important;
  }
}
