/* ==========================================================================
   STYLE.CSS - Performance Marketing Portfolio Design System
   ========================================================================== */

/* 1. Global Variables & Color Tokens */
:root {
  --bg-canvas: #07080a;
  --bg-surface: #0e1118;
  --bg-surface-elevated: #151922;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.15);
  
  /* Accent Colors */
  --accent-primary: #3b82f6; /* Cobalt Blue */
  --accent-primary-hover: #2563eb;
  --accent-amber: #f59e0b; /* Data Gold */
  --accent-emerald: #10b981; /* Performance Green */
  
  /* Text Neutrals */
  --text-primary: #f3f4f6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;
  
  /* Radius Scale */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Easing */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-normal: all 300ms var(--ease-spring);
}

/* 2. Document Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

/* 3. Typography & Hierarchy Styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-family: var(--font-sans);
  color: var(--text-secondary);
}

/* Typography Utility Classes */
.text-amber { color: var(--accent-amber); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-primary); }
.text-white { color: var(--text-primary); }

/* 4. Component Enclosures & Layout Elements */
.content-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-section) 0;
}

/* Eyebrows & Section Headers */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-md);
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.badge-amber {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.section-title {
  margin-bottom: var(--space-md);
  max-width: 32ch;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 65ch;
  color: var(--text-secondary);
}

.section-header-centered {
  text-align: center;
  margin-bottom: var(--space-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Double-Bezel Component Enclosure (Doppelrand) */
.double-bezel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  display: block;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: var(--transition-normal);
}

.double-bezel .inner-core {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-xl) - var(--space-sm));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.padding-large {
  padding: var(--space-xxl);
}

.padding-none {
  padding: 0;
}

.bg-slate-card {
  background: linear-gradient(135deg, #11141d 0%, #0e1118 100%) !important;
}

.relative-card {
  position: relative;
  overflow: visible;
}

/* CSS Scroll-based Reveals (Observer System) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-spring), transform 800ms var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.reveal-on-scroll:nth-child(2) { transition-delay: 100ms; }
.reveal-on-scroll:nth-child(3) { transition-delay: 200ms; }
.reveal-on-scroll:nth-child(4) { transition-delay: 300ms; }
.reveal-on-scroll:nth-child(5) { transition-delay: 400ms; }
.reveal-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* 5. Button and CTA Architectures */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 8px 10px 8px 24px; /* Space for the icon circle on the right */
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

/* Nesting Circle Icon within CTA Button */
.btn-icon {
  background: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  font-size: 1.1rem;
}

.btn-primary:hover .btn-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-active);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-whatsapp {
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 8px 10px 8px 24px;
}

.btn-whatsapp:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-whatsapp:active {
  transform: translateY(1px) scale(0.98);
}

.btn-whatsapp:hover .btn-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.25);
}

.btn-large {
  padding: 16px 14px 16px 32px;
  font-size: 1.1rem;
}

.btn-large .btn-icon {
  width: 44px;
  height: 44px;
}

/* 6. Navigation Bar Styles (High-End Boxy-Glass Vibe) */
.nav-bar {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  pointer-events: none;
}

.nav-container {
  pointer-events: auto;
  background: rgba(14, 17, 24, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  height: 68px;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-reg {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: 400;
  margin-left: 2px;
}

.nav-status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a3a3a3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

.hamburger-menu-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.hamburger-menu-btn:active {
  transform: translateY(1px);
}

/* Floating nav menu drop-panel */
.nav-menu {
  position: fixed;
  top: 108px;
  right: 24px;
  width: 260px;
  background: rgba(14, 17, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 400ms var(--ease-spring);
  z-index: 1000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

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

/* 7. Section Specific Styles */

/* Hero Section (Cinematic Overlapping Archetype) */
.hero-section {
  background-color: #000000 !important; /* pure black canvas */
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xxl);
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.hero-portrait-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%; /* frames face higher in upper viewport */
  opacity: 0.65; /* dimmed for high text readability */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0) 100%);
}

.hero-content-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 430px; /* pushed down to keep lips and face clear of text */
}

.hero-giant-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-align: center;
  line-height: 0.85;
  margin-bottom: var(--space-xl);
  text-transform: capitalize;
}

.title-reg {
  font-size: 0.35em;
  vertical-align: super;
  font-weight: 400;
  margin-left: 4px;
}

.hero-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.hero-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  position: relative;
  text-align: left;
}

.col-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: #a3a3a3;
  position: relative;
  padding-left: var(--space-md);
  display: block;
}

.col-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  border-left: 1px solid var(--accent-amber);
  border-top: 1px solid var(--accent-amber);
}

.hero-info-col p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 32ch;
}

.col-cta-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-top: auto;
  opacity: 0.7;
  transition: var(--transition-normal);
}

.clickable-col:hover .col-cta-text {
  opacity: 1;
  color: #ffffff;
  transform: translateX(4px);
}

.hero-platform-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.platform-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 150px;
  justify-content: center;
  transition: var(--transition-normal);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.platform-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.platform-icon {
  height: 16px;
  width: auto;
  opacity: 0.8;
}

/* About Section */
.about-section {
  background: var(--bg-canvas);
}

.about-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: flex-start;
}

.about-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
}

.detail-block .block-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.detail-block .block-header i {
  font-size: 1.5rem;
}

.detail-block h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.detail-block .block-text {
  color: var(--text-secondary);
  padding-left: calc(1.5rem + var(--space-sm)); /* aligns description text with headers */
}

/* Growth & Paid Media Services Grid (Restructured with split graphics) */
.services-section {
  background: var(--bg-canvas);
}

.services-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xxl);
  align-items: center;
}

.services-cards-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.service-icon-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-icon-box i {
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.services-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.services-visual .double-bezel {
  width: 100%;
  height: 100%;
}

.services-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel Header & Layout */
.cases-section {
  background: #090a0f;
  padding-bottom: var(--space-section);
  overflow: hidden;
}

.carousel-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}

.carousel-arrows {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-container {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  padding: var(--space-md) 0;
  margin: 0;
  width: 100%;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  transition: transform 500ms var(--ease-spring);
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 65%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 48%;
  }
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  width: 100%;
  max-width: 1000px; /* Full page card visual dimensions */
  width: 90%;
  height: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: transform 600ms var(--ease-spring), border-color 600ms var(--ease-spring), box-shadow 600ms var(--ease-spring);
}

.case-card.active-slide {
  border-color: var(--border-active);
  transform: scale(1.02);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
}

.case-market {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.case-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.case-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  align-items: stretch; /* Forces all stat boxes to have the exact same height */
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-xs);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 108px;
  gap: 8px;
  box-sizing: border-box;
}

.stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.3;
}

/* Case Study Controls Overlay */
.scroll-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.progress-bar-container {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent-primary);
  border-radius: 999px;
  transition: width 100ms linear;
}

.scroll-arrows {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.arrow-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  padding: 4px;
}

.arrow-btn .arrow-circle {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-normal);
  font-size: 1.1rem;
}

.arrow-btn:hover {
  border-color: var(--border-active);
}

.arrow-btn:hover .arrow-circle {
  background: var(--accent-primary);
  color: #ffffff;
}

.arrow-btn:active {
  transform: scale(0.95);
}

/* 7.E Interactive Skills Matrix Section */
.skills-matrix-section {
  background: var(--bg-canvas);
}

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skills-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Accent-based hover glow & borders */
.skills-matrix-card:nth-child(3n+1):hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
}

.skills-matrix-card:nth-child(3n+2):hover {
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
}

.skills-matrix-card:nth-child(3n):hover {
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
}

.skills-matrix-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
}

.skills-matrix-header i {
  font-size: 1.4rem;
}

.skills-matrix-header h3 {
  font-size: 1.15rem;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 250ms var(--ease-spring);
  cursor: pointer;
}

.skill-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
}

/* 7.F High-Contrast Light Mode Section overrides */
.light-section {
  background-color: #ffffff !important;
  color: #0d0f14 !important;
}

.light-section .section-title {
  color: #0d0f14 !important;
}

.light-section .section-desc {
  color: #555d6b !important;
}

.light-section .text-muted-dark {
  color: #4b5563 !important;
}

.light-section .section-badge {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
}

.light-section .double-bezel {
  background: #f1f3f7;
  border-color: rgba(0, 0, 0, 0.05);
}

.light-section .double-bezel .inner-core {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.light-section .testimonial-quote {
  color: #0d0f14 !important;
}

.light-section .quote-attribution {
  color: #555d6b !important;
}

.light-section .block-quote-icon {
  color: rgba(59, 130, 246, 0.06);
}

/* ==========================================================================
   POPUP MODAL COMPONENT (High-End Soft UI & Viewport Fitted)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-spring);
}

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

.modal-wrapper {
  width: 92%;
  max-width: 1080px;
  height: 80vh; /* strictly within 80vh */
  max-height: 640px; /* safety ceiling */
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 400ms var(--ease-spring), transform 400ms var(--ease-spring);
}

.modal-overlay.active .modal-wrapper {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-bezel {
  height: 100%;
  padding: var(--space-sm);
}

.modal-bezel .inner-core {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--space-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-active);
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  height: 100%;
  overflow: hidden;
}

.modal-strategy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  padding-right: var(--space-md);
  max-height: 100%;
}

.modal-strategy::-webkit-scrollbar {
  width: 6px;
}

.modal-strategy::-webkit-scrollbar-track {
  background: transparent;
}

.modal-strategy::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}

.modal-strategy h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  display: block;
}

.strategy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.strategy-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.modal-dashboard {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: 100%;
  overflow: hidden;
}

.dashboard-header {
  margin-bottom: var(--space-md);
}

.dashboard-header h3 {
  font-size: 1.25rem;
  margin-top: 4px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
}

.dashboard-table th, .dashboard-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.dashboard-table td {
  color: var(--text-secondary);
}

.dashboard-table tbody tr:hover td {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.01);
}

.highlight-metric {
  font-weight: 700;
  color: var(--accent-emerald);
}

.dashboard-summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.summary-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Quote Section */
.quote-section {
  background: #090a0f;
  padding: var(--space-section) 0;
}

.quote-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.block-quote-icon {
  font-size: 3rem;
  color: rgba(59, 130, 246, 0.15);
  margin-bottom: var(--space-md);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.quote-attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
}

/* Footer Section */
.footer-section {
  background: #060709;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-section);
  padding-bottom: var(--space-xl);
}

.contact-cta-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xxl);
  align-items: center;
  margin-bottom: var(--space-xxl);
}

.footer-cta-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 20ch;
  margin-bottom: var(--space-md);
  text-align: left;
}

.footer-cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: var(--space-xl);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.contact-visual-bezel {
  display: flex;
  justify-content: center;
}

.contact-visual-bezel .double-bezel {
  width: 100%;
}

.contact-visual-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xxl);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xxl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 32ch;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-row {
  display: flex;
  flex-direction: column;
}

.contact-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-val {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-links-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.social-link:hover {
  border-color: var(--accent-primary);
}

.phone-whatsapp-link i {
  color: #25D366; /* WhatsApp green */
  font-size: 1.15rem;
  vertical-align: middle;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: var(--space-lg);
  text-align: center;
}

.legal-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 8. Responsiveness / Mobile Rules */
@media (max-width: 1024px) {
  .hero-content-overlay {
    margin-top: 280px;
  }

  .hero-giant-title {
    font-size: clamp(3.2rem, 10vw, 6rem);
  }

  .hero-info-grid {
    gap: var(--space-md);
  }

  .platform-pill {
    padding: 12px 16px;
    min-width: calc(33.33% - 8px); /* 3 per row on tablet */
  }
  
  .about-grid, .services-split-grid, .contact-cta-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .services-visual, .contact-visual-bezel {
    order: -1; /* displays visual image on top on tablet */
  }
  
  .services-cards-deck {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 64px;
  }
  
  .nav-bar {
    max-width: 100%;
    top: 0;
    padding: 0;
  }
  
  .nav-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    height: 60px;
    padding: 10px var(--space-lg);
  }

  .nav-status-badge {
    display: none; /* Hide badge on very small mobile to save space */
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    bottom: auto;
    height: auto;
    width: calc(100% - 24px);
    background: rgba(14, 17, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  /* Hero Mobile Responsiveness */
  .hero-section {
    padding-bottom: var(--space-xl);
    align-items: flex-end; /* keeps text at bottom of viewport */
    padding-top: 100px;
  }

  .hero-content-overlay {
    margin-top: 260px; /* space for face area on mobile */
  }

  .hero-giant-title {
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    margin-bottom: var(--space-lg);
  }

  .hero-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-top: var(--space-md);
  }

  .hero-info-col {
    padding: var(--space-xs) 0;
  }

  .hero-info-col p {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .hero-platform-strip {
    gap: var(--space-xs);
  }

  .platform-pill {
    padding: 10px var(--space-sm);
    min-width: calc(50% - 6px); /* 2 per row */
    font-size: 9px;
  }
  
  .services-cards-deck {
    grid-template-columns: 1fr;
  }
  
  .skills-matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .cases-section {
    padding-bottom: var(--space-xl);
  }

  .carousel-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .carousel-arrows {
    align-self: flex-end;
    margin-top: 0;
  }

  .carousel-container {
    gap: var(--space-md);
  }

  .carousel-slide {
    flex: 0 0 88%;
  }

  .case-card {
    padding: var(--space-xl);
  }

  .case-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Responsive Popup Modal Overrides */
  .modal-wrapper {
    width: 95%;
    height: 90vh; /* strictly within 90vh */
    max-height: none;
  }

  .modal-bezel .inner-core {
    padding: var(--space-lg) var(--space-md);
    overflow-y: auto;
  }

  .modal-split-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    overflow-y: visible;
    height: auto;
  }

  .modal-strategy {
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
  }

  .modal-dashboard {
    height: auto;
    overflow-y: visible;
    padding: var(--space-md);
    margin-top: var(--space-md);
  }

  .dashboard-table {
    font-size: 0.8rem;
  }

  .dashboard-table th, .dashboard-table td {
    padding: 8px;
  }

  .dashboard-summary-box {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .summary-item {
    padding: 8px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .summary-lbl {
    margin-bottom: 0;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-links-bottom {
    justify-content: flex-start;
  }
}

/* 9. Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .arrow-x {
    animation: none;
  }
}
