/* ---------- General resets ---------- */
*{margin:0;padding:0;box-sizing:border-box}

body,html{
  height:100%;
  width:100%;
  font-family:'Poppins',sans-serif;
  overflow-x:hidden;
  overflow-y:auto;
  position:relative;
}

/* ---------- Background video ---------- */
#bg-video{
  position:fixed;
  top:0;left:0;
  width:100vw;height:100vh;
  object-fit:cover;
  z-index:-2;
  pointer-events: none;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: rgb(255, 255, 255);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

header a {
  color: white;
  text-decoration: none;
  font-size: 10px;
  margin-left: 20px;
  transition: color 0.3s ease;
}

header a:hover {
  color: #ffb400;
}

.logo img{height:60px;max-width:100%;}

nav ul{
  display:flex;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
  flex-direction: row !important; /* Always horizontal */
  align-items: center;
}
nav a{
  text-decoration:none;
  font:500 15px 'Poppins',sans-serif;
  color:#002C3E;
}

/* ---------- Hero ---------- */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  text-align: center;
  width: 100vw;
  position: relative;
}

.main-title {
  font: 100px 'Poppins', sans-serif;
  letter-spacing: 12px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 1000px;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.sub-title{
  font:60px 'Montserrat',sans-serif;
  font-weight:bold;
  letter-spacing:8px;
  color:#F8A523;
  max-width:850px;width:100%;
  margin-bottom:30px;
}

.search-container{
  display:flex;gap:10px;align-items:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius:8px;
  padding:12px 16px;
  width:90%;max-width:1000px;
  box-shadow:0 8px 30px rgba(0,0,0,0.08);
}
.search-container input{
  flex:1;border:none;outline:none;
  padding:12px 16px;font-size:16px;background:transparent;color:inherit;
}
.search-container button {
  background: #F8A523;
  color: #002C3E;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font: bold 15px 'Montserrat', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}

/* Fancy select used across pages for craft/location selectors */
.fancy-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.06);
  color: #002C3E;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  background-image: linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.15) 50%), linear-gradient(135deg, rgba(0,0,0,0.15) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 6px), calc(100% - 12px) calc(50% - 6px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 120ms ease;
  cursor: pointer;
  line-height: 2.5em; /* Explicitly set line height for dropdown items */
  max-height: 12.5em; /* Ensure 5 elements are visible */
  overflow-y: auto;
  display: block; /* Ensure block-level rendering */
}
.fancy-select:hover,
.fancy-select:focus {
  outline: none;
  border-color: rgba(248,162,35,0.95);
  box-shadow: 0 10px 30px rgba(248,162,35,0.12);
  transform: translateY(-1px);
}
.fancy-select::placeholder { color: rgba(0,0,0,0.4); }
@media(max-width:768px){
  .fancy-select { width:100%; min-width:unset; }
  .search-container { flex-direction:column; gap:10px; }
  .search-container button { width:100%; }
}

/* Custom dropdown replacement for better styling of native <select> on hero */
.custom-select-wrapper { position: relative; display: inline-block; width: 100%; }
.custom-select { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px; border-radius:8px; background: rgba(255,255,255,0.06); border:1px solid rgba(0,0,0,0.06); cursor:pointer; }
.custom-select .selected { flex:1; color:#002C3E; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.custom-select .arrow { width:12px; height:12px; transform: rotate(0deg); transition: transform .18s ease; }
.custom-select.open .arrow { transform: rotate(180deg); }
.custom-select .arrow::before { content: ''; display:block; width:12px; height:12px; background-image: linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.2) 50%), linear-gradient(135deg, rgba(0,0,0,0.2) 50%, transparent 50%); background-size:6px 6px,6px 6px; background-position: calc(100% - 6px) calc(50% - 3px), calc(100% - 3px) calc(50% - 3px); background-repeat:no-repeat; }
.custom-select .options { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius:10px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); overflow:auto; z-index: 2500; display:none; }
.custom-select.open .options { display:block; }
.custom-select .options li { list-style:none; padding:10px 12px; cursor:pointer; border-bottom: 1px solid rgba(255,255,255,0.02); color:#002C3E; }
.custom-select .options li:hover { background: rgba(248,162,35,0.12); color: #002C3E; }
.custom-select .options li.disabled { color: rgba(0,0,0,0.35); cursor: default; }
.options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 12.5em; /* Limit to 5 elements */
  overflow-y: auto;
  background: rgba(40, 40, 40, 0.98); /* dark background for contrast */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.options li {
  color: #fff; /* white text for options */
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.options li:hover:not(.disabled) {
  background: linear-gradient(90deg, #ff6a3d 0%, #ffb347 100%);
  color: #fff;
}
.options li.disabled {
  color: #bbb;
  cursor: default;
  background: none;
}

@media (max-width: 768px) {
  .custom-select { width: 100%; }
  .custom-select .options { position: relative; top: 8px; max-height: 40vh; }
}

/* ---------- How It Works ---------- */
.how-title {
  font: bold 36px 'Montserrat', sans-serif;
  color: #002C3E;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.how-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #F8A523;
  margin: 16px auto 0;
  border-radius: 2px;
}
.how-it-works {
  background: #fff;
  padding: 100px 50px;
  text-align: center;
}
.how-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.how-step{
  flex:1 1 300px;
  max-width:350px;
  text-align:center;
}
.how-step img{
  max-width:100%;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  margin-bottom:20px;
}
.how-step h3{
  color:#ffffff;
  font:24px 'Montserrat',sans-serif;
  font-weight:bold;
  margin-bottom:15px;
}
.how-step p{
  color:#444;
  font:16px/1.6 'Poppins',sans-serif;
}

/* ---------- Reviews Carousel ---------- */
.reviews-section{
  background:#f9f9f9;
  padding:60px 20px;
}
.reviews-title{
  font:32px 'Montserrat',sans-serif;
  font-weight:bold;
  color:#002C3E;
  text-align:center;
  margin-bottom:30px;
}

/* Hide horizontal scrollbar for review carousel */
.review-carousel-wrapper{
  overflow-x: auto;
  width: 100%;
}
.review-carousel{
  position:relative;
  width:100%;
}
.review-track{
  display:flex;
  animation:scrollLoop 50s linear infinite;
}
@keyframes scrollLoop{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

.review-card{
  flex:0 0 auto;
  width:260px;
  margin:0 10px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
  padding:20px;
  text-align:center;
}
.review-card img{
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:15px;
}
.review-name{
  color:#F7A523;
  font:20px 'Montserrat',sans-serif;
  font-weight:bold;
  margin-bottom:5px;
}
.review-comment{
  color:#999;
  font-style:italic;
  font-family:'Poppins',sans-serif;
  margin-bottom:10px;
}
.review-bio{
  color:#002C3E;
  font:14px 'Poppins',sans-serif;
}

/* ---------- Responsive ---------- */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .how-container {
    gap: 20px;
    padding: 0 10px;
  }
}

@media(max-width:1024px){
  .main-title{font-size:60px;letter-spacing:6px;}
  .sub-title{font-size:36px;letter-spacing:4px;}
  .how-it-works{padding:60px 10px;}
  .how-container{gap:20px;}
  .review-card{width:220px;}
}

@media(max-width:900px){
  /* Keep nav horizontal on all sizes */
  header {
    flex-direction: row;
    align-items: center;
    height: 60px;
    padding: 10px 10px;
  }
  nav ul {
    flex-direction: row !important;
    gap: 20px;
    width: auto;
    align-items: center;
  }
  .logo img {
    height: 50px;
  }
}

@media(max-width:768px){
  .main-title{font-size:48px;letter-spacing:5px;}
  .sub-title{font-size:28px;letter-spacing:3px;}
  .search-container{flex-direction:column;gap:10px;}
  .search-container button{width:100%;margin-top:10px;}
  nav ul{gap:10px;font-size:16px;}
  .logo img{height:40px;}
  .how-container{flex-direction:column;align-items:center;}
  .how-step{max-width:100%;width:100%;}
  .review-card{width:90vw;max-width:95vw;}
  .reviews-section{padding:40px 5px;}
  .how-it-works{padding:40px 5px;}
}

@media (max-width: 600px) {
  header {
    padding: 5px 2vw;
    flex-direction: row;
    height: 50px;
  }
  .logo img {
    height: 32px;
  }
  nav ul {
    flex-direction: row !important;
    gap: 8px;
    width: auto;
    align-items: center;
  }
  .main-title {
    font-size: 28px;
    letter-spacing: 2px;
  }
  .sub-title {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }
  .search-container {
    padding: 8px 4px;
    max-width: 100vw;
  }
  .search-container input,
  .search-container button {
    font-size: 14px;
    padding: 10px 8px;
  }
  .how-title, .reviews-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .how-step {
    padding: 10px 0;
  }
  .review-card {
    padding: 10px 4px;
    margin: 0 2px;
  }
}

@media (max-width: 400px) {
  .main-title, .sub-title, .how-title, .reviews-title {
    font-size: 14px !important;
    letter-spacing: 0 !important;
  }
  .search-container input,
  .search-container button {
    font-size: 12px;
    padding: 6px 4px;
  }
  nav ul {
    gap:4px;
     }
}

/* ...existing code... */
/* ---------- Gradient Background ---------- */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

/* ---------- Glassy Header/Menu ---------- */
header {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---------- Hero Title Style & Animation ---------- */
.sub-title, .main-title {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.sub-title.visible, .main-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Glassy Search Bar ---------- */
.search-container {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 8px;
  display: flex;
  max-width: 600px;
  margin: 0 auto 40px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-out 0.4s both;
  justify-content: center;
  align-items: center;
}
.search-container input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 20px 25px;
  font-size: 18px;
  color: #fff;
  outline: none;
}
.search-container input::placeholder {
  color: rgba(255,255,255,0.8);
}
.search-container button {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border: none;
  border-radius: 20px;
  padding: 20px 40px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(238,90,36,0.4);
}
.search-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(238,90,36,0.6);
}

/* ---------- Progressive Text Animation ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ---------- How It Works Cards ---------- */
.how-step {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-radius: 25px;
  padding: 40px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}
.how-step:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 80px rgba(102,126,234,0.15);
  border-color: rgba(102,126,234,0.2);
}

/* ---------- Glassy Gradient Review Cards & Loop ---------- */
.reviews-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 120px 0;
  overflow: hidden;
}
.review-card {
  min-width: 320px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  color: #fff;
  margin: 0 20px;
  animation: fadeInUp 1s ease-out;
}
.review-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.review-carousel {
  width: 100%;
}
.review-track {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  animation: scrollLoop 30s linear infinite;
}
@keyframes scrollLoop {
  0% { transform: translateX(0);}
  100% { transform: translateX(-50%);}
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .main-title, .sub-title { font-size: 48px; }
  .search-container { max-width: 95vw; }
  .how-step { padding: 20px; }
  .review-card { min-width: 80vw; padding: 20px; }
}
@media (max-width: 480px) {
  .main-title, .sub-title { font-size: 28px; }
  .search-container button { padding: 12px 20px; font-size: 14px; }
  .how-step { padding: 10px; }
  .review-card { min-width: 95vw; padding: 10px; }
}

/* ---------- JS Helper Classes ---------- */
/* Add .visible to .main-title and .sub-title when scrolled for progressive animation */
/* Add .scrolled to header when scrolled for glassy effect */
/* ---------- Header/Menu ---------- */
header a, nav a {
  color: #fff !important; /* White menu text for better contrast */
}

/* ---------- Hero Title Style ---------- */
.main-title, .sub-title {
  color: #fff !important;
  text-shadow:
    0 2px 12px rgba(0,0,0,0.25), /* softer shadow */
    0 1px 4px rgba(0,0,0,0.18),  /* subtle pop */
    0 0 1px #002C3E;             /* subtle blue glow for brand */
  opacity: 1 !important;
  transform: none !important;
  font-weight: 900;
}

/* ---------- Remove Gradient Background ---------- */
body {
  background: none !important;
  color: #333;
}

/* ---------- How It Works Numbered Circles ---------- */
.how-step {
  position: relative;
  padding-top: 70px; /* Space for the number */
}
.how-step-number {
  position: absolute;
  top: -30px; /* Move half out of the card (circle is 60px) */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fdb92c 0%, #f5576c 100%); /* Same as review section */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 2;
}

/* ---------- Review Cards Gradient ---------- */
/* ---------- Reviews Carousel ---------- */
/* ---------- Reviews Carousel ---------- */
/* ---------- Reviews Carousel ---------- */
.reviews-section {
  background: linear-gradient(135deg, #fdb92c 0%, #f5576c 100%); /* Warm orange to pink gradient */
  padding: 120px 0;
  overflow: hidden;
}
.review-card {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  color: #fff; /* White text for contrast */
  margin: 0 20px;
  animation: fadeInUp 1s ease-out;
  text-align: center;
}
.review-name,
.review-age,
.review-comment,
.review-bio {
  color: #002C3E !important;
}

/* ---------- Responsive for How Step Number ---------- */
@media (max-width: 768px) {
  .how-step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .how-step {
    padding-top: 50px;
  }
}

/* Custom select dropdown styles for craft */
#home-craft-wrapper {
  position: relative;
  width: 100%;
}
#home-craft-custom {
  cursor: pointer;
}
#home-craft-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 12.5em; /* Limit to 5 elements */
  overflow-y: auto;
  background: rgba(40, 40, 40, 0.98); /* dark background for contrast */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
#home-craft-options li {
  color: #fff; /* white text for options */
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
#home-craft-options li:hover:not(.disabled) {
  background: linear-gradient(90deg, #ff6a3d 0%, #ffb347 100%);
  color: #fff;
}
#home-craft-options li.disabled {
  color: #bbb;
  cursor: default;
  background: none;
}

/* Custom select dropdown styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 12.5em; /* Limit to 5 elements */
  overflow-y: auto;
  background: rgba(40, 40, 40, 0.98); /* dark background for contrast */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.options li {
  color: #fff; /* white text for options */
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.options li:hover:not(.disabled) {
  background: linear-gradient(90deg, #ff6a3d 0%, #ffb347 100%);
  color: #fff;
}
.options li.disabled {
  color: #bbb;
  cursor: default;
  background: none;
}

@media (max-width: 768px) {
  .main-title, .sub-title { font-size: 48px; }
  .search-container { max-width: 95vw; }
  .how-step { padding: 20px; }
  .review-card { min-width: 80vw; padding: 20px; }
}
@media (max-width: 480px) {
  .main-title, .sub-title { font-size: 28px; }
  .search-container button { padding: 12px 20px; font-size: 14px; }
  .how-step { padding: 10px; }
  .review-card { min-width: 95vw; padding: 10px; }
}