@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

/* ===== VARIABLES & BASE STYLES ===== */
:root {
  --accent-blue: #00D9FF;
  --accent-blue-dark: #00B8E6;
  --primary-blue: #3B82F6;
  --primary-purple: #8B5CF6;
  --primary-teal: #22C5C2;
  --glow-intensity: 0.3;
}

* {
  font-family: 'Space Grotesk', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: 'Poppins', sans-serif;
}

/* ===== UTILITY CLASSES ===== */
.gradient-accent {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.15);
}

/* ===== HERO SECTION ANIMATIONS ===== */
/* Background Effects */
.aurora-bg {
  position: absolute;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(34, 197, 194, 0.1) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: aurora-flow 15s ease-in-out infinite;
}

.glow-orb {
  animation: aurora-glow 8s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.float-element {
  animation: float-rotate 6s ease-in-out infinite;
}

/* Text Animations */
.text-gradient-animated {
  animation: text-glow 4s ease-in-out infinite;
}

.hero-title {
  animation: text-slide-in 0.8s ease-out forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-subtitle {
  animation: text-slide-in 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.scroll-indicator {
  animation: text-slide-in 1s ease-out 1s forwards;
  opacity: 0;
}

/* Tech Badges */
.tech-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.tech-badge:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.5);
  box-shadow: 0 8px 16px rgba(79, 172, 254, 0.2);
}

.tech-badge:hover::before {
  left: 100%;
}

/* CTA Buttons */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s ease-out;
}

.cta-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Social Icons */
.social-icon {
  position: relative;
  transition: all 0.3s ease-out;
}

.social-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(139, 92, 246, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: -1;
}

.social-icon:hover::after {
  opacity: 1;
}

/* ===== PROFILE SECTION ===== */
.profile-container {
  position: relative;
  animation: float-subtle 4s ease-in-out infinite;
}

.profile-glow {
  animation: aurora-glow 6s ease-in-out infinite;
}

.profile-glow-bg {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(79, 172, 254, 0.15) 0%,
      rgba(139, 92, 246, 0.1) 50%,
      transparent 100%);
  animation: pulse-glow 3s ease-in-out infinite;
  filter: blur(20px);
  z-index: -1;
}

/* Profile Image */
.profile-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2)) padding-box,
    linear-gradient(135deg, rgba(79, 172, 254, 0.5), rgba(139, 92, 246, 0.3)) border-box;
  overflow: hidden;
  animation: glow-border 3s ease-in-out infinite;
  box-shadow:
    inset 0 0 20px rgba(79, 172, 254, 0.1),
    0 0 30px rgba(79, 172, 254, 0.2);
}

.profile-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  animation: shine-sweep 3s ease-in-out infinite;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1) contrast(1.05);
  transition: filter 0.3s ease-out;
}

.profile-image-wrapper:hover img {
  filter: brightness(1.1) contrast(1.1);
}

/* Orbit Effects */
.profile-orbit-outer,
.profile-orbit-middle,
.profile-orbit-inner {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.profile-orbit-outer {
  inset: -10px;
  border: 1px solid;
  border-image: linear-gradient(45deg,
      rgba(79, 172, 254, 0.3),
      rgba(139, 92, 246, 0.3),
      rgba(79, 172, 254, 0.1)) 1;
  animation: orbit-spin 20s linear infinite;
}

.profile-orbit-outer::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.8), rgba(79, 172, 254, 0.3));
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
}

.profile-orbit-middle {
  inset: -20px;
  border: 1px solid;
  border-image: linear-gradient(135deg,
      rgba(139, 92, 246, 0.3),
      rgba(79, 172, 254, 0.2)) 1;
  animation: orbit-spin-reverse 30s linear infinite;
  opacity: 0.4;
}

.profile-orbit-middle::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.3));
  border-radius: 50%;
  bottom: 0;
  right: 50%;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.profile-orbit-inner {
  inset: 0;
  border: 1px solid;
  border-image: linear-gradient(225deg,
      rgba(34, 197, 194, 0.3),
      rgba(79, 172, 254, 0.2)) 1;
  animation: orbit-spin 15s linear infinite;
  opacity: 0.5;
}

.profile-orbit-inner::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(34, 197, 194, 0.8), rgba(34, 197, 194, 0.3));
  border-radius: 50%;
  top: 0;
  right: 0;
  box-shadow: 0 0 10px rgba(34, 197, 194, 0.6);
}

/* Light Rays */
.light-ray {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}

.light-ray-1 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border: 2px solid transparent;
  border-top: 2px solid rgba(79, 172, 254, 0.4);
  border-right: 2px solid rgba(79, 172, 254, 0.3);
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  animation: orbit-spin 25s linear infinite;
  opacity: 0.5;
}

.light-ray-2 {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  border: 1px solid transparent;
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  animation: orbit-spin-reverse 35s linear infinite;
  opacity: 0.4;
}

.light-ray-3 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(79, 172, 254, 0.25);
  border-left: 1px solid rgba(34, 197, 194, 0.25);
  animation: orbit-spin 40s linear infinite;
  opacity: 0.3;
}

/* ===== ASTRONAUT ANIMATIONS ===== */
.astronaut-container {
  perspective: 1000px;
  z-index: 5;
}

.astronaut-float {
  animation: float 6s ease-in-out infinite;
}

.astronaut-image {
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
  animation: gentle-rotate 8s ease-in-out infinite;
}

.animate-twinkle {
  animation: twinkle 3s ease-in-out infinite;
}

/* ===== STATS & BADGES ===== */
.stat-card {
  animation: stat-float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  z-index: 10;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.floating-badge {
  animation: float 3s ease-in-out infinite, badge-pulse 2.5s ease-in-out infinite;
  animation-delay: 1s;
  z-index: 20;
}

/* ===== PROJECTS SECTION ===== */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

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

/* ===== TIMELINE ===== */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-blue-dark));
}

@media (max-width: 768px) {
  .timeline::before {
    left: 0;
    width: 2px;
  }
}

/* Dot Animation */
svg.dot-animation {
  filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.4));
}

.dot-particle {
  animation: dot-float 4s ease-in-out infinite;
}

.text-container {
  position: relative;
  z-index: 10;
}

/* ===== KEYFRAMES ===== */
/* Background & Glow Animations */
@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
    opacity: 0.1;
  }

  50% {
    opacity: 0.15;
  }

  100% {
    background-position: 100% 50%;
    opacity: 0.1;
  }
}

@keyframes aurora-glow {

  0%,
  100% {
    filter: blur(60px) opacity(0.1);
  }

  50% {
    filter: blur(60px) opacity(0.15);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.05;
    transform: scale(1);
  }

  50% {
    opacity: 0.1;
    transform: scale(1.05);
  }
}

/* Floating & Rotation Animations */
@keyframes float-rotate {

  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }

  50% {
    transform: translateY(-20px) rotateZ(180deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) rotate(2deg);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }

  75% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

@keyframes gentle-rotate {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes float-subtle {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes stat-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Text & Glow Effects */
@keyframes text-glow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }

  50% {
    text-shadow:
      0 0 20px rgba(59, 130, 246, 0.6),
      0 0 40px rgba(59, 130, 246, 0.3);
  }
}

@keyframes text-slide-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 0px rgba(79, 172, 254, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.8);
  }
}

/* Dot & Particle Animations */
@keyframes dot-float {

  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-30px);
    opacity: 0.8;
  }
}

@keyframes dot-pulse {

  0%,
  100% {
    r: 3;
    opacity: 0.5;
  }

  50% {
    r: 6;
    opacity: 1;
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Profile & Orbit Animations */
@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(59, 130, 246, 0.4),
      0 0 40px rgba(79, 172, 254, 0.2);
  }

  50% {
    box-shadow:
      0 0 30px rgba(59, 130, 246, 0.6),
      0 0 60px rgba(79, 172, 254, 0.3);
  }
}

@keyframes shine-sweep {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@keyframes glow-border {

  0%,
  100% {
    filter:
      drop-shadow(0 0 8px rgba(79, 172, 254, 0.5)) drop-shadow(0 0 16px rgba(139, 92, 246, 0.3));
  }

  50% {
    filter:
      drop-shadow(0 0 16px rgba(79, 172, 254, 0.8)) drop-shadow(0 0 32px rgba(139, 92, 246, 0.5));
  }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (hover: hover) {
  .profile-image-wrapper:hover {
    animation: glow-border 1.5s ease-in-out infinite;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  .astronaut-image {
    width: 280px !important;
    height: 280px !important;
  }
}

/* ===== PARALLAX SCROLLING ===== */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.parallax-bg {
  transform: translateZ(-1px) scale(2);
}

.parallax-slow {
  transition: transform 0.1s ease-out;
}

.parallax-medium {
  transition: transform 0.15s ease-out;
}

.parallax-fast {
  transition: transform 0.2s ease-out;
}

/* ===== STAR FIELD EFFECTS ===== */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle-star 3s ease-in-out infinite;
}

.star-small {
  width: 1px;
  height: 1px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star-medium {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.star-large {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 1);
}

@keyframes twinkle-star {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ===== METEOR SHOWER ===== */
.meteor {
  position: fixed;
  width: 2px;
  height: 2px;
  background: linear-gradient(90deg, #fff, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: meteor-fall 2s linear forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.meteor::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  transform-origin: right;
}

@keyframes meteor-fall {
  0% {
    transform: translate(0, 0) rotate(-45deg);
    opacity: 1;
  }

  100% {
    transform: translate(-500px, 500px) rotate(-45deg);
    opacity: 0;
  }
}

/* ===== NEBULA BACKGROUND ===== */
.nebula-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 197, 194, 0.1) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: nebula-drift 20s ease-in-out infinite;
  filter: blur(40px);
  opacity: 0.6;
}

@keyframes nebula-drift {

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

  25% {
    background-position: 50% 25%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 75%;
  }
}

/* ===== PLANET ORBIT EFFECTS ===== */
.planet-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
  animation: planet-float 15s ease-in-out infinite;
}

.planet-decoration.saturn {
  width: 150px;
  height: 150px;
  opacity: 0.3;
}

.planet-decoration.satellite {
  width: 80px;
  height: 80px;
  opacity: 0.25;
  animation: planet-float 12s ease-in-out infinite reverse;
}

@keyframes planet-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-30px) rotate(5deg);
  }

  50% {
    transform: translateY(-15px) rotate(0deg);
  }

  75% {
    transform: translateY(-25px) rotate(-5deg);
  }
}

/* ===== 3D TRANSFORM EFFECTS ===== */
.hover-3d {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

.hover-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px);
}

.tilt-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-element {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* ===== MAGNETIC CURSOR EFFECT ===== */
.magnetic-item {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.reveal-fade.revealed {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== ENHANCED PROJECT CARDS ===== */
.project-card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.project-card-inner {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  position: relative;
}

.project-card-3d:hover .project-card-inner {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

.project-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(139, 92, 246, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: -1;
  filter: blur(10px);
}

.project-card-3d:hover .project-glow {
  opacity: 1;
}

/* ===== SKILL CARD ANIMATIONS ===== */
.skill-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.skill-card:hover::after {
  width: 300%;
  height: 300%;
}

.skill-card:hover {
  transform: translateY(-10px) rotateZ(2deg);
  box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
}

/* ===== COSMIC GLOW EFFECTS ===== */
.cosmic-glow {
  position: relative;
}

.cosmic-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center,
      rgba(79, 172, 254, 0.2) 0%,
      rgba(139, 92, 246, 0.1) 50%,
      transparent 100%);
  animation: cosmic-pulse 4s ease-in-out infinite;
  border-radius: inherit;
  z-index: -1;
  filter: blur(20px);
}

@keyframes cosmic-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

/* ===== ENHANCED GLASSMORPHISM ===== */
.glass-enhanced {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== CONSTELLATION LINES ===== */
.constellation-line {
  position: absolute;
  background: linear-gradient(90deg,
      transparent,
      rgba(79, 172, 254, 0.3),
      transparent);
  height: 1px;
  pointer-events: none;
  animation: constellation-glow 3s ease-in-out infinite;
}

@keyframes constellation-glow {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.6;
  }
}

/* ===== LOADING ANIMATIONS ===== */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.stagger-animation {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-animation:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-animation:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-animation:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-animation:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-animation:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-animation:nth-child(6) {
  animation-delay: 0.6s;
}

/* ===== PARTICLE SYSTEM ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ===== ENHANCED TIMELINE ===== */
.timeline-dot {
  position: relative;
  animation: timeline-pulse 2s ease-in-out infinite;
}

@keyframes timeline-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
  }
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .parallax-layer {
    transform: none !important;
  }

  .meteor {
    display: none;
  }

  .planet-decoration {
    opacity: 0.15;
  }

  .hover-3d:hover {
    transform: translateY(-5px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-layer {
    transform: none !important;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* EXPERIENCE */
.experience-section {
  background-image: url('/img/bg2.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.experience-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(2px);
}