/* ================= RESET ================= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

/* ================= IMAGE BACKGROUND ================= */

.image-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.image-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0, 0, 0, 0.2);
}

/* ================= THEME ================= */
:root{
  --card-bg: rgba(255,255,255,0.95);
  --text-dark:#1e1e1e;
  --primary:#821818;
}

body{
  font-family:"Montserrat",sans-serif;
  color:#821818;
  overflow-x:hidden;
}

/* ================= VIDEO BG ================= */
.video-bg{
  position:fixed;
  inset:0;
  z-index:-2;
}
.video-bg video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.video-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.85);
}

/* ================= MSB BACKGROUND ================= */

.bg-title{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-weight: 800;
  letter-spacing: 25px;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
      120deg,
      #8b1e1e,
      #6b0f0f,
      #2e0505,
      #8b1e1e
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  opacity: 0.12;
  animation: metallicMove 6s ease infinite alternate;
}

@keyframes metallicMove{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 100% 50%; }
}



/* ================= HERO ================= */
.hero{
  padding:110px 20px 60px;
  text-align:center;

  /* WHITE BACKGROUND BOX */
  max-width: 850px;
  margin: 110px auto 60px;
  background: rgba(255,255,255,0.85);
  padding: 45px 40px;
  border-radius: 22px;
  backdrop-filter: blur(10px);

  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.hero h1{
  font-size:42px;
  color:#821818;
}

.hero p{
  max-width:720px;
  margin:15px auto 0;
  line-height:1.7;
  color:#680c0c;
}

.image-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  filter: blur(3px) brightness(0.9);
}

/* ================= HANDOVER TIMELINE ================= */
.timeline{
  max-width:900px;
  margin:60px auto;
  padding:0 20px;
}

/* Vertical Line */
.timeline{
  position: relative;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(#8b1e1e, #2e0505);
  animation: growLine 2s ease forwards;
  transform-origin: top;
  transform: scaleY(0);
}

@keyframes growLine{
  to{
    transform: scaleY(1);
  }
}

/* Adjust step spacing */
.step{
  margin-left: 50px;
  position: relative;
}

.step{
  background:var(--card-bg);
  color:var(--text-dark);
  padding:30px;
  border-radius:18px;
  margin-bottom:30px;
  border-left:6px solid var(--primary);
  box-shadow:0 20px 40px rgba(0,0,0,.2);
  opacity:0;
  transform:translateY(60px);
  transition:.8s ease;
}

.step.show{
  opacity:1;
  transform:translateY(0);
}

.step span{
  font-size:24px;
  color:var(--primary);
  font-weight:700;
}

.step h3{
  margin:6px 0 8px;
}

/* Hover Zoom Effect */
.timeline:hover .step{
  transform: scale(0.92);
  opacity: 0.6;
}

.timeline .step:hover{
  transform: scale(1.05);
  opacity: 1;
  z-index: 10;
}

/* ================= BACK ================= */
.back{
  text-align:center;
  margin-bottom:60px;
}

.back a{
  display:inline-block;
  padding:12px 28px;

  background: rgba(255,255,255,0.95);
  color:#821818;
  font-weight:600;
  text-decoration:none;

  border-radius:30px;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.back a:hover{
  background:#821818;
  color:#fff;
  transform: translateY(-3px);
}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .hero h1{
    font-size:32px;
  }
  .bg-title{
    font-size:100px;
    letter-spacing:12px;
  }
}

/* Progress Bar */
.progress-container{
  width: 80%;
  height: 10px;
  background: #eee;
  margin: 30px auto;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar{
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#8b1e1e,#2e0505);
  animation: loadProgress 3s ease forwards;
}

@keyframes loadProgress{
  to{
    width: 100%;
  }
}

.floating-key{
  position: fixed;
  top: 30%;
  right: 10%;
  font-size: 50px;
  animation: floatKey 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatKey{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-20px); }
  100%{ transform: translateY(0); }
}

.confetti{
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  background: #8b1e1e;
  opacity: 0.8;
  animation: fall linear forwards;
}

@keyframes fall{
  to{
    transform: translateY(100vh) rotate(360deg);
  }
}

.testimonials h2{
  display: inline-block;

  background: rgba(255,255,255,0.95);
  padding: 14px 30px;
  border-radius: 30px;

  color:#821818;
  font-size:25px;
  font-weight:700;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.testimonials{
  text-align:center;
  padding:60px 20px;
}

.testimonial-slider{
  max-width:600px;
  margin:30px auto;
  position:relative;
}

.testimonial{
  display:none;
  background:#fff;
  padding:25px;
  border-radius:15px;
  box-shadow:0 15px 30px rgba(0,0,0,.2);
}

.testimonial.active{
  display:block;
  animation: fadeSlide 1s ease;
}

@media (max-width:768px){
  .testimonials h2{
    font-size:24px;
    padding: 12px 22px;
  }
}

@keyframes fadeSlide{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1; transform:translateY(0);}
}

/* ================= DREAM HOUSE BACKGROUND ================= */

.bg-house{
  position: fixed;
  top: 32%;
  right: 10%;
  transform: translate(50%, -50%);
  font-size: 160px;
  opacity: 0.08;
  z-index: -2;
  pointer-events: none;

  background: linear-gradient(120deg,#8b1e1e,#2e0505);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: houseGlow 6s ease infinite alternate;
}

@keyframes houseGlow{
  0%{ opacity: 0.05; }
  100%{ opacity: 0.12; }
}

/* ================= KEY TEXT ================= */

.floating-key{
  position: fixed;
  top: 30%;
  right: 10%;
  font-size: 50px;
  text-align:center;
  animation: floatKey 3s ease-in-out infinite;
  z-index: 1;
}

.key-text{
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 1px;
  color: #8b1e1e;
}

@media (max-width: 768px){

  .hero{
    margin: 80px 15px 40px;   /* tighter spacing */
    padding: 30px 22px;      /* smaller white box */
    border-radius: 18px;
  }

  .hero h1{
    font-size: 28px;         /* better mobile heading */
    line-height: 1.3;
  }

  .hero p{
    font-size: 15px;
    line-height: 1.6;
  }

}

@media (max-width: 768px){
  .image-bg img{
    filter: blur(4px) brightness(0.85);
  }
}

/* ================= MOBILE FIX (≤768px) ================= */
@media (max-width: 768px) {

  /* ===== BACKGROUND ===== */
  .image-bg img{
    filter: blur(5px) brightness(0.8);
  }

  /* ===== BIG TEXT ===== */
  .bg-title{
    font-size: 80px;
    letter-spacing: 8px;
    opacity: 0.07;
  }

  /* ===== HERO ===== */
  .hero{
    margin: 70px 15px 40px;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .hero h1{
    font-size: 26px;
  }

  .hero p{
    font-size: 14px;
    line-height: 1.6;
  }

  /* ===== FLOATING KEY ===== */
  .floating-key{
    font-size: 32px;
    right: 5%;
    top: 25%;
  }

  .key-text{
    font-size: 11px;
  }

  /* ===== PROGRESS BAR ===== */
  .progress-container{
    width: 90%;
    height: 8px;
  }

  /* ===== TIMELINE ===== */
  .timeline{
    margin: 30px auto;
    padding: 0 15px;
  }

  .timeline::before{
    left: 10px;
  }

  .step{
    margin-left: 30px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .step span{
    font-size: 18px;
  }

  .step h3{
    font-size: 18px;
  }

  .step p{
    font-size: 14px;
  }

  /* Disable hover zoom (important for mobile UX) */
  .timeline:hover .step{
    transform: none;
    opacity: 1;
  }

  .timeline .step:hover{
    transform: none;
  }

  /* ===== CONFETTI (PERFORMANCE FIX) ===== */
  .confetti{
    width: 5px;
    height: 5px;
    opacity: 0.6;
  }

  /* ===== TESTIMONIALS ===== */
  .testimonials{
    padding: 40px 15px;
  }

  .testimonials h2{
    font-size: 20px;
    padding: 10px 18px;
  }

  .testimonial{
    padding: 18px;
  }

  .testimonial p{
    font-size: 14px;
  }

  .testimonial h4{
    font-size: 14px;
  }

  /* ===== BACK BUTTON ===== */
  .back a{
    padding: 10px 20px;
    font-size: 14px;
  }
}