/* ============================================================
   Hexasolv — Global Stylesheet (Common Components & Theme)
   ============================================================ */

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

:root {
  /* Default Light Mode Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f7ff;
  --bg-card: rgba(124, 58, 237, 0.04);
  --accent-1: #7c3aed;
  --accent-2: #a855f7;
  --accent-3: #06b6d4;
  --text-primary: #0f0a1e;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: rgba(124, 58, 237, 0.12);
  --border-hover: rgba(124, 58, 237, 0.4);
  --gradient-1: linear-gradient(135deg, #7c3aed, #a855f7, #06b6d4);
  --gradient-2: linear-gradient(135deg, #06b6d4, #7c3aed);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Theme Variables (Applied when class 'dark' is on HTML root) */
html.dark {
  --bg-primary: #03010a;
  --bg-secondary: #07030f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: var(--transition-theme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

/* ── Navigation Bar ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme), background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-logo-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-1);
}

.nav-cta {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  background: var(--gradient-1);
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 25px rgba(124, 58, 237, 0.4);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-theme);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-1);
}

/* ── Hamburger Menu ────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-theme), transform 0.3s, opacity 0.3s;
}

/* ── Mega Menu ─────────────────────────────────────────────── */
.nav-item-mega {
  position: relative;
}

.nav-mega-trigger {
  cursor: pointer;
}

.nav-mega-panel {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 20px);
  width: min(920px, 92vw);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(20, 10, 50, 0.18);
  padding: 2rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.8rem;
  z-index: 1001;
  transition: var(--transition-theme);
}

.nav-item-mega:hover .nav-mega-panel {
  display: grid;
}

.nav-mega-col h4 {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-1);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-mega-col a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-mega-col a:hover {
  color: var(--accent-1);
}

.nav-mega-cta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.06));
  border-radius: 12px;
  padding: 1.2rem;
}

.nav-mega-cta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.nav-mega-cta-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff !important;
  padding: 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
  text-decoration: none;
}

.nav-mega-view-all {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--accent-1) !important;
}

/* ── Mobile Navigation Menu ────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
  transition: var(--transition-theme);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent-1);
}

/* ── Hero Page Header ──────────────────────────────────────── */
.page-hero {
  padding: 140px 5% 70px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
}

.page-hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* ── Section Structure ─────────────────────────────────────── */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 5%;
}

.section-tag {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  background: var(--bg-secondary);
  transition: var(--transition-theme);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-main);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-1);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Floating WhatsApp Button ──────────────────────────────── */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* ── Responsive Styling ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  footer > div:first-child {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  footer > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

/* ── Scroll Reveal Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered transition delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Floating Animation ───────────────────────────────────── */
@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: floating 4s ease-in-out infinite;
}

/* ── Video Showcase Grid & Card Styles ────────────────────────── */
.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.video-showcase-grid .video-thumb-container {
  height: 280px;
}
@media (max-width: 768px) {
  .video-showcase-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .video-showcase-grid .video-thumb-container {
    height: 220px;
  }
}
.video-showcase-card {
  background: var(--bg-primary, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  opacity: 1 !important;
  visibility: visible !important;
}
html.dark .video-showcase-card {
  background: var(--bg-secondary, #0d0722);
  border-color: var(--border, rgba(124, 58, 237, 0.2));
}
.video-showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-1, #7c3aed);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.18);
}
.video-thumb-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #000000;
}
.video-thumb-img,
.video-thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.video-showcase-card:hover .video-thumb-img,
.video-showcase-card:hover .video-thumb-media {
  transform: scale(1.08);
}
.video-play-overlay {
  display: none !important;
}
.play-button-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #00B4D8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  transition: transform 0.3s ease;
}
.video-showcase-card:hover .play-button-icon {
  transform: scale(1.18);
}
.play-text-label {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.video-duration-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}
.video-platform-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(10px);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  z-index: 2;
}
.video-platform-badge.shopify { color: #96bf48; border-color: rgba(150, 191, 72, 0.4); }
.video-platform-badge.wordpress { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.video-platform-badge.wix { color: #f43f5e; border-color: rgba(244, 63, 94, 0.4); }

.video-card-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.video-category-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-1, #7c3aed);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.video-card-title {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #0f0a1e);
}
.video-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}
.video-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.v-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-1, #7c3aed);
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.video-card-action {
  margin-top: auto;
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-1, #7c3aed);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.video-showcase-card:hover .video-card-action {
  gap: 0.7rem;
}

/* Video Filter Buttons */
.video-filter-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 3rem;
}
.video-filter-btn {
  background: var(--bg-card, rgba(124, 58, 237, 0.04));
  border: 1px solid var(--border, rgba(124, 58, 237, 0.12));
  color: var(--text-secondary, #64748b);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.video-filter-btn:hover,
.video-filter-btn.active {
  background: var(--gradient-1, linear-gradient(135deg, #7c3aed, #a855f7));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
/* Target only the whitespace under the footer without touching body or text colors */
footer {
    margin-bottom: 0 !important;
    position: relative;
}

/* Pseudo-element to fill any extra screen gap below the footer with the footer's dark color */
footer::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: #07030f;
    z-index: -1;
}