/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Honeypot anti-spam field — must stay invisible */
.honey-pot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Screen reader only - visible to assistive tech, hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== BACK TO TOP BUTTON ========== */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #474af0;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  display: flex;
}

#back-to-top:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(71, 74, 240, 0.4);
}

/* Dark mode overrides for contact items (moved from top for proper ordering) */
body.dark-mode .contact-item {
  color: #fff !important;
}

body.dark-mode .contact-item i {
  color: #90caf9;
}

body.dark-mode .contact-item a {
  color: #fff !important;
}

/* (removed) Background canvas for minimal shooting dots */

/* Theme Toggle Button */
#theme-toggle {
  position: fixed;
  bottom: 110px;
  right: 40px;
  background: #474af0;
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#theme-toggle:hover {
  transform: scale(1.1);
  background: #2c36d9;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #000000;
  color: #ffffff;
}

/* (removed) bg-comets handling in dark mode */

body.dark-mode .header-list .ul-list {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .ul-list li a {
  color: #ffffff;
}

body.dark-mode .ul-list li.active {
  background-color: #ffffff;
}

body.dark-mode .ul-list li.active a,
body.dark-mode .ul-list li.active i {
  color: #000000;
}

body.dark-mode .home-p,
body.dark-mode .about p,
body.dark-mode .project p,
body.dark-mode .services p,
body.dark-mode .contact p,
body.dark-mode .info-p,
body.dark-mode .info-p2,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff;
}

body.dark-mode .c1 {
  background-color: #1a1a1a;
  border-color: #ffffff;
  color: #ffffff;
}

body.dark-mode .project-card,
body.dark-mode .service-card {
  background: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .project-card h3 {
  color: #ffffff;
}

body.dark-mode .project-card p {
  color: #cccccc;
}

/* Services in dark mode - blue elements greyed, no hover effect */
body.dark-mode .service-card h3 {
  color: #888888;
}

body.dark-mode .service-card p {
  color: #aaaaaa;
}

body.dark-mode .service-card::before {
  display: none;
  /* Remove hover effect */
}

body.dark-mode .service-card:hover h3,
body.dark-mode .service-card:hover p {
  color: #888888;
  /* Keep greyed on hover */
}

body.dark-mode .btn-home2 {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.08);
}

body.dark-mode .btn-home2:hover {
  border-color: #474af0;
  box-shadow: 0 12px 24px rgba(71, 74, 240, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #1a1a1a;
  border-color: #444;
  color: #ffffff;
}

body.dark-mode .contact-item a {
  color: #ffffff;
}

body.dark-mode hr {
  border-color: #444;
}

/* Ensure 'Follow me' area is visible in dark mode */
body.dark-mode .follow p,
body.dark-mode .followw,
body.dark-mode .follow ul a,
body.dark-mode .follow ul a i {
  color: #ffffff !important;
}

/* Hide main content initially */
body {
  overflow: hidden;
}

body.loaded {
  overflow: auto;
}

/* Logo Loading Screen */
#logo-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#logo-loading-screen.fade-out {
  opacity: 0;
}

.loading-logo {
  max-width: 300px;
  width: 80%;
  height: auto;
  animation: logoFade 1.5s ease-in-out infinite;
}

@keyframes logoFade {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.header-list {
  margin: 15px 20px;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ul-list {
  list-style: none;
  display: flex;
  gap: 3rem;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 25px;
  border-radius: 25px;
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  transition: 0.3s;
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: black;
}

.ul-list li.active {
  background-color: black;
  padding: 10px 15px;
}

.ul-list li.active a,
.ul-list li.active i {
  color: white;
}

/* fine header  */

.home {
  margin: 160px 200px;
}

.home-container {
  display: flex;
  gap: 6rem;
}

.home-p {
  color: black;
  background-color: rgba(128, 128, 128, 0.214);
  display: inline-block;
  border-radius: 25px;
  padding: 5px 10px;
  margin-bottom: 30px;
}

.home-s {
  font-weight: bold;
  color: green;
}

.info-home h1 {
  font-size: 70px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 20px;
}

.info-home h3 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

/* Internship availability badge */
.availability-badge {
  display: inline-block;
  margin: 6px 0 14px 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #155724;
  background: #d4edda;
  /* soft green */
  border: 1px solid #c3e6cb;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.availability-badge:hover {
  background: #28a745;
  color: #fff;
  transform: translateY(-1px);
}

.info-p {
  color: #222;
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: #2c2c2c;
  font-size: 14px;
  padding-bottom: 20px;
}

.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.btn-home1 {
  background-color: #000000;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
}

.btn-home2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border: 2px solid black;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: perspective(600px) rotateX(0deg) rotateY(0deg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-home2:hover {
  background-color: #474af0;
  border-color: #474af0;
  color: #fff !important;
  transform: perspective(600px) rotateX(-3deg) rotateY(3deg) translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(71, 74, 240, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-home2:hover i {
  color: #fff !important;
}

.btn-home2:active {
  transform: perspective(600px) rotateX(0deg) rotateY(0deg) translateY(-1px) scale(0.98);
  box-shadow: 0 4px 8px rgba(71, 74, 240, 0.3);
}

hr {
  width: 90%;
  font-weight: bold;
  color: gray;
}

.hhr {
  padding-bottom: 30px;
}

.follow {
  display: flex;
  gap: 1rem;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #000000;
}

.home img {
  width: 400px;
  border-radius: 10px;
}

/* fine home  */

.about {
  margin: 160px 200px;
}

.about p {
  padding-bottom: 30px;
  font-size: 13px;
  color: rgb(50, 50, 50);
}

.about h1 {
  font-family: "Open Sans", sans-serif;
}

.title {
  padding-bottom: 20px;
}

.about .hrrr {
  width: 30%;
  padding-bottom: 40px;
}

.info-about {
  display: flex;
  flex-direction: column;
}

.about-container {
  display: flex;
  gap: 2rem;
}

.about img {
  position: relative;
  bottom: 85px;
  width: 400px;
  height: 400px;
  border-radius: 15px;
  border: 1px solid black;
}

.about h2 {
  padding-bottom: 30px;
}

.card {
  display: flex;
  gap: 2rem;
}

.c1 {
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 2px solid black;
  padding: 5px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.c1 h3 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.c1:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #ff3333;
  background-color: #fff5f5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}


.project {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project p {
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(50, 50, 50);
}

.project h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
}

.project hr {
  width: 10%;
}

.info-pro {
  padding-top: 20px;
}

.info-pro p {
  padding-bottom: 10px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #1e40af;
  margin-bottom: 8px;
}

.project-card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.skills {
  margin-bottom: 15px;
  margin-top: auto;
}

.skills a {
  display: inline-block;
  background: #e0e7ff;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 3px;
  transition: background 0.3s;
}

.skills a:hover {
  background: #c7d2fe;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.btn {
  background: #1e40af;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: #2563eb;
  border-radius: 25px;

}

.services {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.services p {
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(50, 50, 50);
}

.services h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
}

.services hr {
  width: 10%;
}

.services-container {
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.5s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card img {
  width: 100px;
  margin-bottom: 15px;
  z-index: 1;
  position: relative;
}

.service-card h3 {
  color: #1e40af;
  margin-bottom: 10px;
  transition: color 0.5s;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: #555;
  font-size: 0.9rem;
  transition: color 0.5s;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #474af0;
  z-index: 0;
  transition: 0.5s;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

.contact {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact p {
  padding-bottom: 20px;
  font-size: 13px;
  color: rgb(50, 50, 50);
}

.contact h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
}

.contact hr {
  width: 10%;
}

.contact-content {
  padding-top: 50px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 25px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #222;
}

.contact-item i {
  font-size: 20px;
  color: #474af0;
}

/* Ensure contact detail links (Gmail, LinkedIn) are black */
.contact-item a {
  color: #000;
  text-decoration: none;
}

.contact-item a:hover {
  color: #000;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: #fff;
}

.social-link[href*="github"]:hover {
  background: #000;
}

.social-link[href*="linkedin"]:hover {
  background: #0A66C2;
}

/* New hover colors */
.social-link[href*="discord.com"]:hover {
  background: #5865F2;
}

.social-link[href*="x.com"]:hover {
  background: #000;
}

.social-link[href*="instagram.com"]:hover {
  background: #E4405F;
}

/* Form */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #474af0;
}

.btn-send {
  background: #474af0;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn-send:hover {
  background: #2c36d9;
}

/* Status text under the contact form button */
.form-status {
  margin-top: 10px;
  font-size: 14px;
  color: #222;
}

body.dark-mode .form-status {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}

footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  overflow-x: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #474af0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #474af0;
}

.footer-copy {
  font-size: 12px;
  color: #aaa;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.active-reveal {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  color: #00f0ff;
  text-align: center;
}

.hidden {
  opacity: 0;
  transform: translateY(-200px);
}

.fall {
  animation: fall 0.9s forwards;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-200px);
  }

  60% {
    opacity: 1;
    transform: translateY(20px);
  }

  100% {
    transform: translateY(0);
  }
}

.loading-content h1,
.loading-content h2,
.loading-content i {
  margin: 20px 0;
}

.sub-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

#main-page {
  opacity: 0;
  transition: opacity 1s ease;
}

#main-page.visible {
  opacity: 1;
}

/* Responsive for tablets and phones */
@media (max-width: 1024px) {

  .home,
  .about,
  .project,
  .services,
  .contact {
    margin: 120px 50px;
  }

  .home-container,
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }

  .home img,
  .about img {
    width: 100%;
    height: auto;
  }

  .projects-container,
  .services-container {
    grid-template-columns: 1fr;
    /* single column on small screens */
  }

  /* Fix overlap of about image with certifications on tablets */
  .about img {
    position: static;
    bottom: auto;
    margin: 0 0 20px 0;
    z-index: 0;
  }

  .ul-list {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 8px 15px;
  }
}

/* Phone layout */
@media (max-width: 768px) {
  header {
    display: none;
  }

  .home,
  .about,
  .project,
  .services,
  .contact {
    margin: 100px 20px;
  }

  .home-container,
  .about-container,
  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

  .projects-container,
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
  }

  .home img,
  .about img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Stronger reset on phones to avoid any overlap */
  .about img {
    position: static;
    bottom: auto;
    margin: 0 0 16px 0;
    z-index: 0;
  }

  .btn-home1,
  .btn-home2,
  .btn,
  .btn-send {
    width: 100%;
    text-align: center;
  }

  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 1024px) {

  header {
    display: none;
  }

  .home,
  .about,
  .project,
  .services,
  .contact {
    margin: 20px auto;
    padding: 0 15px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-container,
  .about-container,
  .contact-content,
  .card {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .projects-container,
  .services-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
  }

  .about img {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }

  .card .c1 {
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
  }

  .home img,
  .project-card img,
  .service-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover;
  }

  .info-home h1 {
    font-size: 26px;
  }

  .info-home h3 {
    font-size: 18px;
  }

  .info-p,
  .info-p2,
  .home-p,
  .about p,
  .project p,
  .service-card p,
  .contact p {
    font-size: 14px;
  }

  .project-card h3,
  .service-card h3 {
    font-size: 16px;
  }

  .contact-content {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

/* ========== STARS BACKGROUND ========== */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

/* Dark mode: subtle dark overlay for stars visibility */
body.dark-mode .stars-background {
  background: rgba(2, 6, 23, 0.4);
}

/* Light mode: hide stars */
body:not(.dark-mode) .stars-background {
  opacity: 0;
}

/* Static stars container */
#static-stars {
  position: absolute;
  inset: 0;
}

/* Individual static star */
.static-star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 200, 255, 0.7) 0%, rgba(180, 200, 255, 0.2) 50%, transparent 70%);
  filter: drop-shadow(0 0 1px rgba(180, 200, 255, 0.3));
}

/* Shooting stars container */
#shooting-stars {
  position: absolute;
  inset: 0;
}

/* Shooting star element - CSS variable driven */
.shooting-star {
  --start-x: 0vw;
  --start-y: 0vh;
  --end-x: 150vw;
  --end-y: 120vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 200, 255, 0.4) 30%, rgba(120, 200, 255, 0.8) 100%);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(120, 200, 255, 0.6);
  opacity: 0;
  will-change: transform, opacity;
}

/* Shooting star head (bright tip) */
.shooting-star::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: rgba(235, 245, 255, 1);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(220, 230, 255, 0.9);
}

/* Type A: Full path - starts visible, travels full distance, fades at end */
@keyframes shoot-type-a {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0) rotate(30deg);
    opacity: 0;
  }

  8% {
    opacity: 0.95;
  }

  85% {
    opacity: 0.95;
  }

  100% {
    transform: translate3d(var(--end-x), var(--end-y), 0) rotate(30deg);
    opacity: 0;
  }
}

/* Type B: Mid-fade - fades out between 40-70% of journey */
@keyframes shoot-type-b {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0) rotate(30deg);
    opacity: 0;
  }

  8% {
    opacity: 0.95;
  }

  45% {
    opacity: 0.9;
  }

  65% {
    opacity: 0;
  }

  100% {
    transform: translate3d(var(--end-x), var(--end-y), 0) rotate(30deg);
    opacity: 0;
  }
}

/* Type C: Early disappear - fades out at 20-40% of journey */
@keyframes shoot-type-c {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0) rotate(30deg);
    opacity: 0;
  }

  5% {
    opacity: 0.9;
  }

  25% {
    opacity: 0.8;
  }

  40% {
    opacity: 0;
  }

  100% {
    transform: translate3d(var(--end-x), var(--end-y), 0) rotate(30deg);
    opacity: 0;
  }
}

/* Disable shooting stars on mobile */
@media (max-width: 480px) {
  .shooting-star {
    display: none;
  }

  .static-star {
    opacity: 0.5;
  }
}