/* =========================================
   1. IMPORTS & VARIABLES
   ========================================= */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  /* Colors */
  --bg: #ffffff;
  --text: #050505;
  --muted: #6b6b6b;
  --blue: #0051ff;
  --blue-soft: #1455ff;
  --card-bg: #f7f7f7;
  --border-subtle: #e6e6e6;
  --footer-bg: #050505;

  /* Sub-page Variables */
  --bg-dark: #000000;
  --accent-gradient: linear-gradient(90deg, #5b8cff, #8a5bff);
  --accent-gradient-alt: linear-gradient(90deg, #8a5bff, #5b8cff);
  --section-max-width: 1200px;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scrollbars */
  width: 100%;
  position: relative;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.about-page {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Layout Helpers */
.container {
  margin: 0 auto;
  width: min(1120px, 100% - 3rem);
}

.section-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.centered {
  text-align: center;
}

/* Standard Sections */
section {
  padding: 4rem 0;
}
@media (min-width: 1024px) {
  section {
    padding: 6rem 0;
  }
}

/* Text Gradients */
.gradient-word,
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-word-alt {
  background: var(--accent-gradient-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================
   3. PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  animation: pulse-logo 2s infinite ease-in-out;
}
.loader-logo span {
  color: var(--blue);
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: loading-line 1s infinite linear;
}

@keyframes pulse-logo {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes loading-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* =========================================
   4. HEADER (Standard Pages)
   ========================================= */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Transparent State (Over Hero) */
header.header-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  border-bottom-color: transparent;
  box-shadow: none;
}
header.header-overlay .logo {
  color: #ffffff;
}
header.header-overlay .nav-links a {
  color: #ffffff;
}
header.header-overlay .nav-links a::after {
  background: #ffffff;
}
header.header-overlay .nav-cta {
  display: none !important;
}

/* Header Contact Link Toggle */
.nav-link-contact {
  display: none;
}
header.header-overlay .nav-link-contact {
  display: inline-block;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.08em;
  font-size: 1.6rem;
  color: #111;
}
.logo span {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  color: #202020;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Header CTA Button */
.nav-cta {
  display: none;
}
@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 14px 35px rgba(0, 81, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .nav-cta:hover {
    transform: translateY(-1px);
    background: #0035b6;
    box-shadow: 0 18px 45px rgba(0, 53, 182, 0.42);
  }
}

/* =========================================
   5. HERO SECTIONS
   ========================================= */

/* Index Hero */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-inner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0 1.5rem 4rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.hero-content {
  max-width: 640px;
  text-align: left;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}
.hero-sub {
  font-size: 13px;
  max-width: 32rem;
  opacity: 0.92;
  margin-bottom: 25px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Generic Button */
.btn-primary,
.btn {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  transition: transform 0.12s ease;
}
.btn-primary:hover,
.btn:hover {
  transform: translateY(-1px);
  background: #f7f7f7;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

/* Services Hero */
.hero.hero-services {
  min-height: 540px;
  height: 70vh;
}
.hero.hero-services .hero-bg {
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.6);
  transform: scale(1.03);
}
.hero.hero-services .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
.hero.hero-services .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--section-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* About Hero */
.hero.hero-about {
  height: 75vh;
  min-height: 420px;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.8)
    ),
    url("https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2232&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px 24px;
}
.hero.hero-about .hero-inner {
  position: relative;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

/* Contact Hero */
.contact-hero {
  position: relative;
  min-height: 60vh;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.4)
    ),
    url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5);
  transform: scale(1.03);
}
.contact-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  width: min(1120px, 100% - 3rem);
}
.contact-hero-content {
  padding: 4rem 0 3.5rem;
  max-width: 640px;
}
.contact-hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.contact-hero-title {
  font-size: clamp(3rem, 5vw, 3.8rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* =========================================
   6. COMPONENTS (Index & Subpages)
   ========================================= */

/* Intro & Stats */
.intro-section {
  background: #ffffff;
}
.intro-top {
  text-align: center;
  margin-bottom: 3rem;
}
.intro-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.intro-title {
  font-size: clamp(2rem, 3.3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}
.intro-p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Brand Carousel */
.brand-strip {
  margin: 2.4rem auto 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  padding-block: 0.5rem;
}
.brand-strip::before,
.brand-strip::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 80px;
  pointer-events: none;
  z-index: 1;
}
.brand-strip::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}
.brand-strip::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}
.brand-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  animation: brand-scroll 24s linear infinite;
  white-space: nowrap;
}
.brand-logo {
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0.4;
  filter: grayscale(1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes brand-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Metric Cards */
.metrics-grid {
  max-width: 1500px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  justify-content: center;
  column-gap: 4.75rem;
  row-gap: 0;
}
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }
}
@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

.metric-card {
  background: var(--blue);
  width: 100%;
  max-width: 360px;
  color: #ffffff;
  border-radius: 32px;
  padding: 2rem 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 28px 60px rgba(0, 81, 255, 0.35);
}
.metric-label {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}
.metric-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.3rem;
}
.metric-text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.97;
}

/* Why Us & Challenges (Mobile Optimized) */
.why-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-card {
  border-radius: 22px;
  padding: 1.7rem 1.8rem;
  background: #fff;
  display: flex;
  gap: 1.2rem;
  box-shadow: 0 20px 50px rgba(16, 16, 24, 0.04);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 81, 255, 0.15);
  border-color: rgba(0, 81, 255, 0.4);
}
.why-thumb {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffcf33, #ff5b0a);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.why-card:hover .why-thumb {
  transform: scale(1.1) rotate(3deg);
}

.challenges-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.challenge-card {
  border-radius: 22px;
  padding: 1.7rem 1.8rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 16, 24, 0.05);
  border: 1px solid var(--border-subtle);
}
.challenge-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 81, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .challenge-card {
    padding: 1.2rem 0.8rem;
    text-align: center;
    align-items: center;
    min-height: auto;
  }
  .challenge-text {
    display: none;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .why-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-radius: 16px;
  }
  .why-text {
    display: none;
  }
  .why-thumb {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
  }
  .why-title {
    margin-bottom: 0;
    font-size: 1rem;
  }
}

/* Awards */
.awards-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 980px) {
  .awards-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.award-card {
  width: 150px;
  height: 150px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 42px rgba(16, 16, 24, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.9rem;
}
.award-card:nth-child(1) {
  background: linear-gradient(135deg, #e6f4ff, #ffffff);
}
.award-card:nth-child(2) {
  background: linear-gradient(135deg, #ffe9d5, #ffffff);
}
.award-card:nth-child(3) {
  background: linear-gradient(135deg, #ffe0f5, #ffffff);
}

/* --- Case Study Hero (Insights) --- */
.case-hero {
  padding-top: 0;
}
.case-image-wrap {
  border-radius: 30px;
  overflow: hidden;
  max-height: 520px;
}
.case-badge {
  position: absolute;
  right: 1.75rem;
  top: 1.75rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.case-title-overlay {
  position: absolute;
  left: 3rem;
  bottom: 2.5rem;
  max-width: 540px;
  color: #fff;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}
.case-title-overlay h2 {
  font-size: clamp(2.2rem, 3.3vw, 2.8rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .case-hero-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
  }
  .case-image-wrap {
    border-radius: 24px;
    height: 420px;
  }
  .case-title-overlay {
    left: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 100%;
    text-align: left;
  }
  .case-title-overlay h2 {
    font-size: 1.75rem;
  }
  .case-badge {
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.7rem;
  }
}

/* =========================================
   7. CASE STUDY / PROJECT PAGE (Detailed)
   ========================================= */
.project-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: #ffffff;
}
.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.project-client-tag {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  margin-bottom: 1.5rem;
}
.project-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}
.project-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 90%;
}
.hero-metrics-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.metric-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.project-tags {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #888;
}
.tag-pill {
  background: #f4f4f4;
  color: #222;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.project-hero-image .image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/10;
}
.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-hero-image:hover img {
  transform: scale(1.03);
}

/* Content Sections */
.section-light {
  padding: 5rem 0;
  background: #fff;
}
.section-gray {
  padding: 5rem 0;
  background: #f9f9f9;
}
.section-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.problem-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 500;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.process-card {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}
.process-num {
  font-size: 3rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}
.tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.tech-item {
  border: 1px solid #eee;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  background: #fff;
}
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.gallery-item {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 20px;
}
.gallery-item.full-width {
  grid-column: 1 / -1;
}
.gallery-item img {
  border-radius: 12px;
  width: 100%;
}

@media (max-width: 900px) {
  .project-hero-grid,
  .project-split,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-hero {
    padding-top: 100px;
  }
  .project-hero-content {
    order: 1;
  }
  .project-hero-image {
    order: 2;
  }
}

/* Smash CTA */
.cta-smash-section {
  padding: 4rem 0 6rem;
  background: #fff;
}
.cta-smash-card {
  background-color: #0a0a0a;
  border-radius: 32px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-smash-bg {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 69, 48, 0.4) 0%,
    rgba(255, 69, 48, 0) 70%
  );
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.cta-smash-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}
.cta-smash-btn {
  background-color: #ff4530;
  color: #ffffff;
  padding: 0.7rem 1.8rem 0.7rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 69, 48, 0.3);
}
.cta-smash-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 69, 48, 0.5);
}
.cta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-smash-sub {
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-smash-section {
    padding: 2rem 1rem;
  }
  .cta-smash-card {
    padding: 3rem 1.5rem;
    border-radius: 24px;
  }
  .cta-smash-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  .cta-smash-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem 0.6rem 0.5rem;
  }
  .cta-avatar {
    width: 30px;
    height: 30px;
  }
  .cta-smash-sub {
    font-size: 0.85rem;
    margin-top: 1.2rem;
  }
}

/* =========================================
   8. MOBILE MENU (Standard Pages)
   ========================================= */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 101;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #111;
  transition: all 0.3s ease;
}
header.header-overlay .mobile-toggle span {
  background-color: #fff;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  text-align: center;
}
.mobile-links a {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}
.mobile-menu-cta {
  margin-top: 3rem;
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: #111 !important;
}
body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #111 !important;
}

.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #111;
  cursor: pointer;
  z-index: 102;
  padding: 5px;
  transition: transform 0.2s ease;
}
.mobile-menu-close:hover {
  transform: scale(1.1);
  color: var(--blue);
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-inner {
    padding-bottom: 6rem;
  }
}

/* =========================================
   9. BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 81, 255, 0.3);
}
.back-to-top:hover {
  background: var(--blue-soft);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 81, 255, 0.45);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

CSS:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #6b6b6b;
  --blue: #0051ff;
  --blue-soft: #1455ff;
  --card-bg: #f7f7f7;
  --border-subtle: #e6e6e6;
  --footer-bg: #050505;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* UPDATE THIS BLOCK IN styles.css */
html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden; /* <--- ADDS THIS LINE */
  width: 100%; /* <--- ADDS THIS LINE */
  position: relative; /* <--- ADDS THIS LINE */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout helpers --- */

.container {
  margin: 0 auto;
  width: min(1120px, 100% - 3rem);
}

section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  section {
    padding: 6rem 0;
  }
}

/* === BASE HEADER: used AFTER scroll (as it is now) === */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 250;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, color 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.08em;
  font-size: 1.6rem;
  color: #111;
  z-index: 501;
}

.logo span {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  color: #202020;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA button as before */
.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 14px 35px rgba(0, 81, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
      background 0.15s ease;
  }

  .nav-cta:hover {
    transform: translateY(-1px);
    background: #0035b6;
    box-shadow: 0 18px 45px rgba(0, 53, 182, 0.42);
  }
}

/* --- Hero --- */

/* === OVER HERO: transparent, white text, no CTA === */
header.header-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  border-bottom-color: transparent;
  box-shadow: none;
}

header.header-overlay .logo {
  color: #ffffff;
}

header.header-overlay .nav-links a {
  color: #ffffff;
}

header.header-overlay .nav-links a::after {
  background: #ffffff;
}

/* hide CTA entirely in overlay state */
header.header-overlay .nav-cta {
  display: none !important;
}

/* HERO BASE */
.hero {
  position: relative;
  min-height: 100vh; /* full screen */
  color: #fff;
  overflow: hidden;
  padding: 0; /* no extra padding pushing content */
}

/* video fills the hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* dark gradient from top to bottom (optional) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* THIS is what anchors the text bottom-left */
.hero-inner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0 1.5rem 4rem; /* side + bottom spacing */
  display: flex;
  justify-content: flex-start; /* left */
  align-items: flex-end; /* bottom */
}

.hero-content {
  max-width: 640px;
  text-align: left;
}

/* (optional) keep your existing typography styles */
.hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

/* FIND THIS AND UPDATE IT */
.hero-title {
  /* Old: font-size: 74px; */
  font-size: clamp(3rem, 10vw, 4.6rem); /* New: Scales with screen size */
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 13px;
  max-width: 32rem;
  opacity: 0.92;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #f7f7f7;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.btn-primary span.icon {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

/* --- Agency Intro + Stats --- */

.intro-section {
  background: #ffffff;
}

.intro-top {
  text-align: center;
  margin-bottom: 3rem;
}

.intro-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.intro-title {
  font-size: clamp(2rem, 3.3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.intro-title span.star {
  color: var(--blue);
  margin: 0 0.2rem;
}

.intro-p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
}

.logo-row {
  margin: 2.75rem auto 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  gap: 2.7rem;
  opacity: 0.65;
  filter: grayscale(1);
}

.logo-pill {
  height: 56px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 700px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FIND THIS AND UPDATE IT */
.metric-card {
  background: var(--blue);
  /* Old: width: 360px; */
  width: 100%; /* New: Fluid width */
  max-width: 360px; /* New: Cap it at 360px */
  color: #ffffff;
  border-radius: 32px;
  padding: 2rem 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 28px 60px rgba(0, 81, 255, 0.35);
}

.metric-label {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-bottom: 0.5rem;
}

.metric-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.metric-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Client Acquisition Section --- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

@media (min-width: 960px) {
  .two-col {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.06em;
  margin-bottom: 1.2rem;
}

.section-title span.highlight {
  color: var(--blue);
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.service-media {
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(
      circle at 0 0,
      rgba(0, 81, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 0, 128, 0.4),
      transparent 60%
    ),
    #111;
  padding: 1.5rem;
  position: relative;
}

.service-media img {
  border-radius: 20px;
  width: 100%;
  filter: grayscale(0.2);
}

.service-media-tag {
  position: absolute;
  inset: 1.5rem auto auto 1.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

.service-pill {
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(15, 15, 23, 0.04);
}

/* --- Challenges Cards --- */

.centered {
  text-align: center;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.challenges-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .challenges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.challenge-card {
  border-radius: 22px;
  padding: 1.7rem 1.8rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 16, 24, 0.05);
  border: 1px solid var(--border-subtle);
}

.challenge-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 81, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.challenge-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.challenge-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Case Study Hero --- */

.case-hero {
  padding-top: 0;
}

.case-image-wrap {
  border-radius: 30px;
  overflow: hidden;
  max-height: 520px;
}

.case-badge {
  position: absolute;
  right: 1.75rem;
  top: 1.75rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.case-hero-inner {
  position: relative;
}

.case-title-overlay {
  position: absolute;
  left: 3rem;
  bottom: 2.5rem;
  max-width: 540px;
  color: #fff;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

.case-title-overlay h2 {
  font-size: clamp(2.2rem, 3.3vw, 2.8rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.3rem;
}

.case-title-overlay p {
  font-size: 0.95rem;
  opacity: 0.96;
}

/* --- Why Us --- */

.why-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 920px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.why-card {
  border-radius: 22px;
  padding: 1.7rem 1.8rem;
  background: #fff;
  display: flex;
  gap: 1.2rem;
  box-shadow: 0 20px 50px rgba(16, 16, 24, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border-subtle); /* Ensure border exists to be animated */
}

.why-card:hover {
  transform: translateY(-8px); /* Moves the card up */
  box-shadow: 0 30px 60px rgba(0, 81, 255, 0.15); /* Adds a soft blue glow */
  border-color: rgba(0, 81, 255, 0.4); /* Highlights the border */
}
.why-thumb {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffcf33, #ff5b0a);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
}
.why-card:hover .why-thumb {
  transform: scale(1.1) rotate(3deg); /* Pops and tilts the icon slightly */
}

.why-thumb.map {
  background: linear-gradient(135deg, #00f2ff, #0051ff);
}

.why-thumb.clock {
  background: linear-gradient(135deg, #111, #444);
}

.why-thumb.badge {
  background: linear-gradient(135deg, #ff2c7d, #b300ff);
}

.why-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-text {
  font-size: 0.9rem;
  color: var(--muted);
}
/* =========================================
   14. MOBILE OPTIMIZED SECTIONS (Reduce Scroll)
   ========================================= */

@media (max-width: 768px) {
  /* --- CHALLENGES SECTION --- */
  /* Turn into a compact 2-column grid */
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 12px; /* Tight spacing */
  }

  .challenge-card {
    padding: 1.2rem 0.8rem; /* Reduced padding */
    text-align: center; /* Center align content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto; /* Remove minimum height constraints */
  }

  /* Hide the long description text */
  .challenge-text {
    display: none;
  }

  /* Adjust icon size */
  .challenge-icon {
    margin-bottom: 0.6rem;
    width: 32px;
    height: 32px;
  }

  /* Adjust title size */
  .challenge-title {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0; /* No bottom margin since text is gone */
  }

  /* --- WHY US SECTION --- */
  /* Turn into a compact vertical list */
  .why-grid {
    grid-template-columns: 1fr; /* 1 item per row */
    gap: 10px;
  }

  .why-card {
    flex-direction: row; /* Icon Left, Text Right */
    align-items: center; /* Center vertically */
    padding: 12px 16px; /* Slim padding */
    gap: 16px; /* Space between icon and title */
    border-radius: 16px;
  }

  /* Hide the long description text */
  .why-text {
    display: none;
  }

  /* Make the color thumbnail smaller */
  .why-thumb {
    flex: 0 0 40px; /* Fixed width */
    height: 40px;
    border-radius: 10px;
  }

  /* Adjust title */
  .why-title {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Optional: Add a small arrow to indicate it's a list item */
  .why-card::after {
    content: "→";
    margin-left: auto; /* Push to far right */
    color: var(--border-subtle);
    font-size: 1.2rem;
  }
}
/* --- Awards / Social Proof --- */

.awards-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 980px) {
  .awards-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.awards-text {
  max-width: 460px;
}

.awards-text h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.awards-text p {
  color: var(--muted);
  font-size: 0.96rem;
}

.award-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.award-card {
  width: 150px;
  height: 150px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 42px rgba(16, 16, 24, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.9rem;
}

.award-card:nth-child(1) {
  background: linear-gradient(135deg, #e6f4ff, #ffffff);
}

.award-card:nth-child(2) {
  background: linear-gradient(135deg, #ffe9d5, #ffffff);
}

.award-card:nth-child(3) {
  background: linear-gradient(135deg, #ffe0f5, #ffffff);
}

/* --- Footer --- */

footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 2.1fr 1.4fr;
  }
}

.footer-columns {
  display: grid;
  gap: 1.7rem;
}

@media (min-width: 720px) {
  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.12em;
  margin-bottom: 1rem;
}

.footer-muted {
  color: #a3a3a3;
  font-size: 0.86rem;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #d2d2d2;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact {
  margin-top: 1rem;
  color: #d2d2d2;
  font-size: 0.85rem;
}

.footer-subscribe {
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  background: #111111;
  border: 1px solid #282828;
  align-self: flex-start;
}

.footer-subscribe-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer-subscribe-text {
  color: #b8b8b8;
  font-size: 0.86rem;
  margin-bottom: 1.2rem;
}

.footer-input-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-input-row input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #050505;
  color: #fff;
  font-size: 0.86rem;
}

.footer-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.2rem;
  background: #ffffff;
  color: #050505;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #1d1d1d;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  color: #7b7b7b;
  font-size: 0.78rem;
}

/* --- Small Screens --- */

@media (max-width: 799px) {
  .nav-links {
    display: none;
  }
}

/* === DESKTOP FONT SIZE TUNING TO MATCH REFERENCE === */
@media (min-width: 1200px) {
  /* “B2B LEAD GENERATION & MARKETING AGENCY” */
  .intro-kicker {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  /* “Accelerate Your Business Growth with ✶ LVRA Global” */
  .intro-title {
    font-size: 64px; /* ~image size */
    line-height: 1.08;
  }

  /* Body text under the big headline */
  .intro-p {
    font-size: 16px;
  }

  /* “PERFORMANCE HIGHLIGHTS” label */
  .section-kicker,
  .metrics-kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  /* Blue stat cards */
  .metric-card {
    padding: 40px 40px 34px;
  }

  .metric-label {
    /* 150+ / 5+ / 11:1 / 308% */
    font-size: 56px;
    line-height: 1.05;
  }

  .metric-title {
    /* “Clients Served”, etc. */
    font-size: 32px;
    line-height: 1.1;
  }

  .metric-text {
    /* paragraph inside card */
    font-size: 16px;
    line-height: 1.45;
  }

  /* “Client Acquisition Made Simple!” */
  .section-title {
    font-size: 56px;
    line-height: 1.1;
  }

  /* Paragraph under “Client Acquisition…” */
  .section-sub {
    font-size: 15.5px;
  }
}

/* ===== CLIENT ACQUISITION SECTION – MATCH REFERENCE ===== */

.client-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.client-title {
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.06em;
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem); /* desktop ~ 64px feel */
}

@media (min-width: 1200px) {
  .client-title {
    font-size: 64px;
  }
}

.client-title span {
  color: var(--blue);
}

.client-sub {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

/* Layout under the heading */

.client-layout {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .client-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left card */

.client-card {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(15, 15, 23, 0.06);
  padding: 2.2rem 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.client-card-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.client-card-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.55), transparent 45%),
    linear-gradient(-120deg, rgba(0, 81, 255, 0.45), transparent 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.client-card-image-wrapper img {
  width: 100%;
  display: block;
  filter: grayscale(0.1);
}

.client-card-body {
  display: flex;
  flex-direction: column;
}

.client-card-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

@media (min-width: 1200px) {
  .client-card-title {
    font-size: 28px;
  }
}

.client-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .client-bullets {
    grid-template-columns: 1fr;
  }
}

.client-bullets ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.client-bullets li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.client-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}

/* Right service grid */

.client-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.4rem;
  align-content: start;
}

@media (max-width: 700px) {
  .client-services-grid {
    grid-template-columns: 1fr;
  }
}

.client-service-pill {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(15, 15, 23, 0.06);
  padding: 1.4rem 1.6rem;
  font-size: 14px;
  color: #222;
  display: flex;
  align-items: center;
  border: 1px solid rgba(230, 230, 230, 0.9);
}

/* === PERFORMANCE HIGHLIGHTS – BIG BLUE CARDS === */

.metrics-kicker {
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 1.7rem;
}

@media (max-width: 960px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--blue);
  color: #fff;
  border-radius: 32px;
  padding: 3rem 2.8rem 2.6rem;
  min-height: 270px; /* makes boxes tall like in the ref */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 32px 70px rgba(0, 81, 255, 0.45);
}

.metric-label {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-bottom: 0.4rem;
}

.metric-title {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.metric-text {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
}

/* === INFINITE BRAND CAROUSEL === */
.logosup {
  width: min(1920px, 100% - 3rem);
}
.brand-strip {
  margin: 2.4rem auto 0;
  width: min(1920px, 100% - 3rem);
  overflow: hidden;
  position: relative;
  padding-block: 0.5rem;
}

.brand-strip::before,
.brand-strip::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 80px;
  pointer-events: none;
  z-index: 1;
}

.brand-strip::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.brand-strip::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.brand-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  animation: brand-scroll 24s linear infinite;
  white-space: nowrap;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0.4;
  filter: grayscale(1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* slower on small screens so text stays readable */
@media (max-width: 768px) {
  .brand-logo {
    font-size: 1.1rem;
  }
  .brand-track {
    animation-duration: 30s;
  }
}

@keyframes brand-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* === PERFORMANCE HIGHLIGHTS GRID === */

.metrics-grid {
  max-width: 1500px; /* total width including whitespace on sides */
  margin: 3rem auto 0; /* center the block itself */

  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  justify-content: center; /* <— this ensures the grid is centered */
  justify-items: center; /* <— centers each card inside its column */

  column-gap: 4.75rem; /* spacing between cards */
  row-gap: 0;
}

/* responsive: 2 cards per row on tablet, 1 on mobile */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* big blue rounded boxes */
.metric-card {
  background: #0734f8;
  width: 360px;
  color: #ffffff;
  border-radius: 32px;
  padding: 2rem 2rem;
  min-height: 320px; /* consistent height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes body text to bottom */
  box-shadow: 0 28px 60px rgba(0, 81, 255, 0.35);
}

/* top numbers (150+, 5+, etc.) */
.metric-label {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}

/* “Clients Served”, etc. */
.metric-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.3rem;
}

/* description paragraph */
.metric-text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.97;
}

/* =========================================================
   === NEW ADDITIONS FOR SUB-PAGES (SERVICES, CONTACT, ABOUT) ===
   ========================================================= */

/* --- Imports for About Page --- */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

/* --- Additional Variables --- */
:root {
  --bg-dark: #000000;
  --bg-light: #f4f4f4;
  --text-muted: #666666; /* Similar to --muted */
  --accent-blue: #39a9ff;
  --accent-purple: #8a5cff;
  --accent-gradient: linear-gradient(90deg, #5b8cff, #8a5bff);
  --accent-gradient-alt: linear-gradient(90deg, #8a5bff, #5b8cff);
  --section-max-width: 1200px;
}

/* --- Global Helpers for Sub-pages --- */
.section-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.gradient-word,
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-word-alt {
  background: var(--accent-gradient-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Navbar (Sub-page specific) --- */
/* Overrides fixed header for sticky behavior on sub-pages */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e6e6;
}

.navbar-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* --- Hero Modifiers --- */

/* Services Hero */
.hero.hero-services {
  min-height: 540px;
  height: 70vh;
}

.hero.hero-services .hero-bg {
  background-image: url("/stack.jpg"); /* Ensure path is correct */
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transform: scale(1.03);
}

.hero.hero-services .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero.hero-services .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--section-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero.hero-services .hero-title {
  font-size: clamp(56px, 8vw, 92px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* About Hero */
.hero.hero-about {
  height: 75vh;
  min-height: 420px;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.7)
    ),
    url("/about_us.jpg"); /* Ensure path is correct */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px 24px;
}

.hero.hero-about .hero-inner {
  position: relative;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.hero.hero-about .hero-title {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  font-weight: 600;
}

/* Contact Hero */
.contact-hero {
  position: relative;
  min-height: 60vh;
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2)
    ),
    url("/contact_bg.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
  transform: scale(1.03);
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  width: min(1120px, 100% - 3rem);
}

.contact-hero-content {
  padding: 4rem 0 3.5rem;
  max-width: 640px;
}

.contact-hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.contact-hero-title {
  font-size: clamp(3rem, 5vw, 3.8rem);
  letter-spacing: -0.06em;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.contact-hero-sub {
  font-size: 0.95rem;
  max-width: 30rem;
  opacity: 0.9;
}

/* --- Services Page Specifics --- */

/* Framework */
.framework-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.framework-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
}

.framework-flow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 999px;
  border: 2px dashed #c8c8c8;
  background: #fafafa;
  justify-self: flex-end;
  flex-wrap: wrap;
}

.framework-pill {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  background: #ffe36a;
}
.framework-pill:nth-child(2) {
  background: #b5f0a9;
}
.framework-pill:nth-child(3) {
  background: #9cb0ff;
}

.framework-description {
  max-width: 780px;
  font-size: 14px;
  color: var(--muted);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  gap: 24px;
}

.stage-card {
  padding: 28px 24px 32px;
  border-radius: 12px;
  background: #f8f8f8;
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.stage-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

/* Experience Strip */
.experience-strip {
  padding: 64px 24px;
  background: radial-gradient(circle at top left, #2d2d2d, #050505);
  color: #ffffff;
}

.experience-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.experience-heading {
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 600;
}

/* Services Layout */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.services-layout.alt {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.service-heading {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-copy {
  font-size: 14px;
  color: var(--muted);
  max-width: 530px;
}

.service-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.16);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.placeholder-icon {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Services Stats */
.stats-section {
  padding-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 0;
  margin-top: 40px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
}

.stats-item {
  padding: 32px 28px 40px;
  border-right: 1px solid #e6e6e6;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-item:last-child {
  border-right: none;
}

.stats-label {
  font-size: 22px;
  font-weight: 500;
}

.stats-number {
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stats-caption {
  font-size: 12px;
  color: var(--muted);
}

/* Careers */
.careers-cta {
  padding: 72px 24px 80px;
  background: #444444;
  color: #ffffff;
}

.careers-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.careers-heading {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  max-width: 640px;
  line-height: 1.2;
}

.careers-copy {
  max-width: 480px;
  font-size: 13px;
}

.careers-actions {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.35);
  background: transparent;
  color: #ffffff;
}

.btn span {
  font-size: 16px;
  transform: translateY(-1px);
}

/* --- Contact Page Specifics --- */
.contact-section {
  background: #ffffff;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-heading {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.contact-heading span {
  color: var(--blue);
}

.contact-text {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.8rem;
  max-width: 420px;
}

.contact-info-block {
  font-size: 0.92rem;
  color: #222;
  margin-bottom: 1.4rem;
}

.contact-info-block h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a0a0a0;
  margin-bottom: 0.35rem;
}

.contact-info-block a {
  color: var(--blue);
}

.contact-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 28px 60px rgba(15, 15, 23, 0.06);
  border: 1px solid var(--border-subtle);
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #f9f9f9;
  transition: border-color 0.12s ease, background 0.12s ease,
    box-shadow 0.12s ease;
}

.form-field textarea {
  border-radius: 18px;
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 81, 255, 0.06);
}

.contact-submit-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-submit {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 81, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  background: #0035b6;
  box-shadow: 0 20px 55px rgba(0, 53, 182, 0.42);
}

.contact-footnote {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-page-spacer {
  height: 64px;
}

/* --- About Page Specifics --- */
body.about-page {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.section.tight {
  padding-top: 60px;
  padding-bottom: 60px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.headline-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.body-copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.body-copy p {
  margin: 10px 0;
}

.banner-years {
  background: radial-gradient(circle at 0% 0%, #444 0, #000 55%, #222 100%);
  color: #ffffff;
  padding: 80px 24px;
}

.banner-years-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.banner-heading {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.2;
}

.banner-copy {
  font-size: 13px;
  line-height: 1.7;
  color: #e5e5e5;
  max-width: 480px;
}

.values {
  max-width: 1200px;
  margin: 0 auto;
}

.values-header {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 80px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.value-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.stats-section-dark {
  background: #000;
  color: #ffffff;
  padding: 40px 0 60px;
}

.stats-section-dark .stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.stats-section-dark .stats-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b3b3b3;
  margin-bottom: 10px;
}

.stats-section-dark .stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #1f1f1f;
}

.stats-section-dark .stat-card {
  padding: 26px 32px 30px;
  background: #000;
  border-right: 1px solid #1f1f1f;
}

.stats-section-dark .stat-card:nth-child(2) {
  background: #f3f3f3;
  color: #111;
}

.stats-section-dark .stat-card:nth-child(2) .stat-label {
  color: #666;
}

.stats-section-dark .stat-card:nth-child(3) {
  background: #222;
}

.stats-section-dark .stat-number {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 6px;
}

.stats-section-dark .stat-card:last-child {
  border-right: none;
}

.clients-section {
  padding: 50px 24px 10px;
}
.clients-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.clients-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.clients-section .client-card {
  background: #f3f3f3;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  padding: 16px;
  border-radius: 0;
  box-shadow: none;
}

.csr-section {
  position: relative;
  color: #ffffff;
  padding: 80px 24px 90px;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.96)
    ),
    url("assets/csr-bg.jpg"); /* Update Path */
  background-size: cover;
  background-position: center;
  margin-top: 50px;
}

.csr-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.csr-heading {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.csr-copy {
  font-size: 13px;
  line-height: 1.8;
  max-width: 620px;
  color: #f2f2f2;
}

.csr-btn {
  position: absolute;
  right: 24px;
  bottom: 100px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
}

/* --- Footer Alt (About) --- */
.footer-alt .footer-columns {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-alt .footer-logo-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.footer-alt .footer-subtext {
  max-width: 220px;
  text-align: right;
  line-height: 1.7;
  font-size: 12px;
  color: #ccc;
}

.footer-alt .footer-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
}

.scroll-top {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Updated Media Queries for new Elements --- */
@media (max-width: 1024px) {
  /* Services */
  .framework-header {
    grid-template-columns: minmax(0, 1.2fr);
  }
  .framework-flow {
    justify-self: flex-start;
  }
  .stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-layout,
  .services-layout.alt {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-layout.alt .service-text {
    order: -1;
  }
  /* General */
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .client-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* About */
  .banner-years-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-section-dark .stats-row {
    grid-template-columns: 1fr;
  }
  .stats-section-dark .stat-card {
    border-right: none;
    border-bottom: 1px solid #1f1f1f;
  }
  .stats-section-dark .stat-card:last-child {
    border-bottom: none;
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .csr-btn {
    position: static;
    margin-top: 24px;
  }
  .footer-alt .footer-columns {
    grid-template-columns: 1.2fr 1.2fr;
  }
  .footer-alt .footer-logo-column {
    align-items: flex-start;
    text-align: left;
  }
  .footer-alt .footer-subtext {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 920px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .challenges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .brand-logo {
    font-size: 1.1rem;
  }
  .brand-track {
    animation-duration: 30s;
  }
  .navbar-inner {
    padding-inline: 16px;
  }
  .hero-inner {
    padding-inline: 16px;
  }
  section {
    padding-inline: 16px;
  }
  .stages-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-item {
    border-right: none;
    border-bottom: 1px solid #e6e6e6;
  }
  .stats-item:last-child {
    border-bottom: none;
  }
  .careers-inner {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .footer-newsletter {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .client-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .client-bullets {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 1.8rem 1.6rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid-full {
    grid-column: auto;
  }
  .navbar-inner {
    padding-inline: 16px;
  }
  .section,
  .section.tight,
  .banner-years,
  .clients-section,
  .stats-inner,
  .csr-section,
  .footer {
    padding-inline: 16px;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================
   12. BACK TO TOP BUTTON
   ========================================= */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99; /* Above most elements */

  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;

  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 81, 255, 0.3);
}

.back-to-top:hover {
  background: var(--blue-soft);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 81, 255, 0.45);
}

/* Visible State (Toggled by JS) */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* =========================================
   13. MOBILE MENU & RESPONSIVE FIXES
   ========================================= */

/* Hamburger Button */
.mobile-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #111;
  transition: all 0.3s ease;
}

/* Overlay Header adjustments */
header.header-overlay .mobile-toggle span {
  background-color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 290;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  text-align: center;
}

.mobile-links a {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: 3rem;
}

/* Toggle Animation State */
body.menu-open {
  overflow: hidden; /* Prevent scrolling when menu is open */
}

/* When menu is open, turn hamburger into X */
body.menu-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: #111 !important; /* Always black when open on white bg */
}
body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #111 !important;
}

/* Mobile Media Query Adjustments */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none; /* Hide standard nav */
  }
  .mobile-toggle {
    display: flex; /* Show hamburger */
  }

  /* Fix hero padding on mobile */
  .hero-inner {
    padding-bottom: 6rem;
  }

  /* Fix grid for small screens */
  .metrics-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}
/* Close button inside the Mobile Menu Overlay */
.mobile-menu-close {
  position: absolute;
  top: 28px; /* Aligns with header padding */
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2.5rem; /* Large readable size */
  line-height: 1;
  color: #111;
  cursor: pointer;
  z-index: 102; /* Above the toggle if they overlap */
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
  transform: scale(1.1);
  color: var(--blue);
}

/* Optional: If you want to hide the original hamburger when menu is open 
   to avoid having two close buttons, uncomment the lines below: */
/*
body.menu-open .mobile-toggle {
  opacity: 0;
  pointer-events: none;
}
*/
/* =========================================
   15. MOBILE FIX FOR CASE STUDIES
   ========================================= */

@media (max-width: 768px) {
  .case-hero-inner {
    /* Ensure the inner container respects the parent padding */
    width: 100%;
    overflow: hidden; /* Cuts off anything sticking out */
    border-radius: 24px; /* Matches image radius */
  }

  .case-image-wrap {
    border-radius: 24px;
    height: 420px; /* Fixed height on mobile to ensure text fits */
  }

  .case-image-wrap img {
    height: 100%;
    object-fit: cover;
  }

  /* Fix the Text Overlay */
  .case-title-overlay {
    left: 1.5rem; /* Reduce left spacing (was 3rem) */
    bottom: 1.5rem; /* Reduce bottom spacing */
    right: 1.5rem; /* Force text to wrap before hitting the edge */
    max-width: 100%; /* Remove desktop width restriction */
    text-align: left;
  }

  /* Resize the Big Headline */
  .case-title-overlay h2 {
    font-size: 1.75rem; /* Readable mobile size */
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .case-title-overlay p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines to save space */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Adjust the Badge (Top Right) */
  .case-badge {
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.7rem;
  }
}
/* =========================================
   16. CASE STUDY / PROJECT PAGE STYLES
   ========================================= */

/* --- Project Hero --- */
.project-hero {
  padding-top: 140px; /* Clear fixed header */
  padding-bottom: 80px;
  background: #ffffff;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* Left text, Right image */
  gap: 4rem;
  align-items: center;
}

.project-client-tag {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  margin-bottom: 1.5rem;
}

.project-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.project-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 90%;
}

/* Hero Metrics (The big numbers) */
.hero-metrics-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.metric-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* Tags */
.project-tags {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #888;
}

.tag-pill {
  background: #f4f4f4;
  color: #222;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* Hero Image Frame */
.project-hero-image .image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/10;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-hero-image:hover img {
  transform: scale(1.03);
}

/* --- Content Sections --- */
.section-light {
  padding: 5rem 0;
  background: #fff;
}

.section-gray {
  padding: 5rem 0;
  background: #f9f9f9;
}

.section-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.project-split p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.problem-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 500;
}

.problem-list li {
  margin-bottom: 0.5rem;
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-card {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.process-num {
  font-size: 3rem;
  font-weight: 700;
  color: #f0f0f0; /* Subtle back number */
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}

.process-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Tech Stack --- */
.tech-stack-title {
  text-align: center;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 2rem;
}

.tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-item {
  border: 1px solid #eee;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  background: #fff;
}

/* --- Visual Gallery --- */
.project-gallery-section {
  padding: 5rem 0;
  background: #fff;
}

.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gallery-item {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 20px;
}

.gallery-item.full-width {
  grid-column: 1 / -1;
}

.gallery-item img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* --- Mobile Responsive for Case Study --- */
@media (max-width: 900px) {
  .project-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  /* On mobile, show text first */
  .project-hero-content {
    order: 1;
  }
  .project-hero-image {
    order: 2;
  }

  .project-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   17. SMASH BUTTON CTA (Dark Card Style)
   ========================================= */

.cta-smash-section {
  padding: 4rem 0 6rem;
  background: #fff; /* Section background remains white */
}

.cta-smash-card {
  background-color: transparent; /* Dark card background */
  border-radius: 32px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* The Orange Glow Effect at the bottom */
.cta-smash-bg {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 69, 48, 0.4) 0%,
    rgba(255, 69, 48, 0) 70%
  );
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.cta-smash-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: #000000;
  line-height: 1.15;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

/* The Red/Orange Button */
.cta-smash-btn {
  background-color: #ff4530; /* The specific red-orange color */
  color: #ffffff;
  padding: 0.7rem 1.8rem 0.7rem 0.6rem; /* Adjusted padding for avatar */
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 69, 48, 0.3);
}

.cta-smash-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 69, 48, 0.5);
}

/* Avatar circle inside button */
.cta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-smash-sub {
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Mobile Adjustments for the card */
@media (max-width: 600px) {
  .cta-smash-card {
    padding: 3rem 1.5rem;
    border-radius: 24px;
  }
  .cta-smash-title {
    font-size: 1.8rem;
  }
}
/* =========================================
   18. PRELOADER
   ========================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999; /* Must be higher than everything else */
  background-color: #050505; /* Dark background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* When hidden via JS */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  animation: pulse-logo 2s infinite ease-in-out;
}

.loader-logo span {
  color: var(--blue);
}

/* Simple Line Spinner */
.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: loading-line 1s infinite linear;
}

@keyframes pulse-logo {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes loading-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}
/* =========================================
   19. HEADER CONTACT LINK TOGGLE
   ========================================= */

/* 1. Default State (Scrolled / White Header) */
/* The "Contact" text link should be HIDDEN because the button is visible */
.nav-link-contact {
  display: none;
}

/* 2. Initial State (Top / Transparent Header) */
/* The "Contact" text link should be VISIBLE because the button is hidden */
header.header-overlay .nav-link-contact {
  display: inline-block;
}

/* =========================================
   20. PORTFOLIO PAGE STYLES (Base)
   ========================================= */

.portfolio-body {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* Hero Variant */
.hero.hero-portfolio {
  height: 60vh;
  min-height: 400px;
}
.hero.hero-portfolio .hero-bg {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.7)
    ),
    url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transform: scale(1.03);
}
.hero.hero-portfolio .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--section-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero.hero-portfolio .hero-title {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero.hero-portfolio .hero-sub {
  font-size: 1.1rem;
  max-width: 600px;
  opacity: 0.9;
}

/* =========================================
   21. FLOATING UI ELEMENTS (Portfolio)
   ========================================= */

/* 1. Fixed Logo (Top Left) */
/* 1. Fixed Logo (Top Left) */
.fixed-logo {
  position: fixed;
  top: 30px;
  left: 30px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #000; /* Black logo contrasts well with the white filter panel */
  text-decoration: none;
  text-transform: uppercase;

  /* UPDATE: High Z-Index to sit on top of Filter (90) and Menu (110) */
  z-index: 200;

  letter-spacing: 0.05em;

  /* Mobile Performance Fix: Ensures it stays on top during heavy animations */
  transform: translateZ(0);
}

.fixed-logo span {
  color: var(--blue);
}

/* 2. Fixed Filter Text (Centered Vertically & Horizontally) */
.fixed-filter-text {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #000;
  z-index: 100;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.fixed-filter-text:hover {
  color: var(--blue);
  transform: translate(-50%, -50%) rotate(-90deg) scale(1.1);
}

/* 3. Central Menu Button (Brown Circle - Bottom Center) */
.menu-toggle-wrapper {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.masonry-menu-btn {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Background Circle */
.masonry-menu-btn .btn-bg {
  position: absolute;
  inset: 0;
  background-color: #c38d3e; /* Brown/Gold Default */
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 0;
}

.masonry-menu-btn:hover .btn-bg {
  transform: scale(1.1);
}

/* Hamburger Lines */
.btn-icon-line {
  width: 20px;
  height: 2px;
  background-color: #fff;
  display: block;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

/* --- CIRCULAR LABELS SHARED STYLES --- */
.menu-label--circular {
  position: absolute;
  top: -50%;
  left: -50%; /* Center the larger SVG over the button */
  width: 200%;
  height: 200%;
  pointer-events: none; /* Allow clicks on the button underneath */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-label--circular svg {
  width: 100%;
  height: 100%;
  /* Rotate so text starts on the right side */
  transform: rotate(90deg);
}

.menu-label--circular text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px; /* Bigger Text */
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- STATE: MENU (Closed) --- */
.menu-label--default {
  opacity: 1;
  transform: rotate(0deg);
}
.menu-label--default text {
  fill: #000000; /* BLACK text for Menu */
}

/* --- STATE: CLOSE (Open) --- */
.menu-label--active {
  opacity: 0;
  transform: rotate(-45deg); /* Start rotated slightly off */
}
.menu-label--active text {
  fill: #ffffff; /* WHITE text for Close */
}

/* --- ACTIVE STATES (When Menu or Filter is Open) --- */

/* 1. Turn Button Blue */
body.filter-active .btn-bg,
body.menu-active .btn-bg {
  background-color: #3b4cca;
}

/* 2. Hide "Menu" Text */
body.filter-active .menu-label--default,
body.menu-active .menu-label--default {
  opacity: 0;
  transform: rotate(45deg); /* Rotate out */
}

/* 3. Show "Close" Text */
body.filter-active .menu-label--active,
body.menu-active .menu-label--active {
  opacity: 1;
  transform: rotate(0deg); /* Rotate in */
}

/* 4. Transform Hamburger to X */
body.filter-active .btn-icon-line:nth-child(2),
body.menu-active .btn-icon-line:nth-child(2) {
  transform: rotate(45deg) translate(2px, 2px);
}
body.filter-active .btn-icon-line:nth-child(3),
body.menu-active .btn-icon-line:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* =========================================
   22. BOTTOM DRAWER NAV (Footer Widget)
   ========================================= */
.masonry-nav-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  min-height: 350px;
  background-color: #000000;
  z-index: 105;
  /* Visibility Force */
  opacity: 1 !important;
  visibility: visible !important;
  /* Slide Animation */
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.menu-active .masonry-nav-overlay {
  transform: translateY(0);
}

/* Main Content Push */
main {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  background-color: #fff;
  width: 100%;
}
body.menu-active main {
  transform: translateY(-40vh);
}
body.menu-active,
body.filter-active {
  overflow: hidden;
}

/* Footer Grid */
.nav-widget-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  height: 100%;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.nav-widget-col {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: opacity 0.3s ease;
}
.nav-widget-col:hover {
  opacity: 1;
}
.nav-widget-container:hover .nav-widget-col:not(:hover) {
  opacity: 0.4;
}
.nav-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  color: #fff;
}
.nav-col-card {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #111;
}
.nav-col-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.7);
}
.nav-widget-col:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.nav-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.nav-card-content h3 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}
.nav-widget-footer {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.social-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.social-icons a {
  display: inline-block;
  border: 1px solid #fff;
  padding: 5px 10px;
  font-size: 0.7rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}
.social-icons a:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 1000px) {
  .nav-widget-container {
    grid-template-columns: repeat(2, 1fr);
    overflow-y: auto;
  }
  .masonry-nav-overlay {
    height: 60vh;
    padding: 30px;
  }
  body.menu-active main {
    transform: translateY(-60vh);
  }
  .nav-widget-col:nth-child(n + 5) {
    display: none;
  }
}

/* =========================================
   23. MASONRY GRID (4-Column Fail-Safe)
   ========================================= */
.masonry-section {
  padding: 40px;
  min-height: 100vh;
}
.masonry-grid {
  margin: 0 -15px;
  width: auto;
  position: relative;
  perspective: 1000px;
}
.masonry-grid:after {
  content: "";
  display: block;
  clear: both;
}
.grid-sizer,
.grid-item {
  padding: 0 15px 40px 15px;
  float: left;
  box-sizing: border-box;
}

/* MOBILE BREAKPOINT UPDATED */
@media (max-width: 599px) {
  .grid-sizer,
  .grid-item {
    width: 50%; /* CHANGED: 2 Columns on mobile */
  }
  .masonry-section {
    padding: 80px 15px;
  } /* Slightly less padding */
  /* REMOVED: .fixed-filter-text { display: none; } - It is now visible */
}

@media (min-width: 600px) and (max-width: 999px) {
  .grid-sizer,
  .grid-item {
    width: 50%;
  }
}
@media (min-width: 1000px) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .grid-item--width2 {
    width: 50%;
  }
}
/* =========================================
   24. ITEM STYLING (Hover Radius & Clipping)
   ========================================= */

.grid-item {
  display: block;
  text-decoration: none;
  position: relative;
  /* No overflow hidden here, we handle it in the img-wrap */
}

/* Aspect Ratio Helper */
.grid-item--tall .masonry-img-wrap {
  aspect-ratio: 3/4;
}

.masonry-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  background-color: #111;

  /* 1. CLIP THE CONTENT */
  overflow: hidden;

  /* 2. INITIAL RADIUS (Square/Sharp) */
  border-radius: 0px;

  /* 3. SAFARI FIX: Forces browser to respect border-radius clipping on child images */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);

  /* Smooth transition for the corner rounding */
  transition: border-radius 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.masonry-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* Smooth transition for the image zoom/blur */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

/* --- HOVER EFFECTS (Active Items Only) --- */
.grid-item:hover .masonry-img-wrap {
  /* Round the corners on hover */
  border-radius: 25px;
  /* Optional: Add a shadow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.grid-item:hover .masonry-img-wrap img {
  /* Slight zoom on hover */
  transform: scale(1.05);
  filter: brightness(1.1);
}
.masonry-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.masonry-overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding-right: 20px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.masonry-overlay-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.masonry-overlay-text p {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.3;
  margin: 0;
}

/* =========================================
   25. FILTER ANIMATIONS (Split & Blur)
   ========================================= */
/* --- DESKTOP SPLIT --- */
body.filter-active .grid-item.is-left-column {
  transform: translateX(-15vw);
}
body.filter-active .grid-item.is-right-column {
  transform: translateX(15vw);
}

/* --- MOBILE SPLIT (Adjusted for 60% Center Gap) --- */
@media (max-width: 900px) {
  /* Push items 40% to sides to clear the 60% center overlay */
  body.filter-active .grid-item.is-left-column {
    transform: translateX(-40vw);
  }
  body.filter-active .grid-item.is-right-column {
    transform: translateX(40vw);
  }
}

/* Hide Filter Trigger Text when active */
body.filter-active .fixed-filter-text {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loading State */
.grid-item.is-loading {
  opacity: 0;
  filter: blur(30px) grayscale(20%);
  transform: scale(0.95) translateY(30px);
  pointer-events: none;
}

/* Muted State */
.grid-item.is-muted {
  opacity: 0.85;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.grid-item.is-muted .masonry-img-wrap img {
  filter: blur(25px);
  transform: scale(1.3);
}
.grid-item.is-muted .masonry-overlay-text,
.grid-item.is-muted .masonry-badge {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Match State */
.grid-item.is-match {
  opacity: 1;
  z-index: 10;
}
.grid-item.is-match .masonry-img-wrap img {
  filter: blur(0);
  transform: scale(1);
}
/* =========================================
   26. FILTER OVERLAY (Center Content)
   ========================================= */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* Desktop Width */
  width: 30%;
  min-width: 320px;

  height: 100vh;
  background: #ffffff;
  z-index: 90;
  padding: 140px 20px;

  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 50% 0 50%);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);

  overflow-y: auto;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  pointer-events: auto;
}

body.filter-active .filter-overlay {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

.filter-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  text-align: center;
  height: 100%;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}

.filter-column h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #000;
}

.filter-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
  width: 100%;
  max-width: 240px;
}

.filter-column ul li {
  display: flex;
  justify-content: space-between;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.filter-column ul li:hover {
  color: var(--blue);
  transform: translateX(5px);
}

.filter-column ul li .count {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin-top: 4px;
}

.filter-list li.active {
  color: var(--blue) !important;
  font-weight: 700;
  transform: translateX(10px);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 900px) {
  .filter-overlay {
    /* 60% Width on Mobile */
    width: 60%;
    /* Ensure text doesn't break on very small screens */
    min-width: 260px;
    max-width: none;

    padding: 100px 20px;

    /* Keep borders to define the edges against the pushed content */
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;

    /* Optional: Add shadow to pop it out from the split content */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }

  /* Adjust text size slightly for the narrower mobile column */
  .filter-column ul li {
    font-size: 1.1rem;
  }
}
/* =========================================
   27. FILTERING ANIMATIONS (Clean Blur)
   ========================================= */

/* 1. Item Movement Logic */
.grid-item {
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.8s ease-out, filter 0.8s ease-out;

  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
  will-change: transform, opacity, filter;
}

/* 2. LOADING STATE */
.grid-item.is-loading {
  opacity: 0;
  filter: blur(30px) grayscale(20%);
  transform: scale(0.95) translateY(30px);
  pointer-events: none;
}

/* 3. MUTED STATE (The Filtered-Out Blur) */
.grid-item.is-muted {
  opacity: 0.9; /* Keep opacity high so color shows */
  pointer-events: none;
  z-index: 0;
}

/* THE BLUR FIX: Scale up inside the clipped container */
.grid-item.is-muted .masonry-img-wrap img {
  /* Strong blur */
  filter: blur(20px);

  /* Scale UP to push the fuzzy edges outside the overflow:hidden boundary */
  transform: scale(1.2);
}

/* Hide text/badges on blurred items */
.grid-item.is-muted .masonry-overlay-text,
.grid-item.is-muted .masonry-badge {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 4. MATCHED STATE */
.grid-item.is-match {
  z-index: 10;
}

/* 5. Active Filter Text */
.filter-list li.active {
  color: var(--blue) !important;
  font-weight: 700;
  transform: translateX(10px);
}
