/* ===============================
   ROOT VARIABLES (LIGHT & DARK)
================================*/
:root {
  --bg: #ffffff;
  --text: #111111;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --footer-bg: #111111;
  --footer-text: #e5e7eb;
  --btn-bg: #000000;
  --btn-text: #ffffff;
}

.dark {
  --bg: #0d0d0d;
  --text: #f3f3f3;
  --card-bg: #1a1a1a;
  --border: #333333;
  --footer-bg: #000000;
  --footer-text: #cccccc;
  --btn-bg: #ffffff;
  --btn-text: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===============================
   NAVBAR
================================*/
header {
  backdrop-filter: blur(12px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#mobile-menu {
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Dark mode toggle button */
#theme-toggle {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--card-bg);
}

/* ===============================
   BUTTONS
================================*/
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ===============================
   CARDS
================================*/
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Testimonials grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===============================
   FOOTER
================================*/
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

footer a {
  color: var(--footer-text);
}

footer a:hover {
  color: white;
}

/* ===============================
   NEWSLETTER POPUP
================================*/
.newsletter-popup {
  position: fixed;
  bottom: -500px;
  right: 30px;
  width: 320px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
  z-index: 999;
  opacity: 0;
}

.newsletter-popup.show {
  bottom: 30px;
  opacity: 1;
}

.popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 16px;
  cursor: pointer;
}

/* ===============================
   ANIMATIONS
================================*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   PRELOADER
================================*/
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Loader */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border);
  border-top-color: var(--btn-bg);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.site-footer {
  background-color: #0d0d0d;  /* dark background */
  color: #d1d5db;             /* light gray text */
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: white;
}
.footer-logo .w-10 {
  /* light-on-dark logo circle */
  background-color: white;
  color: #0d0d0d;
}


