/* =================================================================== */
/* ELAVATEX SERVICES EDITORIAL DESIGN SYSTEM                           */
/* Charcoal Grey #17181C | Moonlit Silver #E6E9EE | Signal Red #E10600 */
/* Architectural Monolith • Volumetric Light Beam • Exact Section Fit */
/* =================================================================== */

:root {
  --charcoal-black: #0D0E11;
  --charcoal-deep: #121316;
  --charcoal-grey: #17181C;
  --charcoal-surface: #1E2025;
  --moonlit-silver: #E6E9EE;
  --moonlit-muted: #94A3B8;
  --signal-red: #E10600;
  --signal-red-glow: rgba(225, 6, 0, 0.65);
}

/* ------------------------------------------------------------------- */
/* 1. BULLETPROOF DEDICATED FIXED NAVBAR                               */
/* ------------------------------------------------------------------- */
.dedicated-fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(23, 24, 28, 0.94) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.85rem 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dedicated-fixed-navbar.scrolled {
  background: rgba(15, 16, 19, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75) !important;
  padding: 0.65rem 0;
}

.dedicated-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1.2rem;
}

/* Brand Logo */
.brand-logo-service {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.brand-logo-service .logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-service .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-service .accent-x {
  color: var(--signal-red);
  text-shadow: 0 0 14px var(--signal-red-glow);
}

/* Service Switcher Dropdown */
.service-switcher-wrapper {
  position: relative;
  flex-shrink: 0;
}

.service-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.38rem 0.88rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--moonlit-silver);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.service-current-pill:hover,
.service-switcher-wrapper:hover .service-current-pill {
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.4);
  color: #ffffff;
}

.service-pill-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-red);
  box-shadow: 0 0 8px var(--signal-red);
  flex-shrink: 0;
}

.service-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: var(--charcoal-grey);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
}

.service-switcher-wrapper:hover .service-switcher-dropdown,
.service-switcher-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.service-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--moonlit-silver);
  transition: background 0.2s ease;
}

.service-dropdown-item:hover,
.service-dropdown-item.active {
  background: rgba(255, 255, 255, 0.06);
}

.service-dropdown-item.active {
  border-left: 2px solid var(--signal-red);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dropdown-item-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.dropdown-item-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--moonlit-muted);
}

/* Center Navigation Capsule */
.dedicated-nav-links {
  display: flex !important;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 0.4rem 1.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 99px !important;
  white-space: nowrap;
}

.dedicated-nav-link {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: #D1D5DB !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dedicated-nav-link:hover {
  color: #ffffff !important;
}

.dedicated-nav-link.active {
  color: var(--signal-red) !important;
  font-weight: 750 !important;
  text-shadow: 0 0 10px var(--signal-red-glow) !important;
}

.nav-styles-badge {
  color: #FFC928 !important;
  font-weight: 750 !important;
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 99px;
  background: var(--signal-red);
  color: #ffffff;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.86rem;
  font-weight: 750;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(225, 6, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-service-cta:hover {
  background: #ff1a14;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 6, 0, 0.65);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--moonlit-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--moonlit-silver);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 1024px) {
  .dedicated-nav-links,
  .service-switcher-wrapper {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .btn-service-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* ------------------------------------------------------------------- */
/* 2. DEDICATED MOBILE DRAWER                                          */
/* ------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--charcoal-grey);
  border-left: 1px solid rgba(225, 6, 0, 0.3);
  z-index: 100000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
}

.mobile-drawer.open {
  right: 0 !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.2rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--moonlit-silver);
  cursor: pointer;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--moonlit-muted);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
}

.drawer-service-link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--moonlit-silver);
  text-decoration: none;
  margin-bottom: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.drawer-service-link:hover,
.drawer-service-link.active {
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.4);
  color: #ffffff;
}

.drawer-link {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.drawer-link:hover {
  color: var(--signal-red);
}

.drawer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

/* ------------------------------------------------------------------- */
/* 3. CINEMATIC EDITORIAL HERO SECTION (EXACT FULL-VIEWPORT FIT)      */
/* ------------------------------------------------------------------- */
.service-editorial-hero {
  background: var(--charcoal-grey) !important;
  color: var(--moonlit-silver);
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  overflow: hidden;
  padding: 95px 0 3.5rem;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background Architectural Concrete Stage */
.service-editorial-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.service-concrete-wall {
  position: absolute;
  inset: 0;
  background-color: var(--charcoal-grey);
  background-image: 
    /* Concrete formwork tie-rod circular indentations matching architectural brutalism */
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 1.5px, rgba(0, 0, 0, 0.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08) 1.5px, rgba(0, 0, 0, 0.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 1.5px, rgba(0, 0, 0, 0.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 1.5px, rgba(0, 0, 0, 0.8) 2.5px, transparent 3.5px),
    /* Hairline concrete wall panels */
    linear-gradient(to right, transparent 49.8%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.6) 50.2%, transparent 50.4%),
    /* Ambient directional red glow & deep charcoal vignette */
    radial-gradient(circle at 75% 25%, rgba(225, 6, 0, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(23, 24, 28, 0.95) 0%, var(--charcoal-black) 100%);
}

/* Directional Volumetric Spotlight Cone (Angled from top-right) */
.service-spotlight-cone {
  position: absolute;
  top: -30%;
  right: 10%;
  width: 720px;
  height: 175%;
  background: linear-gradient(135deg, rgba(242, 244, 241, 0.22) 0%, rgba(225, 6, 0, 0.16) 32%, rgba(225, 6, 0, 0.04) 65%, transparent 85%);
  transform: rotate(22deg);
  filter: blur(48px);
  pointer-events: none;
  animation: spotlightAmbientSway 9s ease-in-out infinite alternate;
}

@keyframes spotlightAmbientSway {
  0% { opacity: 0.85; transform: rotate(20.5deg) scale(0.98); }
  100% { opacity: 1; transform: rotate(23deg) scale(1.02); }
}

/* Floor Contact Ambient Lighting */
.service-floor-contact {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 580px;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(225, 6, 0, 0.25) 0%, rgba(230, 233, 238, 0.08) 40%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

/* Seamless Bottom Vignette Transition inside Hero */
.service-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(18, 19, 22, 0.4) 65%, rgba(18, 19, 22, 0.85) 100%);
  pointer-events: none;
  z-index: 3;
}

.service-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: 1;
}

/* Vertical Scroll Indicator on Right Edge (matches reference image) */
.service-scroll-track {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  height: 220px;
  width: 2px;
  background: rgba(230, 233, 238, 0.12);
  z-index: 10;
  display: block;
}

.service-track-line {
  display: block;
  width: 100%;
  height: 100%;
}

.service-track-thumb {
  position: absolute;
  top: 35%;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-red);
  box-shadow: 0 0 12px var(--signal-red-glow);
  animation: scrollThumbBob 3s ease-in-out infinite;
}

@keyframes scrollThumbBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(40px); }
}

@media (max-width: 1200px) {
  .service-scroll-track {
    display: none;
  }
}

/* 2-Column Grid Layout */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-editorial-hero {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 95px 0 4rem;
  }
}

/* Typography Deck */
.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.service-kicker-words {
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--moonlit-muted);
  text-transform: uppercase;
}

.service-kicker-bar {
  width: 34px;
  height: 2px;
  background: var(--signal-red);
  box-shadow: 0 0 10px var(--signal-red-glow);
}

.service-kicker-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--signal-red);
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.service-headline {
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.4rem;
}

.highlight-signal-red {
  color: var(--signal-red) !important;
  text-shadow: 0 0 35px var(--signal-red-glow), 0 0 70px rgba(225, 6, 0, 0.35) !important;
}

.service-subtext {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: #D1D5DB;
  max-width: 540px;
  margin-bottom: 2rem;
}

.service-cta-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.service-btn-journey {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.service-btn-journey:hover {
  background: rgba(225, 6, 0, 0.12);
  border-color: rgba(225, 6, 0, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-play-circle-red {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--signal-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--signal-red-glow);
}

.service-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 99px;
  background: var(--signal-red);
  color: #ffffff;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(225, 6, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-btn-start:hover {
  background: #ff1a14;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 6, 0, 0.7);
}

.service-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 540px;
}

.service-scroll-prompt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  color: var(--moonlit-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prompt-bar-red {
  width: 22px;
  height: 1px;
  background: var(--signal-red);
}

.service-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.service-slider-counter {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.service-nav-arrows {
  display: flex;
  gap: 0.4rem;
}

.service-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-arrow-btn:hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
  background: rgba(225, 6, 0, 0.1);
}

/* ------------------------------------------------------------------- */
/* 4. VISUAL STAGE & FLOATING HOLOGRAPHIC BADGES (UNBOXED & ORGANIC)  */
/* ------------------------------------------------------------------- */
.editorial-visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto;
}

/* Realistic Ground Contact Shadow Beneath Devices */
.hero-device-floor-shadow {
  width: 280px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
  margin-top: 14px;
  filter: blur(8px);
  animation: shadowBreathe 4s ease-in-out infinite;
}

@keyframes shadowBreathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(0.92); opacity: 0.65; }
}

/* 3D Floating Animations for Mockup Hardware */
.app-phone-frame,
#insta-phone-chassis {
  animation: deviceFloating3D 5s ease-in-out infinite !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(225, 6, 0, 0.2) !important;
}

@keyframes deviceFloating3D {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.web-hero-mockup-frame {
  animation: webFrameFloating3D 6s ease-in-out infinite !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(225, 6, 0, 0.2) !important;
}

@keyframes webFrameFloating3D {
  0%, 100% { transform: translateY(0) rotateX(1deg); }
  50% { transform: translateY(-8px) rotateX(-1deg); }
}

/* Floating Holographic Telemetry Badges */
.floating-telemetry-pill {
  position: absolute;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(23, 24, 28, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 1rem;
  border-radius: 99px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 6, 0, 0.25);
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  animation: pillHoverFloat 4s ease-in-out infinite alternate;
}

.pill-pos-top-right {
  top: -12px;
  right: -20px;
  border-color: rgba(225, 6, 0, 0.45);
}

.pill-pos-bottom-left {
  bottom: 20px;
  left: -25px;
  animation-delay: -2s;
  border-color: rgba(255, 255, 255, 0.2);
}

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

.pill-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-red);
  box-shadow: 0 0 10px var(--signal-red);
  animation: pulseDot 1.8s infinite;
}

.pill-indicator-green {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 768px) {
  .floating-telemetry-pill {
    display: none !important;
  }
  .service-scroll-track {
    display: none !important;
  }
}

/* =================================================================== */
/* 5. COMPREHENSIVE MOBILE RESPONSIVE ENGINE                          */
/* =================================================================== */

@media (max-width: 1024px) {
  .dedicated-nav-links,
  .service-switcher-wrapper {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .service-scroll-track {
    display: none !important;
  }
  .service-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.8rem !important;
    text-align: center;
  }
  .service-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 680px;
  }
  .service-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  .service-cta-row {
    justify-content: center;
  }
  .service-bottom-strip {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .service-editorial-hero {
    min-height: auto !important;
    padding: 85px 0 3rem !important;
  }
  .service-headline {
    font-size: clamp(2.1rem, 7.8vw, 2.9rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 1.1rem !important;
  }
  .service-subtext {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.6rem !important;
    max-width: 92% !important;
  }
  .service-kicker {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
  }
  .floating-telemetry-pill {
    display: none !important;
  }
  .service-scroll-track {
    display: none !important;
  }

  /* Reset 3D tilt & keyframe animations on mobile touch devices */
  .phone-frame,
  #insta-phone-chassis {
    transform: none !important;
    animation: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(225, 6, 0, 0.2) !important;
  }
  .web-hero-mockup-frame {
    transform: none !important;
    animation: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(225, 6, 0, 0.2) !important;
  }
  .app-phone-frame,
  #app-phone-device {
    transform: none !important;
    animation: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(225, 6, 0, 0.2) !important;
  }
}

@media (max-width: 480px) {
  /* Navbar Compact Mobile Fitting */
  .dedicated-nav-container {
    width: 94%;
    gap: 0.4rem;
  }
  .brand-logo-service {
    font-size: 1.22rem;
  }
  .brand-logo-service .logo-mark {
    width: 26px;
    height: 26px;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .btn-service-cta {
    padding: 0.42rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .mobile-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  /* Hero Section on Phones */
  .service-editorial-hero {
    padding: 75px 0 2.2rem !important;
  }
  .service-headline {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
  }
  .service-kicker-words {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
  .service-kicker-bar {
    width: 18px;
  }
  .service-kicker-chip {
    font-size: 0.62rem;
    padding: 0.15rem 0.5rem;
  }
  .service-subtext {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.4rem !important;
  }
  .service-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
  }
  .service-btn-journey,
  .service-btn-start {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
  }
  .service-bottom-strip {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.2rem;
  }

  /* SMM Instagram Mockup scaling */
  .phone-frame,
  #insta-phone-chassis {
    width: 286px !important;
    height: 550px !important;
    border-radius: 36px !important;
    border-width: 6px !important;
  }
  .phone-dynamic-island {
    width: 76px !important;
    height: 18px !important;
  }
  .insta-story-item {
    width: 50px;
  }
  .story-ring-wrap {
    width: 42px;
    height: 42px;
  }
  .hero-device-floor-shadow {
    width: 220px !important;
  }

  /* Web Development Mockup scaling */
  .browser-header-bar {
    padding: 0.55rem 0.7rem;
  }
  .browser-dots {
    gap: 4px;
  }
  .dot {
    width: 9px;
    height: 9px;
  }
  .browser-url-bar {
    max-width: 125px;
    padding: 0.25rem 0.45rem;
    font-size: 0.68rem;
  }
  .viewport-mode-switcher {
    gap: 2px;
  }
  .vp-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.68rem;
  }
  .web-canvas-header {
    padding: 0.7rem 0.8rem;
  }
  .perf-gauge-card {
    padding: 0.8rem;
  }
  .lighthouse-score-row {
    gap: 0.3rem;
  }
  .score-box {
    padding: 0.35rem 0.2rem;
  }
  .score-val {
    font-size: 1.1rem;
  }
  .score-lbl {
    font-size: 0.55rem;
  }

  /* Mobile App Mockup scaling */
  .app-phone-frame,
  #app-phone-device {
    max-width: 290px !important;
    border-radius: 28px !important;
    border-width: 3px !important;
    padding: 0.9rem 0.7rem 0.5rem !important;
  }
  .app-phone-notch {
    width: 80px !important;
    height: 16px !important;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    max-width: 85vw;
  }
}

@media (max-width: 360px) {
  .brand-logo-service {
    font-size: 1.1rem;
  }
  .btn-service-cta {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
  .phone-frame,
  #insta-phone-chassis {
    width: 260px !important;
    height: 500px !important;
    border-radius: 28px !important;
  }
  .app-phone-frame,
  #app-phone-device {
    max-width: 260px !important;
  }
}
