/* ============================================
   Enterprise Data Solutions - Custom Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0066FF;
  --primary-dark: #0047CC;
  --primary-deeper: #003399;
  --primary-light: #3385FF;
  --accent: #FFB800;
  --accent-light: #FFD54F;
  --accent-gradient: linear-gradient(135deg, #FFB800, #FFD54F);
  --text-light: #f8fafc;
  --text-muted: #5f6b7a;
  --text-dark: #0f172a;
  --success: #10b981;
  --bg-blue-light: #EEF4FF;
  --bg-blue-soft: #F7F9FF;
  --bg-section: #f8fafc;
  --border-color: #dce4f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,60,180,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 25px rgba(0,60,180,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 40px rgba(0,60,180,0.1), 0 6px 12px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  --bg-blue-light: #1e2d45;
  --bg-blue-soft: #162033;
  --bg-section: #0f172a;
  --border-color: rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.5);
}

[data-theme="dark"] body { background: #0f172a; color: #f1f5f9; }

/* ---- Navbar ---- */
[data-theme="dark"] .navbar { background: rgba(15,23,42,0.6); }
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15,23,42,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] .navbar.scrolled .nav-links a      { color: #f1f5f9; }
[data-theme="dark"] .navbar.scrolled .brand-name        { color: #f1f5f9 !important; }
[data-theme="dark"] .navbar.scrolled .brand-tagline     { color: rgba(255,255,255,0.5) !important; }
[data-theme="dark"] .page-inner .navbar:not(.scrolled) .nav-links a { color: #f1f5f9; }
[data-theme="dark"] .page-inner .navbar:not(.scrolled) .brand-name  { color: #f1f5f9 !important; }
[data-theme="dark"] .page-inner .navbar:not(.scrolled) .hamburger span { background: #f1f5f9; }

/* ---- Sections ---- */
[data-theme="dark"] .section-white  { background: #162033; }
[data-theme="dark"] .section-light  { background: #0f172a; }
[data-theme="dark"] .section-dark   { background: #1a2744; }
[data-theme="dark"] .page-hero      { background: #162033; }
[data-theme="dark"] .hero-new       { background: #0f172a; }
[data-theme="dark"] .cta-section    { background: #0f172a; }

/* ---- Cards ---- */
[data-theme="dark"] .service-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .admin-login-box,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .filter-btn {
  background: #1e293b;
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .filter-btn       { color: #94a3b8; }
[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover { background: var(--primary); color: #fff; border-color: transparent; }

/* ---- Hero dashboard cards ---- */
[data-theme="dark"] .dash-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ---- Service visual cards & chips ---- */
[data-theme="dark"] .svc-main-card  { background: #1e293b; color: #f1f5f9; }
[data-theme="dark"] .svc-chip       { background: #1e293b; color: #f1f5f9; }
[data-theme="dark"] .svc-main-card-header { border-color: rgba(255,255,255,0.08); color: #f1f5f9; }
[data-theme="dark"] .svc-status-row { color: #e2e8f0; }

/* ---- Forms ---- */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .admin-field input,
[data-theme="dark"] .admin-field select,
[data-theme="dark"] .admin-field textarea {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
[data-theme="dark"] .form-group label,
[data-theme="dark"] .admin-field label { color: #94a3b8; }
[data-theme="dark"] .admin-post-item   { border-color: rgba(255,255,255,0.07); }

/* ---- Blog article ---- */
[data-theme="dark"] .blog-article         { color: #cbd5e1; }
[data-theme="dark"] .blog-article h2,
[data-theme="dark"] .blog-article h3      { color: #f1f5f9; }
[data-theme="dark"] .blog-article blockquote { background: #0f172a; border-color: var(--primary); color: #94a3b8; }
[data-theme="dark"] .post-meta .category  { background: rgba(0,102,255,0.2); }
[data-theme="dark"] .related-posts h3     { color: #f1f5f9; }

/* ---- Legal / Privacy ---- */
[data-theme="dark"] .legal-content h2    { color: #f1f5f9; }
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li    { color: #94a3b8; }

/* ---- Footer ---- */
[data-theme="dark"] .footer { background: linear-gradient(180deg, #060d1f 0%, #030812 100%); }

/* ---- Miscellaneous ---- */
[data-theme="dark"] .section-header h2   { color: #f1f5f9; }
[data-theme="dark"] .blog-card-image     { background: linear-gradient(135deg, #1a2744, #1e2d45); }
[data-theme="dark"] .map-placeholder     { background: #1e293b; }
[data-theme="dark"] .team-socials        { border-color: rgba(255,255,255,0.07); }

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.dark-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.dark-toggle:hover { background: rgba(255,255,255,0.15); }

/* Inner pages: navbar is over white hero — make toggle dark */
.page-inner .navbar:not(.scrolled) .dark-toggle {
  border-color: rgba(0,0,0,0.15);
  color: var(--text-dark);
}
/* Once scrolled, navbar is white — keep toggle dark */
.navbar.scrolled .dark-toggle {
  border-color: rgba(0,0,0,0.15);
  color: var(--text-dark);
}
/* Dark mode overrides — always light icon */
[data-theme="dark"] .dark-toggle,
[data-theme="dark"] .page-inner .navbar:not(.scrolled) .dark-toggle,
[data-theme="dark"] .navbar.scrolled .dark-toggle {
  border-color: rgba(255,255,255,0.2);
  color: #f1f5f9;
}

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ======================================
   NAVBAR
   ====================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 40, 140, 0.1);
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

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

.navbar.scrolled .nav-links a::after {
  background: var(--primary);
}

.navbar.scrolled .brand-name {
  color: var(--text-dark) !important;
}

.navbar.scrolled .brand-tagline {
  color: var(--text-muted) !important;
}

.navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.navbar.scrolled .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,80,200,0.2);
}

.navbar.scrolled .nav-cta:hover {
  background: var(--primary-dark) !important;
}

.navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo .logo-text .brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-logo .logo-text .brand-tagline {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .nav-logo .logo-text {
    display: none;
  }
  .nav-logo .logo-img {
    width: 38px;
    height: 38px;
  }
}

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

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

.nav-cta {
  background: #fff;
  color: var(--primary) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(255,184,0,0.35);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .dark-toggle {
    order: 2;
  }
  .hamburger {
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Override dark-text nav for mobile open menu */
  .page-home .navbar:not(.scrolled) .nav-links.open a,
  .page-inner .navbar:not(.scrolled) .nav-links.open a {
    color: rgba(255,255,255,0.7);
  }

  .page-home .navbar:not(.scrolled) .nav-links.open a:hover,
  .page-home .navbar:not(.scrolled) .nav-links.open a.active,
  .page-inner .navbar:not(.scrolled) .nav-links.open a:hover,
  .page-inner .navbar:not(.scrolled) .nav-links.open a.active {
    color: #fff;
  }

  .page-home .navbar:not(.scrolled) .nav-links.open .nav-cta,
  .page-inner .navbar:not(.scrolled) .nav-links.open .nav-cta {
    background: #fff !important;
    color: var(--primary) !important;
  }

  /* Scrolled white nav — mobile hamburger stays dark */
  .navbar.scrolled .hamburger span {
    background: var(--text-dark);
  }
}

/* ======================================
   HERO — New Split Layout
   ====================================== */
.hero-new {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  overflow: hidden;
  padding-top: 80px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 260px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* --- Left side --- */
.hero-left {
  padding: 2rem 0;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}

.hero-feature-item i {
  color: var(--primary);
  font-size: 0.8rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.btn-hero-cta {
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,80,200,0.25);
}

.hero-handwritten {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-arrow-svg {
  flex-shrink: 0;
}

.handwritten-text {
  font-family: 'Caveat', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-stars {
  display: flex;
  gap: 2px;
}

.hero-stars i {
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-rating-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-rating-label i {
  color: var(--success);
  font-size: 0.8rem;
}

/* --- Right side: Dashboard mockup --- */
.hero-right {
  position: relative;
  min-height: 520px;
}

.hero-dashboard {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Base dash card */
.dash-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,40,120,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,60,180,0.06);
  padding: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-card:hover {
  transform: translateY(-4px);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-card-title i {
  color: var(--primary);
}

.dash-card-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.dash-card-title-sm {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.75rem;
}

/* Main dashboard card */
.dash-main {
  top: 0;
  left: 0;
  width: 280px;
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.dash-stat {
  background: var(--bg-blue-soft);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.dash-stat-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.dash-stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pie chart card */
.dash-pie {
  top: 10px;
  right: 0;
  width: 210px;
  z-index: 4;
  animation: floatCard 7s ease-in-out infinite reverse;
}

.dash-pie-chart {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.75rem;
}

.pie-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash-pie-legend {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-pie-legend i {
  font-size: 0.5rem;
  margin-right: 2px;
}

/* Actions card */
.dash-actions {
  top: 240px;
  left: -20px;
  width: 220px;
  z-index: 5;
  animation: floatCard 8s ease-in-out infinite;
}

.dash-action-btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-action-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
  cursor: default;
  text-align: left;
  transition: none;
}

.dash-action-btn.blue {
  background: var(--primary);
  color: #fff;
}

.dash-action-btn.green {
  background: var(--success);
  color: #fff;
}

.dash-action-btn.outline {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

/* Testimonial mini card */
.dash-testimonial {
  bottom: 0;
  right: -10px;
  width: 260px;
  z-index: 5;
  animation: floatCard 9s ease-in-out infinite reverse;
}

.dash-testimonial-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 0.65rem;
}

.dash-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-testimonial-author strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dark);
}

.dash-testimonial-author span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Users card */
.dash-users {
  top: 180px;
  right: 50px;
  width: 180px;
  z-index: 6;
  padding: 0.8rem 1rem;
  animation: floatCard 5s ease-in-out infinite;
}

.dash-user-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dash-avatar-sm.blue {
  background: linear-gradient(135deg, #0066FF, #3385FF);
}

.dash-user-info strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dark);
}

.dash-status {
  font-size: 0.6rem;
  font-weight: 600;
}

.dash-status.online {
  color: var(--success);
}

/* Float animation for cards */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Navbar on hero-new: ensure it stays styled */
.hero-new ~ .section:first-of-type {
  position: relative;
}

/* Navbar transparent on white hero — homepage only */
.page-home .navbar:not(.scrolled) {
  background: rgba(255,255,255,0.0);
}

.page-home .navbar:not(.scrolled) .nav-links a {
  color: var(--text-dark);
}

.page-home .navbar:not(.scrolled) .nav-links a:hover,
.page-home .navbar:not(.scrolled) .nav-links a.active {
  color: var(--primary);
}

.page-home .navbar:not(.scrolled) .nav-links a::after {
  background: var(--primary);
}

.page-home .navbar:not(.scrolled) .nav-logo .brand-name {
  color: var(--text-dark);
}

.page-home .navbar:not(.scrolled) .nav-logo .brand-tagline {
  color: var(--text-muted);
}

.page-home .navbar:not(.scrolled) .hamburger span {
  background: var(--text-dark);
}

.page-home .navbar:not(.scrolled) .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,80,200,0.2);
}

.page-home .navbar:not(.scrolled) .nav-cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* Inner pages: same dark-text navbar on white hero */
.page-inner .navbar:not(.scrolled) {
  background: rgba(255,255,255,0.0);
}

.page-inner .navbar:not(.scrolled) .nav-links a {
  color: var(--text-dark);
}

.page-inner .navbar:not(.scrolled) .nav-links a:hover,
.page-inner .navbar:not(.scrolled) .nav-links a.active {
  color: var(--primary);
}

.page-inner .navbar:not(.scrolled) .nav-links a::after {
  background: var(--primary);
}

.page-inner .navbar:not(.scrolled) .nav-logo .brand-name {
  color: var(--text-dark);
}

.page-inner .navbar:not(.scrolled) .nav-logo .brand-tagline {
  color: var(--text-muted);
}

.page-inner .navbar:not(.scrolled) .hamburger span {
  background: var(--text-dark);
}

.page-inner .navbar:not(.scrolled) .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,80,200,0.2);
}

.page-inner .navbar:not(.scrolled) .nav-cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* --- Hero Responsive --- */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  .dash-main { width: 240px; }
  .dash-pie { width: 180px; }
  .dash-actions { width: 190px; left: -10px; }
  .dash-testimonial { width: 220px; }
  .dash-users { right: 20px; }
}

@media (max-width: 768px) {
  .hero-new {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    padding: 1rem 0;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-cta-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-rating {
    justify-content: center;
  }

  .hero-right {
    min-height: 400px;
  }

  .dash-main { left: 5%; width: 60%; top: 0; }
  .dash-pie { right: 0; top: 10px; width: 45%; }
  .dash-actions { left: 0; top: auto; bottom: 60px; width: 50%; }
  .dash-testimonial { right: 0; bottom: 0; width: 55%; }
  .dash-users { top: auto; bottom: 170px; right: 5%; width: 45%; }
}

@media (max-width: 480px) {
  .hero-right {
    min-height: 350px;
  }

  .dash-card {
    padding: 0.8rem;
    border-radius: 12px;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

/* ======================================
   PAGE HERO — New White Style
   ====================================== */
.page-hero {
  padding: 9rem 0 4rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.04) 0%, transparent 70%);
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 0;
  background: linear-gradient(to top, var(--bg-blue-soft) 0%, transparent 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb i {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,80,200,0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,80,200,0.3);
}

/* Hero buttons — blue CTA on white bg */
.hero-new .btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,80,200,0.25);
}

.hero-new .btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,80,200,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-2px);
}

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

.btn-dark:hover {
  background: var(--primary-deeper);
  transform: translateY(-2px);
}

/* ======================================
   SECTIONS
   ====================================== */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-blue-light);
  color: var(--text-dark);
}

.section-light {
  background: #fff;
}

.section-white {
  background: var(--bg-blue-soft);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
  background: rgba(0, 102, 255, 0.07);
  color: var(--primary);
  border: 1px solid rgba(0,102,255,0.1);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ======================================
   SERVICE CARDS
   ====================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,102,255,0.15);
  box-shadow: var(--shadow-xl);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,102,255,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.service-card .learn-more:hover {
  gap: 0.7rem;
}

/* ======================================
   STATS
   ====================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
  letter-spacing: -1px;
}

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

/* ======================================
   TESTIMONIALS
   ====================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

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

.testimonial-stars {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ======================================
   CTA
   ====================================== */
.cta-section {
  padding: 5rem 0;
  background: #fff;
}

.cta-box {
  background: linear-gradient(135deg, #0052CC 0%, #0066FF 50%, #3385FF 100%);
  border: none;
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,184,0,0.04) 0%, transparent 50%);
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.3px;
}

.cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-box .btn {
  position: relative;
}

.cta-box .btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255,184,0,0.3);
}

.cta-box .btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 25px rgba(255,184,0,0.4);
}

/* ======================================
   FEATURE LIST
   ====================================== */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.feature-list li i {
  color: var(--success);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ======================================
   SERVICE DETAIL
   ====================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.service-detail-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-detail-visual {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 320px;
  position: relative;
  overflow: visible;
}

.service-visual-icon-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 14px rgba(0,102,255,0.07),
    0 0 0 28px rgba(0,102,255,0.04),
    0 8px 32px rgba(0,102,255,0.15);
}

.service-visual-icon-wrap i {
  font-size: 4rem;
  color: var(--primary);
}

.service-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
}

/* ======================================
   SERVICE ANIMATED ILLUSTRATIONS
   ====================================== */
.svc-scene {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Drifting background orbs */
.svc-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.09);
  animation: orbDrift ease-in-out infinite;
  pointer-events: none;
}
.svc-orb.o1 { width: 130px; height: 130px; top: -30px; left: -30px; animation-duration: 7s; }
.svc-orb.o2 { width: 90px;  height: 90px;  bottom: -20px; right: 20px; animation-duration: 9s; animation-delay: 1.5s; }
.svc-orb.o3 { width: 60px;  height: 60px;  top: 40%; left: 50%; animation-duration: 6s; animation-delay: 3s; background: rgba(0,102,255,0.06); }

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(18px, -22px) scale(1.06); }
  66%  { transform: translate(-12px, 12px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Floating metric chips */
.svc-chip {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  padding: 0.42rem 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  z-index: 3;
  line-height: 1.3;
}

.svc-chip i { font-size: 0.78rem; }

/* Animation variants — staggered float paths */
.svc-chip.a1 { animation: chipDrift1 4s ease-in-out infinite; }
.svc-chip.a2 { animation: chipDrift2 5s ease-in-out infinite 1s; }
.svc-chip.a3 { animation: chipDrift3 4.5s ease-in-out infinite 2s; }

@keyframes chipDrift1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-10px) translateX(4px); }
}
@keyframes chipDrift2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(8px) translateX(-5px); }
}
@keyframes chipDrift3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-7px) translateX(-6px); }
}

.svc-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-green { color: #10b981; }
.chip-blue  { color: var(--primary); }
.chip-amber { color: #f59e0b; }

/* ======================================
   SERVICE MINI DASHBOARD CARDS
   ====================================== */

/* Orbs — sized for the visual column */
.svc-orb.o1 { width: 200px; height: 200px; top: -50px;  right: -40px; animation-duration: 9s; }
.svc-orb.o2 { width: 140px; height: 140px; bottom: -35px; left: 10%;  animation-duration: 11s; animation-delay: 2s; }
.svc-orb.o3 { width: 90px;  height: 90px;  top: 38%; left: 38%;       animation-duration: 7s;  animation-delay: 3.5s; background: rgba(0,102,255,0.05); }

/* Centered card wrapper */
.svc-main-card-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

/* The card itself */
.svc-main-card {
  width: 230px;
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 14px 44px rgba(0,60,180,0.13), 0 4px 12px rgba(0,0,0,0.06);
  animation: cardBob 5s ease-in-out infinite;
}

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

.svc-main-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
}
.svc-main-card-header i { font-size: 0.88rem; }

/* Bar chart */
.svc-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  margin-bottom: 0.65rem;
}
.svc-bar {
  flex: 1;
  background: var(--bar-color, var(--primary));
  border-radius: 4px 4px 0 0;
  opacity: 0.82;
  min-width: 0;
}
.svc-main-card-footer {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* Status rows */
.svc-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.svc-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dark);
}
.svc-status-row i { font-size: 0.72rem; flex-shrink: 0; }
.svc-status-val {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.67rem;
}

/* Pipeline steps */
.svc-pipeline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.3rem 0 0.5rem;
}
.svc-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-blue-light);
  border-radius: 9px;
  padding: 0.45rem 0.5rem;
  min-width: 50px;
}
.svc-pipeline-step i    { font-size: 0.95rem; color: var(--text-muted); }
.svc-pipeline-step.done { background: rgba(16,185,129,0.1); }
.svc-pipeline-step.done i { color: #10b981; }
.svc-pipeline-step.active { background: rgba(0,102,255,0.1); }
.svc-pipeline-step.active i { color: var(--primary); }
.svc-pipeline-arrow { color: var(--text-muted); font-size: 0.6rem; flex-shrink: 0; }

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail.reverse {
    direction: ltr;
  }
}

/* ======================================
   PROCESS STEPS
   ====================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 15px rgba(0,102,255,0.2);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================================
   VALUES
   ====================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,102,255,0.12);
}

.value-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,102,255,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 1.2rem;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ======================================
   TEAM
   ====================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-photo .team-initials {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.team-photo i {
  font-size: 4rem;
  color: rgba(0,102,255,0.15);
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.team-info .role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.team-socials a {
  color: #b0bec5;
  font-size: 1rem;
  transition: var(--transition);
}

.team-socials a:hover {
  color: var(--primary);
}

/* ======================================
   CONTACT FORM
   ====================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition);
  background: #fff;
}

.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(0,102,255,0.08);
}

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

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  background: linear-gradient(135deg, #0052CC, #0066FF);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.info-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.info-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.info-item a {
  color: rgba(255,255,255,0.85);
}

.info-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Map placeholder */
.map-placeholder {
  background: var(--bg-blue-light);
  border-radius: var(--radius);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.88rem;
  opacity: 0.5;
}

/* ======================================
   BLOG
   ====================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-blue-light), #dbeaff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image i {
  font-size: 3rem;
  color: rgba(0,102,255,0.12);
}

.blog-card-image .category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.blog-card-body h3 a:hover {
  color: var(--primary);
}

.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.read-more:hover {
  gap: 0.7rem;
}

/* Blog filter */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,102,255,0.2);
}

/* Blog post single */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content .featured-image {
  height: 400px;
  background: linear-gradient(135deg, var(--bg-blue-light), #dbeaff);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.blog-post-content .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-content .featured-image i {
  font-size: 5rem;
  color: rgba(0,102,255,0.12);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.post-meta span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.post-meta .category {
  background: rgba(0,102,255,0.07);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.blog-article {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.blog-article p {
  margin-bottom: 1.25rem;
}

.blog-article ul, .blog-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-article li {
  margin-bottom: 0.5rem;
}

.blog-article blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* ======================================
   TRUST LOGOS
   ====================================== */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.35;
}

.trust-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
  background: linear-gradient(180deg, #002B80 0%, #001F5C 100%);
  padding: 4.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-about .footer-logo .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.footer-about p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links li {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ======================================
   BACK TO TOP
   ====================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 15px rgba(0,102,255,0.25);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,102,255,0.35);
  background: var(--primary-dark);
}

/* ---------- Form Messages ---------- */
.form-message {
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  display: block;
}

/* ---------- Privacy Page ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

.legal-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ---------- Loading spinner ---------- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ======================================
   ADMIN PANEL
   ====================================== */
.admin-login-box {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 1.5rem;
}

.admin-login-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.admin-login-box > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.admin-field {
  text-align: left;
  margin-bottom: 1.2rem;
}

.admin-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

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

.admin-login-error {
  color: #ef4444;
  font-size: 0.84rem;
  margin-bottom: 1rem;
  min-height: 1.2rem;
}

/* Admin Dashboard */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 6rem;
}

.admin-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.admin-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.admin-card h3 i {
  color: var(--primary);
  margin-right: 0.5rem;
}

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

.admin-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Admin Posts List */
.admin-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-section);
  transition: var(--transition);
  gap: 1rem;
}

.admin-post-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.admin-post-info {
  flex: 1;
  min-width: 0;
}

.admin-post-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-post-info .admin-post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-post-actions button {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-post-actions .edit-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-post-actions .delete-btn {
  color: #ef4444;
  border-color: #fecaca;
}

.admin-post-actions .delete-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-tab-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 50px 50px 0 0;
  border: none;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-tab-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.admin-tab-btn.active {
  background: #fff;
  color: var(--primary);
}

/* Admin post info — allow title wrapping */
.admin-post-info h4 {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Preview button */
.admin-post-actions .preview-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-post-actions .preview-btn:hover {
  background: #f0fdf4;
  color: #10b981;
  border-color: #10b981;
}

/* Admin header fix — remove old padding-top */
.admin-header {
  padding-top: 0;
  margin-bottom: 1rem;
}

/* Form message styling */
.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

@media (max-width: 768px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  .admin-post-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-login-box {
    padding: 2rem 1.5rem;
  }
  .admin-tabs {
    flex-wrap: wrap;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }
}
