/* ========== THEME COLORS ========== */
:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #334155;
  --accent: #2563eb;
}

:root[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #d1d5db;
  --accent: #2563eb;
}

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

/* ========== GLOBAL ========== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.25s, color 0.25s;
}

a {
  color: var(--accent);
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== INTRO + LOADER ========== */
#intro-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.intro-title {
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-align: center;
}

.intro-sub {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ===== Fully Invisible Scrollbar ===== */

/* Chrome, Edge, Brave, Opera */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* For Firefox (extra hidden) */
*::-webkit-scrollbar {
  display: none;
}

/* ========== HEADER & NAV ========== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

.custom-logo span {
  color: var(--accent);
}

/* Nav */
.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.nav-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent);
  color: #ffffff;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 10000;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.35rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ========== MAIN LAYOUT ========== */
main {
  padding: 1.3rem 0 2.5rem;
}

/* Fade-in animation for main */
.fade-in {
  animation: fade-in 0.7s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO SECTION ========== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.hero-text h2 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 210px;
  max-width: 70vw;
  border-radius: 999px;
  border: 3px solid var(--accent);
  object-fit: cover;
}

/* ========== ABOUT ========== */
.about {
  margin-top: 0.5rem;
  padding: 1rem 1rem;
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
}

.about h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.about p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ========== COUNTER + ANALYTICS ========== */
.counter-section {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
}

.counter-section h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.counter-section img {
  margin-top: 0.4rem;
  border-radius: 0.5rem;
}

/* Analytics card */
.analytics-card {
  margin-top: 1.1rem;
  padding: 1rem 1rem;
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
}

.analytics-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.analytics-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0;
  margin-bottom: 0.45rem;
}

.analytics-card li + li {
  margin-top: 0.15rem;
}

.analytics-card .note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== SOCIAL SECTION ========== */
.social {
  margin-top: 1.3rem;
}

.social h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.social-card {
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 0.8rem 0.9rem;
  font-size: 0.93rem;
}

.back-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-btn:hover {
  opacity: 0.9;
}

.social-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.qr-wrapper {
  margin-top: 0.45rem;
}

.qr-wrapper img {
  width: 110px;
  height: 110px;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  object-fit: cover;
}

/* Facebook row */
.fb-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.fb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ========== CONTACT BOX ========== */
.contact-box {
  margin-top: 1.4rem;
  padding: 1rem 1rem;
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
}

.contact-box h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.contact-form {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.2rem;
  border: none;
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ========== GALLERY ========== */
.gallery-intro {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}

.gallery-intro h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.glow-text {
  text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.gallery-intro p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-item {
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* Zoom effect */
.zoom-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.zoom-img:hover img {
  transform: scale(1.12);
}
/* Success message box */
.success-box {
  margin-top: 2rem;
  padding: 1.8rem 1.4rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.success-box h3 {
  font-size: 1.3rem;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.success-box p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Animated checkmark */
.success-icon {
  display: flex;
  justify-content: center;
}

.success-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop-in 0.5s ease-out;
  position: relative;
}

.success-check {
  width: 28px;
  height: 14px;
  border-left: 4px solid #22c55e;
  border-bottom: 4px solid #22c55e;
  transform: rotate(-45deg);
  transform-origin: left bottom;
  animation: draw-check 0.4s ease-out 0.2s forwards;
  opacity: 0;
}

@keyframes pop-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw-check {
  from {
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
  }
}

/* Back button on success page (reusing your accent color) */
.back-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 0.7rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.back-btn:hover {
  opacity: 0.9;
}
/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========== RESPONSIVE (MOBILE) ========== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image {
    order: -1;
    margin-bottom: 0.7rem;
  }

  .hero-image img {
    width: 180px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .theme-toggle {
    right: 10px;
    top: 10px;
  }

  .intro-title {
    font-size: 2rem;
  }
}
