/* ===== Base Styling ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #222;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    background-image: url("/assets/images/bg-hero.avif");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional parallax effect */
}

/* ===== Headings ===== */
h2 {
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== Containers ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* keeps content from touching edges */
}

/* ===== Hero Section ===== */
#hero-section {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 500px;
    width: 100%;
    margin: 10px auto;
    padding: 30px;
    border-radius: 30px;
    background-color: #FFE5EC;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Shop Section ===== */
.shop-section {
    text-align: center;
    background-color: #FFE5EC;
    padding: 30px;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
}

/* ===== About Section ===== */
.about-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px auto;
    max-width: 1200px;
    gap: 20px;
}

.about-content,
.contact-details {
    flex: 1 1 400px; /* responsive flex */
    max-width: 500px;
    background-color: #FFE5EC;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Rewards Panel Styles ---------- */
#rewards-panel {
  max-width: 500px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: all 0.3s ease;
}

#rewards-panel:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#rewards-panel h3 {
  color: #222;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
}

#rewards-panel h4 {
  color: #333;
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

#rewards-panel button#redeemCoinsBtn {
  background: #2AD3C9;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#rewards-panel button#redeemCoinsBtn:hover {
  background: #000;
  transform: translateY(-2px);
}

#rewards-panel ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

#rewards-panel ul li {
  background: #f7f9fc;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#rewards-panel ul li span.status {
  font-weight: 500;
  color: #28a745;
}

#rewards-panel ul li span.status.used {
  color: #dc3545;
}

/* Optional: Add animation for list updates */
#rewards-panel ul li {
  animation: fadeIn 0.4s ease;
}
.login-prompt {
    text-align: center;
    padding: 30px;
    background: #FFE5EC;
    border: 1px solid #ddd;
    border-radius: 12px;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.login-prompt h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.login-prompt p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1rem;
}

.login-prompt .login-btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    color: #fff;
    background-color: #2AD3C9;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.login-prompt .login-btn:hover {
    background: #000;
}
/* Section spacing */
.services-section {
    padding: 50px 20px;
}

/* Title */
.services-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #333;
}

/* Wrapper (mobile scroll) */
.services-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.services-wrapper::-webkit-scrollbar {
    display: none;
}

/* Individual card */
.service-card {
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    scroll-snap-align: start;
}

/* Image */
.service-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    background: #f2f2f2; /* adds a soft background behind transparent or small images */
}


/* Card title */
.service-card-title {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #222;
    font-weight: 600;
}

/* Button */
.service-btn {
    display: inline-block;
    background: #FFE5EC;
    color: #000000ff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.service-btn:hover {
    background: #f8aabfff;
}

/* Desktop: make grid layout */
@media (min-width: 768px) {
    .services-wrapper {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        min-width: auto;
    }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== Mobile Friendly ===== */
@media (max-width: 768px) {
    #hero-section {
        min-height: 300px;
    }
    .hero-content {
        padding: 20px;
        border-radius: 25px;
    }
    .about-section {
        margin: 20px auto;
        gap: 15px;
    }
    .about-content,
    .contact-details {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    .shop-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll; /* prevent mobile lag */
    }
    h2 {
        font-size: 1.4rem;
    }
    .hero-content {
        padding: 15px;
        border-radius: 20px;
    }
    .shop-section {
        padding: 15px;
    }
}
