/* ====================================================
   APEX FLAGSHIP MASTER EDITION - DESIGN SYSTEM & STYLES
   Template #020 APEX
   ==================================================== */

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

/* --- COLOR PALETTE & DESIGN TOKENS --- */
:root {
  /* Dark Theme Default */
  --bg-dark: #07090e;
  --bg-surface: #0e121a;
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(28, 36, 56, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-glow: rgba(99, 102, 241, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --accent-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --accent-gradient-teal: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  
  --canvas-grid-color: rgba(255, 255, 255, 0.03);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(99, 102, 241, 0.3);
  --glass-glow: rgba(99, 102, 241, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  
  --canvas-grid-color: rgba(0, 0, 0, 0.04);
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar for clean aesthetic while preserving scroll */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* --- NOISE & CANVAS BACKGROUND SYSTEM --- */
#bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

/* --- CUSTOM CURSOR SYSTEM --- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease,
              border-radius 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.custom-cursor-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.custom-cursor-follower.active {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-indigo);
}

.custom-cursor-follower.active .custom-cursor-text {
  opacity: 1;
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-follower {
    display: none !important;
  }
}

/* --- PRELOADER ANIMATION --- */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #04060a;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loader-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.3); }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-progress-bar {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.loader-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* --- GLASSMORPHISM COMPONENTS --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-panel:hover::before {
  opacity: 1;
}

/* 3D Card Specular Reflection Light Effect */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-panel:hover .card-shine {
  opacity: 1;
}

/* --- NAVIGATION --- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar-header.scrolled {
  padding: 1rem 2rem;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .navbar-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Persona Switcher Pill */
.persona-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.persona-switcher-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

.persona-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(15deg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.title-line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .title-line {
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-visual-wrapper {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Metrics Cards on Hero */
.hero-floating-card {
  position: absolute;
  padding: 1.2rem 1.5rem;
  min-width: 220px;
  z-index: 3;
}

.hero-floating-card.card-1 {
  top: 10%;
  left: -5%;
  animation: floatCard1 6s infinite ease-in-out;
}

.hero-floating-card.card-2 {
  bottom: 12%;
  right: -5%;
  animation: floatCard2 7s infinite ease-in-out 1s;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1.5deg); }
}

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

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

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

/* --- SECTION COMMON HEADINGS --- */
.section-wrapper {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  margin-bottom: 4.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-description {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
}

/* --- PERSONA SELECTOR MODAL --- */
.persona-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.persona-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.persona-modal-card {
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

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

.persona-option-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.persona-option-card:hover, .persona-option-card.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  transform: translateY(-4px);
}

.persona-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
}

.persona-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.persona-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- EDITORIAL CONTENT SYSTEM --- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.editorial-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 540px;
}

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

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

.editorial-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  z-index: 2;
}

.editorial-content-box {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.editorial-quote {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-indigo);
  padding-left: 1.5rem;
}

/* --- 3D SERVICES CARD GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: translateZ(20px);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-feature-item i {
  color: var(--accent-emerald);
}

/* --- ADVANCED PORTFOLIO SECTION --- */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 420px;
}

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

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.95) 85%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.4s ease;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.portfolio-item-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.portfolio-metrics {
  display: flex;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- CASE STUDY FULLSCREEN MODAL --- */
.case-study-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10002;
  overflow-y: auto;
  display: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.case-study-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.case-study-header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
}

.case-study-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.case-study-hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
}

.case-study-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.case-meta-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.case-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.case-study-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.gallery-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- PROCESS TIMELINE --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-fill {
  width: 100%;
  height: 0%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 4rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
  justify-content: flex-start;
}

.timeline-node {
  position: absolute;
  top: 1.5rem;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-indigo);
  box-shadow: 0 0 15px var(--accent-indigo);
  z-index: 2;
  transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -12px;
  right: auto;
}

.timeline-card {
  max-width: 400px;
  padding: 2rem;
  margin-right: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-right: 0;
  margin-left: 2.5rem;
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

/* --- ADVANCED TESTIMONIAL SYSTEM --- */
.testimonial-slider-wrapper {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  cursor: grab;
}

.testimonial-slider-wrapper:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  width: clamp(280px, 85vw, 420px);
  padding: 2.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  display: flex;
  gap: 0.3rem;
  color: var(--accent-amber);
  margin-bottom: 1.2rem;
}

.testimonial-quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.client-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- INSIGHTS / CONTENT HUB --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

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

.article-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.article-snippet {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Article Reader Modal & Reading Progress */
.article-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10003;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.article-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  width: 0%;
  z-index: 10004;
  transition: width 0.1s linear;
}

/* --- INTERACTIVE STATISTICS & DASHBOARD --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-widget-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* --- NEWSLETTER SYSTEM --- */
.newsletter-card {
  padding: 4rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.8) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.newsletter-form {
  display: flex;
  max-width: 550px;
  margin: 2rem auto 0 auto;
  gap: 0.8rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input:focus {
  border-color: var(--accent-cyan);
}

/* --- CONTACT FORM SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

select.form-input option {
  background-color: #0e121a;
  color: #f8fafc;
  padding: 0.5rem;
}

[data-theme="light"] select.form-input option {
  background-color: #ffffff;
  color: #0f172a;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-indigo);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseWhatsapp 2s infinite;
  pointer-events: none;
}

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

/* --- FOOTER --- */
.footer-section {
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 3rem 2rem;
  background: var(--bg-surface);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .editorial-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    justify-content: flex-start;
    padding-left: 50px;
    margin-left: 0;
  }
  .timeline-node, .timeline-item:nth-child(even) .timeline-node {
    left: 8px;
    right: auto;
  }
  .timeline-card, .timeline-item:nth-child(even) .timeline-card {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-header {
    padding: 0.8rem 1rem;
  }
  .navbar-header.scrolled {
    padding: 0.7rem 1rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .persona-switcher-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    max-width: 160px;
  }
  #current-persona-label {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .hero-section {
    padding: 6.5rem 1rem 3rem 1rem;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 3.2rem);
    letter-spacing: 0;
  }
  .hero-visual-wrapper {
    height: 320px;
  }
  .hero-floating-card.card-1 {
    top: 2%;
    left: 0;
    min-width: 160px;
    padding: 0.75rem 0.9rem;
  }
  .hero-floating-card.card-2 {
    bottom: 2%;
    right: 0;
    min-width: 160px;
    padding: 0.75rem 0.9rem;
  }
  .newsletter-card {
    padding: 2.5rem 1.2rem;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .newsletter-input {
    width: 100%;
    text-align: center;
  }
  .newsletter-form .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .case-study-details-grid, .case-study-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #current-persona-label {
    display: none;
  }
  .persona-switcher-btn {
    padding: 0.4rem 0.6rem;
    max-width: none;
  }
  .brand-logo span {
    font-size: 1.15rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .hero-section {
    padding: 5.5rem 0.8rem 2.5rem 0.8rem;
  }
}
