:root {
  --brand-primary: #4f8cff;
  --brand-accent: #00d1ff;
  --bg: #0b132b;
  --bg-alt: #1c2541;
  --surface: #1f2a48;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --border: #30415d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
}

body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans"; background: var(--bg); color: var(--text); }

.theme-light {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
}

.navbar-theme { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.navbar-theme .navbar-brand, .navbar-theme .nav-link { color: var(--text); }
.navbar-theme .nav-link.btn { color: #fff; }
.navbar-brand .navbar-logo { max-height: 40px; width: auto; display: inline-block; border-radius: 6px; }

.hero-section { position: relative; background: var(--bg); color: var(--text); min-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-content { position: relative; z-index: 2; padding: 3rem 1rem; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-video, .hero-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.alt-bg { background: var(--bg-alt); }

/* Hero typography tuning */
.hero-title { font-size: clamp(2.4rem, 6.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.gradient-text { background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero media (image or video) */
.hero-media { width: 100%; max-height: 320px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

/* Center hero text for the new layout */
.hero-content .hero-title { text-align: center; }
.hero-content .hero-subtitle { margin: 0 auto; text-align: center; }
.hero-actions { justify-content: center; }

@media (max-width: 576px) {
  .hero-section { min-height: 72vh; }
}

.card { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.card .card-text { color: var(--muted); }

.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.btn-primary:hover { background-color: #3a70d6; border-color: #3a70d6; transform: translateY(-1px); }

section { scroll-margin-top: 80px; }
.navbar-brand { font-weight: 700; }

/* Type scale and spacing */
:root {
  --fs-hero: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.5rem, 3.2vw, 2rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --lh: 1.6;
  --space-1: 8px; --space-2: 12px; --space-3: 16px; --space-4: 24px; --space-5: 32px; --space-6: 48px;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; }
.display-5 { font-size: var(--fs-hero) !important; line-height: 1.15; }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-4) !important; }
h3 { font-size: var(--fs-h3); }
p { line-height: var(--lh); }

/* Section headers with gradient-backed kicker */
.section-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); padding: 6px 10px; border-radius: 999px; background:
  linear-gradient(90deg, rgba(79,140,255,0.18), rgba(0,209,255,0.18)); border: 1px solid var(--border); }
.section-title { margin-top: 0.5rem; }
.icon { color: var(--brand-accent); }

/* Iconography consistency */
.icon-circle { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-accent); }

/* Slim navbar and gradient accent */
.navbar-theme { padding-top: 0.5rem; padding-bottom: 0.5rem; position: sticky; top: 0; z-index: 1020; }
.navbar-theme::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); opacity: 0.7; }
.navbar-brand { font-weight: 700; letter-spacing: -0.01em; }
.navbar-theme .nav-link { padding-left: .75rem; padding-right: .75rem; }

/* Cards: refined shadows and hover */
.card { box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.card-img-top { border-bottom: 1px solid var(--border); }

/* Section dividers */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--brand-accent), transparent); opacity: .5; }
.divider-thick { height: 2px; opacity: .7; }

/* Angled gradient divider with subtle parallax */
.angled-divider { position: relative; height: 80px; overflow: hidden; }
.angled-divider::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(79,140,255,0.35), rgba(0,209,255,0.35)); transform: skewY(-3deg) translateY(var(--divider-translate, 20%)); }
.angled-divider[data-parallax-active="true"]::before { will-change: transform; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.revealed { opacity: 1; transform: translateY(0); }

/* Footer and utility overrides for theme */
.bg-light { background-color: var(--bg-alt) !important; }
.border-top { border-top-color: var(--border) !important; }

/* Clients logo strip */
.clients-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: center; }
.clients-strip .client { display: flex; align-items: center; justify-content: center; padding: 24px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-alt); }
.clients-strip .client i { font-size: 56px; color: var(--muted); }
.clients-strip .client:hover i { color: var(--brand-accent); }
.clients-strip img { max-height: 72px; filter: grayscale(100%) brightness(0.9); transition: filter var(--dur-2) var(--ease); opacity: 0.95; }
.clients-strip .client:hover img { filter: grayscale(0%) brightness(1); opacity: 1; }

/* Testimonials slider */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-slider .slides { position: relative; min-height: 160px; }
.testimonials-slider .slide { position: absolute; inset: 0; padding: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.testimonials-slider .slide.is-active { position: relative; opacity: 1; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); }
.testimonial-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.slider-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.slider-controls .btn { border-color: var(--border); }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; }
.slider-dot.is-active { background: var(--brand-accent); }

/* Featured Projects carousel */
.projects-carousel { position: relative; overflow: hidden; --carousel-gap: 20px; }
.projects-carousel .track { display: flex; gap: var(--carousel-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; }
.projects-carousel .track { -ms-overflow-style: none; scrollbar-width: none; }
.projects-carousel .track::-webkit-scrollbar { display: none; }
.projects-carousel .item { flex: 0 0 85%; scroll-snap-align: start; box-sizing: border-box; }
@media (min-width: 768px) { .projects-carousel .item { flex: 0 0 calc((100% - 2 * var(--carousel-gap)) / 3); } }

/* Secondary hero and audience cards */
.hero-section-alt { min-height: 70vh; }
.hero-section-alt .hero-overlay { background: rgba(0,0,0,0.55); }
.audience-grid { margin-top: 1rem; }
.audience-card { background: rgba(20, 20, 20, 0.85); border: 1px solid rgba(255,255,255,0.08); }
.audience-card .audience-icon i { font-size: 28px; margin-top: var(--space-3); }
.audience-card .audience-icon img { width: 48px; height: 48px; object-fit: cover; }
.audience-card .card-title { color: #fff; }
.audience-card .card-text { color: #cfd3d6; }

/* CTA gradient outline */
.cta-box { background: #0f0f10; position: relative; }
.gradient-outline { border-radius: 1rem; padding: 1px; background: linear-gradient(135deg, #ff7f50, #7b68ee, #00d4ff); }
.gradient-outline > * { background: #0f0f10; border-radius: 1rem; }
.btn.gradient-accent { border: 1px solid transparent; background-image: linear-gradient(#fff,#fff), linear-gradient(135deg, #ff7f50, #7b68ee, #00d4ff); background-origin: border-box; background-clip: padding-box, border-box; color: #000; }

/* CTA spacing tuning */
.cta-section { padding: var(--space-5) 0; }
.cta-box { margin: var(--space-4) 0; }
.cta-inner { padding: var(--space-5); }
@media (max-width: 576px) {
  .cta-section { padding: var(--space-4) 0; }
  .cta-inner { padding: var(--space-4); }
}

/* Hero kicker, actions, and logo glow */
.hero-kicker { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 8px; color: var(--text); opacity: 0.9; }
.hero-subkicker { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-top: var(--space-2); }
.hero-actions { margin-top: var(--space-4); display: flex; gap: var(--space-2); align-items: center; }
.logo-glow { position: relative; display: inline-block; }
.logo-glow::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(ellipse at center, rgba(0,209,255,0.25), transparent 60%); filter: blur(22px); z-index: 0; }
.logo-glow img { position: relative; z-index: 1; }

/* Blended process section */
.process-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.process-blend { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(79,140,255,0.08), rgba(0,209,255,0.08)); }
.process-blend::before { content: ""; position: absolute; inset: -10%; background:
  radial-gradient(1200px 600px at 20% 30%, rgba(79,140,255,0.15), transparent 60%),
  radial-gradient(800px 400px at 80% 70%, rgba(0,209,255,0.15), transparent 60%);
  filter: blur(24px); z-index: 0; }
.process-graphic { position: relative; z-index: 1; display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
@media (max-width: 576px) {
  .process-section { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .process-blend { border-radius: 16px; }
}