/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;   /* Prevents horizontal scroll (good!) */
  overflow-y: auto;     /* ✅ Allows vertical scroll for footer visibility */
}
.hidden {
  display: none;
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.center-text {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 3px;
}
.center-text sup {
  font-size: 1.2rem;
  vertical-align: super;
  opacity: 0.6;
  margin-left: 4px;
}
#percentage {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.4;
}
.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbiter {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #fff, transparent);
  border-radius: 50%;
  animation: spiralCollapse 3.5s linear infinite;
  animation-delay: var(--delay);
}
@keyframes spiralCollapse {
  0% { transform: rotate(0deg) translateX(120px) scale(1); opacity: 1; }
  50% { transform: rotate(180deg) translateX(60px) scale(0.6); opacity: 0.6; }
  100% { transform: rotate(360deg) translateX(0px) scale(0.2); opacity: 0; }
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  top: 50%;
  transform: translateY(-40%);
}
.hero-title {
  font-size: 4.5rem;
  letter-spacing: 2px;
}
.hero-title sup {
  font-size: 1.2rem;
  vertical-align: super;
  opacity: 0.6;
}
.hero-tagline {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #aaa;
}
.pill {
  background: #222;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ===== TOP NAVBAR ===== */
.top-nav {
  display: flex;
  justify-content: space-between; /* space between links and buttons */
  align-items: center;
  flex-direction: row;
  gap: 30px;
  padding: 10px 32px;
  background: #333;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  width: max-content;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Container holding links and buttons side by side */
.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}


.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

.top-nav .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding-top: 5px;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}
.top-nav .nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  
}
.top-nav .nav-links a:hover {
  color: #fff;
}
.top-nav .nav-buttons {
  display: flex;
  gap: 10px;
}
.nav-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #ff4d4d; /* soft red border */
  padding: 5px 10px; /* more rectangular */
  border-radius: 10px; /* small rounded corners */
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
  font-size: 0.85rem;
  white-space: nowrap;        /* Keeps text on one line */
  max-width: fit-content;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.dropbtn {
  display: flex;
  gap: 6px;
  color: #ccc;
  padding: 1px 5px;
  text-decoration: none;
  font-size: 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.3s;
}


.nav-btn:hover {
  box-shadow: 0 0 14px rgba(255, 77, 77, 0.6);
  border-color: #ff6666;
  cursor: pointer;
}

.nav-icon img {
  width: 60px;
  height: 30px;
}



/* ===== FLOATING IMAGES ===== */
#floatingContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}
.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  opacity: 0.2;
  filter: blur(1px);
  transition: transform 0.3s ease;
}

/* ===== FOOTER ===== */
.footer-elements {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 5;
}
.theme-toggle {
  position: absolute;
  left: 30px;
  bottom: 20px;
  cursor: pointer;
}
.cookie-banner {
  background: #111;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.accept-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}


.flicker-words {
  display: inline-block;
  min-width: 100px;
  text-align: center;
  padding: 12px;
  border: 0.05px solid #ff4d4d; /* soft red border */
  border-radius: 5px;

}

.pill {
  background: #222;
  color: #ff4d4d;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 8px;
}

.fade {
  animation: flickerFade 1.5s ease;
}

.explore-more {
  position: absolute;
  right: 30px;
  bottom: 4px;
  font-size: 1rem;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
}
.explore-more:hover {
  opacity: 1;
}

/* Dropdown Container */
.dropdown {
  position: relative;
}



.dropbtn:hover {
  color: #fff;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
  min-width: 160px;
  z-index: 20;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #222;
  color: #fff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}



.dropbtn:hover {
  color: #fff;
}

.dropdown-arrow {
  width: 12px;
  height: 10px;
}



.phone, .email{
    display: flex;
    padding-left: 10px;
    flex-direction: column;
    
}


.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    max-width: 720px;
    background: #302e2e;
    border: 2px solid #fff;
    transform: translate(-50%, -70%);
}

.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.1s;
}

.form-popup .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #878484;
    cursor: pointer;
}

.blur-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.1s ease;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}

.form-popup .form-box {
    display: flex;
}

.form-box .form-details {
    width: 100%;
    color: #e70000;
    max-width: 330px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login .form-details {
    padding: 0 40px;
    background: url("images/login-img.jpg");
    background-position: center;
    background-size: cover;
}

.signup .form-details {
    padding: 0 20px;
    background: url("images/signup-img.jpg");
    background-position: center;
    background-size: cover;
}

.form-box .form-content {
    width: 100%;
    padding: 35px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 29px;
}

form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

.input-field input {
    height: 100%;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    padding: 0 15px;
    border: 1px solid #717171;
    border-radius: 3px;
}

.input-field input:focus {
    border: 1px solid #00bcd4;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #4a4646;
    pointer-events: none;
    transition: 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    padding: 16px 15px 0;
}

.input-field input:is(:focus, :valid)~label {
    transform: translateY(-120%);
    color: #00bcd4;
    font-size: 0.75rem;
}

.form-box a {
    color:#e70000;
    text-decoration: none;
}

.form-box a:hover {
    text-decoration: underline;
}

form :where(.forgot-pass-link, .policy-text) {
    display: inline-flex;
    margin-top: 13px;
    font-size: 0.95rem;
}

.dropdown-menu {
    background-color: #717171;
    color: #e70000;
}


form button {
    width: 100%;
    color: #fff;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    margin: 25px 0;
    background: #e70000;
    transition: 0.2s ease;
}

form button:hover {
    background: #a71c00;
}

.form-content .bottom-link {
    text-align: center;
}

.form-popup .signup,
.form-popup.show-signup .login {
    display: none;
}

.form-popup.show-signup .signup {
    display: flex;
}

.signup .policy-text {
    display: flex;
    margin-top: 14px;
    align-items: center;
}

.signup .policy-text input {
    width: 14px;
    height: 14px;
    margin-right: 7px;
}


@media (max-width: 760px) {
    .form-popup {
        width: 95%;
    }

    .form-box .form-details {
        display: none;
    }

    .form-box .form-content {
        padding: 30px 20px;
    }
}

@keyframes flickerFade {
  0% { opacity: 0; transform: scale(0.95); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
  /* NAVBAR BASE */
  .top-nav {
  position: fixed; /* 🧯 anchor it in place */
  top: 50px;
  left: 20%;
  transform: translateX(-50%);
  z-index: 100;
}

  /* TOGGLE BUTTON (HAMBURGER) */
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 11;
  }

  /* WRAPPER FOR LINKS + BUTTONS */
  .nav-container {
    display: none;
    flex-direction: column;
    width: fit-content;
    margin-top: 8px;
    gap: 10px;
    background: #222;
    border-radius: 10px;
    padding: 12px;
  }

  .nav-container.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #222;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: absolute;
  top: 50px;
  left: 0;
  width: 350px;
  z-index: 99;
}

  /* LINKS + BUTTONS STACKED */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;

  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    padding: 8px 10px;
    color: #ccc;
    border-radius: 6px;
  }

  .dropbtn {
    gap: 6px;
  }

  .nav-buttons {
  display: flex;
  flex-direction: row;        /* 🤝 side by side */
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

 .nav-btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
}



  /* HERO */
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-content {
  position: relative;
  z-index: 1;
}

  .flicker-words,
  .pill {
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 14px;
  }

  /* FLOATING CARDS */
  .floating-card {
    width: 80px;
    height: 80px;
  }

  /* FOOTER */
  .footer-elements {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    bottom: 10px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px;
  }

  .explore-more,
  .theme-toggle {
    margin-top: 10px;
    text-align: center;
    opacity: 0.8;
  }
}