/* Reset and basic styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0d0d1a;
  color: #fff;
  overflow-x: hidden;
}

/* Navigation bar */
nav {
  background: #000;
  padding: 1em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows links to wrap on small screens */
  gap: 20px; /* Adds spacing between links */
  text-align: center;
  margin-bottom: 30px; /* Space below nav */
}

nav a {
  color: #ff00c8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap; /* Prevent link text from breaking */
}

nav a:hover {
  color: #fff;
  text-shadow: 
    0 0 5px #ff00c8,
    0 0 10px #ff1a75,
    0 0 20px #ff00c8;
  animation: moving-neon-glow 4s ease-in-out infinite alternate;
}

/* Section styling */
section {
  padding: 60px 20px;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* Headings */
h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ff00c8;
  text-shadow:
    0 0 5px #ff00c8,
    0 0 10px #ff1a75,
    0 0 20px #ff00c8;
  animation: moving-neon-glow 4s ease-in-out infinite alternate;
}

/* Neon Animated Button */
.btn {
  position: relative;
  padding: 12px 30px;
  margin-top: 30px;
  border-radius: 30px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #ff00c8, #ff1a75, #00ffff, #ff00c8);
  background-size: 300% 300%;
  color: #ff00c8;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 0 8px #ff00c8, 
    0 0 20px #ff1a75;
  transition: color 0.3s ease;
  animation: 
    neon-glow 6s linear infinite,
    flicker-neon 3s ease-in-out infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-image-slice: 1;
  border-image-source: linear-gradient(90deg, #ff00c8, #ff1a75, #00ffff, #ff00c8);
  animation: border-shift 6s linear infinite;
  display: inline-block;
  user-select: none;
}

/* Hover state */
.btn:hover {
  background: #ff00c8;
  color: #0d0d1a;
  box-shadow: 
    0 0 15px #ff00c8, 
    0 0 30px #f31970;
  -webkit-text-fill-color: initial;
  animation-play-state: paused;
  border-image-source: linear-gradient(90deg, #ff00c8, #ff1a75, #00ffff, #ff00c8);
}

/* Neon text animation */
@keyframes neon-glow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Border color shift animation */
@keyframes border-shift {
  0%, 100% {
    border-image-source: linear-gradient(90deg, #ff00c8, #ff1a75, #00ffff, #ff00c8);
  }
  50% {
    border-image-source: linear-gradient(270deg, #ff00c8, #00ffff, #ff1a75, #ff00c8);
  }
}

/* Moving neon glow text animation for headings and nav hover */
@keyframes moving-neon-glow {
  0%, 100% {
    text-shadow:
      0 0 8px #ff00c8,
      0 0 20px #ff1a75,
      0 0 30px #ff00c8,
      0 0 40px #ff1a75,
      0 0 50px #ff00c8;
  }
  50% {
    text-shadow:
      0 0 10px #ff1a75,
      0 0 25px #ff00c8,
      0 0 35px #ff1a75,
      0 0 45px #ff00c8,
      0 0 60px #ff1a75;
  }
}

/* Flickering neon glow animation for buttons */
@keyframes flicker-neon {
  0%, 100% {
    box-shadow:
      0 0 10px #ff00c8,
      0 0 30px #ff1a75,
      0 0 40px #ff00c8;
  }
  50% {
    box-shadow:
      0 0 15px #ff1a75,
      0 0 40px #ff00c8,
      0 0 50px #ff1a75;
  }
}

/* Image styling */
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #ff00c8;
  box-shadow:
    0 0 15px #ff00c8,
    0 0 30px #ff1a75;
  margin: 30px auto;
  display: block;
  object-fit: cover;
}

/* Spacing for CV download */
.cv-download {
  margin-top: 40px;
  font-size: 1.2em;
}

/* Paragraphs styling */
p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 20px auto;
  color: #ddd;
  text-align: justify;
}

/* Footer styling (if needed) */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
}
footer a {
  color: #ff00c8;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff00c8;
}

/* Center the welcome block on landing page */
body.landing {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Fill the entire screen height */
  text-align: center;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Landing Page Fullscreen Center */
body.landing {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: #0d0d1a;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.center {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fullscreen Canvas Behind Content */
#fireworks {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

