/* =====================================================
   VUNO DEVS — Modern Frontend Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --primary:        #4f6ef7;
  --primary-dark:   #3a56d4;
  --primary-light:  #e8ecff;
  --accent:         #7c3aed;
  --accent-2:       #06b6d4;
  --secondary:      #0f172a;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --surface-3:      #f1f5f9;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-primary: 0 8px 24px rgba(79,110,247,0.25);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary:        #4f6ef7;
  --primary-dark:   #3a56d4;
  --primary-light:  #1e1f4a;
  --accent:         #a78bfa;
  --accent-2:       #67e8f9;
  --secondary:      #f1f5f9;
  --surface:        #1e293b;
  --surface-2:      #0f172a;
  --surface-3:      #1e293b;
  --border:         #334155;
  --border-light:   #1e293b;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --success:        #34d399;
  --warning:        #fbbf24;
  --danger:         #f87171;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-primary: 0 8px 24px rgba(79,110,247,0.4);
  .cta-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; }
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

section { padding: 6rem 0; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.display-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79,110,247,0.35);
  color: white;
}

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

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  color: white;
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ─── ══════════════════ HEADER ══════════════════ ─── */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  transition: all var(--transition);
}

#header.scrolled {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(79,110,247,0.3);
  flex-shrink: 0;
}

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

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-3);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile Nav */
/* ── Hamburger button ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition);
  width: 40px;
  height: 40px;
}
.mobile-menu:hover { background: var(--surface-3); border-color: var(--primary); }
.mobile-menu i { font-size: 1rem; line-height: 1; }

/* ── Backdrop overlay ── */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* ── Slide-in drawer ── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: min(300px, 85vw);
  background: var(--surface);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.mobile-nav.active { transform: translateX(0); }

/* ── Drawer header ── */
/* ── Drawer top bar (logo + close, NOT sticky) ── */
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-close {
  display: flex;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-3);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.mobile-close:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }

/* ── Drawer links ── */
.mobile-nav-body {
  padding: 0.75rem;
  flex: 1;
}

.mobile-nav-links { list-style: none; }

.mobile-nav-links li { margin-bottom: 2px; }
.mobile-nav.active .mobile-nav-links li { border-bottom: 1px solid var(--border-light) !important; padding-bottom: 2px !important; margin-bottom: 4px !important; }

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.mobile-nav-links a i {
  width: 18px; text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mobile-nav-links a:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}
.mobile-nav-links a:hover i { color: var(--primary); }
.mobile-nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.mobile-nav-links a.active i { color: var(--primary); }

/* ── Drawer footer CTAs ── */
.mobile-nav-cta {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-cta .btn { justify-content: center; width: 100%; }

/* ─── ══════════════════ HERO ══════════════════ ─── */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
  background: #050d1f;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(79,110,247,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(124,58,237,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 60%, rgba(6,182,212,0.15) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #7eb3ff 0%, #a78bfa 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.hero-card-dot {
  width: 12px; height: 12px; border-radius: 50%;
}

.hero-card-screen {
  background: rgba(15,23,42,0.6);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #7ee8a2;
  line-height: 2;
  border: 1px solid rgba(255,255,255,0.06);
}

.code-line { display: flex; gap: 10px; }
.code-comment { color: rgba(255,255,255,0.3); }
.code-keyword { color: #7eb3ff; }
.code-string { color: #fca5a5; }
.code-fn { color: #a78bfa; }
.code-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent-2);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero-badge {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: badgePop 3s ease-in-out infinite;
}

.hero-badge-1 {
  bottom: -20px;
  left: -30px;
  animation-delay: 0s;
}

.hero-badge-2 {
  top: -15px;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes badgePop {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.04) translateY(-4px); }
}

.badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ─── Section Titles ─── */
.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── ══════════════════ SERVICES ══════════════════ ─── */
.services-section { background: white; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,110,247,0.03), rgba(124,58,237,0.03));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,110,247,0.2);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}

.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
  position: relative;
  z-index: 1;
}

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

/* Service icon colours */
.si-blue   { background: rgba(79,110,247,0.1);  color: var(--primary); }
.si-purple { background: rgba(124,58,237,0.1);  color: var(--accent); }
.si-cyan   { background: rgba(6,182,212,0.1);   color: var(--accent-2); }
.si-green  { background: rgba(16,185,129,0.1);  color: var(--success); }
.si-amber  { background: rgba(245,158,11,0.1);  color: var(--warning); }
.si-rose   { background: rgba(239,68,68,0.1);   color: var(--danger); }

/* ─── ══════════════════ PORTFOLIO ══════════════════ ─── */
.portfolio-section { background: var(--surface-2); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.portfolio-item:hover .portfolio-image img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.portfolio-info { padding: 1.5rem; }

.portfolio-info h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }

.portfolio-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── ══════════════════ PROCESS ══════════════════ ─── */
.process-section { background: white; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 1rem;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 0;
}

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

.step-number {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-primary);
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(79,110,247,0.2);
}

.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.process-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; max-width: 180px; margin: 0 auto; }

/* ─── ══════════════════ TESTIMONIALS ══════════════════ ─── */
.testimonials-section { background: var(--surface-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.star-rating { display: flex; gap: 3px; margin-bottom: 1rem; }
.star-rating i { font-size: 0.85rem; color: var(--warning); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.author-info p { font-size: 0.8rem; color: var(--text-muted); }

/* ─── ══════════════════ CTA SECTION ══════════════════ ─── */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1040 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79,110,247,0.15), transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.cta-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ─── ══════════════════ FOOTER ══════════════════ ─── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,110,247,0.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo .logo { color: white; margin-bottom: 1rem; }

.footer-about p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h3 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-contact h3 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ─── ══════════════════ RESPONSIVE ══════════════════ ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-description { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 380px; }
  .hero-badge-1 { left: -10px; }
  .hero-badge-2 { right: -10px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu { display: flex; }
  .hero-visual { overflow: hidden; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .hero-visual { overflow: hidden; }
  .hero-card { max-width: 100%; }
  .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ─── Theme Toggle ─── */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.theme-toggle i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.theme-toggle .fa-sun { opacity: 0; transform: translate(-50%,-50%) scale(0.5) rotate(-90deg); }
.theme-toggle .fa-moon { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
[data-theme="dark"] .theme-toggle .fa-sun { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
[data-theme="dark"] .theme-toggle .fa-moon { opacity: 0; transform: translate(-50%,-50%) scale(0.5) rotate(90deg); }

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* ── Show bottom nav ── */
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 250;
    height: 64px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    padding: 0 8px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
  }

  /* ── Body padding so content isn't hidden behind nav ── */
  body { padding-bottom: 64px; }

  /* ── Nav items ── */
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
  }

  .mbn-item:active { transform: scale(0.9); }

  .mbn-item.active { color: var(--primary); }

  .mbn-item.active .mbn-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
  }

  .mbn-icon {
    position: relative;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--transition);
  }

  .mbn-item:active .mbn-icon { transform: scale(0.85) translateY(-2px); }
  .mbn-item.active .mbn-icon { transform: scale(1.1); }

  .mbn-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  /* ── Center CTA button ── */
  .mbn-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    margin: 0 4px;
  }

  .mbn-cta-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(79,110,247,0.45);
    transition: all var(--transition);
    position: relative;
    margin-top: -20px;
  }

  .mbn-cta-inner::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79,110,247,0.3), rgba(124,58,237,0.3));
    animation: mbnPulse 2.5s ease-in-out infinite;
    z-index: -1;
  }

  .mbn-cta:active .mbn-cta-inner { transform: scale(0.9); }

  @keyframes mbnPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 0; }
  }
}

[data-theme="dark"] .mobile-bottom-nav {
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED MOBILE STYLES — Creative & Polished
   ═══════════════════════════════════════════════════════════ */

/* ── Mobile Hero Improvements ── */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Hero code card — compact on mobile */
  .hero-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    animation: heroFloat 6s ease-in-out infinite;
  }

  .hero-card-screen {
    font-size: 0.72rem;
    line-height: 1.8;
    padding: 1rem;
  }

  /* Stats row — horizontal scrollable strip */
  .hero-stats {
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-left: 0;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stat { min-width: 100px; padding-right: 1.5rem; }
  .hero-stat-value { font-size: 1.6rem; }
}

/* ── Service Cards — mobile responsive ── */
@media (max-width: 480px) {
  .services-section .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    display: none;
  }

  .service-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
  .service-card p  { font-size: 0.85rem; margin-bottom: 0.75rem; }
  .service-link   { font-size: 0.85rem; }
}

/* ── Portfolio items — touch-friendly ── */
@media (max-width: 768px) {
  .portfolio-item { border-radius: var(--radius-md); }
  .portfolio-overlay { opacity: 1; }
  .portfolio-image { height: 200px; }
}

/* ── Process steps — vertical timeline on mobile ── */
@media (max-width: 576px) {
  .process-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    margin: 0;
    flex-shrink: 0;
  }

  .process-step p { max-width: 100%; }

  .process-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── Testimonials — snappy horizontal scroll on mobile ── */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
  }

  .testimonial-quote {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
}

/* ── Section title — tighter on mobile ── */
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* ── CTA section — better mobile ── */
@media (max-width: 768px) {
  .cta-section { padding: 4rem 0; }
  .cta-content h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .cta-buttons { flex-direction: column; align-items: stretch; padding: 0 1rem; }
  .cta-buttons .btn { justify-content: center; }
}

/* ── Footer — tighter mobile ── */
@media (max-width: 768px) {
  footer { padding: 3.5rem 0 2rem; }
  .footer-content { gap: 1.5rem; }
  .footer-social a { width: 42px; height: 42px; }
}

/* ── Touch ripple effect on cards ── */
@media (hover: none) {
  .service-card:active,
  .portfolio-item:active,
  .testimonial-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* ── Improved mobile buttons — larger tap targets ── */
@media (max-width: 768px) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 40px; }
}

/* ── Better section spacing on mobile ── */
@media (max-width: 480px) {
  section { padding: 3rem 0; }
  .container { width: 94%; }
}

/* ── Mobile-friendly form inputs (shared across pages) ── */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* ── Floating scroll-to-top pill (mobile) ── */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 84px;
  right: 16px;
  z-index: 240;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(79,110,247,0.4);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top-btn:active { transform: scale(0.9); }

@media (max-width: 768px) {
  .scroll-top-btn { display: flex; }
}

/* ═══ Page: portfolio.php ═══ */
.page-portfolio .portfolio-section { padding: 2rem 0 5rem; }
.page-portfolio .portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.page-portfolio .portfolio-item { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.page-portfolio .portfolio-image { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f0f0f0; }
.page-portfolio .portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.page-portfolio .portfolio-item:hover .portfolio-image img { transform: scale(1.05); }
.page-portfolio .portfolio-info { padding: 0.75rem 0 0; }
.page-portfolio .portfolio-info .category { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; margin-bottom: 0.15rem; }
.page-portfolio .portfolio-info h3 { font-size: 1rem; font-weight: 600; color: #1e2a4a; margin-bottom: 0.1rem; line-height: 1.3; }
.page-portfolio .portfolio-info .tech { font-size: 0.88rem; color: #6c757d; margin-top: 0.25rem; }
.page-portfolio .empty-state { text-align: center; padding: 6rem 2rem; }
.page-portfolio .empty-state i { font-size: 3.5rem; color: #d1d5db; margin-bottom: 1.5rem; }
.page-portfolio .empty-state h3 { font-size: 1.5rem; color: #1e2a4a; margin-bottom: 0.5rem; }
.page-portfolio .empty-state p { color: #6c757d; }
@media (max-width: 992px) { .page-portfolio .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .page-portfolio .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .page-portfolio .portfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; } .page-portfolio .portfolio-image { aspect-ratio: 4/3; } }

/* ═══ Page: demos.php ═══ */
.demos-hero { padding: 5rem 0 3rem; text-align: center; position: relative; overflow: hidden; background: #0f172a; }
.demos-hero::before { content: ''; position: absolute; top: -50%; left: 50%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(67,97,238,0.08) 0%, transparent 70%); transform: translate(-50%, -30%); pointer-events: none; }
.demos-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(79,110,247,0.12); color: #818cf8; border: 1px solid rgba(79,110,247,0.25); padding: 6px 16px; border-radius: 30px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.demos-hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-dot 1.5s ease-in-out infinite; }
.demos-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.75rem; color: #fff; }
.demos-hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto; color: rgba(255,255,255,0.5); }
.demos-section { padding: 2rem 0 5rem; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.demo-card { background: #1a1a2e; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); transition: all 0.4s ease; position: relative; }
.demo-card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.demo-card:hover { transform: translateY(-8px); border-color: rgba(67,97,238,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.demo-card-image { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #12121e; }
.demo-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.demo-card:hover .demo-card-image img { transform: scale(1.08); }
.demo-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s ease; }
.demo-card:hover .demo-card-overlay { opacity: 1; }
.demo-card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; backdrop-filter: blur(4px); }
.demo-live-badge { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; color: #4ade80; text-transform: uppercase; letter-spacing: 0.05em; }
.demo-live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.demo-category-tag { position: absolute; top: 14px; right: 14px; background: rgba(67,97,238,0.2); backdrop-filter: blur(6px); border: 1px solid rgba(67,97,238,0.2); padding: 5px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: 600; color: #818cf8; text-transform: uppercase; letter-spacing: 0.04em; }
.demo-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.demo-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.demo-card-body p { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.demo-visit-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; border-radius: 12px; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; }
.demo-visit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(67,97,238,0.4); }
.demo-explore-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; border-radius: 12px; font-size: 0.88rem; font-weight: 600; transition: all 0.3s; }
.demo-card:hover .demo-explore-btn { box-shadow: 0 8px 20px rgba(67,97,238,0.4); }
.empty-demos { text-align: center; padding: 6rem 2rem; }
.empty-demos i { font-size: 3.5rem; color: rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.empty-demos h3 { font-size: 1.5rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.empty-demos p { color: rgba(255,255,255,0.3); }
@media (max-width: 992px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .demos-hero h1 { font-size: 2.2rem; }
  .demo-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .demos-hero::before { width: 400px; height: 400px; }
}
@media (max-width: 480px) {
  .demos-hero { padding: 3rem 0 2rem; }
  .demos-hero h1 { font-size: 1.8rem; }
  .demos-hero p { font-size: 1rem; }
  .demos-section { padding: 1rem 0 3rem; }
  .demo-card-body { padding: 1rem 1.25rem 1.25rem; }
  .demo-card-body h3 { font-size: 1.05rem; }
  .demo-card-image { aspect-ratio: 4/3; }
  .demo-live-badge { top: 10px; left: 10px; font-size: 0.65rem; padding: 4px 10px; }
  .demo-category-tag { top: 10px; right: 10px; font-size: 0.6rem; padding: 4px 10px; }
}

/* ═══ Page: login.php ═══ */
body.login-page { background: #f9fafc; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.login-section { flex: 1; display: flex; justify-content: center; padding: 2rem 1rem; }
.login-card { background: #fff; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; text-align: center; flex: 1 1 420px; max-width: 420px; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #1e2a4a; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #1e2a4a; font-weight: 500; }
.form-group input { width: 100%; padding: 14px 15px; border: 1px solid #dee2e6; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; background: #fafbfc; }
.form-group input:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,0.1); background: #fff; }
.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; }
.alert-error { background: rgba(247,37,133,0.1); color: #f72585; border-left: 4px solid #f72585; }
.alert-success { background: rgba(76,201,240,0.1); color: #4cc9f0; border-left: 4px solid #4cc9f0; }
@media (max-width: 768px) { .login-card { padding: 2rem; } }
@media (max-width: 576px) { .login-card { padding: 1.5rem; } .login-card h1 { font-size: 1.5rem; } }
[data-theme="dark"] .login-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .login-card h1 { color: #f1f5f9; }
[data-theme="dark"] .form-group label { color: #f1f5f9; }

/* ═══ Page: project.php ═══ */
.page-project .project-hero { padding: 4rem 0 3rem; }
.page-project .project-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.page-project .project-hero-text .breadcrumb { font-size: 0.85rem; color: #6c757d; margin-bottom: 1rem; }
.page-project .project-hero-text .breadcrumb a { color: #4361ee; text-decoration: none; }
.page-project .project-hero-text .category-badge { display: inline-block; padding: 4px 14px; border-radius: 30px; background: rgba(67,97,238,0.08); color: #4361ee; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.page-project .project-hero-text h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.page-project .project-hero-text p { font-size: 1.1rem; color: #6c757d; margin-bottom: 1.5rem; line-height: 1.6; }
.page-project .tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.page-project .tech-tag { padding: 5px 14px; border-radius: 30px; background: #f1f5f9; color: #1e2a4a; font-size: 0.82rem; font-weight: 500; }
.page-project .project-hero-image { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.page-project .project-hero-image img { width: 100%; height: auto; display: block; }
.page-project .project-body { padding: 3rem 0 5rem; }
.page-project .project-body-inner { max-width: 800px; margin: 0 auto; }
.page-project .project-body-inner h2 { font-size: 1.6rem; margin: 2rem 0 1rem; color: #1e2a4a; }
.page-project .project-body-inner h2:first-child { margin-top: 0; }
.page-project .project-body-inner h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: #1e2a4a; }
.page-project .project-body-inner p { margin-bottom: 1rem; color: #374151; }
.page-project .project-body-inner ul, .page-project .project-body-inner ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-project .project-body-inner li { margin-bottom: 0.4rem; color: #374151; }
.page-project .project-body-inner img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.page-project .project-body-inner blockquote { border-left: 4px solid #4361ee; padding: 1rem 1.5rem; margin: 1.5rem 0; background: #f8fafc; border-radius: 0 10px 10px 0; color: #374151; }
.page-project .project-body-inner code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.page-project .project-body-inner pre { background: #1e293b; color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; }
.page-project .project-body-inner pre code { background: none; padding: 0; }
.page-project .project-actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.page-project .not-found { text-align: center; padding: 6rem 2rem; }
.page-project .not-found i { font-size: 4rem; color: #d1d5db; margin-bottom: 1.5rem; }
.page-project .not-found h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-project .not-found p { color: #6c757d; margin-bottom: 2rem; }
@media (max-width: 768px) { .page-project .project-hero-inner { grid-template-columns: 1fr; gap: 2rem; } .page-project .project-hero-text h1 { font-size: 1.8rem; } .page-project .project-hero-image { order: -1; } }

/* ═══ Page: blogs.php ═══ */
.blog-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 4.5rem 0 3.5rem; text-align: center; }
.blog-hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: 6px 16px; border-radius: 999px; margin-bottom: 1.2rem; }
.blog-hero-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.blog-hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 0.9rem; }
.blog-hero-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.blog-stats { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.blog-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.blog-stat-num { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.blog-stat-lbl { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-stat-div { width: 1px; height: 32px; background: var(--border); }
.blog-search-wrap { max-width: 480px; margin: 2rem auto 0; position: relative; }
.blog-search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.blog-search { width: 100%; padding: 12px 16px 12px 42px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text-primary); font-size: 0.92rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.blog-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,0.12); background: var(--surface); }
.blog-search::placeholder { color: var(--text-muted); }
.blog-main { padding: 3.5rem 0 5rem; }
.featured-wrap { margin-bottom: 3.5rem; }
.featured-label { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.featured-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); position: relative; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-card:hover .featured-img img { transform: scale(1.05); }
.featured-img-ph { width: 100%; height: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--border); background: linear-gradient(135deg, var(--primary-light), var(--surface-3)); }
.featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.featured-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: white; border-radius: 999px; padding: 4px 14px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; width: fit-content; }
.featured-title { font-size: clamp(1.25rem, 2.5vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-excerpt { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); padding-top: 0.5rem; border-top: 1px solid var(--border); }
.featured-meta .author-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.featured-meta .author-name { font-weight: 600; color: var(--text-secondary); }
.featured-meta .sep { color: var(--border); }
.featured-read-more { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 0.88rem; font-weight: 700; margin-top: 0.25rem; transition: gap 0.2s; }
.featured-card:hover .featured-read-more { gap: 11px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); flex-shrink: 0; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--border); background: linear-gradient(135deg, var(--primary-light), var(--surface-3)); }
.post-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-author-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; }
.post-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.58rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.post-author-name { font-weight: 600; color: var(--text-secondary); }
.post-date { color: var(--text-muted); margin-left: auto; }
.post-title { font-size: 1rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.01em; }
.post-excerpt { font-size: 0.855rem; color: var(--text-secondary); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.76rem; color: var(--text-muted); margin-top: auto; }
.post-footer-left { display: flex; align-items: center; gap: 10px; }
.post-stat { display: flex; align-items: center; gap: 4px; }
.post-read-link { font-size: 0.78rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.post-card:hover .post-read-link { gap: 8px; }
.blog-empty { grid-column: 1 / -1; text-align: center; padding: 5rem 2rem; }
.blog-empty-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--surface-3); color: var(--text-muted); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.blog-empty h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.blog-empty p { color: var(--text-secondary); font-size: 0.92rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3rem; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.15s; gap: 5px; }
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: var(--shadow-primary); }
.pg-btn.disabled { opacity: 0.35; pointer-events: none; }
.pg-dots { display: inline-flex; align-items: center; font-size: 0.85rem; color: var(--text-muted); padding: 0 4px; }
.search-banner { background: var(--primary-light); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: var(--radius-md); padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.search-banner p { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
.search-banner a { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.search-banner a:hover { color: var(--text-primary); }
.blog-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: var(--radius-xl); padding: 3.5rem 2.5rem; text-align: center; color: white; margin-top: 4rem; }
.blog-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: white; margin-bottom: 0.75rem; }
.blog-cta p { color: rgba(255,255,255,0.85); font-size: 0.98rem; max-width: 440px; margin: 0 auto 1.75rem; line-height: 1.65; }
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .featured-card { grid-template-columns: 1fr; } .featured-img { aspect-ratio: 16 / 8; } .featured-body { padding: 1.5rem; } .blog-hero { padding: 3rem 0 2.5rem; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } .blog-stats { gap: 1.2rem; } .blog-stat-div { height: 24px; } }

/* ═══ Page: post.php ═══ */
#readProgress { position: fixed; top: 0; left: 0; z-index: 9999; height: 3px; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.08s linear; pointer-events: none; border-radius: 0 2px 2px 0; }
.post-hero-wrap { background: var(--surface); border-bottom: 1px solid var(--border); padding: 3rem 0 0; }
.post-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; text-decoration: none; margin-bottom: 1.75rem; transition: color 0.15s; padding: 5px 0; }
.post-back:hover { color: var(--primary); }
.post-back i { font-size: 0.72rem; }
.post-header { max-width: 760px; margin: 0 auto; text-align: center; padding-bottom: 2rem; }
.post-category-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); border-radius: 999px; padding: 4px 14px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.post-hero-title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.13; color: var(--text-primary); margin-bottom: 1rem; }
.post-hero-excerpt { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.post-meta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.meta-pill i { font-size: 0.7rem; color: var(--text-muted); }
.meta-pill.author-pill { background: var(--primary-light); border-color: transparent; color: var(--primary); font-weight: 700; }
.meta-pill .av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.post-cover-wrap { max-width: 900px; margin: 0 auto; padding: 0 0 0; position: relative; }
.post-cover-card { border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: 0 -4px 32px rgba(0,0,0,0.10), 0 8px 40px rgba(0,0,0,0.12); background: var(--surface-3); margin-top: 2.5rem; aspect-ratio: 16 / 7; position: relative; }
.post-cover-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-card .cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.2); }
.post-cover-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--surface-2)); pointer-events: none; }
.post-body-wrap { padding: 2.5rem 0 5rem; }
.post-layout { display: grid; grid-template-columns: 1fr 270px; gap: 2.5rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.post-article { min-width: 0; }
.prose-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 3rem; box-shadow: var(--shadow-sm); }
.post-content { font-size: 1.05rem; line-height: 1.88; color: var(--text-secondary); }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; margin: 2.25rem 0 0.75rem; line-height: 1.25; }
.post-content h1 { font-size: 1.75rem; }
.post-content h2 { font-size: 1.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.post-content h3 { font-size: 1.15rem; }
.post-content h4 { font-size: 1rem; color: var(--text-secondary); }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1.75rem 0; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.post-content blockquote { border-left: 3px solid var(--primary); padding: 1.1rem 1.5rem; margin: 1.75rem 0; background: var(--primary-light); border-radius: 0 12px 12px 0; font-style: italic; color: var(--text-secondary); font-size: 1.05rem; }
.post-content blockquote p { margin: 0; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 1.5rem; border-radius: 12px; overflow-x: auto; margin: 1.75rem 0; font-size: 0.875rem; box-shadow: var(--shadow-md); line-height: 1.7; border: 1px solid rgba(255,255,255,0.07); }
.post-content code:not(pre code) { background: var(--surface-3); color: var(--primary); padding: 2px 7px; border-radius: 5px; font-size: 0.88em; border: 1px solid var(--border); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; }
.post-content th { background: var(--surface-3); font-weight: 700; text-align: left; }
.post-content tr:nth-child(even) td { background: var(--surface-2); }
.article-footer { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.back-link:hover { border-color: var(--primary); color: var(--primary); }
.share-group { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.share-group-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.share-btns { display: flex; gap: 6px; }
.share-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; cursor: pointer; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn.tw:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.share-btn.li:hover { background: #0077b5; border-color: #0077b5; color: #fff; }
.share-btn.cp:hover { background: var(--success); border-color: var(--success); color: #fff; }
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.sb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sb-card-head { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; }
.sb-card-body { padding: 14px 16px; }
.stat-rows { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; }
.stat-row .lbl { color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.stat-row .val { color: var(--text-primary); font-weight: 700; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: block; padding: 5px 10px; border-radius: 7px; font-size: 0.81rem; color: var(--text-secondary); text-decoration: none; border-left: 2px solid transparent; transition: all 0.15s; }
.toc-list a:hover { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); padding-left: 12px; }
.toc-list a.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); font-weight: 600; }
.toc-h3 a { padding-left: 20px; font-size: 0.77rem; opacity: 0.85; }
.toc-h3 a:hover { padding-left: 22px; }
.sb-share-row { display: flex; gap: 8px; }
.sb-share-btn { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; cursor: pointer; gap: 6px; font-weight: 600; font-size: 0.78rem; }
.sb-share-btn:hover { transform: translateY(-2px); }
.sb-share-btn.tw:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.sb-share-btn.li:hover { background: #0077b5; border-color: #0077b5; color: #fff; }
.sb-share-btn.cp:hover { background: var(--success); border-color: var(--success); color: #fff; }
.related-wrap { max-width: 1100px; margin: 0 auto; padding: 0 0 5rem; }
.related-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.related-head-title { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.related-head-line { flex: 1; height: 1px; background: var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-thumb { height: 120px; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-thumb img { transform: scale(1.07); }
.related-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--border); background: linear-gradient(135deg, var(--surface-3), var(--border-light)); }
.related-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.related-title-text { font-size: 0.87rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-meta-row { font-size: 0.74rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; margin-top: auto; }
.page-post .not-found { text-align: center; padding: 8rem 2rem; max-width: 480px; margin: 0 auto; }
.page-post .not-found-icon { width: 80px; height: 80px; border-radius: 22px; background: var(--surface-3); color: var(--text-muted); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.page-post .not-found h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.page-post .not-found p { color: var(--text-secondary); margin-bottom: 1.5rem; }
[data-theme="dark"] .prose-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .post-cover-card::after { background: linear-gradient(to bottom, transparent, #0f172a); }
[data-theme="dark"] .post-hero-wrap { background: var(--surface); }
[data-theme="dark"] .post-content th { background: var(--surface-3); }
[data-theme="dark"] .post-content tr:nth-child(even) td { background: #1e293b; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-sidebar { position: static; } .related-grid { grid-template-columns: repeat(2, 1fr); } .prose-card { padding: 1.75rem 1.5rem; } }
@media (max-width: 640px) { .post-hero-wrap { padding: 2rem 0 0; } .post-hero-title { font-size: 1.65rem; } .post-hero-excerpt { font-size: 0.95rem; } .post-cover-card { border-radius: 14px 14px 0 0; margin-top: 1.75rem; } .prose-card { padding: 1.25rem 1rem; border-radius: 12px; } .related-grid { grid-template-columns: 1fr; } .post-body-wrap { padding: 1.5rem 0 3rem; } }

/* ═══ Shared: Service Pages ═══ */
:root {
  --gray: #6c757d;
}
[data-theme="dark"] {
  --gray: #94a3b8;
}

/* ── Service Hero ── */
.services-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(88, 28, 135, 0.08));
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.services-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* ── Services Overview ── */
.services-overview {
    padding: 5rem 0;
}

/* ── Services Grid (4-col) ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.service-features i {
    color: var(--success);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* ── Detailed Services ── */
.detailed-services {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.03), rgba(30, 42, 74, 0.03));
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-detail:nth-child(even) .service-image {
    order: 2;
}

.service-detail:nth-child(even) .service-content {
    order: 1;
}

.service-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

/* ── Process Steps (Service Pages) ── */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 3rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary);
    z-index: 0;
}

/* ── Demo Section ── */
.demo-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.03), rgba(30, 42, 74, 0.03));
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.demo-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.demo-features {
    list-style: none;
    margin-bottom: 2rem;
}

.demo-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.demo-features i {
    color: var(--success);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.demo-form {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.demo-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

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

/* ── CTA Section (Service Pages) ── */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

/* ── Responsive: Service Pages ── */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail:nth-child(even) .service-image,
    .service-detail:nth-child(even) .service-content {
        order: unset;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-hero { padding: 3rem 0; }
    .services-hero h1 { font-size: 2rem; }
    .services-hero p { font-size: 1rem; }
    
    .services-overview { padding: 3rem 0; }
    .service-card { padding: 1.75rem 1.25rem; }
    .service-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 1rem; }
    .service-card h3 { font-size: 1.2rem; }
    
    .section-title h2 { font-size: 1.8rem; }
    
    .detailed-services { padding: 3rem 0; }
    .service-detail { gap: 1.5rem; margin-bottom: 3rem; }
    .service-content h3 { font-size: 1.5rem; }
    .service-stats { gap: 1.5rem; }
    .stat-value { font-size: 1.6rem; }
    
    .demo-section { padding: 3rem 0; }
    .demo-content h2 { font-size: 1.8rem; }
    .demo-form { padding: 1.5rem; }
    
    .process-section { padding: 3rem 0; }
    .process-step { padding: 0 0.5rem; }
    .process-step p { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   Page: about-us.php
   ═══════════════════════════════════════════════════════════ */
.about-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(30, 42, 74, 0.05));
    text-align: center;
}
.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.about-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
}
.about-section { padding: 5rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}
.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}
.about-image:hover img { transform: scale(1.05); }
.values-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.03), rgba(30, 42, 74, 0.03));
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}
.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.value-card p { color: var(--gray); }
.mission-vision { padding: 5rem 0; }
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.mission-card, .vision-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    position: relative;
}
.mission-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    border-radius: 5px 0 0 5px;
}
.mission-card h3, .vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
}
.mission-card h3 i, .vision-card h3 i {
    margin-right: 10px;
    color: var(--primary);
}
.mission-card p, .vision-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-item { padding: 2rem; }
.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--success);
}
.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}
.technology-section { padding: 5rem 0; }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.tech-grid .tech-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}
.tech-grid .tech-item:hover { transform: translateY(-5px); }
.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.tech-grid .tech-item h4 {
    font-size: 1.2rem;
    color: var(--secondary);
}
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.05), rgba(30, 42, 74, 0.05));
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}
.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
}

@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .about-hero h1 { font-size: 2.5rem; }
    .values-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .about-hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .mission-card, .vision-card { padding: 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   Page: contact-us.php
   ═══════════════════════════════════════════════════════════ */
.contact-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(30, 42, 74, 0.05));
    text-align: center;
}
.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
}
.contact-section { padding: 5rem 0; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    height: fit-content;
}
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}
.contact-methods { margin-bottom: 3rem; }
.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.contact-details p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.business-hours { margin-bottom: 2rem; }
.business-hours h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.hours-list { list-style: none; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}
.hours-list .day { font-weight: 500; }
.hours-list .time { color: var(--gray); }
.social-links {
    display: flex;
    gap: 1rem;
}
.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 15px;
    background: #fafbfc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-submit { margin-top: 1rem; }
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.03), rgba(30, 42, 74, 0.03));
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}
.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: flex-start;
}
.faq-item h4 i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}
.faq-item p { color: var(--gray); }

@media (max-width: 992px) {
    .contact-container { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .contact-hero h1 { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .contact-hero { padding: 3rem 0; }
    .contact-hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .contact-section { padding: 3rem 0; }
    .faq-section { padding: 3rem 0; }
    .contact-info, .contact-form { padding: 1.75rem; }
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .hours-list li {
        flex-direction: column;
        gap: 2px;
    }
}
@media (max-width: 400px) {
    .contact-hero h1 { font-size: 1.7rem; }
    .contact-info, .contact-form { padding: 1.25rem; }
    .contact-info h3, .contact-form h3 { font-size: 1.4rem; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
    .faq-item { padding: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   Page: case-studies.php
   ═══════════════════════════════════════════════════════════ */
.case-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(30, 42, 74, 0.05));
    text-align: center;
}
.case-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.case-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
}
.case-filter {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border);
}
.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.case-studies-section { padding: 4rem 0; }
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.case-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.case-card:hover .case-image img { transform: scale(1.1); }
.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(67, 97, 238, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.case-card:hover .case-overlay { opacity: 1; }
.case-actions {
    display: flex;
    gap: 1rem;
}
.case-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.case-btn:hover { transform: scale(1.1); }
.case-content { padding: 2rem; }
.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.case-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.case-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.case-stat { text-align: center; }
.case-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.case-label {
    font-size: 0.8rem;
    color: var(--gray);
}
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.case-tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.case-detail-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(67, 97, 238, 0.03), rgba(30, 42, 74, 0.03));
}
.case-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}
.case-header {
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.case-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.case-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.case-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.meta-item i { color: var(--success); }
.case-body { padding: 3rem; }
.case-section { margin-bottom: 3rem; }
.case-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
}
.case-section h3 i {
    margin-right: 10px;
    color: var(--primary);
}
.case-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.challenge-box, .solution-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}
.challenge-box h4, .solution-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.feature-content p {
    color: var(--gray);
    margin-bottom: 0;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.result-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}
.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.result-label {
    font-size: 0.9rem;
    color: var(--gray);
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}
.tech-stack .tech-item {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.testimonial-section { padding: 5rem 0; }
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-section .testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--gray);
    position: relative;
}
.testimonial-section .testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(67, 97, 238, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}
.testimonial-section .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.testimonial-section .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}
.testimonial-section .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-section .author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--secondary);
}
.testimonial-section .author-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

@media (max-width: 992px) {
    .case-grid { grid-template-columns: 1fr; }
    .challenge-solution { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .case-hero h1 { font-size: 2.5rem; }
    .case-header { padding: 2rem; }
    .case-header h2 { font-size: 2rem; }
    .case-body { padding: 2rem; }
    .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .case-hero h1 { font-size: 2rem; }
    .filter-options {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    .case-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Page: 404.php
   ═══════════════════════════════════════════════════════════ */
.error-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    width: 100%;
}
.error-container {
    text-align: center;
    width: 100%;
    padding: 3rem 2rem;
}
.error-icon {
    font-size: 8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0.8;
}
.error-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}
.error-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}
.error-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.quick-links {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    width: 100%;
}
.quick-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}
.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--secondary);
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--secondary);
}
.link-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.link-card:hover .link-icon { transform: scale(1.1); }
.link-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.link-card p {
    font-size: 0.9rem;
    color: var(--gray);
}
.search-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    width: 100%;
    transition: transform 0.3s ease;
}
.search-section:hover { transform: translateY(-3px); }
.search-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.search-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating { animation: float 5s ease-in-out infinite; }

@media (max-width: 992px) {
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .error-title { font-size: 4rem; }
    .error-subtitle { font-size: 1.5rem; }
    .error-icon { font-size: 6rem; }
    .links-grid { grid-template-columns: 1fr; }
    .search-form {
        flex-direction: column;
    }
    .search-input {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    .search-btn {
        border-radius: 8px;
        transform: none !important;
    }
    .search-btn:hover { transform: translateY(-2px) !important; }
}
@media (max-width: 576px) {
    .error-title { font-size: 3rem; }
    .error-subtitle { font-size: 1.3rem; }
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   Page: forgot-password.php
   ═══════════════════════════════════════════════════════════ */
body:has(.forgot-section) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.forgot-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.forgot-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.forgot-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.forgot-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}
.forgot-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.forgot-card p {
    color: var(--gray);
    margin-bottom: 2rem;
}
.forgot-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.forgot-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
}
.forgot-card .form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}
.forgot-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background: white;
}
.forgot-card .btn {
    width: 100%;
}
.forgot-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.forgot-footer p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.support-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.support-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.back-to-login {
    margin-top: 1.5rem;
    text-align: center;
}
.back-to-login a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}
.back-to-login a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.back-to-login i {
    margin-right: 0.5rem;
}
.success-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--success);
    text-align: left;
}
.success-message h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.success-message h4 i {
    color: var(--success);
    margin-right: 0.5rem;
}
.success-message p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}
.security-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--success);
}
.security-notice h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.security-notice h4 i {
    color: var(--success);
    margin-right: 0.5rem;
}
.security-notice p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .forgot-card { padding: 2rem; }
}
@media (max-width: 576px) {
    .forgot-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    .forgot-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .forgot-card h1 { font-size: 1.7rem; }
}

/* ═══ Page: post.php ═══ */

/* ── Reading progress bar ── */
#readProgress {
    position: fixed; top: 0; left: 0; z-index: 9999;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.08s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

/* ── Page background ── */
body { background: var(--surface-2); }

/* ════════════════════════════════════════
   HERO AREA
════════════════════════════════════════ */
.post-hero-wrap {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 0;
}

/* Breadcrumb */
.post-back {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
    text-decoration: none; margin-bottom: 1.75rem;
    transition: color 0.15s;
    padding: 5px 0;
}
.post-back:hover { color: var(--primary); }
.post-back i { font-size: 0.72rem; }

/* Title + excerpt + meta — centred, constrained */
.post-header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 2rem;
}

.post-category-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 999px; padding: 4px 14px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.post-hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900; letter-spacing: -0.03em;
    line-height: 1.13; color: var(--text-primary);
    margin-bottom: 1rem;
}

.post-hero-excerpt {
    font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1.5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Meta pill row */
.post-meta-row {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px;
}
.meta-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 13px;
    font-size: 0.78rem; color: var(--text-secondary); font-weight: 500;
}
.meta-pill i { font-size: 0.7rem; color: var(--text-muted); }
.meta-pill.author-pill {
    background: var(--primary-light); border-color: transparent;
    color: var(--primary); font-weight: 700;
}
.meta-pill .av {
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 0.6rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Cover image card ── */
.post-cover-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 0;
    position: relative;
}
.post-cover-card {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.10), 0 8px 40px rgba(0,0,0,0.12);
    background: var(--surface-3);
    margin-top: 2.5rem;
    aspect-ratio: 16 / 7;
    position: relative;
}
.post-cover-card img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.post-cover-card .cover-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,0.2);
}
.post-cover-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--surface-2));
    pointer-events: none;
}

/* ════════════════════════════════════════
   CONTENT AREA
════════════════════════════════════════ */
.post-body-wrap {
    padding: 2.5rem 0 5rem;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Article ── */
.post-article { min-width: 0; }

.prose-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

.post-content {
    font-size: 1.05rem; line-height: 1.88;
    color: var(--text-secondary);
}
.post-content h1, .post-content h2,
.post-content h3, .post-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.02em; margin: 2.25rem 0 0.75rem; line-height: 1.25;
}
.post-content h1 { font-size: 1.75rem; }
.post-content h2 {
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}
.post-content h3 { font-size: 1.15rem; }
.post-content h4 { font-size: 1rem; color: var(--text-secondary); }
.post-content p  { margin-bottom: 1.4rem; }
.post-content a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content img {
    max-width: 100%; border-radius: 12px; margin: 1.75rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1.1rem 1.5rem; margin: 1.75rem 0;
    background: var(--primary-light); border-radius: 0 12px 12px 0;
    font-style: italic; color: var(--text-secondary); font-size: 1.05rem;
}
.post-content blockquote p { margin: 0; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content pre {
    background: #0f172a; color: #e2e8f0;
    padding: 1.5rem; border-radius: 12px;
    overflow-x: auto; margin: 1.75rem 0; font-size: 0.875rem;
    box-shadow: var(--shadow-md); line-height: 1.7;
    border: 1px solid rgba(255,255,255,0.07);
}
.post-content code:not(pre code) {
    background: var(--surface-3); color: var(--primary);
    padding: 2px 7px; border-radius: 5px;
    font-size: 0.88em; border: 1px solid var(--border);
}
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; }
.post-content th { background: var(--surface-3); font-weight: 700; text-align: left; }
.post-content tr:nth-child(even) td { background: var(--surface-2); }

.article-footer {
    margin-top: 2.5rem; padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.back-link {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--text-secondary); font-size: 0.875rem; font-weight: 600;
    text-decoration: none; transition: all 0.15s;
}
.back-link:hover { border-color: var(--primary); color: var(--primary); }
.share-group { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.share-group-label {
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.share-btns { display: flex; gap: 6px; }
.share-btn {
    width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; color: var(--text-secondary);
    text-decoration: none; transition: all 0.15s; cursor: pointer;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn.tw:hover  { background:#1da1f2; border-color:#1da1f2; color:#fff; }
.share-btn.li:hover  { background:#0077b5; border-color:#0077b5; color:#fff; }
.share-btn.cp:hover  { background:var(--success); border-color:var(--success); color:#fff; }

/* ── Sidebar ── */
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }

.sb-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
}
.sb-card-head {
    padding: 11px 16px; border-bottom: 1px solid var(--border);
    font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    display: flex; align-items: center; gap: 6px;
}
.sb-card-body { padding: 14px 16px; }

.stat-rows { display: flex; flex-direction: column; gap: 10px; }
.stat-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.82rem;
}
.stat-row .lbl { color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.stat-row .val { color: var(--text-primary); font-weight: 700; }

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
    display: block; padding: 5px 10px; border-radius: 7px;
    font-size: 0.81rem; color: var(--text-secondary); text-decoration: none;
    border-left: 2px solid transparent; transition: all 0.15s;
}
.toc-list a:hover { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); padding-left: 12px; }
.toc-list a.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); font-weight: 600; }
.toc-h3 a { padding-left: 20px; font-size: 0.77rem; opacity: 0.85; }
.toc-h3 a:hover { padding-left: 22px; }

.sb-share-row { display: flex; gap: 8px; }
.sb-share-btn {
    flex: 1; padding: 9px 6px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; color: var(--text-secondary);
    text-decoration: none; transition: all 0.15s; cursor: pointer; gap: 6px;
    font-weight: 600; font-size: 0.78rem;
}
.sb-share-btn:hover { transform: translateY(-2px); }
.sb-share-btn.tw:hover { background:#1da1f2; border-color:#1da1f2; color:#fff; }
.sb-share-btn.li:hover { background:#0077b5; border-color:#0077b5; color:#fff; }
.sb-share-btn.cp:hover { background:var(--success); border-color:var(--success); color:#fff; }

/* ── Related posts ── */
.related-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 0 0 5rem;
}
.related-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 1.25rem;
}
.related-head-title {
    font-size: 1.05rem; font-weight: 800; color: var(--text-primary); white-space: nowrap;
}
.related-head-line {
    flex: 1; height: 1px; background: var(--border);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-thumb {
    height: 120px; overflow: hidden; background: var(--surface-3); flex-shrink: 0;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-thumb img { transform: scale(1.07); }
.related-thumb-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--border);
    background: linear-gradient(135deg, var(--surface-3), var(--border-light));
}
.related-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.related-title-text {
    font-size: 0.87rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.35; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta-row {
    font-size: 0.74rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 7px; margin-top: auto;
}

/* ── Not found ── */
.not-found {
    text-align: center; padding: 8rem 2rem; max-width: 480px; margin: 0 auto;
}
.not-found-icon {
    width: 80px; height: 80px; border-radius: 22px;
    background: var(--surface-3); color: var(--text-muted);
    font-size: 2rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.not-found h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.not-found p  { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── Dark mode extras ── */
[data-theme="dark"] .prose-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .post-cover-card::after { background: linear-gradient(to bottom, transparent, #0f172a); }
[data-theme="dark"] .post-hero-wrap { background: var(--surface); }
[data-theme="dark"] .post-content th { background: var(--surface-3); }
[data-theme="dark"] .post-content tr:nth-child(even) td { background: #1e293b; }

@media (max-width: 960px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .prose-card { padding: 1.75rem 1.5rem; }
}
@media (max-width: 640px) {
    .post-hero-wrap { padding: 2rem 0 0; }
    .post-hero-title { font-size: 1.65rem; }
    .post-hero-excerpt { font-size: 0.95rem; }
    .post-cover-card { border-radius: 14px 14px 0 0; margin-top: 1.75rem; }
    .prose-card { padding: 1.25rem 1rem; border-radius: 12px; }
    .related-grid { grid-template-columns: 1fr; }
    .post-body-wrap { padding: 1.5rem 0 3rem; }
}
