/* ==========================================================================
   Elmehdi — Portfolio
   Design tokens, base reset, shared components and page styles.
   This file owns the full branded design system so it stays predictable
   across pages.
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg: #FEFEFA;
  --bg-alt: #F5F5EF;

  /* Brand */
  --brand: #003262;
  --brand-dark: #00284E;

  /* Accent (micro-details only) */
  --accent: #FFBF00;

  /* Neutrals */
  --white: #FFFFFF;
  --black: #000000;
  --text: #0A0A0A;
  --text-muted: #4B5563;
  --border: rgba(0, 50, 98, .12);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #003262, #0A4E8C);
  --grad-accent: linear-gradient(135deg, #FFBF00, #FFD966);

  /* Layout */
  --container: 90rem;
  --nav-gap: 100px;
  --transition: 200ms ease;
}

/* --------------------------------------------------------------------------
   Base
   Minimal reset (mirrors the Tailwind Preflight behaviour this site was
   designed against, so the Play CDN is no longer needed).
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

[hidden]:not([hidden='until-found']) { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }

blockquote, dl, dd, hr, figure, p, pre { margin: 0; }

hr { height: 0; color: inherit; border-top-width: 1px; }

ol, ul, menu { list-style: none; margin: 0; padding: 0; }

b, strong { font-weight: bolder; }

img, video { max-width: 100%; height: auto; }

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

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

button, input, optgroup, select, textarea {
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-image: none;
  color: inherit;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
}

button { font: inherit; }

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

/* Alternating section backgrounds */
.section { background: var(--bg); }

/* --------------------------------------------------------------------------
   Navbar (floating pill)
   -------------------------------------------------------------------------- */
.site-nav { padding-top: 16px; }

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 8px 0 10px;
  background: var(--brand);
  border-radius: 999px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
  flex: 0 0 auto;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 700;
  font-size: 26px;
  display: grid;
  place-items: center;
  transform: rotate(-16deg);
}

.nav-wordmark {
  color: var(--white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.nav-wordmark .dot { color: var(--accent); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  padding-bottom: 2px;
  transition: color var(--transition);
}

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

.nav-links a.active { color: var(--accent); }

.nav-cta {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--brand);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background var(--transition);
}

.nav-cta:hover { background: var(--bg-alt); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* `overflow-x: clip` contains the scaled portrait sideways (so it can never
   widen the page) while leaving the Y axis unclipped, so the image keeps
   bleeding down behind the marquee band. */
.hero { overflow-x: clip; padding-top: var(--nav-gap); padding-bottom: 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

/* --- Left column --- */
.hero-label {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid var(--brand);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}

.hero-label .handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.hero-label .handle.tl { top: -5px; left: -5px; }
.hero-label .handle.tr { top: -5px; right: -5px; }
.hero-label .handle.bl { bottom: -5px; left: -5px; }
.hero-label .handle.br { bottom: -5px; right: -5px; }

.hero-title {
  margin: 0;
  font-size: 64px;
  line-height: 1.24;
  font-weight: 700;
  color: var(--text);
}

.hero-title .name {
  font-style: italic;
  color: var(--accent);
}

.hero-text {
  max-width: 440px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
}

.hero-stat-label {
  margin-top: 2px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Primary split button (reusable: hero + section headers) */
.btn-split {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 4px 8px 4px 4px;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.btn-split__main {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  transition: background var(--transition);
}

.btn-split:hover .btn-split__main { background: var(--brand-dark); }

.btn-split__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 999px;
  transition: transform var(--transition);
}

.btn-split:hover .btn-split__icon { transform: scale(1.06); }

.btn-split__icon svg { width: 13px; height: 13px; }

.btn-split__icon--arrow svg {
  width: 20px;
  height: 13px;
  fill: var(--black);
}

/* Shared long-arrow icon (sprite #icon-arrow) */
.icon-arrow {
  display: block;
  fill: currentColor;
}

.icon-arrow--left { transform: rotate(180deg); }

/* Secondary outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 30px;
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* --- Right column (image composition) --- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 560px;
  margin-inline: auto;
}

.hero-portrait {
  position: absolute;
  left: 50%;
  bottom: -85px;
  transform: translateX(-50%);
  height: 118%;
  width: auto;
  max-width: none;
  z-index: 1;
}

/* CONTACT ME rotating badge — sits on the image, top-right. */
.hire-badge {
  position: absolute;
  top: 48px;
  right: -20px;
  width: 128px;
  height: 128px;
  z-index: 4;
  border-radius: 999px;
  background: var(--brand);
  border: 5px solid var(--white);
  display: grid;
  place-items: center;
}

.hire-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite;
}

.hire-badge__ring text {
  fill: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hire-badge__core {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: var(--brand);
  transition: transform var(--transition);
}

.hire-badge:hover .hire-badge__core { transform: scale(1.08); }

.hire-badge__core svg {
  width: 20px;
  height: 13px;
  fill: currentColor;
  transform: rotate(-45deg);
}

/* Floating tags */
.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 50, 98, .12);
}

.tag--accent { background: var(--accent); color: var(--brand); }
.tag--brand { background: var(--brand); color: var(--white); }

.tag__cursor { position: absolute; top: -18px; left: -6px; width: 20px; height: 20px; }

/* Visual Designer pill: same cursor as the yellow pill, mirrored to point up-right. */
.tag--2 .tag__cursor {
  left: auto;
  right: -6px;
  transform: scaleX(-1);
}

.tag--1 { top: 72%; right: 0; animation: float 4s ease-in-out infinite; }
.tag--2 { bottom: 12%; left: 0; animation: float 4s ease-in-out infinite; animation-delay: -2s; }

/* --------------------------------------------------------------------------
   Marquee (full-width services band)
   -------------------------------------------------------------------------- */
.marquee-wrap {
  position: relative;
  z-index: 6;
  isolation: isolate;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Area below the band takes the next section's background (bg-alt). */
.marquee-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  z-index: -1;
  background: var(--bg-alt);
}

/* Brand strip behind the band — rotated edges peek above-right and below-left. */
.marquee-strip {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 24px;
  bottom: 24px;
  z-index: 0;
  background: var(--brand);
  transform: rotate(-1.5deg);
  transform-origin: center center;
}

.marquee {
  position: relative;
  z-index: 1;
  background: var(--accent);
  overflow: hidden;
  padding: 20px 0;
}

.marquee .track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
  will-change: transform;
}

.marquee .group {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-right: 50px;
  flex-shrink: 0;
}

.marquee .item {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.marquee-star {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--text);
}

.marquee-star svg { width: 100%; height: 100%; display: block; }
.marquee-star svg line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.marquee:hover .track { animation-play-state: paused; }

@keyframes marquee-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
}

/* --------------------------------------------------------------------------
   Services (home) — "Services I Provide"
   -------------------------------------------------------------------------- */
.services { position: relative; z-index: 5; background: var(--bg-alt); padding: 80px 0; }

.services-head {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.services-head__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.services-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.services-title em { font-style: italic; color: var(--accent); }

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 50, 98, .04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 50, 98, .3);
  box-shadow: 0 10px 24px rgba(0, 50, 98, .10);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bg-alt);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon svg .ac   { stroke: var(--accent); }
.service-icon svg .ac-f { fill: var(--accent); stroke: none; }
.service-icon svg .fl   { fill: currentColor; stroke: none; }
.service-icon svg .tx {
  fill: currentColor;
  stroke: none;
  font: 700 7.5px 'Roboto', Arial, sans-serif;
  letter-spacing: .5px;
}

.service-title {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.service-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float {
  0%, 100% { transform: translateY(-6px); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 72px;
    justify-items: center;
    text-align: center;
  }
  .hero-text { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-portrait {
    bottom: -64px;
    height: 100%;
    transform: translateX(-50%) scale(1.2);
  }
  .hire-badge { top: 68px; }
}

@media (max-width: 900px) {
  :root { --nav-gap: 56px; }

  .nav-links,
  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .nav-mobile {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--brand);
    border-radius: 24px;
  }

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

  .nav-mobile a {
    padding: 12px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    transition: background var(--transition), color var(--transition);
  }

  .nav-mobile a:hover,
  .nav-mobile a.active { background: rgba(255, 255, 255, .08); color: var(--accent); }

  .nav-mobile .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
    background: var(--white);
    color: var(--brand);
  }

  .hero { padding-bottom: 72px; }

  .hero-grid { gap: 24px; }

  .hero-title { font-size: 40px; }

  .hero-label { font-size: 18px; }

  .hero-text { margin-inline: auto; }

  .hero-actions { justify-content: center; flex-wrap: wrap; }

  .hero-visual { max-width: 420px; height: 460px; }

  .hero-portrait {
    bottom: -80px;
    height: 100%;
    transform: translateX(-50%) scale(1.2);
  }

  .tag { padding: 10px 20px; font-size: 13px; }

  .hire-badge { top: 70px; right: -24px; }

  .marquee-wrap { padding-top: 18px; padding-bottom: 18px; }
  .marquee-strip { top: 18px; bottom: 18px; }
  .marquee-wrap::after { height: 18px; }
  .marquee { padding: 16px 0; }
  .marquee .item { font-size: 22px; }
  .marquee .group { gap: 32px; padding-right: 32px; }
  .marquee-star { width: 24px; height: 24px; }

  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-title { font-size: 32px; }

  .hero-stats { gap: 32px; margin-top: 28px; }
  .hero-stat-num { font-size: 30px; }
  .hero-stat-label { font-size: 14px; }
}

@media (max-width: 600px) {
  .hire-badge { display: none; }
  .hero-portrait {
    bottom: -80px;
    height: 100%;
    transform: translateX(-50%) scale(1.2);
  }
  .services { padding: 56px 0; }
  .services-head { margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-visual { height: 400px; }
  .hero-portrait {
    bottom: -84px;
    height: 100%;
    transform: translateX(-50%) scale(1.2);
  }
  .hero-actions { gap: 14px; }
  .btn-split__main { padding: 0 22px; }
  .btn-outline { padding: 0 22px; }

  .hero-stats { gap: 24px; }
}
/* --------------------------------------------------------------------------
   Projects ("My Latest Projects")
   -------------------------------------------------------------------------- */
.projects {
  background: var(--bg-alt);
  padding: 80px 0;
  overflow-x: clip;
}

.projects-inner {
  --projects-gutter: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 24px;
}

.projects-head__left {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projects-eyebrow {
  display: flex;
  align-items: center;
}

.projects-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.projects-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.projects-head__right {
  order: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.projects-controls {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.projects-arrow svg {
  width: 22px;
  height: 15px;
  fill: currentColor;
}

.projects-arrow:hover {
  background: var(--brand);
  color: var(--white);
}

.projects-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.projects-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.projects-slider {
  order: 4;
  flex: 0 0 calc(100% + 2 * var(--projects-gutter));
  min-width: 0;
  margin-inline: calc(-1 * var(--projects-gutter));
  margin-top: 24px;
}

.projects-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 16px var(--projects-gutter) 28px;
  scroll-padding-inline: var(--projects-gutter);
  scrollbar-width: none;
  cursor: grab;
}

.projects-track::-webkit-scrollbar { display: none; }

.projects-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.projects-track img {
  -webkit-user-drag: none;
  user-select: none;
  object-position: top;
}

.projects-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.projects-track .project-card {
  flex: 0 0 auto;
  width: 420px;
  scroll-snap-align: start;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 50, 98, .05);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 50, 98, .1);
}

.project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 400ms ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.04);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.project-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.project-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.project-btn:hover { transform: translateY(-2px); }

.project-btn__icon { flex: 0 0 auto; }

.project-btn--figma {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}

.project-btn--figma:hover { border-color: rgba(0, 50, 98, .3); }

.project-btn__icon--figma {
  width: auto;
  height: 18px;
}

.project-btn--live {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.project-btn--live:hover { background: #1a1a1a; }

.project-btn--live .project-btn__icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .projects-title { font-size: 36px; }
  .project-card { padding: 14px; gap: 14px; }
  .projects-track .project-card { width: 340px; }
  .projects-controls {
    order: 5;
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .projects-track .project-card { width: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .projects-track { scroll-behavior: auto; }
}
/* --------------------------------------------------------------------------
   Companies ("Companies I’ve Collaborated With")
   -------------------------------------------------------------------------- */
.companies {
  background: var(--bg);
  padding: 80px 0;
}

.companies-head {
  text-align: center;
  margin-bottom: 48px;
}

.companies-head__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.companies-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.companies-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.companies-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 8%, #000 92%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 8%, #000 92%, rgba(0,0,0,0) 100%);
}

.companies-marquee {
  overflow: hidden;
}

.companies-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: companiesMarquee 40s linear infinite;
  will-change: transform;
}

.companies-track:hover {
  animation-play-state: paused;
}

.companies-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex-shrink: 0;
}

@keyframes companiesMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .companies-track { animation: none; }
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-item img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

.company-item--compact img {
  height: 32px;
}

@media (max-width: 900px) {
  .companies-title { font-size: 36px; }
  .companies-group { gap: 40px; padding-right: 40px; }
  .company-item img { height: 32px; }
  .company-item--compact img { height: 26px; }
}

/* --------------------------------------------------------------------------
   Testimonials ("What Clients Say")
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--bg);
  padding: 80px 0;
}

.testimonials-head {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-head__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.testimonials-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.testimonials-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 50, 98, .05);
  width: 100%;
  height: 100%;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

.review-stars svg {
  width: 18px;
  height: 18px;
}

.review-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.review-author {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.review-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  display: block;
  align-self: flex-end;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.review-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.review-company {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .testimonials {
    padding: 56px 0;
  }
  .testimonials-title {
    font-size: 36px;
  }
}

/* Testimonials slider */
.testimonials-slider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  transition: transform 400ms ease;
  will-change: transform;
}

.testimonials-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
}

@media (max-width: 1100px) {
  .testimonials-slider {
    gap: 0;
  }
  .testimonials-track {
    align-items: flex-start;
  }
  .testimonials-slide {
    flex: 0 0 calc((100% - 24px) / 2);
    align-items: flex-start;
  }
  .testimonial-card {
    height: auto;
  }
}

@media (max-width: 700px) {
  .testimonials-slide {
    flex: 0 0 100%;
  }
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 50, 98, .25);
  padding: 0;
  cursor: pointer;
}

.dot-btn.active {
  background: var(--brand);
}

.slider-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 50, 98, .08);
}

.slider-btn svg {
  width: 20px;
  height: 13px;
  fill: currentColor;
}

.slider-btn:hover {
  background: var(--bg-alt);
}

/* CTA Banner - Let's work together */
.cta-section {
  background: var(--bg-alt);
  padding: 60px 0;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  border-radius: 28px;
  padding: 56px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-heading {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.cta-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.85;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-cta-white {
  background: var(--white);
  color: var(--brand);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--white);
  transition: background 200ms ease, transform 200ms ease;
  cursor: pointer;
}

.btn-cta-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cta-blob {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .cta-banner {
    padding: 40px 28px;
  }
  .cta-heading {
    font-size: 32px;
  }
  .cta-blob {
    width: 200px;
    height: 200px;
    right: -40px;
    bottom: -70px;
    opacity: 0.9;
  }
}

@media (max-width: 600px) {
  .cta-heading {
    font-size: 28px;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .cta-blob {
    width: 150px;
    height: 150px;
    right: -30px;
    bottom: -40px;
    opacity: 0.7;
  }
  .cta-content {
    max-width: 100%;
  }
}

/* FAQ */
.faq-section {
  background: var(--brand);
  padding: 90px 0;
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.faq-eyebrow,
.faq-eyebrow .eyebrow,
.faq-eyebrow span {
  color: var(--white) !important;
}

.faq-eyebrow .eyebrow::before,
.faq-eyebrow .eyebrow::after {
  background: var(--accent);
}

.faq-heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.faq-heading-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 200ms ease;
  position: relative;
}

.faq-item.open {
  background: var(--white);
  border: 0;
}

.faq-item.open::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.faq-item.open .faq-question {
  color: var(--brand);
  font-weight: 600;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.faq-item.open .faq-question:hover {
  background: transparent;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.faq-icon svg {
  position: absolute;
  transition: opacity 200ms ease, transform 200ms ease;
}

.faq-plus {
  opacity: 1;
  transform: rotate(0deg);
  stroke: #ffffff;
}

.faq-minus {
  opacity: 0;
  transform: rotate(-90deg);
  stroke: var(--accent);
}

.faq-item.open .faq-plus {
  opacity: 0;
  transform: rotate(90deg);
  stroke: #ffffff;
}

.faq-item.open .faq-minus {
  opacity: 1;
  transform: rotate(0deg);
  stroke: var(--accent);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}

.faq-item.open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.faq-item.open .faq-answer {
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .faq-section {
    padding: 64px 0;
  }
  .faq-heading {
    font-size: 32px;
  }
  .faq-question {
    font-size: 16px;
    padding: 16px 18px;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }
}

@media (max-width: 1100px) {
  .slider-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    transition: none !important;
  }
  .btn-cta-white,
  .faq-question,
  .faq-item,
  .faq-icon,
  .faq-icon svg {
    transition: none !important;
  }
  .faq-answer-wrap {
    transition: none !important;
  }
  .faq-item.open .faq-icon svg {
    stroke: #f8d64e !important;
  }
  .faq-item.open .faq-icon {
    color: #f8d64e !important;
  }
}


/* --------------------------------------------------------------------------
   Footer (marquee + main info + bottom bar)
   -------------------------------------------------------------------------- */
.site-footer-v2 { position: relative; }

.footer-marquee-wrap { overflow: hidden; }

.footer-main {
  background: var(--bg);
  padding: 64px 0;
  position: relative;
}

.footer-main-inner { position: relative; }

.footer-top-divider {
  position: absolute;
  top: -64px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-brand-col {
  flex: 0 1 380px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-wordmark {
  color: var(--brand);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.footer-wordmark .dot { color: var(--accent); }

.footer-desc {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social-link:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}

.footer-cols {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.footer-links-col,
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: normal;
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.footer-col-dash {
  width: 12px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link-list a {
  display: inline-block;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.footer-link-list a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-contact-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.footer-contact-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.footer-bottom { background: var(--brand); padding: 22px 0; }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 15px;
  color: var(--white);
}

.footer-copyright-name { color: var(--accent); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.footer-legal a {
  color: var(--white);
  transition: text-decoration var(--transition);
}

.footer-legal a:hover { text-decoration: underline; }

.footer-legal-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .4);
}

@media (max-width: 900px) {
  .footer-main { padding: 48px 0; }
  .footer-top-divider { top: -48px; }
  .footer-grid { flex-direction: column; gap: 40px; }
  .footer-brand-col { flex: 1 1 auto; max-width: 480px; }
  .footer-cols { gap: 48px; }
}

@media (max-width: 600px) {
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Legal pages (Terms & Conditions, Privacy Policy)
   -------------------------------------------------------------------------- */
.legal-page {
  padding: 72px 0 96px;
}

.legal-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  margin: 0;
}

.legal-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 18px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 15px;
  margin: 16px 0 0;
}

.legal-content {
  max-width: 760px;
  margin-top: 36px;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  margin: 36px 0 12px;
  line-height: 1.2;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.7;
}

.legal-content a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.legal-content a:hover { color: var(--accent); }

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker { color: var(--accent); }

@media (max-width: 600px) {
  .legal-page { padding: 48px 0 64px; }
  .legal-title { font-size: 34px; }
  .legal-content h2 { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Projects page (hero + paginated grid)
   -------------------------------------------------------------------------- */
.page-hero {
  text-align: center;
  padding: calc(var(--nav-gap) - 20px) 0 44px;
}

.page-hero .eyebrow { justify-content: center; }

.page-hero-title {
  margin: 14px 0 0;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
}

.page-hero-title em { font-style: italic; color: var(--accent); }

.page-hero-text {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.projects-page { padding: 8px 0 72px; }

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

.projects-pagination { margin-top: 44px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) { border-color: rgba(0, 50, 98, .3); }

.page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-btn .icon-arrow {
  width: 15px;
  height: 10px;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-title { font-size: 40px; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .page-hero-title { font-size: 34px; }
  .page-hero-text { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Domain portfolio page (filters + cards)
   -------------------------------------------------------------------------- */
.domains-page { padding: 8px 0 72px; }

.domains-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pill, var(--brand));
  flex: 0 0 auto;
}

.filter-pill:hover:not(.active) { border-color: rgba(0, 50, 98, .3); }

.filter-pill.active {
  background: var(--pill, var(--brand));
  border-color: var(--pill, var(--brand));
  color: var(--white);
}

.filter-pill.active::before { background: var(--white); }

.filter-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.domains-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.domains-pagination { margin-top: 44px; }

.domain-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 50, 98, .05);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 50, 98, .1);
}

.domain-card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  word-break: break-word;
}

.domain-card__ext { color: var(--text-muted); font-weight: 600; }

.domain-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  line-height: 1;
}

.domain-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.domain-card__visit {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.domain-card__visit:hover { background: var(--brand-dark); }

@media (max-width: 900px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .domains-grid { grid-template-columns: 1fr; }
}
