/* ========================= */
/* SKELETON LOADER */
/* ========================= */

.hidden-loader {
  display: none !important;
}

#skeleton-loader {
  position: fixed;
  inset: 0;
  background: #f5f7fa;
  z-index: 9999;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* shimmer animation */

@keyframes shimmer {
  0% { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

.skeleton-header {
  height: 60px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skeleton-box {
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
}

/* ========================= */
/* GLOBAL RESET */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* ========================= */
/* OFFLINE FONT */
/* ========================= */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf');
  font-weight: 400;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf');
  font-weight: 500;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf');
  font-weight: 600;
}


/* ========================= */
/* HEADER */
/* ========================= */

#headtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: white;
  border-bottom: 1px solid #eee;
}

#logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

#logo img {
  height: 40px;
}

#logo span {
  color: #00b894;
}

#address {
  font-size: 0.85rem;
  text-align: right;
}

/* ========================= */
/* NAVBAR (GLOBAL CLEAN) */
/* ========================= */

#navigation {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#navigation ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 15px;
}

#navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* Hover line */

#navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #00b894;
  transition: 0.3s;
}

#navigation a:hover {
  color: #00b894;
}

#navigation a:hover::after {
  width: 100%;
}

/* Active */

#navigation a.active {
  color: #00b894;
}

#navigation a.active::after {
  width: 100%;
}

/* ========================= */
/* HERO (GLOBAL) */
/* ========================= */

#home,
#store1 {
  height: 80vh;
  background: url('../pic/hero.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#home::before,
#store1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
}

.hero-content p {
  margin-top: 10px;
  opacity: 0.85;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #00b894;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #019875;
}



/* ========================= */
/* SECTION TITLE */
/* ========================= */

.section-title,
#heading12 {
  text-align: center;
  font-size: 2.5rem;
  margin: 50px 0;
}

/* ========================= */
/* CARDS (GLOBAL SYSTEM) */
/* ========================= */

.cards-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

/* CARD */

.card,
.boxcustom,
.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.card:hover,
.boxcustom:hover,
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
}
/* FIX: CARD POSITION */
.card {
  position: relative;
  display: block;
  text-decoration: none;
}

/* IMAGE */

.card img,
.boxcustom img,
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* CONTENT */

.card-content,
.service-content {
  padding: 15px;
  text-align: center;
}

/* OVERLAY (CATEGORY) */

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

/* ========================= */
/* SERVICES SECTION */
/* ========================= */

.services-section,
.category-section,
.info-section {
  padding: 80px 20px;
  text-align: center;
}

/* ========================= */
/* ABOUT */
/* ========================= */

#about_us {
  background: #eafaf1;
  padding: 60px 20px;
  text-align: center;
}

/* ========================= */
/* LOGIN PAGE */
/* ========================= */

.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #00b894, #0984e3);
}

.login-container {
  width: 350px;
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.login-logo h2 {
  margin-bottom: 10px;
}

.login-logo span {
  color: #00b894;
}

.login-title {
  margin-bottom: 20px;
  font-weight: 500;
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.login-container input:focus {
  border-color: #00b894;
  outline: none;
}

.login-container .btn {
  width: 100%;
  margin-top: 10px;
}

.login-text {
  margin-top: 15px;
  font-size: 0.9rem;
}

.login-text span {
  color: #00b894;
  cursor: pointer;
  font-weight: 500;
}

#message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.login-info {
  background: #eafaf1;
  border: 1px solid #00b894;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  text-align: left;
}

/* ========================= */
/* EXTRA SECTIONS (DESCRIPTION) */
/* ========================= */

#store2,
#store3,
#store4 {
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  font-size: 2rem;
}

#store2 { background: url('../pic/activity.jpg') center/cover no-repeat; }
#store3 { background: url('../pic/food.jpg') center/cover no-repeat; }
#store4 { background: url('../pic/water.jpg') center/cover no-repeat; }

#store2::before,
#store3::before,
#store4::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* ========================= */
/* CONTACT FORM */
/* ========================= */

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00b894;
}

/* ========================= */
/* BUTTON LOADER */
/* ========================= */

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {
  #navigation ul {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ========================= */
/* DARK MODE */
/* ========================= */

body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

/* HEADER + NAV */

body.dark #headtop,
body.dark #navigation {
  background: #1e293b;
  color: white;
}

/* LINKS */

body.dark #navigation a {
  color: #cbd5f5;
}

body.dark #navigation a:hover,
body.dark #navigation a.active {
  color: #00b894;
}

/* CARDS */

body.dark .card {
  background: #1e293b;
  color: white;
}

/* ABOUT */

body.dark #about_us {
  background: #0f172a;
}
