/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, sans-serif; }
body { background: black; color: #e3e3e3; overflow-x: hidden; }

#stars {
  position: fixed;
  inset: 0;
  z-index: -3;
}

/* HEADER */
.header {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header nav a {
  margin-left: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.header nav a:hover { color: #cdcdcd; transform: scale(1.05); }
.btn-primary-1:hover { transform: scale(1.05); }
.btn-primary-4:hover { transform: scale(1.05); }
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: 2px; }
.logo:hover { transform: scale(1.03); animation: neonCycle 6s ease-in-out infinite }

/* HERO */
.hero {
  padding-top: 100px;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 40px;
  position: relative;
}

.hero-text h1 { font-size: 2.4rem; line-height: 1.2; }
.hero-text p { margin-top: 20px; max-width: 700px; color: #cfcfcf; }

.btn-primary-1 {
  margin-top: 30px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #dc5fff, #8f57bf);
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary-2 {
  margin-top: 30px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #5f72ff, #234fd6);
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary-3 {
  margin-top: 30px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #9046e3, #6454dd);
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary-4 {
  margin-top: 10px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #000000, #000000);
  color: rgb(239, 239, 239);
  border: rgb(255, 255, 255);
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary-1:hover { transform: scale(1.03); }
.btn-primary-2:hover { transform: scale(1.03); }
.btn-primary-3:hover { transform: scale(1.03); }

/* PARALLAX PLANET */
.planet-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.planet {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #655eda, #1b16b0 70%, #000000);
  top: -200px;
  right: -200px;
  filter: blur(1px);
  opacity: 0.85;
  animation: planetFloat 40s linear infinite,
             planetRotate 200s linear infinite;
}

.planet-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  top: -300px;
  right: -300px;
  background: radial-gradient(circle,
    rgba(0, 180, 255, 0.25),
    rgba(0, 0, 0, 0)
  );
  filter: blur(60px);
  animation: glowFloat 60s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes planetFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0px); }
}
@keyframes planetRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes glowFloat {
  0% { opacity: 0.25; transform: translateY(0px); }
  50% { opacity: 0.45; transform: translateY(20px); }
  100% { opacity: 0.25; transform: translateY(0px); }
}

/* CITY */
.city-container {
  position: relative;
  display: flex;
  justify-content: center;
}
#city {
  width: 100%;
  max-width: 450px;
  height: 300px;
  border-radius: 15px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
}

/* FLYING CARS */
.flying-car {
  position: absolute;
  width: 45px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff5fb1, #00c6ff);
  filter: drop-shadow(0 0 6px #00c6ff);
  opacity: 0.9;
}
.car1 { top: 40px; animation: fly 8s linear infinite; }
.car2 { top: 90px; animation: fly 12s linear infinite reverse; }
.car3 { top: 150px; animation: fly 10s linear infinite; }
@keyframes fly {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* PROJECTS */
.projects { padding: 80px 40px; }
.projects h2 { margin-bottom: 30px; font-size: 2.2rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px #8d89f855;
}

.thumb {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.neon1 { background: linear-gradient(120deg, #ff5fb1, #00c6ff); }
.neon2 { background: linear-gradient(120deg, #00ffd5, #0044ff); }
.neon3 { background: linear-gradient(120deg, #ff006a, #ffce00); }

/* ABOUT + CONTACT */
.about { padding: 80px 40px; background: radial-gradient(circle at 30% 30%, #2f005c55, transparent 70%); }
.contact { padding: 80px 40px; }

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 500px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 6px;
  color: white;
}

footer { text-align: center; padding: 60px; color: #777; }

.led-scroller {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 12px 0;
  border-top: 1px solid rgb(0, 0, 0);
}

.led-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  color: #0ff;
  text-shadow: 0 0 4px #0ff, 0 0 10px #0ff, 0 0 15px #0ff, 0 0 20px #0ff;

  animation: scrollText 15s linear infinite, neonCycle 8s linear infinite, flicker 10s infinite alternate;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }   /* start fully off the right */
  100% { transform: translateX(-100%); } /* scroll fully off the left */
}


/* .led-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  color: #0ff;
  text-shadow:
    0 0 4px #0ff,
    0 0 10px #0ff,
    0 0 15px #0ff,
    0 0 20px #0ff;
  animation: scrollText 20s linear infinite, neonCycle 4s linear infinite, flicker 0.15s infinite alternate;
}

/* horizontal scroll animation adjusted for full width */
/* @keyframes scrollText {
  0% { transform: translateX(100vw); }   /* start fully off right edge */
 /* 100% { transform: translateX(-100%); } /* end fully off left edge */
/*}

/* subtle flicker for neon glow */
/* @keyframes flicker {
  0%, 100% { text-shadow: 0 0 4px #0ff, 0 0 10px #0ff, 0 0 15px #0ff; }
  25% { text-shadow: 0 0 6px #0ff, 0 0 12px #0ff, 0 0 18px #0ff; }
  50% { text-shadow: 0 0 3px #0ff, 0 0 8px #0ff, 0 0 12px #0ff; }
  75% { text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff; }
} */

 @keyframes neonCycle {
  0%   { color: #4840f0; text-shadow: 0 0 4px #4840f0,0 0 10px #4840f0; }
  25%  { color: #a0f; text-shadow: 0 0 6px #a0f,0 0 12px #a0f; }
  50%  { color: #f0f; text-shadow: 0 0 8px #f0f,0 0 14px #f0f; }
  75%  { color: #0af; text-shadow: 0 0 6px #0af,0 0 12px #0af; }
  100% { color: #4840f0; text-shadow: 0 0 4px #4840f0,0 0 10px #4840f0; }
}


/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 25px;
    min-height: 90vh;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  /* Parallax Planet */
  .planet, .planet-glow {
    width: 350px;
    height: 350px;
    top: -120px;
    right: -120px;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Navigation */
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
  .header nav {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
  }
  .header nav a {
    margin: 5px 0;
  }

  /* About + Contact Sections */
  .projects, .about, .contact {
    padding: 40px 20px;
  }
}

.proficiencies {
  padding: 80px 40px;
  background: radial-gradient(circle at 30% 30%, rgba(0,140,255,0.1), transparent 70%);
}

.proficiencies h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.tech-logos img {
  width: 48px;
  height: 48px;
  filter: brightness(0.9);
  transition: filter 0.3s, transform 0.3s;
}

.tech-logos img:hover {
  filter: brightness(1);
  transform: scale(1.1);
}

#typed-text {
  color: white;
  white-space: pre-wrap;
  border-right: 2px solid white; /* stays white while typing */
}

/* Normal blinking while typing */
@keyframes blink {
  50% { border-color: transparent; }
}

/* Transition from white → glowing neon cycle */
@keyframes cursorTransition {
  0%   { border-color: white; }
  40%  { border-color: rgb(213, 255, 255); }
  60%  { border-color: rgb(128, 244, 255); }
  100%  { border-color: rgb(63, 255, 245); }
}

/* After transition, loop neon colors */
@keyframes cursorGlow {
  0%   { border-color: #0ff; }
  25%  { border-color: #a0f; }
  50%  { border-color: #f0f; }
  75%  { border-color: #0af; }
  100% { border-color: rgb(0, 221, 255); }
}



