@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.05), transparent 30%),
              radial-gradient(circle at 80% 60%, rgba(0, 255, 255, 0.07), transparent 30%),
              linear-gradient(270deg, #1a1a1a, #112244, #000000);
  background-size: 200% 200%, 200% 200%, 800% 800%;
  animation: waveGradient 40s ease-in-out infinite alternate;
  color: #e0e0e0;
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
  cursor: default;
  font-size: 16px;
}

@keyframes waveGradient {
  0% {
    background-position: 0% 0%, 100% 100%, 0% 50%;
  }
  50% {
    background-position: 50% 100%, 0% 0%, 100% 50%;
  }
  100% {
    background-position: 100% 50%, 50% 100%, 0% 50%;
  }
}

/* Particle background canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Ensure visible content is above canvas */
.navbar,
.container,
.contact-section {
  position: relative;
  z-index: 1;
}

/* Remove gray box, let content float */
.container {
  max-width: 900px;
  margin: 5% auto;
  padding: 2rem;
}

/* Text readability with glow */
.intro h1,
h2,
p {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.intro h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: #00f0ff;
}

.tagline {
  font-size: clamp(1rem, 4vw, 1.2rem);
  margin-top: 0.5rem;
  color: #88ffff;
}

section {
  margin-top: 2rem;
}

/* Title shimmer effect */
.shimmer-text {
  background: linear-gradient(120deg, #00f0ff, #ffffff, #00f0ff);
  background-size: 200% auto;
  color: #00f0ff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Skill badges */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  justify-content: flex-start;
}

.skill-badge {
  padding: 0.5rem 0.9rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #00f0ff;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #00f0ff;
  text-shadow: 0 0 8px #00f0ff;
  white-space: nowrap;
  transition: transform 0.2s ease;
  will-change: transform;
}

/* Navigation */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: rgba(15, 15, 15, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #00f0ff44;
  box-shadow: 0 2px 10px #00f0ff20;
}

.nav-brand .nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00f0ff;
  text-decoration: none;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}

.nav-links a {
  margin-left: 1.5rem;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00f0ff;
  text-shadow: 0 0 5px #00f0ff;
}

/* Contact section */
.contact-section {
  text-align: center;
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.social-icons i {
  font-size: 2rem;
  color: #00f0ff;
  text-shadow: 0 0 8px #00f0ff, 0 0 15px #00f0ff;
  transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
  animation: pulse 3s ease-in-out infinite;
}

.social-icons a:hover i {
  transform: scale(1.2) rotate(2deg);
  text-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.contact-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background-color: transparent;
  border: 2px solid #00f0ff;
  border-radius: 30px;
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
  background-color: #00f0ff;
  color: #0f0f0f;
  box-shadow: 0 0 15px #00f0ff;
}

.contact-button i {
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-links a {
    margin: 0.5rem 0;
  }

  .skill-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }

  .container {
    margin: 2rem 1rem;
    padding: 1.2rem;
  }
}
