/* =========================
   🌙 BASE SETUP
========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   ✨ BACKGROUND GLOW
========================= */
body::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: #00f7ff;
  filter: blur(180px);
  top: 20%;
  left: 20%;
  z-index: -2;
  animation: moveGlow 12s infinite alternate ease-in-out;
}

@keyframes moveGlow {
  0% { top: 20%; left: 20%; }
  50% { top: 40%; left: 60%; }
  100% { top: 10%; left: 40%; }
}

/* =========================
   🖱️ CURSOR GLOW (FIXED)
========================= */
.cursor-glow {
  position: fixed;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(0,247,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
}

/* Ensure UI stays above glow */
.hero,
.navbar,
section,
.buttons,
.card {
  position: relative;
  z-index: 1;
}

/* =========================
   🚀 LOADER
========================= */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.loader-text {
  font-size: 24px;
  color: #00f7ff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* =========================
   🧭 NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar a {
  text-decoration: none;
  color: white;
  margin: 0 10px;
}

.navbar a:hover {
  color: #00f7ff;
}

/* =========================
   🎯 HERO (CLEAN VERSION)
========================= */
.hero {
  text-align: center;
  padding: 100px 20px;
}

/* Main Name */
.hero h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;

  /* REMOVE typing */
  border-right: none;
  white-space: normal;
  overflow: visible;

  /* Smooth fade animation */
  animation: fadeInUp 1s ease forwards;
}

/* Subtitle */
.hero p {
  font-size: 18px;
  color: #ccc;
  margin: 5px 0;
  animation: fadeInUp 1.2s ease forwards;
}

/* Tagline */
.tagline {
  margin-top: 10px;
  color: #00f7ff;
  font-size: 16px;
  animation: fadeInUp 1.4s ease forwards;
}

/* Highlight line */
.highlight {
  margin-top: 10px;
  font-weight: bold;
  color: #00f7ff;
  animation: fadeInUp 1.6s ease forwards;
}

/* =========================
   ✨ HERO ANIMATION
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   🔘 BUTTONS
========================= */
.buttons a,
.project-buttons a,
.contact-buttons a {
  padding: 10px 18px;
  margin: 8px;
  background: rgba(0,247,255,0.1);
  border: 1px solid #00f7ff;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  display: inline-block;
}

.buttons a:hover,
.project-buttons a:hover,
.contact-buttons a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #00f7ff;
}

/* =========================
   📦 CARD
========================= */
.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,247,255,0.2);
  padding: 20px;
  border-radius: 15px;
  flex: 1 1 280px;
  max-width: 300px;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 0 25px #00f7ff;
}

.card:hover h3 {
  color: #00f7ff;
}

/* Featured project */
.featured {
  border: 2px solid #00f7ff;
  transform: scale(1.05);
}

/* =========================
   🧱 PROJECT GRID
========================= */
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* =========================
   🧠 SKILLS
========================= */
.skills-container span {
  display: inline-block;
  padding: 8px 14px;
  margin: 5px;
  border-radius: 8px;
  background: rgba(0,247,255,0.1);
}

.skills-container span:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #00f7ff;
}

/* =========================
   📊 STATS
========================= */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  text-align: center;
  font-size: 18px;
}

/* =========================
   🚀 FADE-IN
========================= */
section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   📞 CONTACT
========================= */
.contact {
  text-align: center;
  padding-bottom: 80px;
}

.email {
  color: #00f7ff;
}

/* =========================
   📱 MOBILE
========================= */
@media(max-width:768px){
  .hero h1 {
    font-size: 28px;
    width: 220px;
  }

  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }
}
