/* ===============================
   ORIGINAL YOUR CSS (UNMODIFIED)
=============================== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] {
  --glass-bg: rgba(20, 20, 20, 0.35);
  --glass-border: rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
  color: #fff;
}

[data-theme="light"] {
  background: #ffffff;
  color: #000000;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  padding-top: 90px;
}

.glass {
  backdrop-filter: blur(14px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.navbar {
  position: fixed;
  top: 0;
  width: 96%;
  left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  z-index: 20;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 40px;
  border-radius: 6px;
}

.powered {
  font-size: 0.6rem;
  opacity: 0.85;
}

.nav-right a {
  text-decoration: none;
  margin: 0 6px;
  font-size: 0.9rem;
  color: inherit;
}

.toggle-btn {
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  background: #ff0000;
  color: white;
}

.hero {
  width: 90%;
  margin: 30px auto;
  text-align: center;
  padding: 40px;
}

.btn, .cta {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover, .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.section {
  width: 90%;
  margin: 30px auto;
  text-align: center;
  padding: 30px 20px;
}

.brand-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.brand-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  user-select: none;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
  text-decoration: none;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
}

.dropdown {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  margin-top: 12px;
  width: 80%;
}

.provider-card {
  margin-top: 14px;
  padding: 16px;
  text-align: left;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 1;
}

.provider-card.hidden {
  opacity: 0;
  transform: translateY(-6px);
}

.spot-card {
  width: 270px;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.spot-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 20px;
}

/* Background blobs */
.background-blobs {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,0,0,0.3), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255,0,0,0.25), transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255,0,0,0.2), transparent 40%);
  filter: blur(70px);
  animation: blobMove 12s infinite alternate ease-in-out;
  z-index:-2;
}

@keyframes blobMove {
  0% { transform: translate(0px,0px); }
  100% { transform: translate(-40px,20px); }
}

/* Floating logos */
.floating-layer {
  position: fixed;
  width: 100vw;
  height: 100px;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

#float-top { top: 0; }
#float-bottom { bottom: 0; }

.floating-logo {
  position:absolute;
  width:50px;
  height:50px;
  opacity:0.2;
  filter:blur(0.5px);
  object-fit:contain;
  animation: floatLogo 14s linear infinite;
}

@keyframes floatLogo {
  0% { transform: translateY(0px)rotate(0deg); }
  100% { transform: translateY(-40px)rotate(360deg); }
}

/* Floating emojis */
.spotlight-container {
  position: relative;
  overflow: visible;
}

#emoji-layer {
  position:absolute;
  width:100%;
  height:160px;
  top:20px;
  left:0;
  pointer-events:none;
}

.emoji {
  position:absolute;
  font-size:1.8rem;
  opacity:0.85;
  animation: floatEmoji 4s ease-in-out infinite;
}

@keyframes floatEmoji {
  0% { transform: translateY(20px); opacity:0.0; }
  20% { opacity:1; }
  100% { transform: translateY(-40px); opacity:0; }
}

/* HAMBURGER BUTTON */
.hamburger-btn {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--glass-border);
  transition: left 0.35s ease, opacity 0.3s ease;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
}
.sidebar.open {
  left: 0;
  opacity: 1;
  pointer-events: auto;
}

.close-sidebar {
  float: right;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.sidebar-list li {
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 500;
}

/* SIDEBAR OVERLAY */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 1500;
}
.sidebar-overlay.show {
  display: block;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sidebar-logo {
  height: 36px;
  border-radius: 6px;
}

/* HORIZONTAL SPOT SCROLL */
.spot-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  padding: 20px;
  width: 100%;
}
.spot-scroll::-webkit-scrollbar {
  display: none;
}

/* POPUP MODAL */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 3000;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 120%;
  max-width: 420px;
  transform: translate(-50%, -50%);
  display: none;
  padding: 20px;
  z-index: 3001;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.popup-close {
  background: none;
  border:none;
  font-size: 1.4rem;
  cursor: pointer;
  
}

/* CONTACT CLICKABLES */
.mail-link, .wa-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* FOOTER LINKS */
.footer-links {
  margin-top: 12px;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  cursor: pointer;
  margin: 6px 0;
}
.footer-disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links a {
    display: none;
  }
}

#service-providers .provider-block:first-of-type {
  margin-bottom: 40px;
}

.events-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 20px 0;
}

.event-card {
  width: 270px;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}

.event-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.event-text {
  margin: 8px 0 12px;
  font-weight: 500;
}

#spotBusinesses {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
}

#spotBusinesses .spot-card {
  width: 270px;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}

#spotBusinesses .spot-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

#spotBusinesses .spot-text {
  font-weight: 500;
  margin: 8px 0 12px;
}

@media (max-width: 768px) {
  #spotBusinesses {
    flex-direction: column;
    align-items: center;
  }
}

#spotBusinesses {
  display: flex;
  justify-content: center;
  gap: 24px;
}

#spotPeople {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

@media (max-width: 480px) {
  .popup {
    width: 85%;
    max-width: 300px;
  }
}

.dropdown {
  max-height: 200px;
  overflow-y: auto;
}

#providerSelect {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  padding: 10px;
  font-size: 0.95rem;
  color: inherit;
  width: 80%;
  margin-top: 12px;
}

#providerSelect option {
  background: var(--glass-bg);
  color: inherit;
  padding: 8px;
}

#providerSelect::-webkit-scrollbar {
  width: 6px;
}

#providerSelect::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}

#providerSelect::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

#providerSelect option {
  background-color: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.footer-link {
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
  color: inherit;
  opacity: 0.9;
}

.footer-link:hover {
  transform: translateY(-3px);
  opacity: 1;
  text-decoration: underline;
}

.mail-link, .wa-link {
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.9;
}

.mail-link:hover, .wa-link:hover {
  transform: translateY(-3px);
  opacity: 1;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.footer-link {
  cursor: pointer;
  transition: all 0.25s ease;
}

footer .btn {
  display: inline-block;
  margin: 6px;
}

/* ===============================
   CHATBOT STYLES (APPENDED)
=============================== */
#chatBotBubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff0000;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 20000;
}

#chatContainer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 380px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  background: var(--glass-bg);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 20000;
}

#chatContainer.hidden {
  display: none;
}

#chatHeader {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}

#chatMessages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.chat-msg {
  margin-bottom: 8px;
  line-height: 1.2rem;
}

.chat-user {
  text-align: right;
  color: #ff0000;
}

.chat-bot {
  text-align: left;
  color: inherit;
}

#chatInputBar {
  border-top: 1px solid var(--glass-border);
  display: flex;
}

#chatInput {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

#sendChat, #closeChat {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px;
  color: inherit;
}
.footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  transition: 0.25s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
  text-decoration: underline;
}
.popup-content {
  max-height: 70vh;
  overflow-y: auto;
}
/* Floating Spin Wheel with Pointer */
#spinContainer {
  position: static;
}


#pointer {
  font-size: 24px;
  color: #ff5a5f;
  text-align: center;
  margin-bottom: -10px;
}

#spinWheel {
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.1, 1);
  /* Ensure wheel draws inside its viewbox */
#spinWheel {
  display: block;
}

}
.sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 14px;
  color: gold;
  animation: sparkleMove 0.8s ease-out forwards;
  opacity: 1;
}

@keyframes sparkleMove {
  from { transform: translate(0,0); opacity: 1; }
  to { transform: translate(20px,-20px); opacity: 0; }
}

/* ✨ ADDED FOR SPIN CLOSE + HIDE */
#closeSpin {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* smooth hide when sidebar opens */
.spin-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
/* ===============================
   📱 RESPONSIVE MOBILE MODE
   (Add this at the very bottom)
=============================== */

/* Tablet + Phones (<= 768px width) */
@media (max-width: 768px) {

  /* Make navbar full width */
  .navbar {
    width: 100%;
    left: 0;
    padding: 8px 12px;
  }

  /* Hide desktop nav links (if you have hamburger menu) */
  .nav-right a {
    display: none;
  }

  /* Reduce hero spacing */
  .hero {
    padding: 20px;
  }

  /* Make grids stack better */
  .brand-grid {
    grid-template-columns: 1fr;
  }

  /* Generic card full width */
  .brand-card,
  .provider-card,
  .event-card,
  .spot-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Adjust background performance */
  .background-blobs {
    filter: blur(40px);
  }
}


/* Small Phones (<= 480px width) */
@media (max-width: 480px) {

  /* Popup modal fits small screens */
  .popup {
    width: 85%;
    max-width: 300px;
  }

  /* Ensure scroll sections don't overflow */
  #spotBusinesses,
  #spotPeople,
  .events-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Chat container fits smaller screens */
  #chatContainer {
    width: 90%;
    right: 5%;
  }

  /* Reduce emoji & decorative clutter */
  .emoji {
    font-size: 1.4rem;
  }
}


/* Extra Safety - Prevent Horizontal Scrolling */
html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}
