/* ============================================================
   ZyroWeb — Main Stylesheet | Pixel Art Edition
   Version: 1.0.0
   ============================================================ */

/* --- Google Fonts already loaded via header.php ------------- */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Primary Colors */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  /* Navy */
  --navy:     #0F172A;
  --navy-soft:#1E293B;
  --navy-mid: #162040;

  /* Neutral */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Accent */
  --green:    #22C55E;
  --yellow:   #F59E0B;
  --red:      #EF4444;

  /* Fonts */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'Inter', system-ui, sans-serif;

  /* Font sizes */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10:2.5rem;
  --space-12:3rem;
  --space-16:4rem;
  --space-20:5rem;
  --space-24:6rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl:20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.16);
  --shadow-blue: 0 8px 24px rgba(37,99,235,0.25);

  /* Pixel border */
  --pixel-border: 3px solid var(--blue-600);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Navbar height */
  --navbar-h: 70px;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
}

img, video, iframe, table, canvas, svg { max-width: 100%; height: auto; }
img { display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }

/* ============================================================
   4. TYPOGRAPHY UTILITIES & OVERFLOW PROTECTION
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .page-hero-title,
.template-name, .service-title, .portfolio-name,
.pixel-heading {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: manual;
}

.grid > *, .flex > *, .cards-grid > *, .container > * {
  min-width: 0;
}

.pixel-heading {
  font-family: var(--font-pixel);
  line-height: 1.6;
  letter-spacing: -0.5px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-title-white { color: var(--white); }

.section-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}
.section-subtitle-white { color: var(--blue-200); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 10px 30px rgba(37,99,235,0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn-xl { padding: 1.125rem 2.25rem; font-size: var(--text-lg); }

.btn-icon { font-size: 1.1em; }

/* ============================================================
   6. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-info     { background: var(--blue-100); color: var(--blue-800); }
.badge-new      { background: var(--blue-600); color: white; }
.badge-secondary{ background: var(--gray-200); color: var(--gray-700); }

/* ============================================================
   7. CARDS — Base
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   8. FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ============================================================
   9. PIXEL ART DECORATIVE ELEMENTS
   ============================================================ */
/* Pixel dots pattern */
.pixel-dots::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--blue-400) 0, var(--blue-400) 8px,
    transparent 8px, transparent 16px
  );
}

/* Pixel divider */
.pixel-divider {
  width: 100%;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--blue-300) 0, var(--blue-300) 6px,
    transparent 6px, transparent 12px
  );
  margin: var(--space-8) 0;
}

/* Floating pixel squares decoration */
.pixel-floater {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--blue-300);
  animation: pixelFloat 3s ease-in-out infinite;
  pointer-events: none;
}
.pixel-floater:nth-child(2) { animation-delay: -1s; width: 6px; height: 6px; background: var(--blue-400); }
.pixel-floater:nth-child(3) { animation-delay: -2s; width: 10px; height: 10px; background: var(--blue-500); }

@keyframes pixelFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(45deg); }
}

/* ============================================================
   10. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--blue-700);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.logo-tagline { font-size: 0.65rem; color: var(--gray-500); margin-top: 2px; }

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-700);
  background: var(--blue-50);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

/* CTA & Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav-mobile-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--navbar-h);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 40%, var(--blue-50) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 0;
}

/* Pixel floaters in hero */
.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-pixel {
  position: absolute;
  border-radius: var(--radius-sm);
  animation: pixelFloat 4s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0;
  width: 100%;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.6rem;
  font-family: var(--font-pixel);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  animation: fadeInDown 0.6s ease both;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title-accent {
  color: var(--blue-600);
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.85em;
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 500px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
  margin-bottom: var(--space-5);
}

/* Hero Trust Badge / Anti-AI Pill */
.hero-trust-wrap {
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.anti-ai-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed var(--blue-500);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: none;
  transition: all 0.25s ease;
}

.anti-ai-hero-pill:hover {
  background: var(--blue-600);
  color: #FFFFFF;
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.anti-ai-pill-icon {
  font-size: 14px;
}

.anti-ai-pill-arrow {
  font-size: 11px;
  opacity: 0.7;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-mascot-wrap {
  position: relative;
}

.hero-mascot {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(37,99,235,0.3));
  animation: mascotIdle 3s ease-in-out infinite;
}

@keyframes mascotIdle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Speech bubble */
.hero-bubble {
  position: absolute;
  top: 10px;
  left: -20px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--blue-400);
}
.hero-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--navy);
}

/* Tags on right side */
.hero-tags {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-tag {
  background: var(--navy);
  color: var(--blue-300);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border-left: 3px solid var(--blue-500);
  animation: tagSlide 0.5s ease both;
}
.hero-tag:nth-child(2) { animation-delay: 0.1s; }
.hero-tag:nth-child(3) { animation-delay: 0.2s; }
.hero-tag:nth-child(4) { animation-delay: 0.3s; }

@keyframes tagSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Pixel cat decoration */
.hero-cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--white), var(--gray-200));
  border-radius: var(--radius-md);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation: catBounce 2s ease-in-out infinite;
}
@keyframes catBounce {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ============================================================
   12. SECTION LABEL BAND
   ============================================================ */
.label-band {
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ============================================================
   12B. ANTI-AI SLOP GUARANTEE SECTION
   ============================================================ */
.anti-ai-section {
  background: linear-gradient(180deg, var(--white) 0%, #F0F7FF 50%, var(--white) 100%);
  padding: var(--space-16) 0;
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.anti-ai-header {
  margin-bottom: var(--space-12);
}

.anti-ai-label {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
}

.anti-ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.anti-ai-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.anti-ai-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-500);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.12);
}

.anti-ai-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.anti-ai-card-icon {
  font-size: 28px;
  line-height: 1;
}

.anti-ai-tag {
  font-size: 9px;
  font-family: var(--font-pixel);
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.anti-ai-card-title {
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.anti-ai-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .anti-ai-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  .anti-ai-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .anti-ai-card {
    padding: var(--space-4);
  }
  .anti-ai-hero-pill {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ============================================================
   13. SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--white);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.75rem;
  transition: all var(--transition);
  border: 2px solid var(--blue-100);
}
.service-card:hover .service-icon {
  background: var(--blue-600);
  border-color: var(--blue-700);
  transform: scale(1.1) rotate(-5deg);
  font-size: 1.9rem;
}

.service-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--blue-600);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: var(--space-3); }

/* ============================================================
   14. TEMPLATES SECTION (Navy background)
   ============================================================ */
.templates-section {
  background: var(--navy-soft);
  position: relative;
  overflow: hidden;
}

.templates-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37,99,235,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.templates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.templates-carousel {
  position: relative;
}

.templates-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

/* Template Card */
.template-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.template-preview {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  overflow: hidden;
}

.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.template-card:hover .template-preview img { transform: scale(1.05); }

.template-badge-new {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--blue-600);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.template-info {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.template-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.template-category {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.template-price {
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--blue-700);
  margin-bottom: var(--space-4);
}

.template-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}
.template-actions .btn { flex: 1; font-size: 0.7rem; padding: 0.4rem 0.5rem; }

/* Carousel nav arrows */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  color: var(--blue-700);
  font-size: 1.2rem;
  transition: all var(--transition);
  border: none;
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-prev:hover, .carousel-next:hover {
  background: var(--blue-600);
  color: var(--white);
}

/* ============================================================
   15. PORTFOLIO SECTION
   ============================================================ */
.portfolio-section {
  background: var(--white);
  position: relative;
}

.portfolio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.portfolio-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-300);
}

.portfolio-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  overflow: hidden;
}
.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-preview img { transform: scale(1.05); }

.portfolio-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.portfolio-info {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-cats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.portfolio-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.portfolio-short-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
}

/* ============================================================
   16. ORDER PROCESS SECTION
   ============================================================ */
.order-section {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.order-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600), var(--blue-400));
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  position: relative;
  margin-top: var(--space-12);
}

/* Connecting line */
.order-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(10% + 36px);
  right: calc(10% + 36px);
  height: 3px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-500), var(--blue-300));
  z-index: 0;
}

.order-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.order-step-icon {
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 3px solid var(--blue-300);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-4);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.order-step:hover .order-step-icon {
  border-color: var(--blue-600);
  background: var(--blue-600);
  transform: scale(1.1);
  box-shadow: var(--shadow-blue);
}

.order-step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-step-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}

.order-step-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--space-16);
}

.footer-pixel-bar {
  margin-bottom: var(--space-10);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.logo-tagline-footer {
  font-size: 0.6rem;
  color: var(--blue-300);
  margin-top: 2px;
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--blue-200);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}
.social-link:hover { background: var(--blue-600); border-color: var(--blue-500); transform: translateY(-3px); }
.social-link svg { width: 16px; height: 16px; }

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--blue-700);
  display: inline-block;
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--blue-200);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links a::before {
  content: '▶';
  font-size: 0.55rem;
  color: var(--blue-400);
  flex-shrink: 0;
}
.footer-links a:hover { color: var(--white); padding-left: var(--space-2); }

.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--blue-200);
  transition: color var(--transition);
}
a.footer-contact-item:hover { color: var(--white); }
.contact-icon { width: 20px; text-align: center; }

.footer-mascot-card {
  background: var(--blue-700);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--blue-500);
  font-size: var(--text-xs);
  color: var(--blue-100);
  line-height: 1.6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--blue-300);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom-links a { color: var(--blue-300); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================================
   18. FILTER BAR (Templates/Portfolio pages)
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.search-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.search-input {
  flex: 1;
  max-width: 400px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 30px;
  font-size: var(--text-sm);
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ============================================================
   19. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--navbar-h) + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(29,78,216,0.1), transparent 60%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: var(--space-4); }
.page-hero-desc { font-size: var(--text-lg); color: var(--blue-200); max-width: 600px; margin: 0 auto; }

/* ============================================================
   20. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

/* ============================================================
   21. ALERT / FLASH MESSAGES
   ============================================================ */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--green); }
.alert-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--red); }
.alert-info    { background: var(--blue-50); color: var(--blue-800); border-left: 4px solid var(--blue-500); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--yellow); }

/* ============================================================
   22. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

/* ============================================================
   23. ANIMATIONS — keyframes
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* Blink effect for mascot eyes (CSS only) */
.mascot-blink { animation: blink 4s ease infinite; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   24. LOADING SPINNER
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   25. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================================
   25B. COMPONENT RESPONSIVE GRIDS
   ============================================================ */
.portfolio-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-10);
  align-items: start;
}
.template-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.service-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.service-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.detail-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.detail-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.sticky-sidebar {
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-6));
}
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

/* ============================================================
   26. RESPONSIVE — Desktop Compact (1025px – 1200px)
   Prevents navbar crowding with 8 menu items + action buttons
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1220px) {
  .navbar-inner {
    gap: var(--space-2);
  }
  .navbar-nav {
    gap: 2px;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }
  .navbar-actions {
    gap: 8px;
  }
  .lang-dropdown-btn {
    padding: 4px 8px;
    height: 36px;
    font-size: 12px;
  }
  .theme-toggle-btn {
    height: 36px;
    padding: 2px 6px;
    gap: 5px;
  }
  .navbar-cta-desktop {
    padding: 0 12px;
    height: 36px;
    font-size: 12px;
  }
  .logo-tagline {
    display: none;
  }
}

/* ============================================================
   27. RESPONSIVE — Tablet & Mobile (≤ 1024px)
   Header in clean single row: Logo, Dropdown, Toggle, WA icon, Hamburger (Reference Box 5)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --navbar-h: 60px; }

  /* Navbar mobile topbar & drawer activation */
  .hamburger { display: flex !important; width: 34px; height: 34px; padding: 6px; justify-content: center; align-items: center; }
  .navbar-cta-desktop { display: none !important; }
  .navbar-whatsapp-icon-btn { display: inline-flex !important; width: 34px; height: 34px; }
  .navbar-actions { gap: 8px; align-items: center; flex-shrink: 0; }

  /* Compact Theme Toggle (Box 5) */
  .theme-toggle-btn {
    height: 34px;
    padding: 2px 6px;
    gap: 4px;
  }
  .theme-toggle-track {
    width: 32px;
    height: 18px;
    border-radius: 9px;
  }
  .theme-toggle-thumb {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
  }
  [data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(14px);
  }
  [data-theme="black"] .theme-toggle-thumb {
    transform: translateX(14px);
  }

  /* Compact Language Selector Dropdown (Box 5) */
  .lang-dropdown-btn {
    height: 34px;
    padding: 3px 7px;
    font-size: 12px;
    gap: 5px;
  }
  .lang-flag-svg {
    width: 18px;
    height: 12px;
  }
  .lang-code {
    font-size: 12px;
  }

  /* Dropdown menu positioning on tablet & mobile (pinned to right to prevent edge clipping) */
  .lang-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    min-width: 210px;
    max-width: calc(100vw - 20px);
  }

  /* Drawer Mobile Header & Close Button */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
  }
  .nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-drawer-logo {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--blue-600);
  }
  .nav-drawer-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--blue-100);
    color: var(--blue-700);
  }
  .nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card-inner, #f8fafc);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .nav-drawer-close:hover {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
  }

  .nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color, #e2e8f0);
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 16px var(--space-6);
    gap: var(--space-1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .navbar-nav.open { right: 0; }
  .nav-link {
    width: 100%;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-track { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid  { grid-template-columns: repeat(2, 1fr); }
  .order-steps     { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .order-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .hero-inner { gap: var(--space-8); }
  .hero-bubble { left: 0 !important; font-size: 0.5rem; }
  .hero-tags { right: 0 !important; }
}

/* ============================================================
   28. RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  /* Hero Section Mobile (Mascot scaling & balanced layout) */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-8) 0 var(--space-4);
    gap: var(--space-6);
  }
  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
    gap: var(--space-3);
  }
  .hero-trust-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
  }
  .anti-ai-hero-pill {
    font-size: 0.75rem;
    padding: 8px 14px;
    max-width: 100%;
  }

  /* Mascot robot: preserved & scaled on mobile */
  .hero-visual {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-4);
  }
  .hero-mascot-wrap {
    max-width: 260px;
    margin: 0 auto;
    position: relative;
  }
  .hero-mascot {
    width: 100%;
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(37,99,235,0.25));
  }
  .hero-bubble {
    top: -16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    font-size: 0.52rem;
    white-space: nowrap;
    padding: 6px 12px;
  }
  .hero-bubble::after {
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
    bottom: -6px;
  }
  .hero-tags {
    display: none !important;
  }
  .hero-cat {
    bottom: 4px;
    right: -6px;
    font-size: 26px;
  }

  /* Grids & Details */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .portfolio-detail-grid,
  .template-detail-grid,
  .contact-grid,
  .about-hero-grid,
  .service-split-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .sticky-sidebar {
    position: static !important;
    margin-top: var(--space-6);
  }
  .detail-split-grid,
  .service-highlights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .detail-features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  /* Catalog Toolbar & Smooth Scrollable Filter Chips */
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .catalog-toolbar .search-form {
    width: 100% !important;
    min-width: 0 !important;
  }
  .filter-bar,
  .filter-pills {
    display: flex !important;
    width: 100%;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar,
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-btn,
  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-full);
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .service-card { padding: var(--space-6) var(--space-5); }

  /* Templates Carousel Mobile */
  .templates-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .templates-carousel { overflow: hidden; position: relative; padding: var(--space-2) 0; }
  .templates-track {
    display: flex !important;
    gap: var(--space-4);
    transition: transform 0.4s ease;
  }
  .carousel-prev, .carousel-next { display: none !important; }

  /* Portfolio */
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .portfolio-grid { grid-template-columns: 1fr; gap: var(--space-5); }

  /* Connected Vertical Order Steps */
  .order-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
    position: relative;
    padding-left: var(--space-2);
  }
  .order-steps::before {
    display: block !important;
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: calc(var(--space-2) + 26px);
    right: auto;
    width: 2px;
    height: auto;
    background: var(--blue-200);
    z-index: 0;
  }
  .order-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
  }
  .order-step-icon {
    margin: 0 !important;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .order-step-num {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  /* Sticky Mobile Calculator Dock (Summary & WA CTA) */
  .calc-mobile-dock {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg, #ffffff);
    border-top: 2px solid var(--border-color, #cbd5e1);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 998;
  }
  .calc-mobile-dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 !important;
  }
  .calc-mobile-dock-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .calc-mobile-dock-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .calc-mobile-dock-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--blue-700);
    line-height: 1.2;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .calc-mobile-dock-actions {
    flex-shrink: 0;
  }
  .calc-mobile-dock-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
  }

  /* Card padding refinements for mobile */
  .calc-card {
    padding: var(--space-5) var(--space-4) !important;
  }
  .contact-grid > div:last-child {
    padding: var(--space-5) var(--space-4) !important;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: var(--space-3); }
}

/* ============================================================
   29. RESPONSIVE — Small mobile (≤ 480px & ≤ 375px)
   ============================================================ */
@media (max-width: 480px) {
  .logo-tagline { display: none; }
  .logo-name { font-size: 0.65rem; }
  .logo-icon { width: 34px; height: 34px; }
  .cards-grid { grid-template-columns: 1fr; }
  .templates-track { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .container { padding: 0 1rem; }

  /* Prevent button clipping and long text overflow */
  .btn {
    white-space: normal;
    text-align: center;
    word-break: break-word;
  }

  .template-actions,
  .portfolio-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .template-actions .btn,
  .portfolio-footer .btn {
    flex: 1 1 100%;
  }

  /* Breadcrumb clean scroll */
  .breadcrumb-bar, div[style*="border-bottom:1px solid var(--gray-200)"] .container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 360px) {
  :root { --navbar-h: 56px; }
  .logo-name { font-size: 0.58rem; }
  .logo-icon { width: 30px; height: 30px; }
  .navbar-actions { gap: 5px; }
  .lang-dropdown-btn {
    height: 32px;
    padding: 2px 5px;
    font-size: 11px;
    gap: 4px;
  }
  .lang-flag-svg {
    width: 16px;
    height: 11px;
  }
  .lang-code {
    font-size: 11px;
  }
  .theme-toggle-btn {
    height: 32px;
    padding: 2px 5px;
    gap: 3px;
  }
  .theme-toggle-track {
    width: 28px;
    height: 16px;
    border-radius: 8px;
  }
  .theme-toggle-thumb {
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
  }
  [data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(12px);
  }
  [data-theme="black"] .theme-toggle-thumb {
    transform: translateX(12px);
  }
  .navbar-whatsapp-icon-btn {
    width: 32px;
    height: 32px;
  }
  .hamburger {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
  .hamburger span {
    width: 18px;
  }
}

/* ============================================================
   29. ADMIN-SPECIFIC STYLES (scoped to .admin-layout)
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
}

.admin-sidebar {
  width: 260px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.admin-sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav { padding: var(--space-4) 0; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: var(--blue-200);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(59,130,246,0.15);
  color: var(--white);
  border-left-color: var(--blue-400);
}
.admin-nav-divider {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-4) var(--space-6) var(--space-2);
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--space-8);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-page-title { font-size: var(--text-lg); font-weight: 700; color: var(--gray-800); }

.admin-content { padding: var(--space-8); flex: 1; }

/* Admin cards */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-value { font-size: var(--text-2xl); font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: var(--text-xs); color: var(--gray-500); font-weight: 500; }

/* Admin table */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.admin-table-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table th {
  background: var(--gray-50);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.admin-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* Admin form page */
.admin-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  max-width: 800px;
}

.preview-img {
  max-width: 200px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: var(--space-4); }
  .admin-topbar { padding: 0 var(--space-4); }
}

/* ============================================================
   THEME TOGGLE BUTTON & SMOOTH TRANSITIONS
   ============================================================ */
body, .navbar, .card, .service-card, .template-card, .portfolio-card, 
.section, .footer, .form-control, .theme-toggle-btn, .detail-split-grid > div,
.sticky-sidebar > div, .admin-nav, .data-table, .data-table th, .data-table td,
.filter-pill, .faq-item {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   THEME TOGGLE BUTTON (Sun ☀️ / Switch / Moon 🌙 — Reference Box 3 & 4)
   ============================================================ */
.theme-toggle-btn {
  background: var(--white, #FFFFFF);
  border: 1.5px solid var(--border-color, #CBD5E1);
  border-radius: 30px;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  height: 38px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn:hover {
  border-color: var(--blue-500, #3B82F6);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.theme-icon-sun, .theme-icon-moon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.theme-toggle-track {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: var(--blue-600, #2563EB);
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

/* Light Mode: Sun active, Moon subtle */
:root:not([data-theme="dark"]) .theme-toggle-thumb,
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
}
:root:not([data-theme="dark"]) .theme-icon-sun,
[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1.05);
}
:root:not([data-theme="dark"]) .theme-icon-moon,
[data-theme="light"] .theme-icon-moon {
  opacity: 0.35;
  transform: scale(0.9);
}

/* ============================================================
   LANGUAGE SELECTOR DROPDOWN (Reference Box 2 & 4)
   ============================================================ */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white, #FFFFFF);
  border: 1.5px solid var(--border-color, #CBD5E1);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #1E293B);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  outline: none;
  height: 38px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.lang-dropdown-btn:hover,
.lang-dropdown.open .lang-dropdown-btn {
  border-color: var(--blue-600, #2563EB);
  background: var(--white, #FFFFFF);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.lang-flag .lang-flag-svg,
.lang-item-flag .lang-flag-svg,
.lang-flag-svg {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}

.lang-code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main, #1E293B);
  line-height: 1;
}

.lang-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--gray-500, #64748B);
  line-height: 1;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Popup (Reference Box 2) */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white, #FFFFFF);
  border: 1.5px solid var(--border-color, #E2E8F0);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1300;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lang-dropdown.open .lang-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main, #1E293B);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
}

.lang-dropdown-item:hover {
  background: var(--blue-50, #EFF6FF);
  color: var(--blue-700, #1D4ED8);
}

.lang-dropdown-item.active {
  background: var(--blue-50, #EFF6FF);
  color: var(--blue-700, #1D4ED8) !important;
  font-weight: 700;
}

.lang-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.lang-item-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--gray-700, #334155);
}

.lang-dropdown-item.active .lang-item-code {
  color: var(--blue-700, #1D4ED8);
}

.lang-item-name {
  flex: 1;
  font-size: 13px;
  color: inherit;
}

.lang-item-check {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-600, #2563EB);
  margin-left: 6px;
}

/* ============================================================
   WHATSAPP CTA BUTTONS (Desktop & Mobile — Reference Box 4 & 5)
   ============================================================ */
.navbar-cta-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  background: var(--blue-600, #2563EB);
  color: #FFFFFF !important;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.navbar-cta-desktop:hover {
  background: var(--blue-700, #1D4ED8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.navbar-cta-desktop .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Icon-Only WhatsApp Button (Box 5) */
.navbar-whatsapp-icon-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue-600, #2563EB);
  color: #FFFFFF !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.navbar-whatsapp-icon-btn:hover {
  background: var(--blue-700, #1D4ED8);
  transform: translateY(-1px);
}

.navbar-whatsapp-icon-btn svg {
  display: block;
}

/* Drawer Full Width CTA */
.mobile-cta-whatsapp {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  height: 42px;
  gap: 8px;
}

/* ------------------------------------------------------------
   DARK MODE — OFFICIAL ZYROWEB PALETTE
   - Background utama: #0B1220
   - Background section: #111C2E
   - Kartu: #17243A
   - Teks utama: #F1F5F9
   - Teks sekunder: #B8C5D8
   - Border: #2A3B55
   - Warna aksen biru: #4D9FFF
   - Tombol utama: biru dengan teks putih
   ------------------------------------------------------------ */
[data-theme="dark"] {
  --bg-main: #0B1220;
  --bg-section: #111C2E;
  --bg-card: #17243A;
  --text-main: #F1F5F9;
  --text-secondary: #B8C5D8;
  --border-color: #2A3B55;
  --accent-blue: #4D9FFF;

  --white: #17243A;
  --gray-50: #111C2E;
  --gray-100: #17243A;
  --gray-200: #2A3B55;
  --gray-300: #33496B;
  --gray-400: #64748B;
  --gray-500: #94A3B8;
  --gray-600: #B8C5D8;
  --gray-700: #CBD5E1;
  --gray-800: #F1F5F9;
  --gray-900: #FFFFFF;

  --navy: #0B1220;
  --navy-soft: #111C2E;
  --navy-mid: #17243A;

  --card-bg: #17243A;
  --card-border: #2A3B55;
  --surface-color: #17243A;
  --text-primary: #F1F5F9;
  --text-muted: #B8C5D8;
  --slate-50: #111C2E;
  --slate-100: #17243A;
  --slate-800: #17243A;
  --slate-900: #0B1220;

  --blue-50: #17243A;
  --blue-100: #1E3258;
  --blue-200: #2A4676;
  --blue-300: #4D9FFF;
  --blue-400: #4D9FFF;
  --blue-500: #4D9FFF;
  --blue-600: #2563EB;
  --blue-700: #4D9FFF;
}

/* Dark mode toggle thumb position & glow */
[data-theme="dark"] .theme-toggle-btn {
  background: #17243A;
  border-color: #2A3B55;
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #4D9FFF;
  box-shadow: 0 0 10px rgba(77, 159, 255, 0.6);
}
[data-theme="dark"] .theme-icon-sun {
  opacity: 0.35;
  transform: scale(0.9);
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1.05);
  color: #F1F5F9;
}

/* Language Dropdown in Dark Mode */
[data-theme="dark"] .lang-dropdown-btn {
  background: #17243A;
  border-color: #2A3B55;
  color: #F1F5F9;
}
[data-theme="dark"] .lang-dropdown-btn:hover,
[data-theme="dark"] .lang-dropdown.open .lang-dropdown-btn {
  border-color: #4D9FFF;
  background: #111C2E;
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.3);
}
[data-theme="dark"] .lang-dropdown-menu {
  background: #17243A;
  border-color: #4D9FFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .lang-dropdown-item {
  color: #B8C5D8;
}
[data-theme="dark"] .lang-dropdown-item:hover {
  background: #111C2E;
  color: #4D9FFF;
}
[data-theme="dark"] .lang-dropdown-item.active {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #4D9FFF !important;
}
[data-theme="dark"] .lang-dropdown-item .lang-item-code {
  color: #F1F5F9;
}
[data-theme="dark"] .lang-dropdown-item.active .lang-item-code {
  color: #4D9FFF;
}
[data-theme="dark"] .lang-dropdown-item .lang-item-check {
  color: #4D9FFF;
}
/* Site Settings Panel in Dark Mode */
[data-theme="dark"] .site-settings-panel {
  background: #111C2E;
  border-color: #2A3B55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .site-settings-panel:hover {
  border-color: #4D9FFF;
}
[data-theme="dark"] .settings-lang-item {
  background: #17243A;
  border-color: #2A3B55;
  color: #B8C5D8;
}
[data-theme="dark"] .settings-lang-item:hover {
  background: #1E3258;
  border-color: #4D9FFF;
  color: #FFFFFF;
}
[data-theme="dark"] .settings-lang-item.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}
[data-theme="dark"] .settings-panel-divider {
  background: #2A3B55;
}
[data-theme="dark"] .settings-theme-label {
  color: #B8C5D8;
}
[data-theme="dark"] .mobile-settings-card {
  background: var(--bg-card, #17243A);
  border-color: var(--border-color, #2A3B55);
  box-shadow: none;
}
[data-theme="dark"] .mobile-settings-divider {
  background: #2A3B55;
}
[data-theme="dark"] .mobile-theme-row .settings-theme-label {
  color: #B8C5D8;
}


/* Base Body & Main Sections in Dark Mode */
[data-theme="dark"] body {
  background-color: #0B1220 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .section,
[data-theme="dark"] section {
  background-color: #0B1220;
  color: #F1F5F9;
}

[data-theme="dark"] section[style*="background:var(--gray-50)"],
[data-theme="dark"] section[style*="background: var(--gray-50)"],
[data-theme="dark"] .services-section,
[data-theme="dark"] .templates-section,
[data-theme="dark"] .order-section,
[data-theme="dark"] .faq-section {
  background-color: #111C2E !important;
}

/* Navbar in Dark Mode */
[data-theme="dark"] .navbar {
  background: rgba(11, 18, 32, 0.95) !important;
  border-bottom: 1px solid #2A3B55 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .logo-name {
  color: #4D9FFF !important;
}
[data-theme="dark"] .logo-tagline {
  color: #B8C5D8 !important;
}
[data-theme="dark"] .nav-link {
  color: #B8C5D8;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #4D9FFF !important;
  background: rgba(77, 159, 255, 0.12) !important;
}

@media (max-width: 1024px) {
  [data-theme="dark"] .navbar-nav {
    background: #111C2E !important;
    border-left: 1px solid #2A3B55 !important;
  }
  [data-theme="dark"] .nav-link {
    color: #F1F5F9 !important;
  }
  [data-theme="dark"] .mobile-nav-label {
    color: #B8C5D8 !important;
  }
}

@media (min-width: 1025px) {
  .nav-drawer-header {
    display: none !important;
  }
  .navbar-nav,
  [data-theme="dark"] .navbar-nav,
  [data-theme="black"] .navbar-nav {
    background: transparent !important;
    border-left: none !important;
    box-shadow: none !important;
  }
}

/* Dark mode drawer header, steps & items */
[data-theme="dark"] .nav-drawer-header {
  border-bottom-color: #2A3B55 !important;
}
[data-theme="dark"] .nav-drawer-logo {
  color: #60A5FA !important;
}
[data-theme="dark"] .nav-drawer-badge {
  background: rgba(77, 159, 255, 0.2) !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .nav-drawer-close {
  background: #17243A !important;
  border-color: #2A3B55 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .order-step {
  background: #17243A !important;
  border-color: #2A3B55 !important;
}
[data-theme="dark"] .order-steps::before {
  background: #2A3B55 !important;
}

/* Black mode drawer header, steps & items */
[data-theme="black"] .nav-drawer-header {
  border-bottom-color: #262626 !important;
}
[data-theme="black"] .nav-drawer-logo {
  color: #60A5FA !important;
}
[data-theme="black"] .nav-drawer-close {
  background: #141414 !important;
  border-color: #262626 !important;
  color: #FFFFFF !important;
}
[data-theme="black"] .order-step {
  background: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="black"] .order-steps::before {
  background: #262626 !important;
}

[data-theme="dark"] .hamburger span {
  background: #F1F5F9 !important;
}

/* Hero Section in Dark Mode */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0B1220 0%, #111C2E 50%, #0B1220 100%) !important;
}
[data-theme="dark"] .hero-title {
  color: #F1F5F9;
}
[data-theme="dark"] .hero-title-accent {
  color: #4D9FFF;
}
[data-theme="dark"] .hero-desc {
  color: #B8C5D8;
}
[data-theme="dark"] .hero-bubble {
  background: #17243A;
  border-color: #4D9FFF;
  color: #F1F5F9;
}
[data-theme="dark"] .hero-bubble::after {
  border-top-color: #17243A;
}
[data-theme="dark"] .hero-tag {
  background: #17243A;
  color: #4D9FFF;
  border: 1px solid #2A3B55;
}
[data-theme="dark"] .hero-mascot {
  filter: drop-shadow(0 15px 30px rgba(77, 159, 255, 0.25));
}

/* Cards & Containers in Dark Mode */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .template-card,
[data-theme="dark"] .portfolio-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .admin-form-card {
  background-color: #17243A !important;
  border: 1px solid #2A3B55 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .template-card:hover {
  border-color: #4D9FFF !important;
  box-shadow: 0 8px 24px rgba(77, 159, 255, 0.2) !important;
}

/* Headings & Texts in Dark Mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-title {
  color: #F1F5F9 !important;
}
[data-theme="dark"] p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .service-desc,
[data-theme="dark"] .template-category {
  color: #B8C5D8 !important;
}
[data-theme="dark"] .template-name,
[data-theme="dark"] .service-title {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .template-price {
  color: #4D9FFF !important;
}

/* Buttons in Dark Mode */
[data-theme="dark"] .btn-primary {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
[data-theme="dark"] .btn-primary:hover {
  background: #1D4ED8 !important;
  border-color: #1D4ED8 !important;
}
[data-theme="dark"] .btn-outline {
  border-color: #4D9FFF !important;
  color: #4D9FFF !important;
  background: transparent !important;
}
[data-theme="dark"] .btn-outline:hover {
  background: #4D9FFF !important;
  color: #0B1220 !important;
}
[data-theme="dark"] .btn-outline-white {
  border-color: #2A3B55 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .btn-outline-white:hover {
  background: rgba(77, 159, 255, 0.15) !important;
  border-color: #4D9FFF !important;
}

/* Filter pills in Dark Mode */
[data-theme="dark"] .filter-pill,
[data-theme="dark"] .filter-btn {
  background: #17243A !important;
  border: 1px solid #2A3B55 !important;
  color: #B8C5D8 !important;
}
[data-theme="dark"] .filter-pill:hover,
[data-theme="dark"] .filter-btn:hover {
  border-color: #4D9FFF !important;
  color: #4D9FFF !important;
}
[data-theme="dark"] .filter-pill.active,
[data-theme="dark"] .filter-btn.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
}

/* Form Controls in Dark Mode */
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #0B1220 !important;
  border: 1px solid #2A3B55 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .form-control:focus {
  border-color: #4D9FFF !important;
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.25) !important;
}
[data-theme="dark"] .form-control::placeholder {
  color: #64748B !important;
}

/* Page Hero in Dark Mode */
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0B1220 0%, #111C2E 100%) !important;
  border-bottom: 1px solid #2A3B55 !important;
}

/* Detail Pages Problem / Solution Boxes */
[data-theme="dark"] .detail-split-grid > div:first-child {
  background: #241418 !important;
  border: 1px solid #4d1d24 !important;
}
[data-theme="dark"] .detail-split-grid > div:first-child p {
  color: #fecdd3 !important;
}
[data-theme="dark"] .detail-split-grid > div:last-child {
  background: #0d2218 !important;
  border: 1px solid #164d32 !important;
}
[data-theme="dark"] .detail-split-grid > div:last-child p {
  color: #bbf7d0 !important;
}

/* Footer in Dark Mode */
[data-theme="dark"] .footer {
  background-color: #0B1220 !important;
  border-top: 1px solid #2A3B55 !important;
}
[data-theme="dark"] .footer-bottom {
  background-color: #070D17 !important;
  border-top: 1px solid #2A3B55 !important;
  color: #B8C5D8 !important;
}
[data-theme="dark"] .footer-desc,
[data-theme="dark"] .footer-links a {
  color: #B8C5D8 !important;
}
[data-theme="dark"] .footer-links a:hover {
  color: #4D9FFF !important;
}
[data-theme="dark"] .footer-heading {
  color: #F1F5F9 !important;
}

/* Admin Elements in Dark Mode */
[data-theme="dark"] .admin-nav {
  background: #0B1220 !important;
  border-bottom: 1px solid #2A3B55 !important;
}
[data-theme="dark"] .data-table {
  background: #17243A !important;
  border-color: #2A3B55 !important;
}
[data-theme="dark"] .data-table th {
  background: #111C2E !important;
  color: #F1F5F9 !important;
  border-bottom: 1px solid #2A3B55 !important;
}
[data-theme="dark"] .data-table td {
  border-bottom: 1px solid #2A3B55 !important;
  color: #B8C5D8 !important;
}
[data-theme="dark"] .table-responsive {
  border-color: #2A3B55 !important;
}
[data-theme="dark"] div[style*="background:#fff"],
[data-theme="dark"] div[style*="background: #fff"],
[data-theme="dark"] div[style*="background:white"] {
  background: #17243A !important;
  border-color: #2A3B55 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] label {
  color: #F1F5F9 !important;
}

/* Anti-AI Slop in Dark Mode */
[data-theme="dark"] .anti-ai-section {
  background: linear-gradient(180deg, #0B1220 0%, #111C2E 50%, #0B1220 100%);
  border-color: #1E2E48;
}

[data-theme="dark"] .anti-ai-hero-pill {
  background: rgba(77, 159, 255, 0.12);
  border-color: #38BDF8;
  color: #93C5FD;
}

[data-theme="dark"] .anti-ai-hero-pill:hover {
  background: #2563EB;
  color: #FFFFFF;
}

[data-theme="dark"] .anti-ai-label {
  background: rgba(239, 68, 68, 0.18);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .anti-ai-card {
  background: #17243A;
  border-color: #2A3B55;
}

[data-theme="dark"] .anti-ai-card:hover {
  border-color: #4D9FFF;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .anti-ai-card-title {
  color: #F1F5F9;
}

[data-theme="dark"] .anti-ai-card-desc {
  color: #94A3B8;
}

[data-theme="dark"] .anti-ai-tag {
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
  border-color: rgba(34, 197, 94, 0.4);
}

/* ------------------------------------------------------------
   TEMA HITAM (BLACK / OLED PITCH BLACK THEME)
   ------------------------------------------------------------ */
[data-theme="black"] {
  --white: #0a0a0a;
  --gray-50: #000000;
  --gray-100: #0a0a0a;
  --gray-200: #1a1a1a;
  --gray-300: #262626;
  --gray-400: #71717a;
  --gray-500: #a1a1aa;
  --gray-600: #d4d4d8;
  --gray-700: #e4e4e7;
  --gray-800: #f4f4f5;
  --gray-900: #ffffff;
  --slate-50: #000000;
  --slate-100: #0a0a0a;
  --slate-900: #000000;

  --bg-primary: #000000;
  --bg-surface: #080808;
  --border-color: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

[data-theme="black"] body {
  background-color: #000000 !important;
  color: #ffffff;
}

[data-theme="black"] .navbar {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: #1f1f1f;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

[data-theme="black"] .logo-name {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56,189,248,0.4);
}

[data-theme="black"] .nav-link {
  color: #a1a1aa;
}

[data-theme="black"] .nav-link:hover,
[data-theme="black"] .nav-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

@media (max-width: 1024px) {
  [data-theme="black"] .navbar-nav {
    background: #080808 !important;
    border-left: 1px solid #1f1f1f !important;
  }
  [data-theme="black"] .nav-link {
    color: #ffffff !important;
  }
  [data-theme="black"] .mobile-nav-label {
    color: #a1a1aa !important;
  }
}

[data-theme="black"] .theme-switcher {
  background: #080808;
  border-color: #27272a;
}

[data-theme="black"] .theme-btn {
  color: #71717a;
}

[data-theme="black"] .theme-btn.active {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 0 8px rgba(2,132,199,0.5);
}

[data-theme="black"] .hero {
  background: radial-gradient(circle at 50% 10%, #081a36 0%, #000000 70%);
}

[data-theme="black"] .card,
[data-theme="black"] .service-card,
[data-theme="black"] .template-card,
[data-theme="black"] .portfolio-card,
[data-theme="black"] .process-step,
[data-theme="black"] .faq-item {
  background: #080808;
  border: 1px solid #1f1f1f;
  color: #ffffff;
}

[data-theme="black"] .card:hover,
[data-theme="black"] .service-card:hover,
[data-theme="black"] .template-card:hover {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.2);
}

[data-theme="black"] .section-title,
[data-theme="black"] h1,
[data-theme="black"] h2,
[data-theme="black"] h3,
[data-theme="black"] h4 {
  color: #ffffff;
}

[data-theme="black"] .section-subtitle,
[data-theme="black"] p {
  color: #a1a1aa;
}

[data-theme="black"] .filter-pill {
  background: #0a0a0a;
  border-color: #222222;
  color: #38bdf8;
}

[data-theme="black"] .filter-pill.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

[data-theme="black"] .form-control {
  background: #050505;
  border-color: #262626;
  color: #ffffff;
}

[data-theme="black"] .form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

[data-theme="black"] .page-hero {
  background: radial-gradient(circle at 50% 30%, #07152b, #000000);
  border-bottom: 1px solid #1f1f1f;
}

[data-theme="black"] .data-table {
  background: #080808;
}

[data-theme="black"] .data-table th {
  background: #000000;
  color: #ffffff;
  border-bottom-color: #1f1f1f;
}

[data-theme="black"] .data-table td {
  border-bottom-color: #141414;
  color: #a1a1aa;
}
