/* ============================================================
   INFORISORSA — GLOBAL STYLESHEET
   Design System: Dark Mode | Electric Violet + Cyan
   ============================================================ */

/* Fonts are loaded via <link rel="stylesheet"> in each HTML page for optimal performance */

/* ── CSS Variables ── */
:root {
  --bg-primary:    #0A0A0F;
  --bg-secondary:  rgba(17, 17, 24, 0.92);
  --bg-surface:    rgba(26, 26, 38, 0.95);
  --accent:        #6C63FF;
  --accent-cyan:   #00D4FF;
  --gradient:      linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  --gradient-r:    linear-gradient(135deg, #00D4FF 0%, #6C63FF 100%);
  --text-primary:  #F0F0FF;
  --text-secondary:#9A9AB0;
  --border:        rgba(108, 99, 255, 0.30);
  --border-hover:  rgba(108, 99, 255, 0.65);
  --success:       #00E676;
  --warning:       #FFB300;
  --shadow:        0 8px 32px rgba(108, 99, 255, 0.15);
  --shadow-lg:     0 16px 64px rgba(108, 99, 255, 0.25);
  --shadow-cyan:   0 8px 32px rgba(0, 212, 255, 0.15);
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --nav-height:    58px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Ambient gradient overlay — sits above bg but below all content */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(108, 99, 255, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 90% 70% at 110% 110%, rgba(14, 200, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 15%, rgba(108, 99, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

img { max-width: 100%; height: auto; }

p { color: var(--text-secondary); line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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



/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-monogram {
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-monogram img {
  height: 72px;
  width: auto;
  display: block;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo img { height: 28px; width: auto; display: block; }

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-nav-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  background: #20c05a;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 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 Nav Drawer */
/* ── Mobile Nav Drawer — full-height side panel, starts below navbar ── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-primary);
  border-right: 1px solid rgba(108, 99, 255, 0.35);
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  z-index: 1001;
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-nav.open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Backdrop overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-nav-overlay.open {
  opacity: 1;
}

/* ── Nav Links List ── */
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 6px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.mobile-nav ul::-webkit-scrollbar { display: none; }

.mobile-nav ul a {
  display: block;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: none;
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

/* Active page highlight */
.mobile-nav ul a.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

/* ── Get a Quote + contact info + socials block ── */
.mobile-nav-cta-item {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-quote-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px !important;
  font-size: 0.9rem;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body) !important;
}

.mobile-nav-quote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  background: var(--gradient) !important;
  color: #fff !important;
  padding-left: 20px !important;
}

.mobile-nav-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-contact-info .mobile-nav-contact-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  transition: color 0.2s ease;
}

.mobile-nav-contact-info .mobile-nav-contact-row:hover {
  color: var(--accent) !important;
  padding-left: 0 !important;
  background: none !important;
}

.mobile-nav-contact-info .mobile-nav-contact-row svg {
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--accent);
}

/* Plain links (no dropdown) hover */
.mobile-nav ul li:not(.mobile-nav-item) a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 26px;
}

/* Row links */
.mobile-nav-row a {
  border-bottom: none !important;
}
.mobile-nav-row a:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding-left: 26px !important;
}

/* ── Mobile Nav Dropdown ── */
.mobile-nav-item {
  position: relative;
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.mobile-nav-row a {
  flex: 1;
  border-bottom: none !important;
  padding-right: 4px;
}

.mobile-nav-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.mobile-nav-chevron:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent);
}

.mobile-nav-chevron svg {
  transition: transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-chevron svg {
  transform: rotate(180deg);
}

.mobile-nav-item.open > .mobile-nav-row a {
  color: var(--accent);
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(108, 99, 255, 0.04);
  border-top: 1px solid rgba(108, 99, 255, 0.20);
}

.mobile-nav-item.open .mobile-nav-submenu {
  max-height: 700px;
}

.mobile-nav-submenu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 30px !important;
  font-size: 0.83rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  border-bottom: none !important;
  font-family: var(--font-body) !important;
  transition: var(--transition);
}

.mobile-nav-submenu a:hover {
  color: var(--accent) !important;
  padding-left: 36px !important;
  background: rgba(108, 99, 255, 0.06) !important;
}

.mobile-nav-submenu a svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* ── Drawer Footer — hidden, nothing here ── */
.mobile-nav-footer {
  display: none;
}

.mobile-nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-socials a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(108, 99, 255, 0.30);
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-nav-socials a:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Brand colours on hover */
.mobile-nav-socials a[aria-label="WhatsApp"]:hover { background: rgba(37,211,102,0.12) !important; border-color: #25D366 !important; color: #25D366 !important; }
.mobile-nav-socials a[aria-label="Email"]:hover    { background: rgba(108,99,255,0.12) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.mobile-nav-socials a[aria-label="Instagram"]:hover{ background: rgba(225,48,108,0.12) !important; border-color: #E1306C !important; color: #E1306C !important; }

.mobile-nav-socials a svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(108, 99, 255, 0.30);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }

/* ── Cards ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.18), 0 4px 24px rgba(0,0,0,0.35);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.card:hover::before { opacity: 0.04; }
.card > * { position: relative; z-index: 1; }

/* Glass Card */

/* Featured card with animated gradient border */

@keyframes borderGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; filter: blur(2px); }
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

/* Grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.hero-typewriter {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--text-secondary);
  height: 1.3em;
  margin-bottom: 16px;
}

.hero-typewriter .typed-word {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-item strong { color: var(--text-primary); }

.star-row {
  display: inline-flex;
  gap: 2px;
}
.star-row svg { color: var(--warning); }

/* ── Particles Canvas ── */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
}

/* ── Card header mobile wrapper — icon + title inline ── */
.card-header-mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 4px 20px rgba(0,0,0,0.30);
}

.service-card:hover {
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.5), var(--shadow-lg);
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(108, 99, 255, 0.5);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(108, 99, 255, 0.2);
  color: var(--accent-cyan);
}

.service-card h3 { font-size: 1.05rem; margin: 0; text-align: center; }
.service-card p { font-size: 0.88rem; flex: 1; line-height: 1.6; text-align: center; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link:hover { gap: 10px; color: var(--accent-cyan); }

/* ── Why Choose Us ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 4px 20px rgba(0,0,0,0.30);
}

.feature-card:hover {
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.5), var(--shadow-lg);
  border-color: rgba(108, 99, 255, 0.5);
  transform: translateY(-8px) scale(1.04);
}

.feature-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
}

.feature-card h4 { font-size: 0.95rem; margin: 0; }
.feature-card p { font-size: 0.875rem; }

/* ── Stats Counter ── */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(108, 99, 255, 0.30);
  border-bottom: 1px solid rgba(108, 99, 255, 0.30);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 4px 20px rgba(0,0,0,0.30);
}

.portfolio-card:hover {
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.5), var(--shadow-lg);
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(108, 99, 255, 0.5);
}

.portfolio-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  /* Round top corners to match the card — bottom corners stay square */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}

.portfolio-thumb-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(0);
}

.portfolio-thumb-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { padding: 20px 24px; }
.portfolio-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.portfolio-info h4 { font-size: 1rem; margin-bottom: 6px; }
.portfolio-info p { font-size: 0.85rem; }

/* ── Testimonials ── */
.testimonials-section { background: var(--bg-secondary); padding: 96px 0; border-top: 1px solid rgba(108, 99, 255, 0.30); border-bottom: 1px solid rgba(108, 99, 255, 0.30); }

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px 52px;
  background: var(--bg-primary);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.18), 0 8px 40px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 36px;
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(108, 99, 255, 0.07);
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 20px; }
.testimonial-stars svg { color: var(--warning); }

.testimonial-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 32px;
  font-style: italic;
  letter-spacing: 0.01em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(108,99,255,0.25), 0 4px 16px rgba(108,99,255,0.3);
}

.author-info { text-align: left; }
.author-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.author-title { font-size: 0.8rem; color: var(--text-secondary); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ── Pricing ── */
.pricing-tabs {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 48px;
  padding-bottom: 4px;
  position: relative;
}

.pricing-tab {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.pricing-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.pricing-tab:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 6px 24px rgba(0,0,0,0.30);
}

/* Push the CTA button to the bottom of every card */
.pricing-card .btn {
  margin-top: auto;
}

/* Keep the features list from growing — only the space above the button grows */
.pricing-card .pricing-features {
  flex: 1;
}

.pricing-card:hover {
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.5), var(--shadow-lg);
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(108, 99, 255, 0.5);
}

.pricing-card.popular {
  background: var(--bg-surface);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.pricing-card.popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gradient);
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.pricing-tier { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-family: var(--font-mono); margin-bottom: 8px; }
.pricing-card.popular .pricing-tier { color: var(--text-primary); }
.pricing-price { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pricing-price-pkr { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 4px; }
.pricing-note { font-size: 0.75rem; color: var(--text-secondary); font-style: italic; margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li.included { color: var(--text-primary); }
.pricing-features li .feat-icon { flex-shrink: 0; }
.pricing-features li.included .feat-icon { color: var(--success); }
.pricing-features li:not(.included) .feat-icon { color: var(--text-secondary); opacity: 0.4; }

.pricing-meta { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-meta span { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }

/* Premium card */
.premium-card {
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid #FFB300;
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: visible;
  margin-top: 64px;
  box-shadow: 0 0 40px rgba(255, 183, 0, 0.15), 0 0 0 1px rgba(255,183,0,0.08);
}

.premium-card::before {
  display: none;
}

.premium-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 35% at 50% 0%, rgba(255, 183, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,183,0,0.15), rgba(255,140,0,0.15));
  border: 1px solid rgba(255,183,0,0.3);
  color: #FFB300;
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.premium-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.premium-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.premium-features-list li svg { color: #FFB300; flex-shrink: 0; }

.premium-pricing {
  text-align: center;
  padding: 36px;
  background: rgba(255, 183, 0, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,183,0,0.2);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-text h4 { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 4px; }
.contact-info-text a, .contact-info-text p { font-size: 0.95rem; color: var(--text-primary); }
.contact-info-text a:hover { color: var(--accent); }

/* Contact Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-select { cursor: pointer; }
.form-select option { background: var(--bg-surface); color: var(--text-primary); }
.form-select optgroup {
  background: var(--bg-surface);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
}
.form-select optgroup option {
  color: var(--text-primary);
  font-weight: 400;
}

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

.form-file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-file-label:hover { border-color: var(--accent); color: var(--accent); }
input[type="file"] { display: none; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.4);
}

.btn-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }

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



/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.12), 0 3px 14px rgba(0,0,0,0.25);
}

.faq-item.open { border-color: var(--border-hover); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.faq-question h4 { font-size: 0.95rem; font-weight: 600; flex: 1; }
.faq-toggle { flex-shrink: 0; color: var(--accent); transition: var(--transition); }
.faq-item.open .faq-toggle { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── About Page ── */
.skill-bar-fill { height: 100%; background: var(--gradient); border-radius: 3px; width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 4px 16px rgba(0,0,0,0.25);
}

.value-card:hover { transform: translateY(-3px); border-color: rgba(108, 99, 255, 0.4); box-shadow: 0 4px 16px rgba(108, 99, 255, 0.12); }
.value-icon { color: var(--accent); margin: 0 auto 16px; display: flex; justify-content: center; }
.value-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(0, 212, 255, 0.15) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(108,99,255,0.1), transparent);
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; font-size: 1.05rem; }

/* ── Newsletter ── */
.newsletter-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(108, 99, 255, 0.30);
  padding: 64px 0;
}

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h3 { margin-bottom: 8px; }
.newsletter-inner p { margin-bottom: 28px; font-size: 0.9rem; }

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-secondary); opacity: 0.6; }

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(108, 99, 255, 0.30);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.30);
}

.footer-grid > * { min-width: 0; }

.footer-brand p { font-size: 0.82rem; margin: 10px 0 14px; max-width: 260px; }

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover { background: rgba(108,99,255,0.15); border-color: var(--border-hover); color: var(--accent); }

.footer-heading { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 12px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); }
.footer-contact-list li svg { color: var(--accent); flex-shrink: 0; }
.footer-contact-list a { color: var(--text-secondary); }
.footer-contact-list a:hover { color: var(--accent); }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-out infinite;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.2);
  animation: waPulse 2s ease-out 0.5s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.45);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.20), 0 4px 16px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: rgba(108, 99, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.45);
  border-radius: 12px;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.20), 0 8px 32px rgba(0,0,0,0.5);
  pointer-events: all;
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: min(280px, calc(100vw - 56px));
  max-width: min(400px, calc(100vw - 32px));
}

.toast.show { transform: translateX(0); }
.toast.hide { transform: translateX(-120%); }

.toast-icon { flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: #FF5252; }
.toast-info .toast-icon { color: var(--accent-cyan); }

.toast-message { font-size: 0.875rem; color: var(--text-primary); font-weight: 500; }
.toast-close { margin-left: auto; cursor: pointer; color: var(--text-secondary); background: none; border: none; padding: 4px; transition: var(--transition); flex-shrink: 0; }
.toast-close:hover { color: var(--text-primary); }

/* ── Cookie Consent ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: rgba(17, 17, 24, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(108, 99, 255, 0.30);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.875rem; color: var(--text-secondary); flex: 1; min-width: 240px; }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Portfolio Filter ── */

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.filter-btn:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.portfolio-item.hidden { display: none; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.45);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: min(640px, calc(100vw - 32px));
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 0 0 rgba(108, 99, 255, 0.25), 0 24px 64px rgba(0,0,0,0.55);
}

.modal-overlay.open .modal-box { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { color: var(--text-primary); }

.modal-thumb {
  height: 240px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
  overflow: hidden;
}

/* When modal contains a video, let it breathe — no fixed height, full width */
.modal-thumb:has(video) {
  height: auto;
  background: #000;
}

.modal-thumb video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  background: #000;
}

.modal-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.tool-pill { padding: 7px 16px; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.35); border-radius: 50px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: #c4c0ff; letter-spacing: 0.02em; }

/* ── Page Hero Banner ── */
.page-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108, 99, 255, 0.1) 0%, transparent 60%),
    var(--bg-primary);
  padding: 140px 0 72px;
  text-align: center;
  border-bottom: 1px solid rgba(108, 99, 255, 0.30);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb svg { opacity: 0.4; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Services Full Page ── */
.service-full-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.14), 0 6px 24px rgba(0,0,0,0.30);
}

.service-full-card:hover { transform: translateY(-6px) scale(1.04);
  border-color: var(--border-hover); box-shadow: var(--shadow); }
.service-full-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.service-full-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(108,99,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.service-full-header h3 { font-size: 1.4rem; }
.service-full-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 16px; }

.tech-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  min-width: 80px;
  text-align: center;
  cursor: default;
}
.tech-badge:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}
.tech-badge-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.tech-badge-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.tech-badge-logo svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* ── Service card divider line ── */
.service-card-divider {
  border: none;
  border-top: 1px solid var(--border);
  width: 48px;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.service-card:hover .service-card-divider {
  border-top-color: var(--accent);
  width: 64px;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.6);
}

/* ── Service Detail Page Layout ── */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.service-detail-main {
  min-width: 0;
}

.service-detail-main h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.service-detail-main > p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.service-detail-main h3 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* What's Included — 2 column bullets */
.service-included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin-top: 4px;
}

.service-included-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  list-style: none;
}

.service-included-grid li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* CTA row */
.service-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* How We Work steps — horizontal cards */

.hww-step {
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.14), 0 4px 18px rgba(0,0,0,0.28);
}

.hww-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hww-step-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(108, 99, 255, 0.12);
  line-height: 1;
}

.hww-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.hww-step-icon svg { width: 24px; height: 24px; }

.hww-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hww-step p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Sidebar */
.service-detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-sidebar-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.15), 0 4px 18px rgba(0,0,0,0.30);
}

.service-sidebar-heading {
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.service-sidebar-nav {
  list-style: none;
  padding: 8px 0;
}

.service-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.service-sidebar-nav li a:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.05);
}

.service-sidebar-nav li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(108, 99, 255, 0.06);
  font-weight: 600;
}

.service-sidebar-contact {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.service-sidebar-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.service-sidebar-contact-item a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.service-sidebar-contact-item a:hover {
  color: var(--accent);
}

/* service-detail / sidebar rules folded into main 900px block below */

/* ── Services page — centered card layout ── */
.services-grid .service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
}

.services-grid .service-card .service-icon {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
}

.services-grid .service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  width: 100%;
}

.services-grid .service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
  width: 100%;
}

.services-grid .service-card .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* ── Service Detail Pages — free layout (no card wrapper) ── */
.service-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.service-detail-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--border); }
.process-steps { display: flex; flex-direction: column; gap: 20px; }
.process-step { display: flex; gap: 16px; align-items: flex-start; }
.process-step-num { width: 36px; height: 36px; border-radius: 50%; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--accent); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.process-step strong { display: block; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; }
.process-step p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

/* ── 404 ── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-family: var(--font-heading); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }


/* ── Services page — category sections ── */
.svc-category-section:not(:first-of-type) {
  border-top: 1px solid var(--border);
}

.svc-category-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.svc-category-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.svc-category-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.svc-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.svc-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}
.svc-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Featured / highlighted card (mirrors "Popular" tier emphasis) */
.svc-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(108, 99, 255, 0.16);
}
.svc-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}
.svc-card-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 36px rgba(108, 99, 255, 0.24);
}

.svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.svc-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.svc-card-top-text {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.svc-card-top-text h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.svc-badge {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.svc-badge-popular {
  color: #FFB300;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.3);
}
.svc-badge-fast {
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.svc-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.svc-included-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 10px;
}

.svc-included {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.svc-included li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.svc-included li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.svc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

.svc-request-btn {
  margin-top: auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .svc-category-header {
    gap: 14px;
  }
  .svc-category-icon {
    width: 46px;
    height: 46px;
  }
  .svc-subgrid {
    grid-template-columns: 1fr;
  }
  .svc-card-icon {
    width: 38px;
    height: 38px;
  }
}

/* ── Services page — sticky category pill nav ── */
.svc-pillbar-wrap {
  position: sticky;
  top: var(--nav-height, 72px);
  z-index: 40;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 14px 24px;
  width: 100%;
  box-sizing: border-box;
}

.svc-pillbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.svc-pillbar::-webkit-scrollbar { display: none; }

.svc-pill {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition);
}
.svc-pill:hover {
  color: var(--text-primary);
  border-color: rgba(108, 99, 255, 0.4);
}
.svc-pill.active {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

@media (min-width: 1100px) {
  .svc-pillbar {
    justify-content: space-between;
  }
  .svc-pill {
    flex: 1 1 0;
    text-align: center;
  }
}

html[data-theme="light"] .svc-pillbar-wrap {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .svc-pillbar-wrap { padding: 10px 16px; }
  .svc-pill { font-size: 0.76rem; padding: 7px 14px; }
}




/* ── 1920px+ — wide / large PC monitors ── */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .nav-container { max-width: 1600px; }
  body { font-size: 18px; }
  h1 { font-size: clamp(3rem, 3.5vw, 5rem); }
  h2 { font-size: clamp(2.4rem, 3vw, 3.8rem); }
  .hero-title { font-size: clamp(3rem, 4vw, 5rem); }
  .section { padding: 120px 0; }
  .section-header { margin-bottom: 80px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .stats-grid { gap: 48px; }
  .stat-number { font-size: clamp(3rem, 3.5vw, 4rem); }
  .card { padding: 40px; }
  .service-card { padding: 32px; }
  .testimonial-text { font-size: 1.2rem; max-width: 760px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

/* ── 1440px — standard PC / desktop monitors ── */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { max-width: 1360px; }
  .nav-container { max-width: 1360px; }
  .services-grid { gap: 28px; }
  .features-grid { gap: 28px; }
  .portfolio-grid { gap: 28px; }
  .pricing-grid { gap: 28px; }
  .hero-title { font-size: clamp(2.8rem, 3.5vw, 4.5rem); }
  .section { padding: 108px 0; }
  .stats-grid { gap: 40px; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .stat-item::after { display: none; }
  .contact-grid { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  /* Reduce service-detail gap so sidebar doesn't clip */
  .service-detail-layout { gap: 32px; }
  /* Page hero padding reduction */
  .page-hero { padding: 120px 0 56px; }
}

/* ── 1024px — tablet/laptop transition ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .services-grid .service-card { padding: 28px 20px; }
  .services-grid .service-card p { font-size: 0.85rem; max-width: 100%; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 72px 0; }
  .hero-title { font-size: clamp(2.4rem, 5vw, 4rem); }
  .container { padding: 0 20px; }
  /* How-we-work: slightly tighter at tablet */
}

/* ── 900px — mobile nav + mobile-specific overrides ── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  /* mobile-nav is always flex (hidden via transform), shown via .open */
  .mobile-nav { display: flex; }
  .services-grid, .features-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .premium-grid { grid-template-columns: 1fr; }
  /* Pricing tabs: make scrollable on mobile */
  .pricing-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tab { flex-shrink: 0; }

  /* ── Service detail layout stacks ── */
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }
  .service-sidebar-nav {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .service-sidebar-nav::-webkit-scrollbar { width: 4px; }
  .service-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
  .service-sidebar-nav::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
  .service-included-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 24px; }
  .card[style*="padding:40px"] { padding: 14px !important; }
  .card[style*="padding:40px"] h3 { font-size: 0.95rem; margin-bottom: 2px; }
  .card[style*="padding:40px"] > p { font-size: 0.72rem; margin-bottom: 10px; }
  .form-group { margin-bottom: 8px; gap: 3px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-label { font-size: 0.7rem; }
  .form-input, .form-select { padding: 7px 10px; font-size: 0.78rem; }
  .form-textarea { min-height: 55px; padding: 6px 10px; font-size: 0.78rem; }
  .form-file-label { padding: 7px 10px; font-size: 0.7rem; }
  .btn-submit { padding: 9px 14px; font-size: 0.82rem; margin-top: 4px; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .page-hero { padding: 100px 0 48px; }
  .stats-section { padding: 48px 0; }

  /* ── Mobile navbar size ── */
  :root { --nav-height: 58px; }
  .nav-container { padding: 0 16px; }
  .nav-logo img { height: 24px; }
  .hamburger span { width: 20px; }

  /* ── Show only WA button + hamburger in mobile nav, hide Get a Quote ── */
  .nav-actions { display: flex; align-items: center; gap: 8px; }
  .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .btn-nav-wa {
    width: auto;
    height: 24px;
    border-radius: 50px;
    padding: 0 8px;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-body);
  }
  .btn-nav-wa::after {
    content: 'WhatsApp';
  }

  /* ── Mobile loader ── */
  .loader-monogram img { height: 36px; }

  /* ── Portfolio — horizontal cards on mobile ── */
  .portfolio-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .portfolio-card { display: flex; flex-direction: row; align-items: stretch; border-radius: 14px; overflow: hidden; }
  .portfolio-card:nth-child(even) { flex-direction: row-reverse; }
  .portfolio-thumb { width: 110px; min-width: 110px; height: auto; flex-shrink: 0; }
  .portfolio-thumb-bg { width: 100%; height: 100%; min-height: 100px; border-radius: 0; font-size: 1.2rem; }
  .portfolio-overlay { display: none; }
  .portfolio-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
  .portfolio-cat { font-size: 0.65rem; }
  .portfolio-info h4 { font-size: 0.82rem; margin: 0; }
  .portfolio-info p { font-size: 0.72rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


  .about-split { grid-template-columns: 1fr !important; }
  .about-split > div:first-child { text-align: center; }
  .about-split > div:first-child .section-tag { justify-content: center; }

  /* ── About decorative cards — stacked on mobile (handled by .about-deco-container classes) ── */
  .premium-card { padding: 24px 16px; margin-top: 32px; }
  .premium-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .premium-features-list { margin: 16px 0; gap: 10px; }
  .premium-features-list li { font-size: 0.85rem; color: var(--text-primary); }
  .premium-pricing { padding: 20px 16px; }
  .premium-badge { font-size: 0.65rem; }

  .service-full-card { padding: 18px 14px; margin-bottom: 14px; }
  .service-full-header { gap: 12px; margin-bottom: 12px; }
  .service-full-icon { width: 52px; height: 52px; border-radius: 12px; }
  .service-full-icon svg { width: 26px; height: 26px; }
  .service-full-header h3 { font-size: 1rem; }
  .service-full-footer { padding-top: 12px; gap: 10px; }
  .tech-badge { font-size: 0.72rem; min-width: 64px; }
  .tech-badge-logo { width: 46px; height: 46px; border-radius: 12px; }
  .tech-badge-logo img { width: 38px; height: 38px; }
  .tech-badge-logo svg { width: 28px; height: 28px; }

  /* ── Mobile nav drawer — small screen tweaks ── */
  .mobile-nav { width: min(300px, 92vw); }
  .mobile-nav ul a { padding: 12px 16px; font-size: 0.9rem; }

  /* ── Footer — compact on mobile ── */
  .footer { padding: 24px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px;
  }
  /* Brand spans full width */
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
  }
  .footer-brand p { display: none; }
  .footer-brand .nav-logo { margin-bottom: 0 !important; }
  .footer-socials { gap: 8px; }
  .social-link { width: 26px; height: 26px; }
  .footer-heading { font-size: 0.68rem; margin-bottom: 7px; letter-spacing: 0.05em; }
  .footer-links { gap: 4px; }
  .footer-links a { font-size: 0.72rem; }
  /* Contact spans full width below the 2 link columns */
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .footer-contact-list li { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .footer-contact-list li a, .footer-contact-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .footer-bottom { padding: 10px 0; font-size: 0.7rem; flex-direction: row; gap: 0; justify-content: center; }
  .footer-bottom span:last-child { display: none; }
  .pricing-card { padding: 20px 16px; }
  .pricing-tier { font-size: 0.7rem; margin-bottom: 6px; }
  .pricing-price { font-size: 1.8rem; margin-bottom: 2px; }
  .pricing-price-pkr { font-size: 0.78rem; margin-bottom: 2px; }
  .pricing-note { font-size: 0.7rem; margin-bottom: 14px; }
  .pricing-divider { margin: 12px 0; }
  .pricing-features { gap: 7px; margin-bottom: 16px; font-size: 0.78rem; }
  .pricing-features li { font-size: 0.78rem; gap: 6px; }
  .pricing-features li svg { width: 13px; height: 13px; }
  .pricing-meta { font-size: 0.72rem; margin-bottom: 14px; }
  .popular-badge { font-size: 0.65rem; padding: 3px 10px; }

  /* ── Testimonials — compact on mobile ── */
  .testimonials-section { padding: 40px 0; }
  .testimonial-card { padding: 20px 16px; }
  .testimonial-stars { margin-bottom: 10px; }
  .testimonial-stars svg { width: 14px; height: 14px; }
  .testimonial-text { font-size: 0.82rem; line-height: 1.6; margin-bottom: 14px; }
  .author-avatar { width: 36px; height: 36px; font-size: 0.8rem; }
  .author-name { font-size: 0.82rem; }
  .author-title { font-size: 0.72rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 16px;
  }
  .stat-item::after { display: none; }
  .stat-number { font-size: 2.4rem; }
  .stat-label { font-size: 0.85rem; margin-top: 6px; }
  .stats-section { padding: 48px 0; }

  /* ── Service cards — 1 per row, full width ── */
  .service-card { padding: 24px 20px; gap: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .services-grid .service-card { padding: 24px 20px; align-items: center; text-align: center; }
  .services-grid .service-card .service-icon { margin: 0 auto 14px; width: 48px; height: 48px; }
  .services-grid .service-card h3 { font-size: 1rem; margin-bottom: 12px; }
  .services-grid .service-card p { font-size: 0.88rem; max-width: 100%; margin-bottom: 16px; }
  .services-grid .service-card .btn { width: 100%; justify-content: center; }
  /* card-header-mobile centered on mobile */
  .service-card .card-header-mobile { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; justify-content: center; width: 100%; }
  .service-card .card-header-mobile h3 { font-size: 1rem; margin: 0; line-height: 1.25; min-width: 0; }
  .service-card .service-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
  .service-card .service-icon svg { width: 20px; height: 20px; }
  .service-card p { font-size: 0.88rem; line-height: 1.65; margin: 0 0 16px; flex: 1; text-align: center; }
  .service-link { font-size: 0.88rem; margin-top: 4px; }
  .service-card .card-header-mobile { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 8px; min-height: unset; }
  .service-card .card-header-mobile h3 { font-size: 1rem; margin: 0; line-height: 1.3; min-width: 0; flex: 1; }
  .service-card .service-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
  .service-card .service-icon svg { width: 20px; height: 20px; }
  .service-card p { font-size: 0.88rem; line-height: 1.65; margin: 0; flex: 1; }
  .service-link { font-size: 0.88rem; margin-top: 8px; }

  /* ── Feature cards — 1 per row, full width ── */
  .feature-card { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
  .feature-card .card-header-mobile { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 8px; }
  .feature-card .card-header-mobile h4 { font-size: 1rem; margin: 0; line-height: 1.3; min-width: 0; flex: 1; }
  .feature-icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card p { font-size: 0.88rem; line-height: 1.65; margin: 0; flex: 1; }


  /* ── Hero mobile — everything in viewport ── */
  .hero { min-height: unset; height: 100svh; align-items: flex-start; padding-top: calc(var(--nav-height) + 16px); padding-bottom: 20px; justify-content: flex-start; overflow: visible; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .hero-content { width: 100%; overflow: visible; display: flex; flex-direction: column; justify-content: space-between; flex: 1; height: calc(100svh - var(--nav-height) - 36px); }
  .hero-title { font-size: clamp(1.9rem, 9.5vw, 2.6rem) !important; margin-bottom: 0; line-height: 1.08; }
  .hero-badge { margin-bottom: 0; padding: 5px 12px; font-size: 0.68rem; white-space: nowrap; }
  .hero-typewriter { font-size: clamp(0.95rem, 3.2vw, 1.2rem); margin-bottom: 0; height: auto; min-height: 1.3em; }
  .hero-ctas { margin-bottom: 0; gap: 10px; flex-direction: column; }
  .hero-ctas .btn { padding: 14px 20px; font-size: 0.92rem; justify-content: center; }
  .social-proof { margin-top: 0; padding: 16px 0; gap: 14px; flex-direction: column; align-items: center; }
  .proof-item { font-size: 0.85rem; gap: 8px; }
  .proof-item svg { width: 18px; height: 18px; }
  .star-row svg { width: 15px; height: 15px; }
}

/* ── 768px — tablet (must come after 900px to override correctly) ── */
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .skills-split { grid-template-columns: 1fr !important; }
  .section-header { margin-bottom: 36px; }
  .premium-grid { grid-template-columns: 1fr; }
  /* Keep services at 1 col — don't revert back to 2 here */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-grid .service-card { padding: 24px 20px; }
  .services-grid .service-card p { font-size: 0.85rem; max-width: 100%; }
  /* Page hero further reduction */
  .page-hero { padding: 90px 0 40px; }
  /* Reduce hero title further */
  .hero-title { font-size: clamp(2rem, 6.5vw, 3.2rem); }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }

  .services-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .features-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.8rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
  .value-card { padding: 18px 12px; }
  .value-card h4 { font-size: 0.82rem; }
  .value-card p { font-size: 0.72rem; }
  .value-icon { margin-bottom: 8px; }
  .value-icon svg { width: 28px; height: 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { padding: 11px 16px; font-size: 0.85rem; justify-content: center; width: 100%; }
  .social-proof { gap: 16px; }
  .cta-banner { padding: 32px 16px; }
  .testimonial-card { padding: 20px 14px; }
  .pricing-tabs { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .hero-badge { font-size: 0.62rem; padding: 4px 8px; }
  .modal-box { padding: 20px 16px; }
  /* Force form rows to single column on small phones */
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  /* Page hero compact */
  .page-hero { padding: 80px 0 36px; }
  /* Service included list single col */
  .service-included-grid { grid-template-columns: 1fr; }
  /* Service CTA row stacks */
  .service-cta-row { flex-direction: column; }
  .service-cta-row .btn { width: 100%; justify-content: center; }
  /* Sidebar nav can scroll on small screens */
  .service-sidebar-nav { max-height: 50vh; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .stats-section { padding: 40px 0; }
  .page-hero { padding: 72px 0 32px; }
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
}

/* ── 400px — smallest phones ── */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-contact-list li { white-space: normal; overflow: visible; }
  .page-hero { padding: 68px 0 28px; }
}

/* ── 360px — very small phones ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-badge { font-size: 0.62rem; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2rem) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 4px; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .services-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .features-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .section { padding: 32px 0; }
  .section-header { margin-bottom: 24px; }
  .form-row { grid-template-columns: 1fr !important; }

  .tech-badge { font-size: 0.65rem; min-width: 56px; }
  .pricing-tabs button { padding: 6px 10px; font-size: 0.7rem; }
  .cta-banner { padding: 24px 12px; }
  .cta-banner h2 { font-size: 1.4rem; }
}

/* ── 320px — absolute minimum ── */
@media (max-width: 320px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: 1fr !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2px; }
  .stat-number { font-size: 1.8rem; }
  .hero-title { font-size: 1.5rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
}

/* ── 3D Tilt Effect ── */
.service-card,
.feature-card,
.portfolio-card,
.pricing-card,
.value-card,
.service-full-card,
.hww-step,
.faq-item {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Ensure tools carousel is completely isolated from 3D tilt */
.tools-carousel,
.tools-track {
  transform-style: flat !important;
  perspective: none !important;
}

/* Ensure containers don't clip the 3D lift */
.services-grid,
.features-grid,
.portfolio-grid,
.pricing-grid,
.values-grid,
.faq-list {
  perspective: 1000px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.flex { display: flex; }
.w-full { width: 100%; }






/* ============================================================
   INFORISORSA — LIGHT THEME  (v5 — Rich Color + Gradient)
   Activated via: html[data-theme="light"]
   Color-only override. Zero layout/structure changes.

   Palette:
   --bg-primary   #EEF2FF   Indigo-tinted base
   --bg-secondary #E8EFFE   Slightly deeper indigo sections
   --bg-surface   #FFFFFF   Cards / elevated
   Border         #C7D2FE   Visible indigo border
   Primary text   #0F172A
   Secondary text #475569
   Accent1        #4F46E5   Indigo
   Accent2        #2563EB   Blue
   Accent3        #06B6D4   Cyan
   ============================================================ */

/* ── CSS variable overrides ── */
html[data-theme="light"] {
  --bg-primary:    #EEF2FF;
  --bg-secondary:  #E0E7FF;
  --bg-surface:    #FFFFFF;
  --accent:        #4F46E5;
  --accent-cyan:   #0891B2;
  --gradient:      linear-gradient(135deg, #4F46E5 0%, #0891B2 100%);
  --gradient-r:    linear-gradient(135deg, #0891B2 0%, #4F46E5 100%);
  --text-primary:  #0F172A;
  --text-secondary:#374151;
  --border:        #A5B4FC;
  --border-hover:  #4F46E5;
  --success:       #059669;
  --warning:       #D97706;
  --shadow:        0 4px 16px rgba(79, 70, 229, 0.12);
  --shadow-lg:     0 12px 40px rgba(79, 70, 229, 0.18);
  --shadow-cyan:   0 8px 24px rgba(8, 145, 178, 0.15);
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
}

/* ── Body ── */
html[data-theme="light"] body {
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 40%, #ECFEFF 80%, #EEF2FF 100%);
  color: #0F172A;
}

html[data-theme="light"] body::before { opacity: 0; }

html[data-theme="light"] body::after {
  background:
    radial-gradient(ellipse 600px 400px at 5%  5%,  rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 95% 90%,  rgba(8,145,178,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(79,70,229,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Scrollbar ── */
html[data-theme="light"] { scrollbar-color: #4F46E5 #C7D2FE; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #E0E7FF; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #4F46E5; border-radius: 3px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #0891B2; }

/* ── Page loader ── */
html[data-theme="light"] #page-loader {
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

/* ── Navbar ── */
html[data-theme="light"] .navbar.scrolled {
  background: rgba(238, 242, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 4px 16px rgba(79,70,229,0.10);
}
html[data-theme="light"] .nav-links a { color: #374151; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active { color: #0F172A; }
html[data-theme="light"] .nav-links a::after {
  background: linear-gradient(90deg, #4F46E5, #0891B2);
}
html[data-theme="light"] .nav-logo { color: #0F172A; }
html[data-theme="light"] .hamburger span { background: #0F172A; }

/* ── Mobile nav ── */
html[data-theme="light"] .mobile-nav {
  background: #EEF2FF;
  border-right: 2px solid #A5B4FC;
  box-shadow: 4px 0 20px rgba(79,70,229,0.10);
}
html[data-theme="light"] .mobile-nav ul a { color: #374151; }
html[data-theme="light"] .mobile-nav ul a.active {
  color: #4F46E5;
  background: rgba(79,70,229,0.10);
  border-left-color: #4F46E5;
}
html[data-theme="light"] .mobile-nav ul li:not(.mobile-nav-item) a:hover {
  color: #0F172A;
  background: rgba(79,70,229,0.06);
}
html[data-theme="light"] .mobile-nav-overlay { background: rgba(15,23,42,0.30); }
html[data-theme="light"] .mobile-nav-cta-item { border-top: 1.5px solid #A5B4FC; }
html[data-theme="light"] .mobile-nav-contact-row { color: #374151 !important; }
html[data-theme="light"] .mobile-nav-socials a {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  color: #374151;
  box-shadow: 0 1px 4px rgba(79,70,229,0.08);
  color: #374151;
}
html[data-theme="light"] .mobile-nav-submenu {
  background: rgba(79,70,229,0.04);
  border-top: 1.5px solid #A5B4FC;
}
html[data-theme="light"] .mobile-nav-submenu a { color: #374151 !important; }
html[data-theme="light"] .mobile-nav-submenu a:hover {
  color: #4F46E5 !important;
  background: rgba(79,70,229,0.07) !important;
}
html[data-theme="light"] .mobile-nav-chevron { color: #4F46E5; }

/* ── Hero ── */
html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 90% 65% at 50% -5%, rgba(79,70,229,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgba(8,145,178,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 5%  80%, rgba(99,102,241,0.08) 0%, transparent 50%),
    linear-gradient(170deg, #EEF2FF 0%, #E0E7FF 50%, #ECFEFF 100%);
}
html[data-theme="light"] .hero-bg::after {
  background-image:
    linear-gradient(rgba(79,70,229,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.06) 1px, transparent 1px);
}
html[data-theme="light"] .hero-badge {
  color: #3730A3;
  background: rgba(79,70,229,0.10);
  border-color: #A5B4FC;
}
html[data-theme="light"] .typewriter-cursor { background: #4F46E5; }
html[data-theme="light"] .proof-item { color: #374151; }
html[data-theme="light"] .proof-item strong { color: #0F172A; }
html[data-theme="light"] .social-proof { border-top: 1.5px solid #A5B4FC; }

/* ── Page hero (inner pages) ── */
html[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse 85% 55% at 50% -5%, rgba(79,70,229,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 95%  100%, rgba(8,145,178,0.10) 0%, transparent 55%),
    linear-gradient(170deg, #E0E7FF 0%, #EEF2FF 60%, #ECFEFF 100%);
  border-bottom: 2px solid #A5B4FC;
}
html[data-theme="light"] .page-hero::after {
  background-image:
    linear-gradient(rgba(79,70,229,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.06) 1px, transparent 1px);
}

/* ── Typography ── */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 { color: #0F172A; }
html[data-theme="light"] p { color: #374151; }

html[data-theme="light"] .gradient-text,
html[data-theme="light"] .text-gradient {
  background: linear-gradient(90deg, #4F46E5 0%, #2563EB 50%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .section-tag {
  color: #3730A3;
  background: rgba(79,70,229,0.08);
  border: 1px solid #818CF8;
  box-shadow: 0 1px 4px rgba(79,70,229,0.10);
}

html[data-theme="light"] .breadcrumb { color: #4B5563; }
html[data-theme="light"] .breadcrumb a { color: #4F46E5; }
html[data-theme="light"] .breadcrumb svg { opacity: 0.5; }

/* ── Stats section ── */
html[data-theme="light"] .stats-section {
  background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 50%, #CFFAFE 100%);
  border-top: 1px solid #A5B4FC;
  border-bottom: 1px solid #A5B4FC;
}
html[data-theme="light"] .stat-item::after { background: #A5B4FC; }
html[data-theme="light"] .stat-item {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 4px 16px rgba(79,70,229,0.08);
}
html[data-theme="light"] .stat-number {
  background: linear-gradient(90deg, #4F46E5 0%, #2563EB 50%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .stat-label { color: #374151; }

/* ── All cards ── */
html[data-theme="light"] .service-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .portfolio-card,
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .value-card,
html[data-theme="light"] .service-full-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .hww-step,
html[data-theme="light"] .card,
html[data-theme="light"] .card-glass {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #A5B4FC, 0 4px 16px rgba(79,70,229,0.10);
}

html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .portfolio-card:hover,
html[data-theme="light"] .pricing-card:hover,
html[data-theme="light"] .value-card:hover,
html[data-theme="light"] .service-full-card:hover,
html[data-theme="light"] .hww-step:hover {
  border-color: #4F46E5;
  box-shadow: 0 4px 0 0 #4F46E5, 0 16px 40px rgba(79,70,229,0.18);
  transform: translateY(-8px) scale(1.04);
}

/* ── Service icons ── */
html[data-theme="light"] .service-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(8,145,178,0.08));
  color: #4F46E5;
  border: 1px solid #A5B4FC;
}
html[data-theme="light"] .service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.20), rgba(8,145,178,0.14));
  color: #3730A3;
}
html[data-theme="light"] .feature-icon { color: #4F46E5; }
html[data-theme="light"] .service-link { color: #4F46E5; font-weight: 600; }
html[data-theme="light"] .service-link:hover { color: #0891B2; }
html[data-theme="light"] .service-card-divider { border-top: 1.5px solid #A5B4FC; }
html[data-theme="light"] .service-card:hover .service-card-divider {
  border-top-color: #4F46E5;
  box-shadow: 0 0 10px rgba(79,70,229,0.5);
}

/* ── HWW steps ── */
html[data-theme="light"] .hww-step {
  background: linear-gradient(135deg, #FFFFFF 60%, #EEF2FF 100%);
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 4px 12px rgba(79,70,229,0.08);
}
html[data-theme="light"] .hww-step-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(8,145,178,0.08));
  color: #4F46E5;
  border: 1px solid #A5B4FC;
}
html[data-theme="light"] .hww-step h4 { color: #0F172A; }
html[data-theme="light"] .hww-step p { color: #374151; }
html[data-theme="light"] .hww-step-num { color: rgba(79,70,229,0.18); }

/* ── Testimonials ── */
html[data-theme="light"] .testimonials-section {
  background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 60%, #CFFAFE 100%);
  border-top: 1px solid #A5B4FC;
  border-bottom: 1px solid #A5B4FC;
}
html[data-theme="light"] .testimonial-card {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 6px 24px rgba(79,70,229,0.10);
}
html[data-theme="light"] .testimonial-text { color: #0F172A; }
html[data-theme="light"] .author-name { color: #0F172A; }
html[data-theme="light"] .author-title { color: #4B5563; }
html[data-theme="light"] .slider-dot { background: #A5B4FC; }
html[data-theme="light"] .slider-dot.active { background: #4F46E5; }

/* ── Pricing tabs ── */
html[data-theme="light"] .pricing-tab {
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #A5B4FC;
  color: #374151;
  box-shadow: 0 1px 4px rgba(79,70,229,0.08);
}
html[data-theme="light"] .pricing-tab:hover:not(.active) {
  border-color: #4F46E5;
  color: #0F172A;
  background: rgba(79,70,229,0.06);
}
html[data-theme="light"] .pricing-tab.active {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
html[data-theme="light"] .pricing-card.popular {
  background: linear-gradient(160deg, #FFFFFF 50%, #EEF2FF 100%);
}
html[data-theme="light"] .pricing-divider {
  background: linear-gradient(90deg, transparent, #A5B4FC, transparent);
  height: 1px;
}
html[data-theme="light"] .pricing-price { color: #0F172A; }
html[data-theme="light"] .pricing-tier {
  background: linear-gradient(90deg, #4F46E5, #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .pricing-price-pkr,
html[data-theme="light"] .pricing-note { color: #4B5563; }
html[data-theme="light"] .pricing-meta { color: #4B5563; }
html[data-theme="light"] .pricing-features li { color: #374151; }
html[data-theme="light"] .pricing-features li.included { color: #0F172A; }
html[data-theme="light"] .popular-badge { color: #0F172A; }
html[data-theme="light"] .premium-card {
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 60%, #DBEAFE 100%);
  border: 2px solid #6366F1;
  box-shadow: 0 4px 0 0 #6366F1, 0 16px 48px rgba(79,70,229,0.16);
}

html[data-theme="light"] .premium-card::after {
  background: radial-gradient(ellipse 60% 35% at 50% 0%, rgba(79,70,229,0.10) 0%, transparent 60%);
}

html[data-theme="light"] .premium-card h2,
html[data-theme="light"] .premium-card h3 {
  color: #0F172A;
}

html[data-theme="light"] .premium-card > .premium-grid > div > p {
  color: #374151;
}

html[data-theme="light"] .premium-badge {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(8,145,178,0.08));
  border-color: #A5B4FC;
  color: #3730A3;
}

html[data-theme="light"] .premium-features-list li {
  color: #1E293B;
}

html[data-theme="light"] .premium-features-list li svg {
  color: #4F46E5;
}

html[data-theme="light"] .premium-pricing {
  background: rgba(255,255,255,0.90);
  border: 1.5px solid #818CF8;
  box-shadow: 0 2px 0 0 #A5B4FC, 0 6px 20px rgba(79,70,229,0.12);
}

html[data-theme="light"] .premium-pricing .pricing-tier {
  color: #4F46E5;
}

html[data-theme="light"] .premium-pricing .pricing-price {
  color: #0F172A;
}

html[data-theme="light"] .premium-pricing .pricing-price-pkr,
html[data-theme="light"] .premium-pricing .pricing-note,
html[data-theme="light"] .premium-pricing p {
  color: #4B5563;
}

html[data-theme="light"] .premium-pricing .pricing-divider {
  background: linear-gradient(90deg, transparent, #A5B4FC, transparent);
}

html[data-theme="light"] .premium-pricing .btn-whatsapp {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  color: #FFFFFF;
}

html[data-theme="light"] .premium-pricing .btn-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}

/* ── Premium card new semantic classes ── */

/* Dark mode (default) */
.premium-heading { color: #fff; }
.premium-gradient-text {
  background: linear-gradient(135deg, #FFD700, #FFB300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.premium-plan-label { color: #FFB300; }
.premium-divider-row {
  border-bottom: 1px solid rgba(255,183,0,0.15);
}
.premium-price-usd {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFD700;
}
.premium-price-suffix {
  font-size: 1rem;
  font-weight: 400;
  color: #ccc;
}
.premium-price-pkr {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.premium-cta-btn {
  background: linear-gradient(135deg, #FFD700, #FFB300);
  color: #111;
  font-weight: 700;
  justify-content: center;
  border-radius: 50px;
  display: flex;
}
.premium-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,183,0,0.4);
  color: #111;
}
.premium-footnote {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
  text-align: center;
}

/* Light mode overrides */
html[data-theme="light"] .premium-heading { color: #0F172A; }
html[data-theme="light"] .premium-gradient-text {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .premium-plan-label { color: #4F46E5; }
html[data-theme="light"] .premium-divider-row {
  border-bottom-color: #A5B4FC;
}
html[data-theme="light"] .premium-price-usd { color: #3730A3; }
html[data-theme="light"] .premium-price-suffix { color: #4B5563; }
html[data-theme="light"] .premium-price-pkr { color: #4B5563; }
html[data-theme="light"] .premium-cta-btn {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  color: #FFFFFF;
}
html[data-theme="light"] .premium-cta-btn:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,0.35);
  color: #FFFFFF;
}
html[data-theme="light"] .premium-footnote { color: #4B5563; }

/* ── About page code snippet classes ── */

/* Dark mode (default) */
.code-keyword { color: #00D4FF; }
.code-var     { color: #F0F0FF; }
.code-string  { color: #00E676; }
.code-number  { color: #FFB300; }

/* Light mode — use proper code-editor palette on light bg */
html[data-theme="light"] .code-keyword { color: #7C3AED; }  /* purple keyword */
html[data-theme="light"] .code-var     { color: #0F172A; }  /* dark text */
html[data-theme="light"] .code-string  { color: #059669; }  /* green string */
html[data-theme="light"] .code-number  { color: #D97706; }  /* amber number */

/* ── Portfolio / Modal ghost text ── */
html[data-theme="light"] .portfolio-thumb-bg { color: rgba(15,23,42,0.07); }
html[data-theme="light"] .modal-thumb        { color: rgba(15,23,42,0.07); }

/* ── Toast error icon ── */
html[data-theme="light"] .toast-error .toast-icon { color: #EF4444; }

/* ── Theme toggle button — hidden (admin-only via secret trigger) ── */

/* Icon switching (kept for JS reference, button is hidden) */
html[data-theme="light"] .theme-toggle .icon-moon { display: none;  }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ============================================================
   LIGHT THEME — SECTION GRADIENTS v5 (Rich Color)
   ============================================================ */

/* ── Body base ── */
html[data-theme="light"] body {
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 35%, #ECFEFF 70%, #EEF2FF 100%);
}

/* ── Hero ── (already set above, skip duplicate) */

/* ── Services section ── */
html[data-theme="light"] section[aria-labelledby="services-heading"],
html[data-theme="light"] section[aria-label="All services"] {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(79,70,229,0.12) 0%, transparent 65%),
    linear-gradient(175deg, #E0E7FF 0%, #EEF2FF 100%);
  border-bottom: 2px solid #A5B4FC;
}

/* ── Why / Features section ── */
html[data-theme="light"] section[aria-labelledby="why-heading"] {
  background:
    radial-gradient(ellipse 55% 65% at -5% 50%, rgba(79,70,229,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 105% 50%, rgba(8,145,178,0.10) 0%, transparent 55%),
    linear-gradient(160deg, #EEF2FF 0%, #ECFEFF 100%);
}

/* ── Portfolio section ── */
html[data-theme="light"] section[aria-labelledby="portfolio-heading"],
html[data-theme="light"] section[aria-label="Portfolio grid"] {
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(8,145,178,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(79,70,229,0.10) 0%, transparent 55%),
    linear-gradient(165deg, #DBEAFE 0%, #E0E7FF 100%);
  border-top: 1px solid #A5B4FC;
  border-bottom: 1px solid #A5B4FC;
}

/* ── CTA Banner section ── */
html[data-theme="light"] section[aria-label="Call to action"] {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(79,70,229,0.08) 0%, transparent 70%),
    linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 100%);
}
html[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg,
    rgba(79,70,229,0.15) 0%,
    rgba(37,99,235,0.10) 50%,
    rgba(8,145,178,0.12) 100%
  );
  border-color: #A5B4FC;
}

/* ── Newsletter section ── */
html[data-theme="light"] .newsletter-section {
  background:
    radial-gradient(ellipse 55% 65% at 100% 50%, rgba(8,145,178,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 0% 50%, rgba(79,70,229,0.10) 0%, transparent 55%),
    linear-gradient(165deg, #DBEAFE 0%, #C7D2FE 100%);
  border-top: 1px solid #A5B4FC;
}

/* ── Pricing section ── */
html[data-theme="light"] section[aria-label="Pricing tables"] {
  background:
    radial-gradient(ellipse 65% 40% at 50% 0%, rgba(79,70,229,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(8,145,178,0.10) 0%, transparent 55%),
    linear-gradient(175deg, #E0E7FF 0%, #EEF2FF 100%);
}

/* ── FAQ section ── */
html[data-theme="light"] section[aria-labelledby="faq-heading"],
html[data-theme="light"] section[aria-label="FAQ"] {
  background:
    radial-gradient(ellipse 55% 50% at 0% 50%, rgba(79,70,229,0.10) 0%, transparent 55%),
    linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 100%);
}

/* ── Contact section ── */
html[data-theme="light"] section[aria-labelledby="contact-heading"],
html[data-theme="light"] section[aria-label="Contact form"],
html[data-theme="light"] section[aria-label="Contact section"] {
  background:
    radial-gradient(ellipse 55% 50% at 100% 30%, rgba(8,145,178,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 0% 70%, rgba(79,70,229,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #EEF2FF 0%, #ECFEFF 100%);
}

/* ── Service detail sections ── */
html[data-theme="light"] section.section {
  background:
    radial-gradient(ellipse 45% 35% at 98% 5%, rgba(79,70,229,0.08) 0%, transparent 55%),
    linear-gradient(175deg, #EEF2FF 0%, #F0F9FF 100%);
}

/* ── Footer ── */
html[data-theme="light"] .footer {
  background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 50%, #ECFEFF 100%);
  border-top: 1px solid #A5B4FC;
}

/* ── Alternating section nth-of-type ── */
html[data-theme="light"] main > .section:nth-of-type(1) {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(79,70,229,0.14) 0%, transparent 65%),
    linear-gradient(180deg, #E0E7FF 0%, #EEF2FF 100%);
}
html[data-theme="light"] main > .section:nth-of-type(2) {
  background:
    radial-gradient(ellipse 60% 65% at 100% 50%, rgba(8,145,178,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 50%, rgba(79,70,229,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #EEF2FF 0%, #ECFEFF 100%);
}
html[data-theme="light"] main > .section:nth-of-type(3) {
  background:
    radial-gradient(ellipse 65% 50% at 0% 0%, rgba(79,70,229,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(8,145,178,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #DBEAFE 0%, #E0E7FF 100%);
  border-top: 1px solid #A5B4FC;
  border-bottom: 1px solid #A5B4FC;
}

/* ── FAQ section ── */
html[data-theme="light"] section[aria-labelledby="faq-heading"],
html[data-theme="light"] section[aria-label="FAQ"] {
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(37,99,235,0.05) 0%, transparent 55%),
    #F8FAFC;
}

/* ── Contact section ── */
html[data-theme="light"] section[aria-labelledby="contact-heading"],
html[data-theme="light"] section[aria-label="Contact form"] {
  background:
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(6,182,212,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at   0% 70%, rgba(79,70,229,0.05) 0%, transparent 50%),
    #F8FAFC;
}

/* ── Services page — service detail pages ── */
/* (consolidated into the section.section rule above) */

/* ── Footer — indigo→cyan sweep ── */
/* (consolidated into the .footer rule above) */

/* ── Card subtle left-border gradient on hover (service cards) ── */
/* (consolidated below) */

/* ── Pricing popular card — gradient top border glow ── */
/* (consolidated below) */

/* ── Service sidebar heading ── */
html[data-theme="light"] .service-sidebar-heading {
  background: linear-gradient(90deg, #E0E7FF 0%, #ECFEFF 100%);
  border-bottom: 1.5px solid #A5B4FC;
  color: #374151;
}

/* ── Active sidebar nav item ── */
html[data-theme="light"] .service-sidebar-nav li a.active {
  background: linear-gradient(90deg, rgba(79,70,229,0.12) 0%, rgba(8,145,178,0.06) 100%);
  color: #4F46E5;
  border-left-color: #4F46E5;
}

/* ── Author avatar ── */
html[data-theme="light"] .author-avatar {
  background: linear-gradient(135deg, #4F46E5 0%, #0891B2 100%);
  color: #FFFFFF;
}

/* ── Card hover gradient wash ── */
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .feature-card:hover {
  background: linear-gradient(155deg, rgba(79,70,229,0.06) 0%, #FFFFFF 40%);
}

/* ── Pricing popular card ── */
html[data-theme="light"] .pricing-card.popular::before {
  background: linear-gradient(90deg, #4F46E5 0%, #0891B2 100%);
  animation: borderGlow 3s ease-in-out infinite;
}

/* ── About/service named sections ── */
html[data-theme="light"] #story-section,
html[data-theme="light"] #values-section {
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(8,145,178,0.12) 0%, transparent 55%),
    linear-gradient(175deg, #EEF2FF 0%, #ECFEFF 100%);
}

html[data-theme="light"] #why-section,
html[data-theme="light"] #tools-section {
  background:
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(79,70,229,0.12) 0%, transparent 55%),
    linear-gradient(175deg, #E0E7FF 0%, #EEF2FF 100%);
}

/* ── Section separator lines ── */
html[data-theme="light"] .stats-section::before,
html[data-theme="light"] .testimonials-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(79,70,229,0.4) 30%, rgba(8,145,178,0.4) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
html[data-theme="light"] .stats-section::after,
html[data-theme="light"] .testimonials-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(8,145,178,0.3) 30%, rgba(79,70,229,0.35) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Contact form card ── */
html[data-theme="light"] .card[style*="padding:40px"],
html[data-theme="light"] .card[style*="padding: 40px"] {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #A5B4FC, 0 6px 28px rgba(79,70,229,0.10);
}

/* ── Form inputs in light mode ── */
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: #F8F9FF;
  border: 1.5px solid #A5B4FC;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(79,70,229,0.06);
}
html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] .form-textarea:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  background: #FFFFFF;
}
html[data-theme="light"] .form-label { color: #374151; }
html[data-theme="light"] .form-file-label {
  background: #F5F7FF;
  border-color: #A5B4FC;
  color: #374151;
}

/* ── Newsletter input ── */
html[data-theme="light"] .newsletter-input {
  background: #F8F9FF;
  border: 1.5px solid #A5B4FC;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(79,70,229,0.06);
}
html[data-theme="light"] .newsletter-input:focus { border-color: #4F46E5; background: #FFFFFF; }

/* ── Filter bar ── */
html[data-theme="light"] .filter-btn {
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #A5B4FC;
  color: #374151;
  box-shadow: 0 1px 4px rgba(79,70,229,0.08);
}
html[data-theme="light"] .filter-btn:hover:not(.active) {
  border-color: #4F46E5;
  color: #0F172A;
  background: rgba(79,70,229,0.06);
}

/* ── 404 page ── */
html[data-theme="light"] .error-code {
  background: linear-gradient(90deg, #4F46E5, #0891B2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Toast ── */
html[data-theme="light"] .toast {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 4px 0 0 #C7D2FE, 0 12px 32px rgba(79,70,229,0.12);
}
html[data-theme="light"] .toast-message { color: #0F172A; }
html[data-theme="light"] .toast-close { color: #6B7280; }
html[data-theme="light"] .toast-close:hover { color: #0F172A; }
html[data-theme="light"] .toast-error .toast-icon { color: #EF4444; }

/* ── Cookie banner ── */
html[data-theme="light"] .cookie-banner {
  background: rgba(224,231,255,0.97);
  backdrop-filter: blur(16px);
  border-top-color: #A5B4FC;
}
html[data-theme="light"] .cookie-text { color: #374151; }
html[data-theme="light"] .cookie-text a { color: #4F46E5; }

/* ── Modal ── */
html[data-theme="light"] .modal-overlay { background: rgba(15,23,42,0.40); }
html[data-theme="light"] .modal-box {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 4px 0 0 #A5B4FC, 0 24px 64px rgba(79,70,229,0.16);
  box-shadow: 0 24px 60px rgba(79,70,229,0.16);
}
html[data-theme="light"] .modal-close { color: #4B5563; }
html[data-theme="light"] .modal-close:hover { color: #0F172A; }
html[data-theme="light"] .tool-pill {
  background: rgba(79,70,229,0.10);
  border-color: #818CF8;
  color: #3730A3;
  font-weight: 600;
}
html[data-theme="light"] .modal-thumb { color: rgba(15,23,42,0.07); }

/* ── Back to top ── */
html[data-theme="light"] .back-to-top {
  background: #FFFFFF;
  border: 1.5px solid #818CF8;
  color: #4F46E5;
  box-shadow: 0 2px 0 0 #A5B4FC, 0 4px 16px rgba(79,70,229,0.12);
}
html[data-theme="light"] .back-to-top:hover {
  background: #EEF2FF;
  box-shadow: 0 6px 20px rgba(79,70,229,0.20);
}

/* ── Portfolio thumbnail ghost text ── */
html[data-theme="light"] .portfolio-thumb-bg { color: rgba(15,23,42,0.07); }

/* ── Process steps ── */
html[data-theme="light"] .process-step-num {
  background: rgba(79,70,229,0.10);
  border-color: #A5B4FC;
  color: #4F46E5;
}

/* ── Value cards ── */
html[data-theme="light"] .value-icon { color: #4F46E5; }

/* ── Tech badges ── */
html[data-theme="light"] .tech-badge {
  background: none;
  border: none;
  color: #374151;
}
html[data-theme="light"] .tech-badge:hover {
  color: #0F172A;
}
html[data-theme="light"] .tech-badge-logo {
  box-shadow: 0 2px 12px rgba(79,70,229,0.15);
}

/* ── Service detail sidebar ── */
html[data-theme="light"] .service-sidebar-box {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 4px 16px rgba(79,70,229,0.08);
  box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}
html[data-theme="light"] .service-sidebar-nav li a {
  color: #374151;
}
html[data-theme="light"] .service-sidebar-nav li a:hover {
  color: #0F172A;
  background: rgba(79,70,229,0.06);
}
html[data-theme="light"] .service-sidebar-contact-item { color: #374151; }
html[data-theme="light"] .service-sidebar-contact-item a { color: #374151; }
html[data-theme="light"] .service-sidebar-contact-item a:hover { color: #4F46E5; }

/* ── Service included grid ── */
html[data-theme="light"] .service-included-grid li { color: #374151; }
html[data-theme="light"] .service-included-grid li svg { color: #059669; }

/* ── FAQ ── */
html[data-theme="light"] .faq-item { background: #FFFFFF; border: 1.5px solid #A5B4FC; box-shadow: 0 1px 0 0 #C7D2FE, 0 2px 8px rgba(79,70,229,0.06); }
html[data-theme="light"] .faq-item.open {
  border-color: #4F46E5;
  box-shadow: 0 3px 0 0 #4F46E5, 0 6px 24px rgba(79,70,229,0.14);
}
html[data-theme="light"] .faq-question h4 { color: #0F172A; }
html[data-theme="light"] .faq-toggle { color: #4F46E5; }
html[data-theme="light"] .faq-answer-inner {
  border-top: 1.5px solid #A5B4FC;
  color: #374151;
}

/* ── Portfolio filter ── */
html[data-theme="light"] .portfolio-cat {
  color: #3730A3;
  background: rgba(79,70,229,0.10);
  border-color: #A5B4FC;
}
html[data-theme="light"] .portfolio-info h4 { color: #0F172A; }
html[data-theme="light"] .portfolio-info p { color: #374151; }

/* ── Buttons ── */
html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(79,70,229,0.25);
}
html[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,0.35);
}
html[data-theme="light"] .btn-outline {
  background: rgba(255,255,255,0.8);
  color: #0F172A;
  border-color: #A5B4FC;
}
html[data-theme="light"] .btn-outline:hover {
  background: rgba(79,70,229,0.08);
  border-color: #4F46E5;
  color: #3730A3;
}
html[data-theme="light"] .btn-ghost {
  background: rgba(79,70,229,0.06);
  border: 1.5px solid #A5B4FC;
  color: #374151;
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(79,70,229,0.10);
}

/* ── Contact info ── */
html[data-theme="light"] .contact-info-icon {
  background: rgba(79,70,229,0.10);
  color: #4F46E5;
  border: 1px solid #A5B4FC;
}
html[data-theme="light"] .contact-info-text h4 { color: #374151; }
html[data-theme="light"] .contact-info-text a,
html[data-theme="light"] .contact-info-text p { color: #0F172A; }

/* ── HWW step icon ── */
html[data-theme="light"] .hww-step-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(8,145,178,0.08));
  border: 1px solid #A5B4FC;
  color: #4F46E5;
}

/* ── Service full card ── */
html[data-theme="light"] .service-full-icon {
  background: rgba(79,70,229,0.10);
  color: #4F46E5;
  border: 1px solid #A5B4FC;
}
html[data-theme="light"] .service-full-header h3 { color: #0F172A; }
html[data-theme="light"] .service-features-list li { color: #374151; }
html[data-theme="light"] .service-features-list li svg { color: #059669; }
html[data-theme="light"] .service-full-footer { border-top: 1.5px solid #A5B4FC; }
html[data-theme="light"] .service-price { color: #0F172A; }
html[data-theme="light"] .service-price span { color: #4B5563; }

/* ── CTA banner ── */
html[data-theme="light"] .cta-banner h2 { color: #0F172A; }
html[data-theme="light"] .cta-banner p { color: #374151; }

/* ── Footer inner ── */
html[data-theme="light"] .footer-heading { color: #0F172A; }
html[data-theme="light"] .footer-links a { color: #374151; }
html[data-theme="light"] .footer-links a:hover { color: #4F46E5; }
html[data-theme="light"] .footer-contact-list li { color: #374151; }
html[data-theme="light"] .footer-contact-list a { color: #374151; }
html[data-theme="light"] .footer-contact-list a:hover { color: #4F46E5; }
html[data-theme="light"] .footer-bottom { color: #4B5563; border-top-color: #A5B4FC; }
html[data-theme="light"] .footer-brand p { color: #374151; }
html[data-theme="light"] .social-link {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  color: #374151;
  box-shadow: 0 1px 4px rgba(79,70,229,0.08);
}
html[data-theme="light"] .social-link:hover {
  background: rgba(79,70,229,0.08);
  border-color: #4F46E5;
  color: #4F46E5;
  box-shadow: 0 2px 8px rgba(79,70,229,0.16);
}

/* ── Theme toggle (hidden) ── */
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }









/* ============================================================
   ADMIN PANEL — REDESIGNED
   Sidebar layout · Login card · Pricing editor · Premium
   Triggered: click © 8× in 5 sec (footer-bottom)
   ============================================================ */

/* ── Overlay ── */
#admin-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#admin-panel-overlay.open { display: flex; }

/* ── Panel shell ── */
#admin-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: min(90vh, 640px);
  background: var(--bg-primary);
  border: 1px solid rgba(108, 99, 255, 0.40);
  border-radius: 20px;
  box-shadow: 0 4px 0 0 rgba(108, 99, 255, 0.20), 0 32px 96px rgba(0, 0, 0, 0.55);
  animation: apSlideIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes apSlideIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Login screen ── */
#admin-login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  min-height: 420px;
}

.ap-login-inner {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ap-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.ap-logo {
  width: 44px;
  height: 44px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ap-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ap-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.ap-login-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ap-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.ap-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ap-input-wrap svg {
  position: absolute;
  left: 13px;
  color: var(--text-secondary);
  opacity: 0.5;
  pointer-events: none;
  flex-shrink: 0;
}

.ap-input-wrap .admin-input {
  padding-left: 38px;
}

.admin-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.admin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.10);
  background: rgba(108,99,255,0.04);
}

.admin-input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.ap-error {
  font-size: 0.78rem;
  color: #FF5252;
  min-height: 18px;
  text-align: center;
  display: none;
}
.ap-error.show { display: block; }

/* keep legacy id selector working */
#admin-error { font-size: 0.78rem; color: #FF5252; min-height: 18px; text-align: center; display: none; }
#admin-error.show { display: block; }

#admin-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
#admin-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.4);
}

/* ── Dashboard layout: sidebar + content ── */
#admin-dashboard {
  display: none;
  flex-direction: row;
  height: min(90vh, 640px);
  overflow: hidden;
}

/* ── Sidebar ── */
.ap-sidebar {
  width: 176px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(108, 99, 255, 0.30);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0 16px;
}

.ap-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ap-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0 16px 20px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.30);
  margin-bottom: 8px;
}

.ap-brand-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ap-sidebar-logo {
  display: none; /* replaced by logo image */
}

.ap-sidebar-name {
  display: none; /* replaced by logo image */
}

/* Nav items */
.ap-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.ap-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.ap-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.ap-nav-item.active {
  background: rgba(108,99,255,0.12);
  color: var(--accent);
  font-weight: 600;
}

.ap-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.ap-nav-item.active svg { opacity: 1; }

/* Logout */
.ap-sidebar-bottom {
  padding: 0 8px;
}

.ap-logout-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.ap-logout-btn:hover {
  border-color: #FF5252;
  color: #FF5252;
  background: rgba(255,82,82,0.06);
}

/* ── Content area ── */
.ap-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Close button — inside content */
#admin-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
#admin-panel-close:hover {
  background: rgba(255,82,82,0.10);
  border-color: rgba(255,82,82,0.4);
  color: #FF5252;
}

/* ── Tab panels ── */
.ap-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px 24px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ap-panel::-webkit-scrollbar { width: 4px; }
.ap-panel::-webkit-scrollbar-track { background: transparent; }
.ap-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.ap-panel.active { display: flex; }

.ap-panel-header {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.30);
  padding-right: 40px;
}

.ap-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.ap-panel-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ── Theme panel ── */
.ap-theme-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.14), 0 4px 16px rgba(0,0,0,0.30);
}

/* Mini browser preview */
.ap-theme-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100px;
  border-bottom: 1px solid var(--border);
}

.ap-theme-preview-dark,
.ap-theme-preview-light {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  position: relative;
}

.ap-theme-preview-dark { background: #0A0A0F; }
.ap-theme-preview-light { background: #F8FAFC; border-left: 1px solid var(--border); }

.ap-prev-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(108,99,255,0.35);
  width: 60%;
}
.ap-prev-bar.light { background: rgba(79,70,229,0.25); }

.ap-prev-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.ap-prev-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.10);
}
.ap-prev-line.light { background: rgba(15,23,42,0.12); }
.ap-prev-line.long { width: 80%; }
.ap-prev-line.short { width: 55%; }

/* Label for each preview */
.ap-theme-preview-dark::after { content: 'Dark'; position: absolute; bottom: 6px; right: 8px; font-size: 0.6rem; font-family: var(--font-mono); color: rgba(255,255,255,0.25); letter-spacing: 0.06em; text-transform: uppercase; }
.ap-theme-preview-light::after { content: 'Light'; position: absolute; bottom: 6px; right: 8px; font-size: 0.6rem; font-family: var(--font-mono); color: rgba(15,23,42,0.25); letter-spacing: 0.06em; text-transform: uppercase; }

/* Toggle row */
.ap-theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.ap-theme-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ap-theme-mode {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ap-theme-toggle-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Toggle switch */
.admin-switch {
  position: relative;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}
.admin-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.admin-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-switch-track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.admin-switch input:checked + .admin-switch-track {
  background: var(--gradient);
  border-color: transparent;
}
.admin-switch input:checked + .admin-switch-track::before {
  transform: translateX(22px);
}

/* Status bar */
.admin-status {
  font-size: 0.775rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  min-height: 38px;
  display: flex;
  align-items: center;
}
.admin-status:empty { display: none; }
.admin-status.saving { color: var(--accent); border-color: rgba(108,99,255,0.3); }
.admin-status.saved  { color: var(--success); border-color: rgba(0,230,118,0.3); }
.admin-status.error  { color: #FF5252; border-color: rgba(255,82,82,0.3); }

/* ── Pricing panel ── */
.ap-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ap-select-wrap svg {
  position: absolute;
  right: 12px;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0.6;
}

.ap-select {
  padding-right: 36px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-primary) !important;
  background: var(--bg-surface) !important;
}

.ap-select option {
  background: #1a1a26;
  color: #F0F0FF;
}

/* Tier editor cards */
#admin-tier-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-tier-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.30);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.12), 0 3px 12px rgba(0,0,0,0.25);
}

.admin-tier-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.admin-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-price-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-price-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.admin-price-input {
  padding: 10px 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
  text-align: right;
  -webkit-appearance: none;
}
.admin-price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.ap-text-input {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Action row (save btn + status) */
.ap-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.ap-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.ap-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.35);
}
.ap-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ap-action-row .admin-status {
  flex: 1;
  margin: 0;
}

/* ── Premium panel ── */
.ap-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ap-premium-card {
  border-color: rgba(255,183,0,0.2) !important;
}

.ap-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255,183,0,0.08);
  border: 1px solid rgba(255,183,0,0.25);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFB300;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.ap-tier-badge.annual {
  background: rgba(108,99,255,0.08);
  border-color: rgba(108,99,255,0.25);
  color: var(--accent);
}

/* ── Stats editor ── */
.ap-stat-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.12), 0 3px 10px rgba(0,0,0,0.25);
}

/* ── Pricing: plus suffix checkbox ── */
.ap-plus-row {
  margin-top: 10px;
}

.ap-plus-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.ap-plus-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.ap-plus-label strong {
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Light theme for stats/plus elements */
html[data-theme="light"] .ap-plus-label { color: #374151; }
html[data-theme="light"] .ap-plus-label strong { color: #4F46E5; }

/* ── Offer Banner ── */
#offer-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 10px 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-family: var(--font-body);
  line-height: 1.4;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

#offer-banner.visible {
  display: flex;
}

#offer-banner.dismissed {
  transform: translateY(-110%);
  pointer-events: none;
}

.offer-emoji {
  font-size: 1rem;
  flex-shrink: 0;
}

.offer-text {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.offer-subtext {
  color: rgba(255,255,255,0.88);
  font-weight: 400;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.offer-cta:hover {
  background: rgba(255,255,255,0.32);
  color: #fff;
}

.offer-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.offer-close:hover { color: #fff; }

/* Push navbar down when banner is visible */
body.offer-visible .navbar {
  top: var(--offer-height, 40px);
}

body.offer-visible .mobile-nav {
  top: calc(var(--nav-height) + var(--offer-height, 40px));
}

body.offer-visible .mobile-nav-overlay {
  top: calc(var(--nav-height) + var(--offer-height, 40px));
}

/* Push hero and page-hero content down */
body.offer-visible .hero {
  padding-top: calc(var(--nav-height) + var(--offer-height, 40px));
  min-height: 100vh;
}

body.offer-visible .page-hero {
  padding-top: calc(120px + var(--offer-height, 40px));
}

@media (max-width: 900px) {
  body.offer-visible .page-hero {
    padding-top: calc(100px + var(--offer-height, 40px));
  }
}

@media (max-width: 640px) {
  body.offer-visible .page-hero {
    padding-top: calc(80px + var(--offer-height, 40px));
  }
}

@media (max-width: 640px) {
  #offer-banner { font-size: 0.78rem; padding: 8px 40px 8px 12px; gap: 6px; }
  .offer-text { font-size: 0.82rem; }
  .offer-subtext { font-size: 0.75rem; }
  .offer-cta { padding: 4px 10px; font-size: 0.72rem; }
}

/* Light theme */
html[data-theme="light"] .offer-cta {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.50);
}

/* ── About page decorative card layout ── */
.about-deco-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-deco-code {
  background: var(--bg-surface);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 28px;
  transform: rotate(-2deg);
  transform-origin: center;
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.18), 0 6px 24px rgba(0,0,0,0.40);
}

.about-deco-stats {
  background: var(--bg-secondary);
  border: 1px solid rgba(108, 99, 255, 0.50);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 0 0 rgba(108, 99, 255, 0.22), 0 6px 24px rgba(0,0,0,0.35);
  padding: 24px;
  transform: rotate(1.5deg);
  transform-origin: center;
  margin-left: 20px;
}

.about-deco-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.about-deco-stat-item {
  text-align: center;
}

.about-deco-num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.about-deco-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Desktop: overlap the two cards */
@media (min-width: 901px) {
  .about-deco-container {
    position: relative;
    height: 380px;
    gap: 0;
  }
  .about-deco-code {
    position: absolute;
    top: 0; left: 0; right: 40px;
  }
  .about-deco-stats {
    position: absolute;
    bottom: 0; right: 0; left: 40px;
    margin-left: 0;
  }
}

/* ── 1440px+ — about page PC monitor adjustments ── */
@media (min-width: 1440px) {
  /* Story split: more breathing room */
  .about-split { gap: 80px !important; }

  /* Deco container: taller to fill the bigger column */
  .about-deco-container { height: 440px !important; }

  /* Stats layout: give cells more padding */
  .about-stats-layout { border-radius: var(--radius-xl); }
  .about-stats-feature { padding: 60px 52px; }
  .about-stats-desc { padding: 60px 52px; }
  .about-stats-desc h3 { font-size: 2.1rem; }
  .about-stat-cell { padding: 44px 40px; }

  /* Values grid: keep 4 cols but widen cards */
  .values-grid { gap: 28px; }
  .value-card { padding: 36px 28px; }
  .value-card h4 { font-size: 1.05rem; }
  .value-card p  { font-size: 0.9rem; }

  /* Page hero: more vertical space */
  .page-hero { padding: 140px 0 72px; }
  .page-hero h1 { font-size: clamp(2.8rem, 3.5vw, 4.5rem); }
  .page-hero p  { font-size: 1.15rem; max-width: 620px; }

  /* Why-tab text */
  .why-tab-content p { font-size: 1.15rem !important; max-width: 900px !important; }
  .why-tab { padding: 20px 48px; font-size: 1.35rem; }
}

/* Mobile: stack them normally, no overlap, no rotation */
@media (max-width: 900px) {
  .about-deco-code,
  .about-deco-stats {
    transform: none;
    margin-left: 0;
  }
  .about-deco-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-deco-num {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .about-deco-code  { padding: 20px; }
  .about-deco-stats { padding: 18px; }
  .about-deco-stats-grid { gap: 14px 16px; }
  .about-deco-num { font-size: 1.4rem; }
}

/* Light theme */
html[data-theme="light"] .about-deco-code {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 6px 20px rgba(79,70,229,0.10);
}
html[data-theme="light"] .about-deco-stats {
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border: 1.5px solid #818CF8;
  box-shadow: 0 2px 0 0 #A5B4FC, 0 8px 24px rgba(79,70,229,0.12);
}

/* ── Visually hidden but accessible label ── */
.ap-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;
}

/* ── Secret trigger — just the © symbol ── */
#admin-copyright-trigger {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  display: inline-block;
  padding: 4px 2px;
  margin: -4px -2px;
}


/* ── Messages panel ── */
.ap-nav-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF5470;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
}

.ap-messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  min-height: 420px;
  align-items: start;
}

.ap-messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.ap-msg-item {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.ap-msg-item:hover { border-color: rgba(108,99,255,0.4); }
.ap-msg-item.ap-msg-active {
  border-color: var(--accent);
  background: rgba(108,99,255,0.08);
}
.ap-msg-item.ap-msg-unread {
  border-left: 3px solid var(--accent);
}

.ap-msg-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ap-msg-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-msg-unread .ap-msg-name::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
.ap-msg-time {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.ap-msg-preview {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}
.ap-msg-item-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-msg-service {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(108,99,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}
.ap-msg-replied-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34,197,94,0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.ap-messages-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  max-height: 620px;
  overflow-y: auto;
}

.ap-msg-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ap-msg-detail-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ap-msg-detail-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.ap-msg-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.ap-msg-delete-btn:hover {
  border-color: #FF5470;
  color: #FF5470;
}

.ap-msg-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ap-msg-detail-meta span {
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: 20px;
}

.ap-msg-detail-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  margin-bottom: 18px;
}

.ap-reply-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ap-reply-bubble {
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 10px;
  padding: 12px 14px;
}
.ap-reply-bubble-meta {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}
.ap-reply-bubble-text {
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.ap-reply-form {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.ap-reply-textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .ap-messages-layout {
    grid-template-columns: 1fr;
  }
  .ap-messages-list {
    max-height: 260px;
  }
}


/* ────────────────────────────────────────────────────────────
   ADMIN PANEL — LIGHT THEME  (Rich indigo/blue/cyan)
   ──────────────────────────────────────────────────────────── */

/* ── Panel shell ── */
html[data-theme="light"] #admin-panel {
  background: #FFFFFF;
  border-color: #A5B4FC;
  box-shadow:
    0 32px 80px rgba(79,70,229,0.18),
    0 0 0 1px rgba(79,70,229,0.12);
}

/* ── Sidebar ── */
html[data-theme="light"] .ap-sidebar {
  background: linear-gradient(180deg, #EEF2FF 0%, #E0E7FF 100%);
  border-right: 2px solid #A5B4FC;
}

html[data-theme="light"] .ap-sidebar-brand {
  border-bottom: 1.5px solid #A5B4FC;
}

html[data-theme="light"] .ap-sidebar-logo {
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(8,145,178,0.10));
  border-color: #A5B4FC;
}

/* ── Nav items ── */
html[data-theme="light"] .ap-nav-item {
  color: #3730A3;
}
html[data-theme="light"] .ap-nav-item:hover {
  background: rgba(79,70,229,0.08);
  color: #0F172A;
}
html[data-theme="light"] .ap-nav-item.active {
  background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(8,145,178,0.10));
  color: #4F46E5;
  font-weight: 600;
}
html[data-theme="light"] .ap-nav-item svg { color: currentColor; }

/* ── Logout ── */
html[data-theme="light"] .ap-logout-btn {
  border: 1.5px solid #A5B4FC;
  color: #4B5563;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(79,70,229,0.06);
}
html[data-theme="light"] .ap-logout-btn:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: rgba(239,68,68,0.06);
}

/* ── Close button ── */
html[data-theme="light"] #admin-panel-close {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  color: #4B5563;
  box-shadow: 0 1px 4px rgba(79,70,229,0.08);
}
html[data-theme="light"] #admin-panel-close:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.4);
  color: #EF4444;
}

/* ── Panel content area ── */
html[data-theme="light"] .ap-content {
  background: #FAFBFF;
}

html[data-theme="light"] .ap-panel-header {
  border-bottom: 1.5px solid #A5B4FC;
}
html[data-theme="light"] .ap-panel-title { color: #0F172A; }
html[data-theme="light"] .ap-panel-desc  { color: #374151; }

/* ── Login screen ── */
html[data-theme="light"] #admin-login-form {
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 60%, #ECFEFF 100%);
}
html[data-theme="light"] .ap-login-brand .ap-title { color: #0F172A; }
html[data-theme="light"] .ap-login-brand .ap-sub   { color: #374151; }
html[data-theme="light"] .ap-logo {
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(8,145,178,0.10));
  border-color: #A5B4FC;
  color: #4F46E5;
}
html[data-theme="light"] .ap-field-label { color: #374151; }

/* ── Inputs ── */
html[data-theme="light"] .admin-input,
html[data-theme="light"] .admin-price-input {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(79,70,229,0.06);
}
html[data-theme="light"] .admin-input:focus,
html[data-theme="light"] .admin-price-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  background: #FAFBFF;
}
html[data-theme="light"] .admin-input::placeholder { color: #94A3B8; opacity: 1; }

html[data-theme="light"] .ap-select option {
  background: #FFFFFF;
  color: #0F172A;
}

/* ── Login button ── */
html[data-theme="light"] #admin-login-btn {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  box-shadow: 0 4px 14px rgba(79,70,229,0.30);
}
html[data-theme="light"] #admin-login-btn:hover {
  box-shadow: 0 8px 24px rgba(79,70,229,0.40);
}

/* ── Error ── */
html[data-theme="light"] .ap-error,
html[data-theme="light"] #admin-error { color: #EF4444; }

/* ── Theme panel card ── */
html[data-theme="light"] .ap-theme-card {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 2px 0 0 #C7D2FE, 0 4px 16px rgba(79,70,229,0.08);
}
html[data-theme="light"] .ap-theme-preview {
  border-bottom: 1.5px solid #A5B4FC;
}
html[data-theme="light"] .ap-theme-mode    { color: #0F172A; }
html[data-theme="light"] .ap-theme-toggle-desc { color: #374151; }

/* ── Toggle switch ── */
html[data-theme="light"] .admin-switch-track {
  background: #C7D2FE;
  border-color: #A5B4FC;
}
html[data-theme="light"] .admin-switch input:checked + .admin-switch-track {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  border-color: transparent;
}

/* ── Status bar ── */
html[data-theme="light"] .admin-status {
  background: #F5F7FF;
  border: 1.5px solid #A5B4FC;
  color: #374151;
}
html[data-theme="light"] .admin-status.saving { color: #4F46E5; border-color: #A5B4FC; background: rgba(79,70,229,0.06); }
html[data-theme="light"] .admin-status.saved  { color: #059669; border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.05); }
html[data-theme="light"] .admin-status.error  { color: #EF4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }

/* ── Pricing tier cards ── */
html[data-theme="light"] .admin-tier-card {
  background: #FFFFFF;
  border: 1.5px solid #A5B4FC;
  box-shadow: 0 1px 0 0 #C7D2FE, 0 3px 10px rgba(79,70,229,0.08);
}
html[data-theme="light"] .admin-tier-name { color: #4F46E5; }
html[data-theme="light"] .admin-price-field label { color: #374151; }

/* ── Save button ── */
html[data-theme="light"] .ap-save-btn {
  background: linear-gradient(135deg, #4F46E5, #0891B2);
  box-shadow: 0 4px 14px rgba(79,70,229,0.28);
}
html[data-theme="light"] .ap-save-btn:hover {
  box-shadow: 0 6px 20px rgba(79,70,229,0.38);
}

/* ── Select dropdown ── */
html[data-theme="light"] .ap-select-wrap svg { color: #4F46E5; }

/* ── Premium tier badges ── */
html[data-theme="light"] .ap-tier-badge {
  background: rgba(245,158,11,0.10);
  border-color: rgba(217,119,6,0.25);
  color: #B45309;
}
html[data-theme="light"] .ap-tier-badge.annual {
  background: rgba(79,70,229,0.10);
  border-color: #A5B4FC;
  color: #4F46E5;
}

/* ── Plus checkbox row ── */
html[data-theme="light"] .ap-plus-label { color: #374151; }
html[data-theme="light"] .ap-plus-label strong { color: #4F46E5; }

/* ── Responsive: stack sidebar on small screens ── */
@media (max-width: 640px) {
  #admin-panel {
    max-width: calc(100vw - 24px);
    max-height: 92vh;
    border-radius: 16px;
  }
  #admin-dashboard { flex-direction: column; height: auto; max-height: 88vh; overflow-y: auto; }
  .ap-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 50px;
  }
  .ap-sidebar-top { flex-direction: row; align-items: center; gap: 0; }
  .ap-sidebar-brand { padding: 0; border-bottom: none; margin-bottom: 0; margin-right: 8px; }
  .ap-brand-logo { height: 22px; }
  .ap-nav { flex-direction: row; padding: 0; gap: 2px; }
  .ap-nav-item { padding: 6px 10px; font-size: 0.75rem; gap: 5px; }
  .ap-nav-item span { display: none; }
  .ap-sidebar-bottom { padding: 0; }
  .ap-logout-btn { padding: 6px 10px; font-size: 0; gap: 0; border-radius: 6px; }
  .ap-logout-btn svg { margin: 0; }
  .ap-content { overflow-y: auto; }
  .ap-panel { padding: 16px; }
  .ap-premium-grid { grid-template-columns: 1fr; }
  #admin-login-form { padding: 32px 20px; min-height: unset; }
  .ap-action-row { flex-direction: column; align-items: stretch; }
  .ap-action-row .admin-status { text-align: center; }
}


/* ============================================================


   COMPREHENSIVE RESPONSIVE OVERHAUL v2
   Covers every breakpoint across all pages + admin panel
   ============================================================ */

/* ── 1280px–1439px: standard laptop / wide desktop ── */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container { max-width: 1240px; }
  .nav-container { max-width: 1240px; }
  .services-grid { gap: 22px; }
  .features-grid { gap: 22px; }
  .portfolio-grid { gap: 22px; }
  .pricing-grid { gap: 22px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 28px; }
  .pricing-tabs { gap: 6px; }
}

/* ── 1100px–1279px: between breakpoints (previously uncovered) ── */
@media (min-width: 1101px) and (max-width: 1279px) {
  .container { max-width: 1080px; padding: 0 20px; }
  .nav-container { max-width: 1080px; padding: 0 20px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 20px; }
  .pricing-tabs { flex-wrap: wrap; gap: 6px; }
  .pricing-tab { padding: 8px 16px; font-size: 0.82rem; }
  .service-detail-layout { grid-template-columns: 1fr 280px; gap: 36px; }
  .premium-card { padding: 36px; }
  .premium-grid { gap: 36px; }
}

/* ── 1024px–1100px: laptop transition fixes ── */
@media (min-width: 1025px) and (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-contact-list { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .pricing-tabs { flex-wrap: wrap; gap: 6px; }
  .pricing-tab { padding: 8px 14px; font-size: 0.82rem; }
  .service-detail-layout { grid-template-columns: 1fr 260px; gap: 28px; }
  .premium-card { padding: 32px; }
  .premium-grid { grid-template-columns: 1fr; gap: 28px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-stats-layout { grid-template-columns: auto 1fr; }
  .about-stats-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .about-stat-cell:nth-child(3) { border-bottom: none; }
  .about-stat-cell:nth-child(4) { border-bottom: none; }
}

/* ── 900px–1024px: tablet-to-laptop gap fixes ── */
@media (min-width: 901px) and (max-width: 1024px) {
  .pricing-tabs { flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
  .pricing-tab { padding: 7px 13px; font-size: 0.8rem; }
  .service-detail-layout { grid-template-columns: 1fr 240px; gap: 24px; }
  .service-detail-sidebar { top: calc(var(--nav-height) + 16px); }
  .premium-grid { grid-template-columns: 1fr; gap: 24px; }
  .premium-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-brand { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-brand p { display: block; max-width: 420px; }
  .footer-contact-list { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-stats-layout { grid-template-columns: 1fr 1fr; }
  .about-stats-feature { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border); }
  .about-stats-desc { border-right: none; border-bottom: 1px solid var(--border); }
  .about-stats-grid { grid-column: 1 / -1; }
}

/* ── Max-width 900px: mobile nav bar height fix ── */
@media (max-width: 900px) {
  /* Pricing tabs — scrollable row, no wrapping */
  .pricing-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
    justify-content: flex-start;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tab { flex-shrink: 0; padding: 9px 16px; font-size: 0.83rem; }

  /* How-we-work: 2 columns at tablet width */

  /* Premium card stacks to 1-col */
  .premium-grid { grid-template-columns: 1fr; gap: 24px; }
  .premium-card { padding: 28px 20px; margin-top: 40px; }

  /* Portfolio modal action grid: stack on narrow screens */
  .modal-action-links > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* About-stats stacked layout */
  .about-stats-layout { grid-template-columns: 1fr 1fr; }
  .about-stats-feature { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .about-stats-desc { border-right: none; border-bottom: 1px solid var(--border); }
  .about-stats-grid { grid-column: 1 / -1; }

  /* CTA banner padding */
  .cta-banner { padding: 40px 24px; }
}

/* ── Max-width 768px: tablet-specific ── */
@media (max-width: 768px) {
  /* About stats: fully stack */
  .about-stats-layout { grid-template-columns: 1fr; }
  .about-stats-feature { grid-column: unset; padding: 28px 20px; }
  .about-stats-big-num { font-size: 4.5rem; }
  .about-stats-desc h3 { font-size: 1.4rem; }
  .about-stat-cell { padding: 24px 20px; }
  .about-stat-num { font-size: 2rem; }

  /* Team cards: 2 per row */
  .team-card { flex: 0 0 calc(50% - 14px); }

  /* Cert cards: slightly narrower */
  .cert-card { width: 240px; }

  /* FAQ max-width relaxed */
  .faq-list { max-width: 100%; }

  /* Service sidebar: becomes accordion on small tablet */
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }

  /* Contact grid: stack */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }

  /* CTA banner */
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.7rem; }
  .cta-banner p { font-size: 0.95rem; }

  /* Newsletter form: column */
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  /* Pricing tabs: still scrollable */
  .pricing-tabs { gap: 5px; }
  .pricing-tab { padding: 8px 14px; font-size: 0.8rem; }
}

/* ── Max-width 640px: small phone additions ── */
@media (max-width: 640px) {
  /* Pricing tabs */
  .pricing-tabs { gap: 4px; }
  .pricing-tab { padding: 7px 11px; font-size: 0.76rem; }

  /* Premium card mobile */
  .premium-card { padding: 20px 14px; margin-top: 28px; }
  .premium-grid { gap: 16px; }
  .premium-pricing { padding: 20px 14px; }
  .premium-badge { font-size: 0.62rem; padding: 4px 10px; }
  .premium-features-list { gap: 8px; margin: 14px 0; }
  .premium-features-list li { font-size: 0.82rem; }

  /* CTA banner */
  .cta-banner { padding: 28px 14px; border-radius: var(--radius-lg); }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.88rem; margin-bottom: 20px; }

  /* Portfolio CTA block */

  /* Modal box */
  .modal-box { padding: 20px 14px; border-radius: var(--radius-lg); }
  .modal-thumb { height: 180px; font-size: 2rem; }
  .tool-pill { font-size: 0.75rem; padding: 5px 12px; }

  /* Contact info card (WhatsApp block) */
  .contact-info-list { gap: 16px; margin: 20px 0; }
  .contact-info-item { gap: 12px; }
  .contact-info-icon { width: 38px; height: 38px; border-radius: 10px; }

  /* How-we-work grid: 1 col */

  /* Service full cards */
  .service-full-card { padding: 16px 12px; }
  .service-full-header { gap: 10px; }
  .service-full-header h3 { font-size: 0.95rem; }

  /* Team cards: full width */
  .team-card { flex: 0 0 100%; }

  /* Cert cards: fill container */
  .cert-card { width: calc(100vw - 56px); min-width: 0; }

  /* About why tabs */
  .why-tab { padding: 10px 16px; font-size: 0.88rem; }

  /* About stats mobile */
  .about-stats-big-num { font-size: 4rem; }
  .about-stat-num { font-size: 1.8rem; }
  .about-stat-cell { padding: 20px 16px; }
}

/* ── Max-width 480px: compact phones ── */
@media (max-width: 480px) {
  /* Nav */
  .btn-nav-wa::after { content: none; }
  .btn-nav-wa { width: 34px; height: 34px; border-radius: 50%; padding: 0; }

  /* Hero CTAs */
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn { padding: 12px 16px; font-size: 0.88rem; }

  /* Section headers */
  .section-tag { font-size: 0.68rem; padding: 5px 10px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-item { padding: 24px 10px; }
  .stat-number { font-size: 2rem; }

  /* Pricing */
  .pricing-card { padding: 18px 12px; }
  .pricing-price { font-size: 1.6rem; }
  .pricing-price-pkr { font-size: 0.75rem; }

  /* Footer compact */
  .footer { padding: 20px 0 0; }
  .footer-brand p { font-size: 0.76rem; }
  .footer-heading { font-size: 0.65rem; }
  .footer-links a { font-size: 0.7rem; }

  /* FAQs */
  .faq-question { padding: 16px 18px; }
  .faq-question h4 { font-size: 0.875rem; }
  .faq-answer-inner { padding: 0 18px 16px; padding-top: 14px; font-size: 0.85rem; }

  /* Service detail */
  .service-cta-row { flex-direction: column; }
  .service-cta-row .btn { width: 100%; justify-content: center; }
  .service-detail-main h1 { font-size: 1.5rem; }

  /* About stats */
  .about-stats-big-num { font-size: 3.2rem; }
  .about-stats-feature { padding: 20px 16px; }
  .about-stats-desc { padding: 20px 16px; }
  .about-stats-desc h3 { font-size: 1.2rem; }
  .about-stats-desc p { font-size: 0.82rem; }
  .about-stat-num { font-size: 1.6rem; }
  .about-stat-label { font-size: 0.72rem; }

  /* Toast */
  .toast { min-width: min(260px, calc(100vw - 32px)); }

  /* WhatsApp float: smaller on tiny screens */
  .whatsapp-float { width: 48px; height: 48px; bottom: 20px; right: 20px; }
}

/* ── Max-width 400px: small phone additions ── */
@media (max-width: 400px) {
  /* Nav */
  .nav-logo { font-size: 1.1rem; }
  .nav-logo img { height: 22px; }

  /* Hero */
  .hero-badge { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2.2rem) !important; }
  .hero-ctas { gap: 6px; }
  .social-proof { gap: 8px; }
  .proof-item { font-size: 0.78rem; }

  /* Pricing tabs */
  .pricing-tab { padding: 6px 9px; font-size: 0.72rem; }
  .pricing-card { padding: 16px 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 14px 10px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }

  /* About stats */
  .about-stat-cell { padding: 16px 12px; }
  .about-stat-num { font-size: 1.4rem; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }

  /* CTA banner */
  .cta-banner { padding: 20px 10px; border-radius: var(--radius); }
  .cta-banner h2 { font-size: 1.3rem; }

  /* FAQ */
  .faq-question { padding: 14px 14px; }
  .faq-question h4 { font-size: 0.82rem; }
}

/* ── Max-width 360px: extra-small phones ── */
@media (max-width: 360px) {
  .container { padding: 0 10px; }

  /* Nav */
  .nav-container { padding: 0 10px; }
  .nav-logo img { height: 20px; }

  /* Hero */
  .hero-title { font-size: clamp(1.5rem, 8.5vw, 1.9rem) !important; }
  .hero-typewriter { font-size: 0.88rem; }

  /* Stats */
  .stats-grid { gap: 4px; }
  .stat-item { padding: 18px 8px; border-radius: 8px; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.7rem; }

  /* Sections */
  .section { padding: 28px 0; }
  .section-header { margin-bottom: 20px; }
  .section-tag { font-size: 0.62rem; padding: 4px 8px; }

  /* Pricing */
  .pricing-tab { padding: 5px 8px; font-size: 0.68rem; }
  .pricing-price { font-size: 1.4rem; }

  /* Service cards */
  .service-card { padding: 16px 10px; }
  .service-icon { width: 40px; height: 40px; }
  .service-card h3 { font-size: 0.92rem; }
  .service-card p { font-size: 0.82rem; }

  /* Feature cards */
  .feature-card { padding: 16px 10px; }

  /* Testimonials */
  .testimonial-text { font-size: 0.78rem; }
  .testimonial-card { padding: 16px 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .footer-brand { grid-column: unset; }
  .footer-grid > div:last-child { grid-column: unset; }
  .footer-contact-list { grid-template-columns: 1fr; }
  .footer-contact-list li { white-space: normal; overflow: visible; font-size: 0.68rem; }

  /* Modal */
  .modal-overlay { padding: 12px; }
  .modal-box { padding: 16px 10px; }
  .modal-thumb { height: 140px; }
}

/* ── Admin Panel — extended responsive ── */

/* 900px: admin panel fits narrower screens better */
@media (max-width: 900px) {
  #admin-panel { max-width: min(680px, calc(100vw - 32px)); }
  #admin-panel-overlay { padding: 16px; align-items: center; }
  #admin-dashboard { height: min(88vh, 620px); }
  .ap-sidebar { width: 156px; }
  .ap-nav-item { font-size: 0.78rem; padding: 8px 10px; gap: 8px; }
  .ap-panel { padding: 16px 14px; }
}

/* 768px: admin panel sidebar gets narrower */
@media (max-width: 768px) {
  #admin-panel { max-width: calc(100vw - 24px); max-height: 90vh; border-radius: 14px; }
  #admin-dashboard { height: min(86vh, 580px); }
  .ap-sidebar { width: 140px; }
  .ap-nav-item { font-size: 0.74rem; padding: 7px 8px; }
  .ap-panel { padding: 14px 12px; }
}

/* 480px: admin panel stacks earlier */
@media (max-width: 480px) {
  #admin-panel { max-width: calc(100vw - 16px); max-height: 94vh; border-radius: 12px; }
  #admin-panel-overlay { padding: 8px; }
  #admin-dashboard { flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; }
  .ap-sidebar {
    width: 100%; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 0 10px;
    border-right: none; border-bottom: 1px solid var(--border);
    min-height: 46px;
  }
  .ap-sidebar-top { flex-direction: row; align-items: center; gap: 0; }
  .ap-sidebar-brand { padding: 0; border-bottom: none; margin-bottom: 0; margin-right: 6px; }
  .ap-brand-logo { height: 20px; }
  .ap-nav { flex-direction: row; padding: 0; gap: 1px; }
  .ap-nav-item { padding: 5px 8px; font-size: 0.72rem; gap: 4px; }
  .ap-nav-item span { display: none; }
  .ap-sidebar-bottom { padding: 0; }
  .ap-logout-btn { padding: 5px 8px; font-size: 0; gap: 0; border-radius: 6px; }
  .ap-logout-btn svg { margin: 0; }
  .ap-content { overflow-y: auto; }
  .ap-panel { padding: 12px 10px; }
  .ap-premium-grid { grid-template-columns: 1fr; }
  #admin-login-form { padding: 24px 14px; min-height: unset; }
  .ap-action-row { flex-direction: column; align-items: stretch; }
  .ap-action-row .admin-status { text-align: center; }
  .ap-login-inner { max-width: 100%; }
}

/* ── Landscape phone fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: unset; height: auto; padding-top: calc(var(--nav-height) + 24px); padding-bottom: 32px; }
  .hero-content { height: auto; }
  .social-proof { padding: 10px 0; gap: 16px; flex-direction: row; flex-wrap: wrap; }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
  #admin-panel { max-height: 96vh; }
  #admin-dashboard { height: min(90vh, 480px); }
}

/* ── 1440px: PC monitor — additional component fixes ── */
@media (min-width: 1440px) {
  /* Pricing tabs: no wrapping needed */
  .pricing-tabs { flex-wrap: wrap; gap: 8px; }
  .pricing-tab { padding: 10px 22px; font-size: 0.9rem; }

  /* How-we-work: wider steps */
  .hww-step { padding: 32px 28px; }
  .hww-step h4 { font-size: 1.05rem; }
  .hww-step p { font-size: 0.9rem; }

  /* Contact grid: more gap */
  .contact-grid { gap: 72px; }
  .contact-info-list { gap: 28px; }

  /* FAQ: wider */
  .faq-list { max-width: 900px; }
  .faq-question { padding: 22px 28px; }
  .faq-question h4 { font-size: 1rem; }
  .faq-answer-inner { padding: 0 28px 22px; padding-top: 16px; }

  /* Service detail: wider main column */
  .service-detail-layout { grid-template-columns: 1fr 320px; gap: 56px; }
  .service-detail-main h1 { font-size: clamp(2rem, 3vw, 2.8rem); }

  /* Premium card: 2-col grid */
  .premium-card { padding: 56px; }
  .premium-grid { grid-template-columns: 1fr 1fr; gap: 56px; }

  /* Modal: wider */
  .modal-box { max-width: min(720px, calc(100vw - 48px)); padding: 48px; }
  .modal-thumb { height: 280px; }
}

/* ── 1920px: large monitor — additional component fixes ── */
@media (min-width: 1920px) {
  /* Pricing tabs */
  .pricing-tabs { gap: 10px; }
  .pricing-tab { padding: 12px 26px; font-size: 0.95rem; }

  /* How-we-work */
  .hww-step { padding: 40px 32px; }
  .hww-step h4 { font-size: 1.1rem; }
  .hww-step p { font-size: 0.95rem; }
  .hww-step-icon { width: 60px; height: 60px; margin-bottom: 24px; }

  /* Contact */
  .contact-grid { gap: 96px; }
  .contact-info-icon { width: 52px; height: 52px; border-radius: 14px; }

  /* FAQ */
  .faq-list { max-width: 1000px; }
  .faq-question { padding: 24px 32px; }
  .faq-question h4 { font-size: 1.05rem; }
  .faq-answer-inner { font-size: 0.95rem; padding: 0 32px 24px; padding-top: 18px; }

  /* Service detail layout */
  .service-detail-layout { grid-template-columns: 1fr 360px; gap: 72px; }
  .service-detail-main h1 { font-size: 3rem; }
  .service-detail-main > p { font-size: 1.05rem; }
  .service-included-grid { gap: 12px 40px; }
  .service-included-grid li { font-size: 0.95rem; }

  /* Premium card */
  .premium-card { padding: 72px 64px; margin-top: 80px; }
  .premium-grid { gap: 72px; }
  .premium-pricing { padding: 44px; }

  /* Modal */
  .modal-box { max-width: min(800px, calc(100vw - 64px)); padding: 56px; }
  .modal-thumb { height: 320px; }

  /* CTA banner */
  .cta-banner { padding: 96px 64px; }
  .cta-banner h2 { font-size: 2.8rem; }
  .cta-banner p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 36px; }

  /* Page hero */
  .page-hero { padding: 160px 0 88px; }
  .page-hero h1 { font-size: clamp(3rem, 3.5vw, 4.8rem); }
  .page-hero p { font-size: 1.2rem; max-width: 680px; }

  /* Admin panel: scales up too */
  #admin-panel { max-width: 820px; max-height: min(85vh, 700px); }
  #admin-dashboard { height: min(85vh, 700px); }
  .ap-sidebar { width: 200px; }
  .ap-nav-item { font-size: 0.9rem; padding: 10px 14px; }
  .ap-panel { padding: 24px; }
}
