/* ================================================
   GLOBAL RESET & BASE
================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #00d5ff;
  color: #111;
  line-height: 1.5;
}

/* Smooth scaling typography */
h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
p  { font-size: clamp(0.95rem, 1.5vw, 1.1rem); }

/* ================================================
   NAVIGATION — FLOATING GLASS PILLS
================================================ */
/* ===== NAVIGATION BAR ===== */
nav {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;                    /* Full width */
  display: flex;
  justify-content: space-around;   /* Spread links evenly */
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 10px;             /* Slight padding */
  background: rgba(255, 255, 255, 0.896);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 999;
}

/* Nav links */
nav a {
  color: #007add;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;            /* Subtle rounded corners */
  background: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  white-space: nowrap;
  transition: 0.3s ease;
}

/* Hover & Active */
nav a:hover,
nav a.active {
  background: rgba(255,233,33,0.5);
  color: #003b73;
  transform: translateY(-2px);
}

/* Responsive for tablets & small screens */
@media (max-width: 768px) {
  nav {
    justify-content: space-around;
    padding: 10px 5px;
  }

  nav a {
    padding: 6px 12px;
    font-size: clamp(0.7rem, 2vw, 0.95rem);
  }
}

/* Responsive for mobile phones */
@media (max-width: 480px) {
  nav {
    flex-direction: column;       /* Stack links vertically */
    gap: 5px;
    padding: 8px 5px;
  }

  nav a {
    width: 90%;                   /* Make links wider on mobile */
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
  }
}

/* ================================================
   HERO SECTION — FULL MOBILE OPTIMIZED
================================================ */
.hero {
  background-image: url("images/hero.png");
  background-size: cover;      /* shows entire image */
  background-position: center;
  background-repeat: no-repeat;

  /* Maintain image aspect ratio */
  width: 100%;
  aspect-ratio: 3/2; /* change to your image's ratio */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff54b;
  font-family: 'Fredoka One', Arial, sans-serif;
  font-weight: 1000;

  position: relative;
}



.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* ================================================
   MAIN SECTION
================================================ */
main {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1087fe, #00d5ff);
  text-align: center;
}

/* ================================================
   CARDS (with scroll fade-in)
================================================ */
.card {
  background: linear-gradient(145deg, #03b3ff, #028eec);
  padding: clamp(18px, 4vw, 30px);
  margin: 25px auto;
  border-radius: 15px;
  max-width: 1000px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #ffffff;

  opacity: 0.5;
  transform: translateY(35px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card h2,
.card h3 {
  color: #fff788;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 15px;
}

/* ================================================
   ACCORDION GALLERY
================================================ */
.accordion-gallery {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
}

.accordion-item {
  flex: 0 0 clamp(150px, 22vw, 220px);
  border-radius: 12px;
  background: #faf5ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.3s ease;
}

.accordion-item.active {
  flex: 0 0 clamp(240px, 32vw, 360px);
}

.accordion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   FAQ
================================================ */
.faq-container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
}

.faq-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.faq-question {
  padding: 18px;
  background: #f8f8f8;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 16px 18px;
  display: none;
  font-size: 0.95rem;
  color: #444;
}

.faq-card.active .faq-answer {
  display: block;
}

/* ================================================
   CALCULATOR
================================================ */
.calculator-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.calculator-section label {
  font-weight: bold;
}

.calculator-section input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.calc-btn {
  margin-top: 10px;
  padding: 12px;
  background: #0170c9;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.calc-btn:hover {
  background: #005fa1;
}

.result {
  margin-top: 15px;
  padding: 14px;
  background: #eef9ff;
  border-radius: 8px;
  font-weight: 700;
  color: #0a3b75;
}

/* ================================================
   FOOTER
================================================ */
footer {
  background: #AEE6FF;
  padding: 25px;
  text-align: center;
  color: #003B73;
  margin-top: 45px;
}

/* ================================================
   MOBILE TWEAKS
================================================ */
@media (max-width: 900px) {

  nav {
    gap: 6px;
    padding: 8px 14px;
  }

  .card {
    padding: 18px;
  }

  .accordion-item {
    flex: 0 0 140px;
  }
}
