/* General Body and Font Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #0a0a0a;
  color: #e5e7eb; /* Light gray text */
  scroll-behavior: smooth;
}

#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: transform 0.2s ease-out; /* Smooth parallax transition */
}
/* Hero Section Dynamic Gradient Background */
.hero-bg {
  position: relative;
  background-color: #0a0a0a;
  min-height: 100vh;
  overflow: hidden;
}

/* A more subtle, "breathing" gradient animation */
.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(236, 72, 153, 0.1) 25%,
    transparent 60%
  );
  animation: breathe-gradient 10s ease-in-out infinite alternate;
}

@keyframes breathe-gradient {
  0% {
    transform: scale(1) translate(-10%, 10%);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2) translate(10%, -10%);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
}

/* Fade-in and slide-up animation for sections */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar for a sleek look */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1f2937;
}
::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Navigation bar styling */
.header-active {
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Card styles for consistency */
.custom-card {
  background-color: #1c1b1b80; /* 50% transparent so stars show */
  border: 1px solid #2d2d2d66;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  opacity: 0.8;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px #00000066;
}

/* Highlight text color */
.text-highlight {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline styles */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: #ec4899;
  border: 3px solid #1a1a1a;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background-color: #ec4899;
}

/* Animated button */
.animated-button {
  position: relative;
  overflow: hidden;
  border: none;
  /* Neon gradient background */
  background: linear-gradient(45deg, #8b5cf6, #ec4899, #7138f6);
  background-size: 200% 200%;
  animation: moveGradient 4s ease infinite;

  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.animated-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
}

.animated-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.animated-button:hover {
  transform: translateY(-3px) scale(1.05); /* Combined hover effects */
}

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

.profile-photo-animation {
  position: relative;
  animation: pulse 2.5s infinite ease-in-out, fade-in-up 0.8s ease-out forwards;
}

/* Abstract background glow shape */
.profile-photo-animation::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 70%),
    radial-gradient(circle at 70% 70%, #ec4899, transparent 70%);
  border-radius: 50% 40% 60% 50% / 60% 50% 40% 50%;
  filter: blur(40px);
  animation: rotate-shape 10s linear infinite;
  z-index: -1;
}

/* Shape slow rotation for organic feel */
@keyframes rotate-shape {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Your existing pulse animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px #8b5cf6, 0 0 20px #ec4899, 0 0 30px #9569fb;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px #ea67a9;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Stepper styles for education */
.stepper-item {
  position: relative;
  padding-left: 2.5rem;
}
.stepper-item::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: #8b5cf6; /* Purple for education stepper */
  border: 3px solid #1a1a1a;
}
.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background-color: #8b5cf6; /* Purple line */
}
