/* ==============================================
   CSS Custom Properties (Design Tokens)
   ============================================== */
:root {
  /* Colours */
  --clr-bg: #0B0D15;
  --clr-bg-alt: #0f1320;
  --clr-card: #151A26;
  --clr-card-hover: #1a2033;
  --clr-surface: #1E2436;
  --clr-border: rgba(124, 92, 252, 0.15);
  --clr-border-hover: rgba(124, 92, 252, 0.35);

  --clr-purple: #7C5CFC;
  --clr-purple-dark: #6a4de0;
  --clr-cyan: #00D4FF;
  --clr-cyan-dark: #00b8e0;

  --clr-text: #E8E8F0;
  --clr-text-muted: #9098B0;
  --clr-text-dim: #5A6078;
  --clr-white: #FFFFFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan));
  --gradient-primary-reverse: linear-gradient(135deg, var(--clr-cyan), var(--clr-purple));
  --gradient-text: linear-gradient(135deg, var(--clr-purple), var(--clr-cyan));
  --gradient-card-border: linear-gradient(135deg, rgba(124, 92, 252, 0.3), rgba(0, 212, 255, 0.15));
  --gradient-btn-hover: linear-gradient(135deg, var(--clr-purple-dark), var(--clr-cyan-dark));

  /* Typography */
  --ff-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3rem;      /* 48px */
  --fs-5xl: 3.75rem;   /* 60px */

  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-lg);

  /* Borders & radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-purple: 0 0 20px rgba(124, 92, 252, 0.25);
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.2);
  --shadow-glow-accent: 0 0 30px rgba(124, 92, 252, 0.3);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index layers */
  --z-header: 1000;
  --z-overlay: 900;
}


/* ==============================================
   RESET & BASE
   ============================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 2px;
}


/* ==============================================
   UTILITY CLASSES
   ============================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}

.section__overline {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-purple);
  background: rgba(124, 92, 252, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.section__desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}


/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--ff-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: 0.85rem var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn__icon {
  font-size: var(--fs-xs);
  transition: transform var(--transition-fast);
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-glow-purple);
}

.btn--primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-2px);
}

.btn--primary:hover .btn__icon {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn--ghost:hover {
  border-color: var(--clr-purple);
  color: var(--clr-white);
  background: rgba(124, 92, 252, 0.08);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn--ghost:hover .btn__icon {
  transform: translateX(2px);
}


/* ==============================================
   HEADER / NAVIGATION
   ============================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(11, 13, 21, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition-base);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
}

.logo__img {
  display: block;
  width: auto;
  height: 80px;
  margin: -20px 0;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-fast);
}

.logo__img--footer {
  height: 72px;
  margin: -18px 0;
}

.logo:hover .logo__img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(94%) saturate(749%) hue-rotate(222deg) brightness(101%) contrast(101%);
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-md);
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
}

.logo__highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo--footer .logo__text {
  -webkit-text-fill-color: var(--clr-white);
  color: var(--clr-white);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  z-index: calc(var(--z-header) + 1);
  transition: border-color var(--transition-fast);
}

.hamburger:hover {
  border-color: var(--clr-purple);
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger open state */
.hamburger.active {
  border-color: var(--clr-purple);
}

.hamburger.active .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-white);
  background: rgba(124, 92, 252, 0.06);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}


/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

/* Background blobs */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: blobFloat 20s ease-in-out infinite;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: var(--clr-purple);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: var(--clr-cyan);
  bottom: -5%;
  left: -5%;
  animation-delay: -7s;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: var(--clr-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.3px;
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  color: var(--clr-white);
}

.hero__subtitle {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--clr-text-dim);
  font-size: var(--fs-xs);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll-icon {
  font-size: var(--fs-sm);
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(6px);
  }
  60% {
    transform: translateX(-50%) translateY(3px);
  }
}


/* ==============================================
   SERVICES SECTION
   ============================================== */
.services {
  background: var(--clr-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Service Card */
.service-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Subtle border glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover {
  background: var(--clr-card-hover);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: var(--fs-xl);
  background: rgba(124, 92, 252, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--clr-purple);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon-wrapper {
  background: var(--gradient-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-glow-purple);
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.service-card__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card__highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}

.service-card__highlights li i {
  color: var(--clr-cyan);
  font-size: var(--fs-xs);
}


/* ==============================================
   ABOUT SECTION
   ============================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__text {
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
  font-size: var(--fs-base);
}

.about__text strong {
  color: var(--clr-text);
  font-weight: var(--fw-semibold);
}

/* Stats row */
.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--clr-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat__number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}

/* About visual (decorative) */
.about__visual {
  display: none;
  justify-content: center;
  align-items: center;
}

.about__decoration {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__decoration > .fa-brain {
  font-size: 5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
}

.about__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  animation: ringPulse 4s ease-in-out infinite;
}

.about__ring--1 {
  width: 180px;
  height: 180px;
  animation-delay: 0s;
}

.about__ring--2 {
  width: 240px;
  height: 240px;
  animation-delay: -1s;
}

.about__ring--3 {
  width: 300px;
  height: 300px;
  animation-delay: -2s;
  border-color: rgba(124, 92, 252, 0.1);
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}


/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact {
  background: var(--clr-bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  max-width: 960px;
  margin: 0 auto;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
}

.form__input-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.form__input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-dim);
  font-size: var(--fs-sm);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form__input-icon--textarea {
  top: var(--space-lg);
  transform: none;
}

.form__input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) * 2 + 1rem);
  font-family: var(--ff-primary);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input::placeholder {
  color: var(--clr-text-dim);
}

.form__input:focus {
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.form__input:focus ~ .form__input-icon,
.form__input:focus + .form__input-icon {
  color: var(--clr-purple);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: var(--space-lg);
}

/* Contact info cards */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact__card-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.contact__address {
  display: flex;
  gap: var(--space-md);
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.contact__address-icon {
  color: var(--clr-purple);
  font-size: var(--fs-md);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.contact__details li i {
  width: 16px;
  color: var(--clr-cyan);
  font-size: var(--fs-xs);
  text-align: center;
  flex-shrink: 0;
}


/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-4xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer__tagline {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-md);
  max-width: 280px;
  line-height: var(--lh-relaxed);
}

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--clr-purple);
}

.footer__contact address,
.footer__company-no {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer__company-no {
  margin-top: var(--space-sm);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid var(--clr-border);
  padding: var(--space-lg) 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.footer__legal {
  color: var(--clr-text-dim);
}


/* ==============================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==============================================
   RESPONSIVE — TABLETS (≥768px)
   ============================================== */
@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-xl);
  }

  .section {
    padding: var(--space-6xl, 7rem) 0;
  }

  .section__title {
    font-size: var(--fs-3xl);
  }

  /* Nav visible by default */
  .hamburger {
    display: none;
  }

  .nav {
    display: block;
  }

  /* Hero */
  .hero__title {
    font-size: var(--fs-4xl);
  }

  .hero__subtitle {
    font-size: var(--fs-lg);
  }

  /* Services grid: 2 columns */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About stats row */
  .about__stats {
    gap: var(--space-2xl);
  }

  /* Contact grid side by side */
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer grid: 3 columns */
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* ==============================================
   RESPONSIVE — DESKTOP (≥1024px)
   ============================================== */
@media (min-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .section__title {
    font-size: var(--fs-4xl);
  }

  /* Hero */
  .hero__title {
    font-size: var(--fs-5xl);
  }

  .hero__actions {
    flex-direction: row;
  }

  /* Services grid: 3 columns */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About: side by side */
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__visual {
    display: flex;
  }

  .hero__blob--1 {
    width: 600px;
    height: 600px;
  }

  .hero__blob--2 {
    width: 500px;
    height: 500px;
  }
}


/* ==============================================
   RESPONSIVE — LARGE DESKTOP (≥1400px)
   ============================================== */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }

  .hero__title {
    font-size: 4.25rem;
  }
}


/* ==============================================
   MOBILE NAV OVERLAY (hidden by default)
   ============================================== */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-bg);
    border-left: 1px solid var(--clr-border);
    padding: 6rem var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: var(--z-overlay);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  .nav__link {
    padding: var(--space-md);
    font-size: var(--fs-base);
  }

  .nav__link::after {
    display: none;
  }

  /* Overlay backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav-backdrop.visible {
    opacity: 1;
    pointer-events: all;
  }
}
