html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* margin: 0; */
  /* padding: 0; */
  height: 100vh;
  /* background-image: url("https://s9.postimg.org/w3z61lnxb/holi.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
}

/* Happy Holi CSS */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px;
  text-align: center;
}

.glowing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  max-width: 95vw;
}

.glowing span {
  font-family: "Lobster Two", sans-serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 400;
  font-size: normal;
  min-width: 70px;
  height: 70px;
  color: #fff;
  display: inline-block;
  animation: animate 1s linear infinite;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 20px currentColor;
  text-align: center;
  line-height: 70px;
  border: 25px solid rgba(255, 255, 255, 0.4);
  margin: 0 -2.5px;
}

@keyframes animate {
  0% {
    color: rgb(181, 4, 4);
    box-shadow: 0 2px 10px rgb(158, 1, 1);
    border: 2px solid rgb(157, 4, 4);
  }

  33.3% {
    color: rgb(228, 228, 3);
    box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
    border: 2px solid rgba(255, 255, 0, 1);
  }

  66.6% {
    color: rgb(3, 202, 3);
    box-shadow: 0 2px 10px rgb(1, 191, 1);
    border: 2px solid rgb(3, 185, 3);
  }

  100% {
    color: #f00;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 1);
    border: 2px solid rgba(255, 0, 0, 1);
  }
}

.glowing span:nth-child(1) {
  animation-delay: 0s;
}

.glowing span:nth-child(2) {
  animation-delay: 0.1s;
}

.glowing span:nth-child(3) {
  animation-delay: 0.2s;
}

.glowing span:nth-child(4) {
  animation-delay: 0.3s;
}

.glowing span:nth-child(5) {
  animation-delay: 0.4s;
}

.glowing span:nth-child(6) {
  animation-delay: 0.5s;
}

.glowing span:nth-child(7) {
  animation-delay: 0.6s;
}

.glowing span:nth-child(8) {
  animation-delay: 0.7s;
}

.glowing span:nth-child(9) {
  animation-delay: 0.8s;
}

/* Arrow Button CSS */
.one-btn button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f9e2146c;
  background: rgba(129, 4, 46, 0.906);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s;
  backdrop-filter: blur(4px);
}

.one-btn:hover {
  background: #ff4081;
  border-radius: 50%;
  border-color: #fff;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 0 30px #ff4081;
}

.one-btn button:active {
  transform: scale(0.95);
}

/* Invitation CSS */
.heros {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px 20px;
}

.invite {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.invite .intvite-img {
  width: 100%;
  max-width: 60%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.invite .intvite-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.invite .intvite-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
  border-radius: 16px;
}

.invite-btn {
  display: flex;
  justify-content: center;
  width: 100%;
}

.invite-btn a {
  text-decoration: none;
}

.invite-btn button {
  min-width: 220px;
  width: 40%;
  max-width: 320px;
  height: 50px;
  font-size: 1.3rem;
  border-radius: 2rem;
  border: 3px solid #f9e2146c;
  background: rgba(129, 4, 46, 0.906);
  color: #fff;
  color: white;
  cursor: pointer;
  transition: all 0.35s;
  backdrop-filter: blur(4px);
}

.invite-btn button:hover {
  background: #ff4081;
  border-color: #fff;
  box-shadow: 0 0 30px #ff4081;
  transform: scale(1.08);
}

.invite-btn button:active {
  transform: scale(0.96);
}

/* Form CSS */
.form-container {
  height: 100vh;
  background-image: url(/assests/images/form-bg-4.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 5% 0 0;
}

.form {
  width: 380px;
  max-width: 90%;
  min-height: 400px;
  background-color: rgba(128, 128, 128, 0.212);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* border-radius: 16px; */
  padding: 40px 32px;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form .form-img {
  max-width: 80%;
  max-height: auto;
  margin: 5px auto;
  padding-top: 50px;
}

.form .form-img img {
  width: 100%;
  height: 100%;
}

.form .forms {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

label {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: block;
  color: black;
}

input,
select {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(59, 59, 59, 0.15);
  color: black;
}

input::placeholder,
select {
  color: rgba(31, 31, 31, 0.874);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,...");
  color: black;
}

select option {
  background-color: rgba(4, 68, 107, 0.95);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
}

select option:hover {
  background-color: #067cc5 !important;
  color: white;
}

select option[disabled],
select:invalid {
  color: rgba(21, 20, 20, 0.674);
}

.submit-btn {
  width: 30%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 0.1rem solid rgba(153, 153, 10, 0.347);
  border-radius: 0.5rem;
}

@media (max-width: 1240px) {
  /* Form CSS */
  .form {
    width: 380px;
    max-width: 90%;
    min-height: 560px;
  }

  .form-container {
    height: 138vh;
  }

  label {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
  }

  input,
  select {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    /* background-color: rgba(255, 255, 255, 0.15); */
    /* color: white; */
  }

  input::placeholder,
  select {
    /* color: rgba(255, 255, 255, 0.6); */
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,...");
  }

  select option {
    background-color: rgba(4, 68, 107, 0.95);
    color: #fff;
    padding: 12px;
    font-size: 1rem;
  }

  select option:hover {
    background-color: #067cc5 !important;
    color: white;
  }

  select option[disabled],
  select:invalid {
    /* color: rgba(29, 28, 28, 0.71); */
  }

  .submit-btn {
    width: 30%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 0.1rem solid rgba(153, 153, 10, 0.347);
    border-radius: 0.5rem;
  }
}

@media (max-width: 770px) {
  body {
    /* Optional: subtle background fallback if image is heavy */
    background-attachment: scroll;
    /* better performance on mobile */
  }

  .hero {
    height: auto;
    /* ← most important: stop forcing 100vh */
    min-height: 100svh;
    /* small viewport height — safe for mobile bars */
    padding: 15px 10px;
    gap: 40px;
    /* slightly less vertical space */
    justify-content: center;
  }

  .glowing {
    gap: 8px 12px;
    /* tighter spacing between letters */
    max-width: 100%;
    /* prevent horizontal overflow */
  }

  .glowing span {
    font-size: clamp(1.6rem, 8vw, 3.4rem);
    /* smaller than desktop version */
    min-width: 40px;
    height: 55px;
    line-height: 40px;
    border: 15px solid rgba(255, 255, 255, 0.4);
    /* thinner border on small screens */
    box-shadow: 0 0 15px currentColor;
    /* softer glow */
  }

  /* Reduce animation intensity a bit on mobile (better battery) */
  @keyframes animate {
    0% {
      color: #f00;
      box-shadow: 0 1px 8px rgba(255, 0, 0, 0.9);
    }

    33.3% {
      color: #ff0;
      box-shadow: 0 1px 8px rgba(255, 255, 0, 0.9);
    }

    66.6% {
      color: #0f0;
      box-shadow: 0 1px 8px rgba(0, 255, 0, 0.9);
    }

    100% {
      color: #f00;
      box-shadow: 0 1px 8px rgba(255, 0, 0, 0.9);
    }
  }

  .one-btn button {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-width: 2.5px;
  }

  /* Invitation section (second screen) */
  .heros {
    min-height: auto;
    padding: 40px 15px;
    gap: 35px;
  }

  .invite .intvite-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .invite-btn button {
    width: 80%;
    /* wider touch target */
    max-width: 280px;
    min-width: 200px;
    height: 52px;
    font-size: 1.25rem;
    padding: 0 20px;
  }

  /* Form page (form.html) adjustments */
  .form-container {
    justify-content: center;
    padding: 0 15px;
    background-size: cover;
    background-position: center;
  }

  .form {
    width: 100%;
    max-width: 420px;
    padding: 32px 20px;
    min-height: auto;
  }

  .form h1 {
    font-size: 1.9rem;
  }

  .submit-btn {
    width: 50%;
    min-width: 140px;
  }

  input,
  select {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  label {
    font-size: 1.15rem;
  }

  /* Form CSS */
  .form {
    width: 380px;
    max-width: 90%;
    min-height: 530px;
  }

  .form-container {
    height: 130vh;
  }

  .form h1 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.7rem;
    /* color: #fff; */
  }

  label {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
  }

  input,
  select {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    /* background-color: rgba(255, 255, 255, 0.15); */
    /* color: white; */
  }

  input::placeholder,
  select {
    /* color: rgba(255, 255, 255, 0.6); */
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,...");
  }

  select option {
    background-color: rgba(4, 68, 107, 0.95);
    color: #fff;
    padding: 12px;
    font-size: 1rem;
  }

  select option:hover {
    background-color: #067cc5 !important;
    color: white;
  }

  select option[disabled],
  select:invalid {
    /* color: rgba(255, 255, 255, 0.5); */
  }

  .submit-btn {
    width: 30%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 0.1rem solid rgba(153, 153, 10, 0.347);
    border-radius: 0.5rem;
  }
}

@media (max-width: 730) {
  .hero {
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px;
  text-align: center;
}
}

@media (max-width: 610px) {
  .glowing span {
    font-size: clamp(1.4rem, 7vw, 3.2rem);
    /* smaller than desktop version */
    min-width: 20px;
    height: 50px;
    line-height: 40px;
    border: 15px solid rgba(255, 255, 255, 0.4);
    /* thinner border on small screens */
    box-shadow: 0 0 15px currentColor;
    /* softer glow */
  }
}

@media (max-width: 590px) {
  .invite-btn button {
    min-width: 200px;
    width: 35%;
    max-width: 300px;
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (max-width: 550px) {
  .glowing span {
    font-size: clamp(1.2rem, 6vw, 3rem);
    /* smaller than desktop version */
    min-width: 0px;
    height: 40px;
    line-height: 25px;
    border: 15px solid rgba(255, 255, 255, 0.4);
    /* thinner border on small screens */
    box-shadow: 0 0 15px currentColor;
    /* softer glow */
  }

  .one-btn button {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    border-width: 2.5px;
  }

    .hero {
  height: 40vh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px;
  text-align: center;
}
}

@media (max-width: 530px) {
  .heros {
    gap: 30px;
  }

  .hero {
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px;
  text-align: center;
}
}

@media (max-width: 510px) {
  .glowing span {
    font-size: clamp(1.1rem, 5.5vw, 3rem);
    /* smaller than desktop version */
    min-width: 0px;
    height: 35px;
    line-height: 20px;
    border: 15px solid rgba(255, 255, 255, 0.4);
    /* thinner border on small screens */
    box-shadow: 0 0 15px currentColor;
    /* softer glow */
  }

  .one-btn button {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    border-width: 2.5px;
  }

  .invite-btn button {
    min-width: 160px;
    width: 35%;
    max-width: 260px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .glowing span {
    font-size: clamp(1rem, 5.3vw, 3rem);
    /* smaller than desktop version */
    min-width: 0px;
    height: 35px;
    line-height: 20px;
    border: 15px solid rgba(255, 255, 255, 0.4);
    /* thinner border on small screens */
    box-shadow: 0 0 15px currentColor;
    /* softer glow */
  }

  .one-btn button {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    border-width: 2.5px;
  }
}

@media (max-width: 490px) {
  .glowing {
    flex-direction: column;
    gap: 8px;
  }

  .glowing span {
    font-size: clamp(2.1rem, 9.5vw, 4.2rem);
    min-width: 50px;
    height: 50px;
    line-height: 45px;
    border: 12px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px currentColor;
    margin: 4px 6px;
    flex: 0 0 auto;
  }

  .one-btn button {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    border-width: 2.5px;
  }
}

@media (max-width: 390px) {
  .glowing {
    flex-direction: column;
    gap: 8px;
  }

  .glowing span {
    font-size: clamp(2.1rem, 9.5vw, 4.2rem);
    min-width: 45px;
    height: 45px;
    line-height: 40px;
    border: 12px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px currentColor;
    margin: 4px 6px;
    flex: 0 0 auto;
  }

  .one-btn button {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    border-width: 2.5px;
  }
}

@media (max-width: 340px) {
  .invite-btn button {
    min-width: 140px;
    width: 35%;
    max-width: 240px;
    height: 42px;
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  .glowing {
    flex-direction: column;
    gap: 8px;
  }

  .glowing span {
    font-size: clamp(2.1rem, 9.5vw, 4.2rem);
    min-width: 30px;
    height: 40px;
    line-height: 30px;
    border: 12px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px currentColor;
    margin: 4px 4px;
    flex: 0 0 auto;
  }

  .one-btn button {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    border-width: 2.5px;
  }
}