/* ============================================
   FOLIO WEB — Design System & Stylesheet
   Aesthetic: Quiet luxury meets tech precision
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #0F172A;
  --color-navy-dark: #020617;
  --color-white: #FFFFFF;
  --color-offwhite: #F8FAFC;
  --color-blue: #3B82F6;
  --color-blue-light: #DBEAFE;
  --color-blue-pale: #EFF6FF;
  --color-grey: #475569;
  --color-grey-light: #E2E8F0;
  --color-grey-border: #CBD5E1;
  --color-text: #0F172A;
  --color-success: #10B981;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1140px;
  --section-padding: 100px 0;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.12);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04);
  --radius: 8px;
  --radius-lg: 16px;
}

/* --- Dark Mode Custom Properties --- */
[data-theme="dark"] {
  --color-navy: #E2E8F0;
  --color-navy-dark: #0B1120;
  --color-white: #0F172A;
  --color-offwhite: #131C2E;
  --color-blue: #60A5FA;
  --color-blue-light: rgba(96, 165, 250, 0.12);
  --color-blue-pale: rgba(96, 165, 250, 0.06);
  --color-grey: #94A3B8;
  --color-grey-light: rgba(148, 163, 184, 0.15);
  --color-grey-border: rgba(148, 163, 184, 0.2);
  --color-text: #E2E8F0;
  --color-success: #34D399;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 40px rgba(96, 165, 250, 0.15);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subheading {
  font-size: 1.1rem;
  color: var(--color-grey);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Reveal Animation System --- */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Directional Variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Delays for Grid Children */
.stagger-1 {
  transition-delay: 0s;
}

.stagger-2 {
  transition-delay: 0.1s;
}

.stagger-3 {
  transition-delay: 0.2s;
}

.stagger-4 {
  transition-delay: 0.3s;
}

.stagger-5 {
  transition-delay: 0.4s;
}

.stagger-6 {
  transition-delay: 0.5s;
}

/* CSS Scroll-Driven Animations (modern browsers) */
@supports (animation-timeline: view()) {
  .reveal-scroll {
    animation: scrollRevealUp linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  @keyframes scrollRevealUp {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.98);
      filter: blur(4px);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }
}

/* Section Wave Dividers */
.section-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.section-divider path {
  fill: var(--color-offwhite);
  transition: fill 0.3s ease;
}

.section-divider.divider-to-white path {
  fill: var(--color-white);
}

.section-divider.divider-to-offwhite path {
  fill: var(--color-offwhite);
}

.section-divider.divider-to-navy path {
  fill: var(--color-navy);
}

[data-theme="dark"] .section-divider.divider-to-navy path {
  fill: #0B1120;
}

/* ============================================
   SECTION 1: Navigation
   ============================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-header.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .logo-dark {
  display: none;
}

[data-theme="dark"] .nav-logo .logo-light {
  display: none;
}

[data-theme="dark"] .nav-logo .logo-dark {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: color var(--transition);
  position: relative;
}


.lang-toggle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-offwhite);
  border: 1px solid var(--color-grey-light);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.nav-actions-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 10px 24px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #243a5e;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.mobile-actions {
  display: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  transition: all var(--transition);
  border-radius: 1px;
}

/* ============================================
   SECTION 2: Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 24px 32px;
  overflow: hidden;
  background: var(--color-white);
}

/* Floating gradient orb for depth */
.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-orb::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 60%);
  top: 10%;
  right: -10%;
  animation: orbFloat 6s ease-in-out infinite reverse;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  33% {
    transform: translate(-48%, -53%) scale(1.05);
  }

  66% {
    transform: translate(-52%, -47%) scale(0.97);
  }
}

[data-theme="dark"] .hero-orb {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.03) 40%, transparent 70%);
}

[data-theme="dark"] .hero-orb::after {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
  transition: transform 0.3s ease-out;
}

@keyframes gridDrift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(48px, 48px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: auto 0;
}

/* Animated gradient text */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0F172A 0%, #3B82F6 50%, #0F172A 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

[data-theme="dark"] .hero-title {
  background-image: linear-gradient(135deg, #E2E8F0 0%, #60A5FA 50%, #E2E8F0 100%);
}

/* Staggered hero entrance */
.hero-stagger-1 {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-stagger-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-stagger-3 {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-grey);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  opacity: 0;
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-grey);
  font-weight: 500;
}

.hero-scroll-indicator svg {
  color: var(--color-blue);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue) 0%, #2563EB 100%);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--color-offwhite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-submit {
  background: var(--color-blue);
  color: var(--color-white);
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
}

.btn-submit:hover {
  background: #3a7bc8;
  transform: translateY(-1px);
}

/* ============================================
   SECTION 3: Trust Bar
   ============================================ */
.trust-bar {
  background: var(--color-offwhite);
  padding: 28px 24px;
  border-top: 1px solid var(--color-grey-light);
  border-bottom: 1px solid var(--color-grey-light);
}

.trust-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-text {
  font-size: 0.88rem;
  color: var(--color-grey);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-logo-placeholder {
  background: var(--color-grey-light);
  color: var(--color-grey);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 8px;
}

/* ============================================
   SECTION 4: Why Folio Web
   ============================================ */
.why-section {
  background: var(--color-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--color-blue-pale);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pillar-icon {
  color: var(--color-blue);
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.65;
}

/* ============================================
   SECTION 5: Results Dashboard
   ============================================ */
.results-section {
  background: var(--color-offwhite);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), #818cf8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(74, 144, 217, 0.3);
}

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

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.08);
  color: var(--color-blue);
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  background: rgba(74, 144, 217, 0.15);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-navy) 0%, #334155 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 200px;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.legend-dot-dashed {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  background: transparent;
  border: 1.5px dashed #D1D5DB;
}

/* --- Analytics Dashboard --- */
.dashboard {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--color-grey-light);
  background: var(--color-offwhite);
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.dashboard-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-controls {
  display: flex;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: 6px;
  padding: 3px;
}

.dash-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  color: var(--color-grey);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.dash-btn:hover {
  color: var(--color-navy);
}

.dash-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.charts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.chart-card {
  padding: 24px 28px;
  border-right: 1px solid var(--color-grey-light);
}

.chart-card:last-child {
  border-right: none;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chart-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.chart-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chart-metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}

.chart-metric-change {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
}

.chart-metric-change.positive {
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.08);
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-grey);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}




.charts-caption {
  font-size: 0.85rem;
  color: var(--color-grey);
  font-style: italic;
  text-align: center;
}

/* ============================================
   SECTION 6: Services
   ============================================ */
.services-section {
  background: var(--color-white);
}

.services-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-blue-light);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 50px;
  padding: 12px 28px;
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 500;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-blue-pale);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
  color: var(--color-blue);
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.65;
}

/* ============================================
   SECTION 7: Portfolio
   ============================================ */
.portfolio-section {
  background: var(--color-offwhite);
}

.portfolio-card {
  background: var(--color-navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.portfolio-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.portfolio-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-client {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.portfolio-challenge {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 20px;
}

.portfolio-tasks {
  margin-bottom: 28px;
}

.portfolio-tasks li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.portfolio-tasks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.portfolio-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: radial-gradient(circle at center, rgba(74, 144, 217, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.portfolio-browser-frame {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  display: block;
}

.portfolio-browser-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.browser-header {
  display: flex;
  align-items: center;
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-grey-light);
  padding: 0 10px;
  height: 22px;
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-grey-light);
}

.browser-dots span:first-child {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-url {
  font-size: 0.6rem;
  color: var(--color-grey);
  font-family: monospace;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.portfolio-screenshot {
  aspect-ratio: 16 / 10;
  background: var(--color-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.8) 0%, rgba(27, 42, 74, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.portfolio-browser-frame:hover .screenshot-overlay {
  opacity: 1;
}

.overlay-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 28px;
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-browser-frame:hover .overlay-pill {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 0.1s;
}

.overlay-pill:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

.portfolio-browser-frame:hover .portfolio-screenshot img {
  filter: blur(3px) brightness(0.9);
}

.portfolio-note {
  font-size: 0.9rem;
  color: var(--color-grey);
  font-style: italic;
  text-align: center;
  margin-top: 24px;
}

/* ============================================
   SECTION 8: About
   ============================================ */
.about-section {
  background: var(--color-white);
}

.about-intro {
  font-size: 1.1rem;
  color: var(--color-grey);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.about-closing {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-team {
  display: flex;
  gap: 20px;
}

.team-card {
  flex: 1;
  background: var(--color-offwhite);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--color-grey);
}

/* Team bio — hidden on desktop (shown via desktop text block instead) */
.team-bio {
  display: none;
}

/* ============================================
   SECTION 9: FAQ
   ============================================ */
.faq-section {
  background: var(--color-offwhite);
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-offwhite);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.7;
}

/* ============================================
   SECTION 10: Contact / CTA
   ============================================ */
.contact-section {
  background: var(--color-navy);
  padding: 100px 0;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 12px;
}

.contact-subheading {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #FFFFFF;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--color-navy-dark);
  color: #FFFFFF;
}

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

.contact-direct-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.direct-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: 12px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.direct-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.direct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.direct-option:hover .direct-icon {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.25);
}

.direct-text {
  display: flex;
  flex-direction: column;
}

.direct-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
  font-weight: 600;
}

.direct-value {
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ============================================
   SECTION 11: Footer
   ============================================ */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-white);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ============================================
   SECTION 8.5: Pricing
   ============================================ */
.pricing-section {
  background: var(--color-offwhite);
  position: relative;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-white);
  z-index: 0;
}

.pricing-section .container {
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.pricing-card.highlighted {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card.highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), #818cf8);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-blue) 0%, #2563EB 100%);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-grey-light);
}

.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-blue-pale);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pricing-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-grey);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-navy) 0%, #334155 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--color-grey);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pricing-features li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta-wrap {
  text-align: center;
}

/* ============================================
   MICRO-INTERACTIONS & ENHANCEMENTS
   ============================================ */

/* --- Pillar & Service Cards: 3D Tilt --- */
.pillar-card,
.service-card {
  perspective: 800px;
  transform-style: preserve-3d;
}

.pillar-card:hover,
.service-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
}

/* --- Team Cards: Avatar Ring Glow --- */
.team-avatar {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--color-blue), #818cf8) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
}

.team-card:hover .team-avatar::after {
  opacity: 1;
  transform: scale(1);
}

/* --- Pricing Cards: Shine Sweep --- */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 60%);
  transform: skewX(-15deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.pricing-card:hover::after {
  left: 130%;
}

/* --- FAQ: Left Accent Bar --- */
.faq-item {
  position: relative;
  border-left: 3px solid transparent;
  transition: box-shadow var(--transition), border-color 0.3s ease;
}

.faq-item.open {
  border-left-color: var(--color-blue);
}

/* --- Nav: Sliding Active Indicator --- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), #818cf8);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

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

/* --- Nav CTA Shimmer --- */
.nav-cta {
  position: relative;
  overflow: hidden;
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 60%);
  transform: skewX(-15deg);
  animation: navCtaShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes navCtaShimmer {

  0%,
  100% {
    left: -75%;
  }

  50% {
    left: 130%;
  }
}

/* --- Contact: Animated Gradient Background --- */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1a2744 25%, #0F172A 50%, #162036 75%, #0F172A 100%);
  background-size: 400% 400%;
  animation: contactGradient 12s ease infinite;
  z-index: 0;
}

@keyframes contactGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }
}

.contact-section>.container {
  position: relative;
  z-index: 1;
}

/* Contact floating grid dots */
.contact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/* Input Focus Glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* --- Footer: Slide-in Underline Links --- */
.footer-links a {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-blue);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover::after {
  transform: translateX(0);
}

/* --- Stat Counter Animation State --- */
.stat-value[data-target] {
  transition: color 0.3s ease;
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-stagger-1,
  .hero-stagger-2,
  .hero-stagger-3 {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-indicator {
    opacity: 1;
  }

  .hero-title {
    animation: none;
    background-position: 0% center;
  }
}

/* Hide mobile scroll hint on desktop */
.scroll-hint {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  /* Nav mobile */
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

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

  .nav-actions-row .lang-toggle {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 1000;
  }

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

  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 140px 24px 80px;
  }

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

  /* Pillars — compact 2-col on mobile */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .pillar-card {
    padding: 20px 16px;
  }

  .pillar-icon {
    margin-bottom: 10px;
  }

  .pillar-icon svg {
    width: 24px;
    height: 24px;
  }

  .pillar-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .pillar-card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Stats — compact 2-col on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }

  .stat-card {
    padding: 20px 14px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-value {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .charts-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
  }

  .charts-row::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }

  .chart-card {
    flex: 0 0 90%;
    scroll-snap-align: start;
    border-bottom: none;
    border-right: 1px solid var(--color-grey-light);
  }

  .chart-card:last-child {
    border-right: none;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .chart-header {
    flex-direction: column;
    gap: 12px;
  }

  .chart-legend {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .chart-metric-value {
    font-size: 1.6rem;
  }

  /* Services — compact 2-col on mobile */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .service-icon {
    margin-bottom: 10px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .service-card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .services-badge {
    font-size: 0.82rem;
    padding: 10px 20px;
  }

  /* Pricing */
  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -24px;
    /* Pull out of container padding */
    padding: 10px 24px 32px;
    /* Restore padding inside + bottom padding for shadows */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }

  /* --- Mobile Scroll Hint --- */
  .scroll-wrapper {
    position: relative;
  }

  .scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-navy);
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: swipePulse 2.5s infinite;
  }

  [data-theme="dark"] .scroll-hint {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.05);
  }

  .scroll-hint.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.95);
  }

  .swipe-arrow {
    width: 22px;
    height: 22px;
    animation: arrowNudge 1.5s infinite ease-in-out;
  }

  @keyframes swipePulse {

    0%,
    100% {
      transform: translateY(-50%) translateX(0);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    50% {
      transform: translateY(-50%) translateX(-4px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
  }

  @keyframes arrowNudge {

    0%,
    100% {
      transform: translateX(-2px);
    }

    50% {
      transform: translateX(2px);
    }
  }

  /* Portfolio */
  .portfolio-card-inner {
    grid-template-columns: 1fr;
  }

  .portfolio-info {
    padding: 32px 28px;
  }

  .portfolio-preview {
    padding: 20px;
  }

  /* About — mobile card layout */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }

  .about-text-desktop {
    display: none;
  }

  .about-intro {
    margin-bottom: 32px;
  }

  .team-bio {
    display: block;
    font-size: 0.88rem;
    color: var(--color-grey);
    line-height: 1.6;
    margin-top: 16px;
    text-align: justify;
  }

  .about-team {
    flex-direction: column;
    gap: 16px;
  }

  .team-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
  }

  .team-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .team-card:hover {
    transform: none;
  }

  .team-avatar {
    margin: 0;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
  }

  .team-card-titles {
    flex: 1;
    min-width: 0;
  }

  .about-closing {
    font-size: 1.1rem;
    margin-top: 28px;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 64px 0;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

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

  .stat-card {
    padding: 16px 10px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .services-grid {
    gap: 8px;
  }

  .service-card {
    padding: 16px 12px;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.78rem;
  }

  .pillar-card {
    padding: 16px 12px;
  }

  .pillar-card h3 {
    font-size: 0.95rem;
  }

  .pillar-card p {
    font-size: 0.78rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }

  .section-heading {
    font-size: 1.75rem;
  }
}

/* ============================================
   DARK MODE — Component Overrides
   ============================================ */

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-offwhite);
  border: 1px solid var(--color-grey-light);
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* --- Nav overrides --- */
[data-theme="dark"] .nav-header.nav-scrolled {
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .nav-mobile-toggle span {
  background: var(--color-text);
}

[data-theme="dark"] .nav-cta {
  background: var(--color-blue);
  color: #0F172A;
}

[data-theme="dark"] .nav-cta:hover {
  background: #93bbfd;
}

/* Mobile nav panel */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-links {
    background: #0F172A;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  }
}

/* --- Hero overrides --- */
[data-theme="dark"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px);
}

/* --- Stat card overrides --- */
[data-theme="dark"] .stat-card {
  background: linear-gradient(145deg, #131C2E, #0F172A);
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .stat-value {
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

[data-theme="dark"] .stat-label {
  color: #94A3B8;
}

/* --- Dashboard overrides --- */
[data-theme="dark"] .dashboard {
  background: #131C2E;
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .dashboard-header {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .dashboard-controls {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .dash-btn.active {
  background: var(--color-blue);
  color: #0F172A;
}

[data-theme="dark"] .chart-card {
  border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .chart-metric-value {
  color: #E2E8F0;
}

/* --- Button overrides --- */
[data-theme="dark"] .btn-outline {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--color-blue);
  color: #0F172A;
}

[data-theme="dark"] .btn-white {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .btn-white:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Portfolio overrides --- */
[data-theme="dark"] .portfolio-card {
  background: #0B1120;
}

[data-theme="dark"] .portfolio-browser-frame {
  background: #131C2E;
}

[data-theme="dark"] .browser-header {
  background: #1a2236;
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .browser-dots span {
  background: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .browser-dots span:first-child {
  background: #ff5f57;
}

[data-theme="dark"] .browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

[data-theme="dark"] .browser-dots span:nth-child(3) {
  background: #28c840;
}

/* --- Pricing overrides --- */
[data-theme="dark"] .pricing-section::before {
  background: var(--color-white);
}

[data-theme="dark"] .pricing-price {
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* --- Mobile Scroll Nav overrides --- */
[data-theme="dark"] .scroll-nav-btn {
  background: var(--color-navy-light);
  border-color: var(--color-navy);
  color: var(--color-white);
}

[data-theme="dark"] .scroll-nav-btn:active {
  background: var(--color-navy);
}

/* --- Contact overrides --- */
[data-theme="dark"] .contact-section {
  background: #0B1120;
}

[data-theme="dark"] .form-group select option {
  background: #0B1120;
}

/* --- Footer overrides --- */
[data-theme="dark"] .site-footer {
  background: #060A14;
}

/* --- FAQ overrides --- */
[data-theme="dark"] .faq-item {
  background: #131C2E;
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .faq-question:hover {
  background: rgba(96, 165, 250, 0.05);
}

/* --- Lang toggle override --- */
[data-theme="dark"] .lang-toggle {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--color-text);
}

[data-theme="dark"] .lang-toggle:hover {
  background: var(--color-blue);
  color: #0F172A;
  border-color: var(--color-blue);
}

/* --- Smooth transition on theme change --- */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
  transition-delay: 0s !important;
}

/* ============================================
   Floating Action Button (FAB)
   ============================================ */
.fab-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  overflow: hidden;
}

.fab-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.6);
  background: #2563EB;
}

.fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 2s infinite;
}

.fab-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 0;
}

.fab-contact:hover .fab-text {
  max-width: 250px;
  opacity: 1;
  margin-left: 12px;
  padding-right: 8px;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

[data-theme="dark"] .fab-contact {
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .fab-contact:hover {
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.4);
}

@media (max-width: 768px) {
  .fab-contact {
    bottom: 24px;
    right: 24px;
    padding: 14px;
  }
  .fab-icon svg {
    width: 22px;
    height: 22px;
  }
  .fab-contact:hover .fab-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    padding-right: 0;
  }
}