/* ==========================================================================
   REW.CL - Modern High-End Design System (Light Edition)
   Crafted for Alvaro Valenzuela Valdes / REW Agency
   ========================================================================== */

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

:root {
  /* Brand Core Colors */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fffbeb;
  --accent-gold-glow: rgba(245, 158, 11, 0.2);

  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  /* Neutrals (Light Palette) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-light: #e2e8f0;
  --border-focus: #cbd5e1;
  --border-glow: rgba(79, 70, 229, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.container-fluid {
  max-width: 1440px;
}

.section {
  padding: 5rem 0;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
/* ==========================================================================
   Modern Sticky Header & Floating Glass Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-inner {
  height: 64px;
}

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

.logo-badge-container {
  display: flex;
  align-items: center;
  background: #0f172a;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .logo-badge-container {
  padding: 6px 12px;
  transform: scale(0.94);
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .logo-img {
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--accent-gold);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  position: relative;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(79, 70, 229, 0.28);
}

/* ==========================================================================
   Full-Width Mega Menu (Zero Gap & Seamless Interaction)
   ========================================================================== */
.nav-item-dropdown {
  position: static;
}

.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 35px 70px -10px rgba(15, 23, 42, 0.22);
  padding: 2.25rem 0 1.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1050;
  pointer-events: none;
}

/* Invisible Bridge: Ensures mouse hover NEVER drops when moving cursor into the menu */
.mega-menu-container::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
  z-index: 1051;
}

.nav-item-dropdown:hover .mega-menu-container,
.nav-item-dropdown.is-open .mega-menu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-full-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-category-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mega-service-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border: 1px solid transparent;
}

.mega-service-card-v2:hover,
.mega-service-card-v2.active {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  transform: translateX(5px);
}

.mega-service-card-v2.current-page {
  background: rgba(79, 70, 229, 0.09);
  border-color: var(--primary);
  box-shadow: 0 4px 14px -3px rgba(79, 70, 229, 0.15);
}

.mega-service-card-v2.current-page .mega-title {
  color: var(--primary);
  font-weight: 800;
}

.badge-active-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-left: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.mega-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: #f1f5f9;
  transition: all 0.2s ease;
}

.mega-service-card-v2:hover .mega-icon-box,
.mega-service-card-v2.active .mega-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

.icon-web { background: #eff6ff; color: #2563eb; }
.icon-software { background: #f5f3ff; color: #7c3aed; }
.icon-seo { background: #f0fdf4; color: #16a34a; }
.icon-ads { background: #fef2f2; color: #dc2626; }
.icon-security { background: #ecfdf5; color: #0d9488; }
.icon-support { background: #fffbeb; color: #d97706; }
.icon-ux { background: #fdf2f8; color: #db2777; }

.mega-info {
  flex-grow: 1;
}

.mobile-sub-link.active {
  background: rgba(79, 70, 229, 0.1);
  border-left: 3px solid var(--primary);
}

.mobile-sub-link.active .sub-title {
  color: var(--primary);
  font-weight: 800;
}

.mega-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.3;
  margin-bottom: 3px;
}

.badge-mini {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gold { background: #fef3c7; color: #b45309; }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-amber { background: #ffedd5; color: #c2410c; }
.badge-pink { background: #fce7f3; color: #be185d; }

.mega-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Featured Spotlight Card V2 */
.mega-col-spotlight {
  display: flex;
}

.mega-featured-card-v2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 200, 0, 0.35);
  box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.25);
}

.mega-spotlight-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.mega-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mega-featured-card-v2:hover .mega-spotlight-img {
  transform: scale(1.06);
}

.mega-spotlight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #ffc800;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 0, 0.4);
}

.mega-spotlight-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
}

.mega-spotlight-img,
.mega-spotlight-badge,
.mega-spotlight-title,
.mega-spotlight-desc,
.mega-spotlight-bullets,
#megaSpotlightCta {
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-fading {
  opacity: 0.15 !important;
  transform: translateY(4px) !important;
}

/* Full-Width Mega Bottom Strip */
.mega-bottom-strip {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.mega-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mega-wa-link {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 163, 74, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  transition: all 0.2s ease;
}

.mega-wa-link:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateX(3px);
}

/* Dynamic Reading Scroll Progress Bar */
.header-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, var(--accent-gold) 100%);
  transition: width 0.1s linear;
  z-index: 1001;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-dark) !important;
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-gold {
  background: var(--accent-gold-light);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pill-glow {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  text-transform: none;
  font-weight: 600;
}

/* ==========================================================================
   Hero Section (Modern Light)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Visual / Card Simulation */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.hero-card-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.12);
}

.hero-floating-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-badge-2 {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 5s ease-in-out infinite 1.5s;
}

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

/* ==========================================================================
   Card Component Styles
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.3);
}

.card-gold:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  border-color: rgba(79, 70, 229, 0.3);
}

.product-img-wrap {
  position: relative;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
  margin: 12px 12px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-img {
  max-height: 160px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08) translateY(-2px);
}

.product-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.price-current {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  font-family: var(--font-heading);
}

.price-original {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

/* Portfolio Card */
.portfolio-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.portfolio-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #0f172a;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.portfolio-meta-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.portfolio-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.portfolio-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--text-body);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Service Tabs & Grid
   ========================================================================== */
.service-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(-6deg) scale(1.08);
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   Interactive Quote Calculator
   ========================================================================== */
.quote-calculator-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.step-item.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

/* Options Grid */
.option-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
}

.option-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  display: none;
}

.option-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.option-price-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* Estimation Sidebar Box */
.quote-estimate-summary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.quote-estimate-summary h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.estimate-total-box {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

.estimate-total-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

/* ==========================================================================
   Floating Widgets (Rich-E, WhatsApp, Currency)
   ========================================================================== */
/* WhatsApp Floating Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 990;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Currency & Language Switcher (Bottom Right) */
.floating-currency-switcher {
  position: fixed;
  bottom: 25px;
  right: 95px;
  z-index: 990;
}

.currency-toggle-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.currency-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.currency-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  width: 170px;
  display: none;
  list-style: none;
}

.floating-currency-switcher.active .currency-dropdown {
  display: block;
}

.currency-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.currency-dropdown-item:hover, .currency-dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Rich-E Chatbot Widget (Bottom Right) */
.floating-riche-bot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.riche-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ea580c 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #ffffff;
  transition: var(--transition);
  position: relative;
}

.riche-toggle-btn:hover {
  transform: scale(1.08);
}

.riche-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

/* Rich-E Chat Window */
.riche-chat-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 540px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-riche-bot.open .riche-chat-window {
  display: flex;
}

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

.riche-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.riche-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.riche-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.riche-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}

.riche-status-text {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.riche-status-text::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.riche-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
}

.riche-close-btn:hover { opacity: 1; }

.riche-chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-bubble-bot {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble-user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.riche-quick-chips {
  padding: 0.5rem 1.25rem;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-light);
}

.chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.riche-input-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}

.riche-input {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
}

.riche-input:focus {
  border-color: var(--accent-gold);
}

.riche-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Shopping Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-items {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-alt);
  padding: 6px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  position: relative;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 70px !important;
  }

  .header-inner {
    height: 70px !important;
  }

  .site-header.scrolled .header-inner {
    height: 60px !important;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-action-desktop {
    display: none !important;
  }

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

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

/* ==========================================================================
   Bottom-to-Top Mobile Navigation Sheet / Drawer (Smooth & Silky Motion)
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  z-index: 1100;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-handle-bar {
  padding: 12px 0 4px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.mobile-drawer-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 999px;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.mobile-drawer-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.mobile-drawer-body {
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-item,
.mobile-accordion-item,
.mobile-drawer-footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-drawer.open .mobile-menu-item,
.mobile-nav-drawer.open .mobile-accordion-item,
.mobile-nav-drawer.open .mobile-drawer-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance cascade */
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(1) { transition-delay: 0.18s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(3) { transition-delay: 0.32s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(4) { transition-delay: 0.39s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(5) { transition-delay: 0.46s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(6) { transition-delay: 0.53s; }
.mobile-nav-drawer.open .mobile-menu-nav > *:nth-child(7) { transition-delay: 0.60s; }
.mobile-nav-drawer.open .mobile-drawer-footer { transition-delay: 0.68s; }

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-dark);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.mobile-item-icon {
  font-size: 1.2rem;
}

.mobile-accordion-item {
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  overflow: hidden;
}

.mobile-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-chevron {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-accordion-header.open .mobile-accordion-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 0.75rem 0.75rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.mobile-accordion-content.open {
  display: flex;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.mobile-sub-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.mobile-sub-link .sub-icon {
  font-size: 1.1rem;
}

.mobile-sub-link .sub-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-sub-link .sub-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-mobile-portal {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffc800 !important;
  border: 1px solid rgba(255, 200, 0, 0.4);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
  font-size: 0.98rem;
}

.btn-mobile-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  font-size: 1rem;
}

.mobile-wa-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #25d366;
  text-decoration: none;
  padding-top: 0.5rem;
}

/* ==========================================================================
   Floating WhatsApp Button (Bottom Left)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

/* ==========================================================================
   Multi-Language & Multi-Currency Popup (Bottom Right, next to Rich-E)
   ========================================================================== */
.floating-lang-currency-widget {
  position: fixed;
  bottom: 28px;
  right: 98px;
  z-index: 990;
}

.lang-currency-toggle-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.lang-currency-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.lang-currency-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
  padding: 12px;
  width: 230px;
  display: none;
  z-index: 1050;
  animation: slideUp 0.25s ease-out;
}

.floating-lang-currency-widget.active .lang-currency-popup {
  display: block;
}

.popup-section-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 6px;
}

.lang-options-list, .currency-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option-btn, .currency-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
}

.lang-option-btn:hover, .currency-option-btn:hover {
  background: var(--bg-alt);
}

.lang-option-btn.active, .currency-option-btn.active {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
}

.lang-option-btn .flag, .currency-option-btn .flag {
  font-size: 1.1rem;
}

/* ==========================================================================
   Rich-E AI Chatbot UI (Bottom Right)
   ========================================================================== */
.floating-riche-bot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.riche-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc800 0%, #ff9e00 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 24px rgba(255, 184, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}

.riche-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(255, 184, 0, 0.7);
}

.riche-btn-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
}

.riche-status-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
}

.riche-chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 35px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: 1050;
  display: none;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-riche-bot.open .riche-chat-window {
  display: flex;
}

.riche-chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.riche-quick-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: #f1f5f9;
  border-top: 1px solid var(--border-light);
  scrollbar-width: none;
}

.riche-quick-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.riche-input-bar {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.riche-input {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  background: #f8fafc;
}

.riche-input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

.riche-header-custom {
  background: linear-gradient(135deg, #ffc800 0%, #ff9e00 100%);
  color: #0f172a;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.riche-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.riche-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.riche-header-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.riche-title-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.riche-subtitle-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
}

.riche-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.riche-action-icon {
  background: none;
  border: none;
  font-size: 1rem;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  opacity: 0.85;
}

.riche-action-icon:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.chat-bubble .bubble-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.chat-bubble-user .bubble-time {
  color: rgba(255, 255, 255, 0.8);
}

.riche-send-btn-yellow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffc800;
  color: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 200, 0, 0.4);
}

.riche-send-btn-yellow:hover {
  background: #ffb800;
  transform: scale(1.08);
}

/* ==========================================================================
   Browser Mockup Frame (For Vertical Long Full-Page Screenshots)
   ========================================================================== */
.browser-mockup-frame {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.browser-frame-header {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  flex-grow: 1;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.browser-address-bar .url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-browser-action {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-browser-action:hover {
  background: var(--bg-alt);
}

.browser-viewport-container {
  height: 520px;
  overflow-y: auto;
  position: relative;
  background: #0f172a;
  scroll-behavior: smooth;
}

.browser-viewport-container::-webkit-scrollbar {
  width: 8px;
}
.browser-viewport-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.browser-long-image {
  width: 100%;
  display: block;
  transition: transform 12s cubic-bezier(0.2, 0, 0.3, 1);
}

.browser-frame-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Marquee Quotes Ticker */
.portfolio-quotes-marquee {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  font-size: 0.92rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fullscreen HD Zoom Modal */
.portfolio-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  flex-direction: column;
}

.portfolio-zoom-modal.open {
  display: flex;
}

.zoom-modal-header {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-zoom-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.zoom-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.zoom-modal-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Instagram Dynamic Feed (Non-blocking & High Aesthetic)
   ========================================================================== */
.instagram-avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.instagram-avatar-ring:hover {
  transform: scale(1.08) rotate(5deg);
}

.instagram-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: cover;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
  color: #ffffff;
}

.instagram-posts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .instagram-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .instagram-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ig-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

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

.ig-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ig-card:hover .ig-card-img {
  transform: scale(1.08);
}

.ig-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.8rem;
}

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

.ig-card-caption {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.ig-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.75rem;
}

.ig-skeleton-card {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   1. Dual High-Impact Tech Marquee
   ========================================================================== */
.dual-tech-marquee-wrapper {
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.marquee-left {
  animation: marqueeLeft 75s linear infinite;
}

.marquee-right {
  animation: marqueeRight 80s linear infinite;
}

.dual-tech-marquee-wrapper:hover .marquee-track,
.marquee-left:hover, .marquee-right:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.marquee-item {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.marquee-sep {
  color: #4f46e5;
  font-size: 1rem;
}

.tech-badge-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge-chip:hover {
  background: rgba(79, 70, 229, 0.25);
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. Live Engineering Status Widget
   ========================================================================== */
.live-status-pill-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.live-status-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-status-title {
  color: #94a3b8;
  font-weight: 600;
}

.live-status-highlight {
  color: #10b981;
  font-weight: 800;
}

.live-sep {
  color: #475569;
}

.live-response-time {
  color: #e2e8f0;
  font-weight: 700;
}

/* ==========================================================================
   3. Interactive macOS Terminal Showcase
   ========================================================================== */
.terminal-window {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', monospace;
  position: relative;
}

.terminal-header {
  background: #1e293b;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.terminal-btn-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.terminal-btn-action:hover {
  background: #4f46e5;
  color: #ffffff;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-prompt {
  color: #10b981;
  font-weight: 800;
  margin-right: 6px;
}

.t-command {
  color: #f8fafc;
  font-weight: 700;
}

.t-cyan { color: #38bdf8; font-weight: 700; }
.t-success { color: #4ade80; font-weight: 700; }
.t-icon { margin-right: 4px; }

.terminal-footer {
  background: #1e293b;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: inherit;
}

/* ==========================================================================
   4. Speed Benchmark Simulator
   ========================================================================== */
.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.benchmark-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.benchmark-slow {
  border-top: 4px solid #ef4444;
  background: #fdfaf9;
}

.benchmark-fast {
  border-top: 4px solid #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.fast-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.benchmark-header {
  margin-bottom: 1.5rem;
}

.benchmark-metric {
  margin-bottom: 1.25rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.text-danger { color: #dc2626; }
.text-success { color: #059669; }

.metric-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.fill-danger { background: #ef4444; }
.fill-success { background: linear-gradient(90deg, #10b981, #059669); }

.benchmark-result-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 1.5rem;
}

.slow-box {
  background: #fee2e2;
  color: #991b1b;
}

.fast-box {
  background: #ecfdf5;
  color: #065f46;
}

/* ==========================================================================
   5. Spotlight Cursor Border Effect (Vercel / Linear Aesthetic)
   ========================================================================== */
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(255, 200, 0, 0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

/* ==========================================================================
   Google PageSpeed Live Audit Modal Styles
   ========================================================================== */
.audit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

.audit-modal-overlay.open {
  display: flex;
}

.audit-modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.audit-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audit-header-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.close-audit-modal-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.close-audit-modal-btn:hover {
  opacity: 1;
}

.audit-modal-body {
  padding: 2rem;
}

.audit-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

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

.audit-score-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-circle-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid #ef4444;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.score-circle-wrap.score-green {
  border-color: #10b981;
  color: #065f46;
}

.score-circle-wrap.score-orange {
  border-color: #f59e0b;
  color: #92400e;
}

.score-circle-wrap.score-red {
  border-color: #ef4444;
  color: #991b1b;
}

.score-number {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.score-max {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.score-device-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
}

.audit-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.metric-mini-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mini-val {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   Global Responsive Layout Grid Utilities (Zero Horizontal Overflow)
   ========================================================================== */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

.grid-2col-sidebar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.grid-2col-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-2col-product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.grid-2col-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

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

@media (max-width: 991px) {
  .grid-2col-sidebar,
  .grid-2col-cta,
  .grid-2col-product,
  .grid-2col-profile {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .header-inner {
    height: 70px;
  }
}

@media (max-width: 640px) {
  .grid-form-2col {
    grid-template-columns: 1fr !important;
  }

  .grid-2col-sidebar > div:last-child {
    position: static !important;
  }

  .audit-metrics-row {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding: 3rem 0 !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  .card {
    padding: 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .option-select-grid {
    grid-template-columns: 1fr !important;
  }

  .floating-whatsapp-btn {
    bottom: 16px !important;
    left: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }

  .floating-lang-currency-widget {
    bottom: 18px !important;
    right: 76px !important;
  }
}

/* ==========================================================================
   Google Verified Reviews Showcase
   ========================================================================== */
.google-reviews-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.google-review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.review-author-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-stars {
  color: #ffc800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-body-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  flex-grow: 1;
}

.review-google-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

/* ==========================================================================
   4-Step Development Process Roadmap
   ========================================================================== */
.process-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  position: relative;
}

.process-step-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

.process-number-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

.process-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   13 FAQs Modern Accordion
   ========================================================================== */
.faq-accordion-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card-item.is-open {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08);
}

.faq-header-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-header-btn:hover {
  color: var(--primary);
}

.faq-icon-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.faq-card-item.is-open .faq-icon-chevron {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-content-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-card-item.is-open .faq-content-body {
  max-height: 500px;
  padding: 0 1.5rem 1.35rem;
}

/* ==========================================================================
   SERVICE DETAIL & LANDING PAGES (DESARROLLO WEB, SOFTWARE, SEO)
   ========================================================================== */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.service-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.15);
}

.service-media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-plan-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.service-plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

.service-plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.service-feature-check {
  color: #10b981;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .service-split-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-split-row.reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVE & ANTI-OVERFLOW RULES
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box;
}

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

.grid-2col-cta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 991px) {
  .grid-2col-cta {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

.grid-2col-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 991px) {
  .grid-2col-sidebar {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

.grid-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 640px) {
  .grid-form-2col {
    grid-template-columns: 1fr !important;
  }
}

.nosotros-carousel-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.nosotros-carousel-track {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & TOGGLE (CRITICAL: HIDDEN ON DESKTOP)
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all 0.2s ease;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.is-open,
.mobile-nav-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  flex-direction: column;
}

.mobile-nav-drawer.is-open,
.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.mobile-drawer-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 9999px;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  font-size: 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  background: var(--bg-alt);
  transition: background 0.2s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.mobile-item-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.mobile-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.mobile-accordion-content.is-open {
  display: flex;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
}

.sub-title {
  font-weight: 700;
}

.sub-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex !important;
  }
  .mobile-nav-drawer {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .mobile-nav-toggle,
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   DESKTOP MEGA MENU FULL STYLES
   ========================================================================== */
.mega-menu-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 1.75rem;
  align-items: stretch;
}

.mega-category-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mega-service-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-service-card-v2:hover,
.mega-service-card-v2.active {
  background: var(--bg-alt);
  border-color: var(--border-light);
}

.mega-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.mega-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.mega-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.badge-mini {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-purple { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.badge-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.badge-pink { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.badge-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-gold { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge-teal { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.badge-amber { background: rgba(217, 119, 6, 0.12); color: #d97706; }

.badge-active-dot {
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: auto;
}

.mega-col-spotlight {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  border-radius: 16px;
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-banner-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.spotlight-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.spotlight-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.spotlight-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.spotlight-fading {
  opacity: 0.3;
  transition: opacity 0.15s ease;
}


