/* ==========================================================================
   Nexolly Hub — Public Site Stylesheet
   Complete optimized version for mobile-first design
   ========================================================================== */

:root {
  --bg: #08090d;
  --bg-alt: #0f1117;
  --panel: #12141c;
  --panel-2: #171a24;
  --border: rgba(255,255,255,0.08);
  --text: #f4f5f9;
  --muted: #9aa1b5;
  --accent-1: #6d5bff;
  --accent-2: #00d4ff;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --danger: #ff5c7a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.35);
  --ease: cubic-bezier(.16,.84,.44,1);
  
  /* New variables for enhanced features */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --nav-height: 64px;
  --nav-height-mobile: 60px;
  --nav-height-small: 56px;
}

* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: var(--nav-height);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { 
  font-family: var(--font-heading); 
  margin: 0; 
  letter-spacing: -0.02em; 
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Selection */
::selection {
  background: var(--accent-1);
  color: #fff;
}

/* Skip Link */
.skip-link {
  position: absolute; left: -999px; top: 0; 
  background: var(--accent-1); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------------------- Buttons (Enhanced) ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, border-color .3s ease;
  border: 1px solid transparent; white-space: nowrap;
  gap: 10px;
  min-height: 54px;
  position: relative;
  overflow: hidden;
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: width 0.6s ease, height 0.6s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary { 
  background: var(--accent-grad); 
  color: #fff; 
  box-shadow: 0 10px 30px rgba(109,91,255,0.35); 
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 16px 40px rgba(109,91,255,0.5); 
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost { 
  background: rgba(255,255,255,0.06); 
  color: var(--text); 
  border-color: rgba(255,255,255,0.16); 
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  background: rgba(255,255,255,0.12); 
  transform: translateY(-3px); 
}
.btn-ghost:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  min-height: 38px;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 18px;
  min-height: 64px;
}

.btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------------------------- Navigation (Redesigned) ---------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  height: var(--nav-height);
  background: rgba(8,9,13,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.site-nav.scrolled { 
  background: rgba(8,9,13,0.95);
}

.nav-inner { 
  max-width: 1200px; 
  width: 100%;
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 12px;
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 800; 
  font-size: 18px; 
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.brand span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.brand-logo { 
  height: 32px; 
  width: auto; 
  border-radius: 8px; 
  object-fit: cover;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a::after {
  display: none;
}

/* Search Toggle Button */
.nav-search-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
}
.nav-search-toggle:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-search-toggle .label {
  font-size: 13px;
}

/* Hamburger Menu */
.nav-toggle { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  background: none; 
  border: none; 
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { 
  width: 24px; 
  height: 2px; 
  background: var(--text); 
  border-radius: 2px; 
  transition: all .3s ease; 
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { 
  transform: rotate(45deg) translate(5px, 5px); 
}
.nav-toggle.active span:nth-child(2) { 
  opacity: 0; 
}
.nav-toggle.active span:nth-child(3) { 
  transform: rotate(-45deg) translate(5px, -5px); 
}

/* Expanded Search Bar */
.search-bar-expanded {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(8,9,13,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.search-bar-expanded.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-bar-expanded .search-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-bar-expanded .search-inner input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}
.search-bar-expanded .search-inner input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(109,91,255,0.1);
}
.search-bar-expanded .search-inner input::placeholder {
  color: var(--muted);
}
.search-bar-expanded .search-inner .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
}
.search-bar-expanded .search-inner .close-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s ease;
}
.search-bar-expanded .search-inner .close-search:hover {
  color: var(--text);
}

/* ---------------------------- Hero (Enhanced with fade) ---------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  width: 100%;
}
.hero-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
  width: 100%;
  height: 100%;
}
.hero-bg video, 
.hero-bg .hero-bg-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  object-position: center;
}

/* Dark overlay with gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(180deg, 
      rgba(8,9,13,0.75) 0%,
      rgba(8,9,13,0.50) 40%,
      rgba(8,9,13,0.30) 60%,
      rgba(8,9,13,0.60) 80%,
      rgba(8,9,13,0.92) 100%
    ),
    radial-gradient(circle at 50% 30%, rgba(109,91,255,0.12), transparent 60%);
}

/* Bottom fade overlay */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  z-index: 1;
  background: linear-gradient(0deg, 
    rgba(8,9,13,0.95) 0%,
    rgba(8,9,13,0.60) 30%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content { 
  position: relative; 
  z-index: 2; 
  max-width: 780px; 
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.hero-logo { 
  width: 76px; 
  height: 76px; 
  border-radius: 20px; 
  margin: 0 auto 24px; 
  object-fit: cover; 
  box-shadow: var(--shadow-soft);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  padding: 8px 18px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 999px;
  background: rgba(0,212,255,0.08);
}
.hero-title { 
  font-size: clamp(2.2rem, 6vw, 4.4rem); 
  font-weight: 800; 
  line-height: 1.08; 
  margin-bottom: 22px;
}
.hero-title .highlight {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { 
  font-size: clamp(1rem, 2vw, 1.2rem); 
  color: var(--muted); 
  max-width: 600px; 
  margin: 0 auto 36px; 
}
.hero-actions { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.scroll-indicator { 
  position: absolute; 
  bottom: 36px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-mouse { 
  width: 26px; 
  height: 42px; 
  border: 2px solid rgba(255,255,255,0.4); 
  border-radius: 14px; 
  display: flex; 
  justify-content: center; 
  padding-top: 8px; 
}
.scroll-dot { 
  width: 4px; 
  height: 8px; 
  background: var(--accent-2); 
  border-radius: 3px; 
  animation: scrollDot 1.8s ease infinite; 
}
@keyframes scrollDot { 
  0% { opacity: 1; transform: translateY(0); } 
  70% { opacity: 0; transform: translateY(12px); } 
  100% { opacity: 0; } 
}

/* ---------------------------- Reveal animation ---------------------------- */
.reveal { 
  opacity: 0; 
  transform: translateY(28px); 
  transition: opacity .8s var(--ease), transform .8s var(--ease); 
}
.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ---------------------------- Content section (Full Width) ---------------------------- */
.content-section { 
  padding: 80px 20px; 
  position: relative; 
  width: 100%;
  max-width: 100%;
}
.content-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  width: 100%;
}
.section-head { 
  text-align: center; 
  max-width: 560px; 
  margin: 0 auto 48px; 
}
.section-head h2 { 
  font-size: clamp(1.8rem, 4vw, 2.6rem); 
  margin-bottom: 12px; 
}
.section-head p { 
  color: var(--muted); 
  font-size: 1.05rem; 
}

.filter-bar { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  justify-content: center; 
  margin-bottom: 48px; 
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .25s ease;
  cursor: pointer;
}
.filter-chip:hover { 
  color: var(--text); 
  border-color: rgba(255,255,255,0.25); 
  transform: translateY(-2px); 
}
.filter-chip.active { 
  background: var(--accent-grad); 
  color: #fff; 
  border-color: transparent; 
}

.card-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 28px; 
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.content-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-soft); 
  border-color: rgba(109,91,255,0.4); 
}
.card-media { 
  position: relative; 
  aspect-ratio: 16/10; 
  overflow: hidden; 
  background: var(--panel-2); 
}
.card-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform .6s var(--ease); 
}
.content-card:hover .card-media img { 
  transform: scale(1.08); 
}
.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  background: var(--panel-2);
}
.badge-category, .badge-featured {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.badge-category { 
  right: 12px; 
  background: rgba(8,9,13,0.65); 
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.15); 
}
.badge-featured { 
  left: 12px; 
  background: var(--accent-grad); 
  color: #fff; 
}
.card-body { 
  padding: 22px 22px 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  flex: 1; 
}
.card-body h3 { 
  font-size: 1.18rem; 
  font-weight: 700; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}
.card-body p { 
  color: var(--muted); 
  font-size: 0.92rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  flex: 1; 
}
.card-footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-top: 6px; 
  flex-wrap: wrap; 
  gap: 8px; 
}
.card-date { 
  font-size: 12px; 
  color: var(--muted); 
}
.card-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.card-btn:hover { 
  background: var(--accent-grad); 
  border-color: transparent; 
  color: #fff; 
  transform: translateX(4px); 
}

.empty-state, .no-results { 
  text-align: center; 
  color: var(--muted); 
  padding: 60px 20px; 
  font-size: 1.05rem; 
}

/* ---------------------------- Contact Section ---------------------------- */
.contact-section { 
  padding: 80px 20px; 
  max-width: 1200px; 
  margin: 0 auto; 
  position: relative; 
}
.contact-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.contact-section .section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.contact-section .section-header h2 .highlight {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-section .section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
}
.contact-card:hover {
  border-color: rgba(109,91,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.contact-card .icon-box { font-size: 40px; margin-bottom: 16px; }
.contact-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.contact-card p { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.contact-card .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  min-height: 50px;
}
.btn-contact-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109,91,255,0.3);
}
.btn-contact-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(109,91,255,0.4);
}
.btn-contact-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 2px solid var(--border);
}
.btn-contact-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ---------------------------- Social Showcase ---------------------------- */
.social-showcase {
  margin-top: 60px;
  padding: 60px 24px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.social-showcase .social-header {
  text-align: center;
  margin-bottom: 40px;
}
.social-showcase .social-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.social-showcase .social-header p {
  color: var(--muted);
  font-size: 14px;
}

.social-track-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}
.social-track {
  display: flex;
  gap: 40px;
  animation: scrollSocial 25s linear infinite;
  width: max-content;
}
.social-track:hover {
  animation-play-state: paused;
}
@keyframes scrollSocial {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--muted);
}
.social-item .icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border);
  position: relative;
}
.social-item .icon-wrapper .pop-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: popPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes popPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}
.social-item .icon-wrapper .pop-effect.delay-1 { animation-delay: 0.3s; }
.social-item .icon-wrapper .pop-effect.delay-2 { animation-delay: 0.6s; }
.social-item .icon-wrapper .pop-effect.delay-3 { animation-delay: 0.9s; }

.social-item:hover .icon-wrapper {
  transform: scale(1.15) translateY(-8px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 32px rgba(109,91,255,0.2);
}
.social-item .social-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.social-item:hover .social-name { color: var(--text); }
.social-item .rating-stars { color: #fbbf24; font-size: 12px; letter-spacing: 2px; }

/* Social icon colors */
.social-item[data-platform="facebook"]:hover .icon-wrapper {
  border-color: #1877f2;
  background: rgba(24,119,242,0.1);
}
.social-item[data-platform="youtube"]:hover .icon-wrapper {
  border-color: #ff0000;
  background: rgba(255,0,0,0.1);
}
.social-item[data-platform="trustpilot"]:hover .icon-wrapper {
  border-color: #00b67a;
  background: rgba(0,182,122,0.1);
}
.social-item[data-platform="instagram"]:hover .icon-wrapper {
  border-color: #e4405f;
  background: rgba(228,64,95,0.1);
}
.social-item[data-platform="twitter"]:hover .icon-wrapper {
  border-color: #1da1f2;
  background: rgba(29,161,242,0.1);
}

.jumping-icon {
  animation: jump 1.5s ease-in-out infinite;
}
@keyframes jump {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-20px); }
  50% { transform: translateY(-10px); }
  70% { transform: translateY(-18px); }
  90% { transform: translateY(-5px); }
}
.jumping-icon.delay-1 { animation-delay: 0.2s; }
.jumping-icon.delay-2 { animation-delay: 0.4s; }
.jumping-icon.delay-3 { animation-delay: 0.6s; }
.jumping-icon.delay-4 { animation-delay: 0.8s; }
.jumping-icon.delay-5 { animation-delay: 1.0s; }

.social-item.center .icon-wrapper {
  animation: jumpCenter 0.8s ease;
}
@keyframes jumpCenter {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-40px) scale(1.2); }
  60% { transform: translateY(-20px) scale(1.1); }
  80% { transform: translateY(-30px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* ---------------------------- Footer ---------------------------- */
.site-footer { 
  background: var(--bg-alt); 
  border-top: 1px solid var(--border); 
  padding: 60px 24px 32px; 
}
.footer-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  text-align: center; 
}
.footer-brand .brand-name { 
  font-size: 1.4rem; 
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { 
  color: var(--muted); 
  margin-top: 8px; 
}
.footer-social { 
  display: flex; 
  gap: 14px; 
  justify-content: center; 
  margin: 32px 0; 
  flex-wrap: wrap; 
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .3s var(--ease);
}
.social-link:hover { 
  color: #fff; 
  background: var(--accent-grad); 
  transform: translateY(-4px); 
  border-color: transparent; 
}
.social-link:active { transform: scale(0.95); }

.footer-legal { margin: 24px 0 16px; }
.footer-legal h4 { 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--muted); 
  margin-bottom: 12px; 
}
.footer-links { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 8px 20px; 
}
.footer-links a { 
  color: var(--muted); 
  font-size: 13px; 
  transition: color .25s ease; 
}
.footer-links a:hover { color: var(--text); }

.footer-compliance { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  margin: 16px 0; 
  flex-wrap: wrap; 
}
.compliance-badge { 
  font-size: 12px; 
  color: var(--muted); 
  padding: 4px 14px; 
  background: rgba(255,255,255,0.04); 
  border-radius: 20px; 
  border: 1px solid var(--border);
}
.footer-copy { 
  color: var(--muted); 
  font-size: 13px; 
  margin-top: 20px; 
}

/* ---------------------------- Modal ---------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,6,10,0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-soft);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8,9,13,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  margin: 8px 8px 0 0;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }
.modal-media { 
  width: 100%; 
  aspect-ratio: 16/9; 
  background: var(--panel-2); 
  overflow: hidden; 
}
.modal-media img, 
.modal-media iframe { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border: none; 
}
.modal-content { 
  padding: 28px 28px 32px; 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
  align-items: flex-start; 
}
.modal-content .badge-category {
  position: static;
  display: inline-block;
}
.modal-content h3 { font-size: 1.5rem; }
.modal-content p { 
  color: var(--muted); 
  line-height: 1.7; 
  white-space: pre-line; 
}
.modal-extra { 
  width: 100%; 
  color: var(--muted); 
  font-size: 0.9rem; 
}
.modal-extra strong { color: var(--text); }
.modal-extra iframe { 
  width: 100%; 
  aspect-ratio: 16/9; 
  border-radius: var(--radius-sm); 
  border: none; 
}
.modal-extra .file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all .25s ease;
}
.modal-extra .file-link:hover { 
  border-color: var(--accent-1); 
  background: rgba(109,91,255,0.08); 
}

/* ---------------------------- Legal Pages ---------------------------- */
.legal-page { 
  padding: calc(var(--nav-height) + 60px) 24px 60px; 
  max-width: 800px; 
  margin: 0 auto; 
}
.legal-container h1 { font-size: 36px; margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal-content h2 { 
  font-size: 22px; 
  margin: 32px 0 12px; 
  color: var(--text); 
}
.legal-content p { 
  color: var(--muted); 
  line-height: 1.8; 
  margin-bottom: 16px; 
}
.legal-content ul { 
  color: var(--muted); 
  line-height: 2; 
  padding-left: 24px; 
  margin-bottom: 16px; 
}
.legal-content a { color: var(--accent-1); }
.legal-content a:hover { text-decoration: underline; }

/* ---------------------------- Donation Overlay ---------------------------- */
.donation-overlay {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.donation-modal {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------- Scrollbar ---------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--panel); }

/* ---------------------------- Utilities ---------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-secondary { color: var(--muted); }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: rgba(8,9,13,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    font-size: 15px;
  }
  .nav-toggle { display: flex; }
  .nav-search-toggle .label { display: none; }
  .search-bar-expanded { top: var(--nav-height); }
  
  .hero { 
    min-height: 80vh; 
    min-height: 80dvh;
    padding: calc(var(--nav-height) + 30px) 16px 40px; 
  }
  .hero-title { font-size: clamp(2rem, 8vw, 3.2rem); }
  
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { padding: 24px; }
  .contact-card .btn-group { flex-direction: column; }
  .contact-card .btn-group .btn-contact { justify-content: center; width: 100%; }
}

@media (max-width: 560px) {
  .site-nav { height: var(--nav-height-mobile); padding: 0 12px; }
  .brand { font-size: 16px; }
  .brand-logo { height: 28px; }
  .nav-links { top: var(--nav-height-mobile); }
  .search-bar-expanded { top: var(--nav-height-mobile); padding: 12px 16px; }
  .search-bar-expanded .search-inner input { 
    padding: 12px 16px 12px 44px; 
    font-size: 15px; 
  }
  .search-bar-expanded .search-inner .search-icon { left: 14px; font-size: 16px; }
  
  .hero { 
    padding: calc(var(--nav-height-mobile) + 30px) 16px 40px; 
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  .content-section { padding: 60px 16px; }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .modal-content { padding: 22px 18px 26px; }
  .modal-box { max-width: 100%; margin: 16px; }
  
  .legal-page { 
    padding: calc(var(--nav-height-mobile) + 40px) 16px 40px; 
  }
  .legal-container h1 { font-size: 28px; }
  .legal-content h2 { font-size: 20px; }
  
  .footer-links { gap: 4px 10px; }
  .footer-links a { font-size: 12px; }
  .compliance-badge { font-size: 10px; padding: 2px 8px; }
  
  .social-item { min-width: 80px; }
  .social-item .icon-wrapper { width: 56px; height: 56px; font-size: 24px; }
  .social-track { gap: 24px; }
  .social-showcase { padding: 40px 16px; }
}

@media (max-width: 400px) {
  .site-nav { height: var(--nav-height-small); padding: 0 10px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand-logo { height: 24px; }
  .nav-links { top: var(--nav-height-small); }
  .search-bar-expanded { top: var(--nav-height-small); padding: 10px 12px; }
  .search-bar-expanded .search-inner input { 
    padding: 10px 14px 10px 40px; 
    font-size: 14px; 
  }
  .hero { 
    padding: calc(var(--nav-height-small) + 24px) 12px 32px; 
  }
  .btn { padding: 10px 18px; font-size: 13px; min-height: 40px; }
  .btn-lg { padding: 12px 22px; font-size: 14px; min-height: 48px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }
  .contact-section { padding: 40px 12px; }
  .social-item { min-width: 60px; }
  .social-item .icon-wrapper { width: 48px; height: 48px; font-size: 20px; }
  .social-track { gap: 16px; }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { 
    min-height: 100vh; 
    min-height: 100dvh;
    padding: calc(var(--nav-height) + 24px) 16px 30px; 
  }
  .hero-title { font-size: clamp(1.6rem, 6vh, 2.8rem); }
  .hero-desc { font-size: 14px; margin-bottom: 16px; }
  .hero-logo { width: 48px; height: 48px; margin-bottom: 12px; }
}

/* iOS Safari Fix */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
}

/* ---------------------------- Print ---------------------------- */
@media print {
  .site-nav, .scroll-indicator, .modal-overlay, .donation-overlay,
  .search-bar-expanded, .nav-toggle, .nav-search-toggle {
    display: none !important;
  }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-overlay { display: none; }
  .hero-bg img { display: none; }
  .content-card { break-inside: avoid; border: 1px solid #ddd; }
  .card-btn { display: none; }
  .site-footer { background: white; border-top: 1px solid #ddd; }
  .footer-social, .footer-legal, .footer-compliance { display: none; }
}