/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(160deg, #1a002b, #5b2b78, #caa8f5);
    background-size: 200% 200%;
    animation: galaxyGradient 20s ease infinite;
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
    cursor: none;
  }

  /* Override for Welcome Page */
  body.welcome-page {
  background: none;
  animation: none;
}
  
  /* Animated galaxy gradient background */
  @keyframes galaxyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Glow effect for name */
  .glow {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: #d8b4fe;
    text-shadow: 0 0 8px #c084fc, 0 0 15px #9333ea;
    animation: pulseGlow 2.5s ease-in-out infinite;
  }
  
  @keyframes pulseGlow {
    0%, 100% {
      text-shadow: 0 0 8px #c084fc, 0 0 15px #9333ea;
    }
    50% {
      text-shadow: 0 0 20px #d8b4fe, 0 0 35px #7e22ce;
    }
  }
  
  /* Typing animation */
  .typed-text {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #e9d5ff;
  }
  .cursor {
    display: inline-block;
    color: #fff;
    animation: blink 1s infinite;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* Sections */
  .section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
  }
  .section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #e9d5ff;
  }
  
  /* Hero Section */
  .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  /* Projects */
  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
  }
  .project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 260px;
    border-radius: 15px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #b084f4;
  }
  .project-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #f3e8ff;
  }
  .project-card p {
    font-size: 0.95rem;
    color: #d6bcfa;
  }
  
  /* Avatar */
  #avatar {
    width: 180px;
    height: auto;
    margin-top: 25px;
    animation: floatAvatar 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #b084f4);
  }
  @keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  /* Contact & Footer */
  a {
    color: #c084fc;
    text-decoration: none;
  }
  a:hover {
    color: #f0abfc;
  }
  footer {
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #d1d5db;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .projects-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .glow {
      font-size: 2.2rem;
    }
  
    .section h2 {
      font-size: 2rem;
    }
  
    #avatar {
      width: 120px;
      height: 120px;
    }
  }
  
  .butterfly-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-image: url('assets/cursor/butterfly.gif');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    animation: flutter 0.05s ease-out;
  }
  
  @keyframes flutter {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
  }
  
  /* Sparkle Effect */
  #sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
  }
  
  .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #e9d5ff 0%, #9333ea 100%);
    box-shadow: 0 0 10px #d8b4fe;
    animation: sparkleFade 0.5s ease-out forwards;
    z-index: 9998;
   
  }
  
  @keyframes sparkleFade {
    0% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(0.5);
      opacity: 0;
    }
  }
  
/* Background Video Styling */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}


/* Loader Container */
.loader-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background: transparent; /* <-- important */
}

/* Overlay Content */
.overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Glowing Welcome Text */
.glow-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  color: #e9d5ff;
  text-shadow: 0 0 8px #c084fc, 0 0 15px #9333ea;
  animation: pulseGlow 2.5s ease-in-out infinite;
  margin-bottom: 20px;
}

/* Click to Enter Button */
#enter-button {
  padding: 12px 28px;
  font-size: 1rem;
  background-color: #9333ea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px #d8b4fe;
  transition: background 0.3s ease;
}

#enter-button:hover {
  background-color: #a855f7;
}
