/* ====================================================
   ✅ GLOBAL VARIABLES & GENERAL STYLES
==================================================== */
:root {
  --purple: #4b0082;
  --purple-glass: rgba(75, 0, 130, 0.4);
  --purple-deep: rgba(75, 0, 130, 0.9);
  --white: #ffffff;
  --hover-glow: rgba(255, 255, 255, 0.2);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("https://wallpaperaccess.com/full/322494.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;

  /* 🔹 Make page a flex column so footer can sit at bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* when mobile menu is open, JS adds this */
body.no-scroll {
  overflow: hidden;
}

/* ============================================
   Dark blurred slab behind the content
============================================ */
main {
  flex: 1 0 auto;
  padding-top: 135px;   /* ⬅ was 145px */
  padding-bottom: 50px;

  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* Dark glass overlay between header and footer */
main::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1; /* sits behind .terms-container & text */
  pointer-events: none;
}

/* ====================================================
   ✅ HEADER & HEADER BUTTONS (MATCH CONTACT PAGE)
==================================================== */

/* Glass header container */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;

  background: rgba(75, 0, 130, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* glossy overlay strip */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* keep header children above the gloss */
header * {
  position: relative;
  z-index: 1;
}

/* used by JS when hiding header on scroll */
header.hidden {
  top: -80px;
}

/* inner layout for title + buttons */
.header-inner {
  width: min(1400px, 95%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;           /* ✅ same as Contact */
  position: relative;           /* anchors .site-title */
}


/* centred (desktop) / left (mobile) title link */
.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;            /* ✅ same as Contact */
  font-weight: bold;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
}


/* container for the three header buttons */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* icon-style header buttons */
.icon-btn,
.cart-btn,
.menu-btn {
  width: 40px;                  /* ✅ same as Contact */
  height: 40px;                 /* ✅ same as Contact */
  border-radius: 4px;
  border: 1px solid var(--white);
  background-color: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover,
.cart-btn:hover,
.menu-btn:hover {
  background-color: var(--hover-glow);
  transform: translateY(-1px);
}

/* Burger icon text size */
.menu-btn {
  font-size: 20px;
}

/* Lucide icons inside buttons */
.icon-btn svg,
.cart-btn svg,
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* PNG login icon – force white */
.icon-btn.login-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  object-fit: contain;
  pointer-events: none;
}

/* ====================================================
   ✅ SIDE MENU
==================================================== */
.menu {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  background: var(--purple-glass);
  backdrop-filter: blur(15px);
  transition: right 0.3s ease;
  z-index: 5000;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overlay behind the side menu so tapping outside can close it */
.menu-overlay {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  background: transparent;  /* no visual change – just a tap target */
  z-index: 2400;            /* below .menu (5000), above page content */
  display: none;
}

.menu-overlay.active {
  display: block;
}

.menu.open {
  right: 0;
}

.menu.closing {
  animation: slideOutRight 0.4s ease forwards;
}

.menu .close-btn {
  font-size: 30px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 115px;
}

.menu a {
  padding: 14px 0;
  text-align: center;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: var(--hover-glow);
}

/* ====================================================
   ✅ ABOUT / TERMS CONTAINER
==================================================== */
.terms-container {
  margin-top: 10px;
  padding: 40px 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;

  /* 🔲 Black Glass Effect */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 10px;
  color: white;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-container h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #fff;
}

.terms-container h3 {
  margin-top: 25px;
  font-size: 1.3rem;
  color: #ffcc00;
}

.terms-container p {
  margin-bottom: 15px;
}

.terms-container a {
  color: #00bfff;
  text-decoration: underline;
}

.terms-container a:hover {
  color: #ffaa00;
}

/* ====================================================
   ✅ MODALS & ICON BUTTONS
==================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(75, 0, 130, 0.9);
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content input,
.modal-content button {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 10px auto;
  border-radius: 6px;
  font-size: 1rem;
  display: block;
}

.modal-content input {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
}

.modal-content button {
  background-color: #111;
  color: #f5f5f5;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #222;
  color: #00bfff;
}

.modal-action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px auto;
  max-width: 300px;
}

.modal-sub-btn {
  flex: 1;
  padding: 8px;
  background-color: transparent;
  color: #f5f5f5;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-sub-btn:hover {
  color: #00bfff;
  border-color: #00bfff;
  text-shadow: 0 0 5px #00bfff;
}

.modal-switch-btn {
  background: none;
  border: none;
  color: #ffcc00;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.modal-switch-btn:hover {
  color: #ffaa00;
}

/* ====================================================
   ✅ MISC
==================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.tooltip-anchor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.tooltip-anchor::after {
  content: attr(title);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 9999;
}

.tooltip-anchor:hover::after {
  opacity: 1;
}

/* ====================================================
   ✅ FOOTER
==================================================== */
footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
  margin-top: 0; /* ⬅ remove extra gap that makes it float */
  flex-shrink: 0; /* ⬅ don't let it get squashed by flex */
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* ====================================================
   📱 RESPONSIVE LAYOUT
==================================================== */

/* Tablets / small laptops */
@media (max-width: 900px) {
  /* No extra padding on header itself – same as Contact */
  header {
    padding: 0;
  }

  main {
    padding-top: 115px;          /* ⬅ was 130px */
    padding-bottom: 40px;        /* slightly tighter */
  }

  .header-inner {
    padding-inline: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 6px;
  }

  /* title on the left, can wrap onto two lines */
  .site-title {
    position: static;
    left: auto;
    transform: none;
    margin: 0;

    flex: 1 1 auto;
    max-width: 70%;

    font-size: 1.3rem;           /* ✅ same as Contact */
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
  }

  .header-buttons {
    margin-left: 0;
    justify-content: flex-end;
  }

  .icon-btn,
  .cart-btn,
  .menu-btn {
    width: 32px;                 /* ✅ same as Contact */
    height: 32px;
  }

   .terms-container {
    margin-top: 40px;            /* ⬅ was 120px (this was the huge gap) */
    padding: 26px 18px;
    max-width: 90%;
  }
}

/* Phones */
@media (max-width: 768px) {
  /* 🔹 Side menu – half-screen width with fade-out bottom (match Contact) */
  .menu {
    width: 50vw;          /* half the screen */
    right: -50vw;         /* hidden off-screen initially */
    background: transparent;
  }

  .menu.open {
    right: 0;
  }

  /* Center the close button in the menu header */
  .menu .close-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Purple → transparent fade inside the menu */
  .menu::before {
    content: "";
    position: absolute;
    inset: 0;
     background: linear-gradient(
    to bottom,
    rgba(60, 0, 115, 0.95) 0%,    /* still rich at the top */
    rgba(60, 0, 115, 0.85) 40%,   /* solid through the link area */
    rgba(60, 0, 115, 0.55) 65%,   /* starts easing off earlier */
    rgba(60, 0, 115, 0.20) 85%,   /* much lighter near the bottom */
    rgba(60, 0, 115, 0.00) 100%   /* fully gone at the very bottom */
  );
    pointer-events: none;
    z-index: -1; /* sit behind the links */
  }

  /* keep existing header / content tweaks */
  header {
    padding: 0;
  }

  .header-inner {
    gap: 6px;
  }

  .terms-container {
    margin-top: 120px;
    padding: 22px 16px;
    max-width: 94%;
    font-size: 0.95rem;
  }

  .terms-container h2 {
    font-size: 1.6rem;
  }

  .terms-container h3 {
    font-size: 1.15rem;
  }

  .modal-content {
    padding: 20px;
    max-width: 95%;
  }

  .modal-action-buttons {
    flex-direction: column;
  }
}


/* Very small phones */
@media (max-width: 480px) {
  .site-title {
    font-size: 1.4rem;
    max-width: 75%;
  }

  /* Make header just a touch taller */
  .header-inner {
    padding-top: 16px;   /* was inherited 14px */
    padding-bottom: 16px;
  }

  /* Keep the nice spacing from before */
  .header-buttons {
    gap: 10px;
    padding-right: 8px;
  }

  /* 🔎 Make icons + borders slightly bigger */
  .icon-btn,
  .cart-btn,
  .menu-btn {
    width: 30px;   /* was 28px */
    height: 30px;  /* was 28px */
  }

  .terms-container {
    margin-top: 35px;
    padding: 18px 14px;
    font-size: 0.9rem;
  }
}

