/* ============================================================
   DOUIRA.MA — Main CSS
   Design System: Light, Modern, Architecture Premium
   Bootstrap 5.3 + Custom Variables — Logo Blue Palette
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* ─── Backgrounds ─────────────────────────── */
  --bg-primary: #ffffff;
  --bg-secondary: #f0f6ff;
  --bg-card: #ffffff;
  --bg-elevated: #f7faff;

  /* ─── Blue + White Palette ────────────────── */
  --accent: #1B4F8A;
  /* Deep Royal Blue    */
  --accent-light: #3A72B8;
  /* Mid Blue           */
  --accent-dark: #123667;
  /* Darker Blue        */
  --accent-subtle: rgba(27, 79, 138, 0.08);

  /* ─── Text ────────────────────────────────── */
  --text-primary: #0a1628;
  --text-muted: #4a5e7a;
  --text-faint: #8fa3be;

  /* ─── Borders & Shadows ───────────────────── */
  --border: rgba(27, 79, 138, 0.12);
  --border-accent: rgba(27, 79, 138, 0.30);
  --shadow: 0 4px 24px rgba(27, 79, 138, 0.09);
  --shadow-lg: 0 16px 48px rgba(27, 79, 138, 0.14);

  /* ─── Typography ──────────────────────────── */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* ─── Misc ────────────────────────────────── */
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-blue: linear-gradient(135deg, #1B4F8A 0%, #123667 100%);
  --gradient-subtle: linear-gradient(135deg, #f0f6ff 0%, #deeafa 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  color: var(--text-muted);
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

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

/* ── Bootstrap Overrides ────────────────────────────────── */
.btn-primary {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #ffffff;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 125, 192, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  background: rgba(30, 30, 30, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 28, 53, 0.08);
  box-shadow: 0 2px 20px rgba(15, 28, 53, 0.07);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary) !important;
  letter-spacing: 0.05em;
}

.navbar-brand span {
  color: var(--accent);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

/* When scrolled — nav links become dark */
.navbar.scrolled .navbar-nav .nav-link {
  color: var(--text-muted) !important;
}

/* Logo: white over hero, dark when scrolled */
.navbar .navbar-brand img {
  filter: brightness(0) invert(1);
  transition: filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* ESPACE CABINET button — white/gray instead of blue inside navbar */
.navbar .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.navbar .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

/* Scrolled state: restore blue for btn */
.navbar.scrolled .btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.navbar.scrolled .btn-outline-primary:hover {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar.scrolled .navbar-toggler-icon {
  filter: none;
}

/* ── Mobile menu: white background when open ────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #ffffff;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.25rem 1.5rem;
    margin-top: .5rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }

  .navbar-collapse .nav-link {
    color: #2d2d2d !important;
    padding: .65rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
  }

  .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: #111111 !important;
    padding-left: .5rem !important;
  }

  /* Override the navbar white-button rule for mobile: use dark border */
  .navbar-collapse .btn-outline-primary {
    border-color: #2d2d2d !important;
    color: #2d2d2d !important;
    background: transparent !important;
  }

  .navbar-collapse .btn-outline-primary:hover {
    background: #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: none;
  }

  .navbar-collapse .btn {
    margin-top: .75rem;
    width: 100%;
    text-align: center;
  }
}


/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 22, 40, 0.85) 0%,
      rgba(27, 79, 138, 0.55) 55%,
      rgba(58, 114, 184, 0.30) 100%);
}

/* Static hero variant (no photo) */
.hero-static {
  background: linear-gradient(135deg, #0a1628 0%, #1B4F8A 60%, #3A72B8 100%);
  height: 80vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(58, 114, 184, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(27, 79, 138, 0.20) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent-light);
}

.hero-eyebrow span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem) !important;
  line-height: 1.05;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta {
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--accent-light);
  width: 40px;
}

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

@keyframes bounce {

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

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

/* ── Section Structure ──────────────────────────────────── */
.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 560px;
}

/* Alternating section backgrounds */
.section:nth-of-type(even),
.section-alt {
  background: var(--gradient-subtle);
}

/* ── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 79, 138, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  font-weight: 300;
}

.service-card:hover .service-number {
  color: var(--accent);
  opacity: 0.4;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* Expand/retract description on hover */
.svc-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}

.service-card:hover .svc-expand {
  max-height: 300px;
  opacity: 1;
}

/* ── Projects Grid ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.project-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

.project-card:nth-child(2) {
  grid-column: span 4;
}

.project-card:nth-child(3) {
  grid-column: span 4;
}

.project-card:nth-child(4) {
  grid-column: span 4;
}

.project-card:nth-child(5) {
  grid-column: span 4;
}

.project-card:nth-child(6) {
  grid-column: span 4;
}

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

  .project-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-card:nth-child(1) {
    grid-column: span 2;
  }
}

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

  .project-card:nth-child(n) {
    grid-column: span 1;
  }
}

.project-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:nth-child(1) .project-img {
  min-height: 580px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 28, 53, 0.92) 0%, rgba(47, 95, 160, 0.4) 60%, transparent 100%);
  opacity: 0.5;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  transform: translateY(4px);
  transition: var(--transition);
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  transition-delay: 0.05s;
}

.project-card:hover .project-meta {
  opacity: 1;
  transform: translateY(0);
}

/* ── About Section ──────────────────────────────────────── */
.about-section {
  background: var(--gradient-subtle);
}

.about-image-wrap {
  position: relative;
  padding-bottom: 3rem;
  padding-right: 3rem;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  aspect-ratio: 4/3;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0.5;
}

/* ── Stats ──────────────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Portfolio Filters ──────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 125, 192, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0f1c35 0%, #1a3a6c 40%, #2d5fa0 80%, #4A7DC0 100%);
  color: #fff;
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(107, 157, 212, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.cta-section h2 {
  color: #fff;
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.cta-section .btn-primary {
  background: #fff;
  border-color: transparent;
  color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  position: relative;
}

.cta-section .btn-primary:hover {
  background: #f0f5fb;
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #0c1a2e 0%, #091220 100%);
  border-top: none;
  padding: 5rem 0 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.65);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--accent-light);
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer .social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 79, 138, 0.35);
}

.footer-links h6 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-links h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-links .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-links .contact-item i {
  color: var(--accent-light);
  margin-top: 2px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Dividers ───────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-blue);
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(74, 125, 192, 0.12);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-faint);
}

.form-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 53, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--accent-light);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* ── Custom Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Utilities ───────────────────────────────────────────── */
.text-accent {
  color: var(--accent) !important;
}

.bg-elevated {
  background: var(--bg-elevated);
}

.border-accent {
  border-color: var(--accent) !important;
}

.serif {
  font-family: var(--font-serif);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: 2.8rem !important;
  }

  .about-image-wrap {
    padding-bottom: 0;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .about-image-accent {
    display: none;
  }

  .contact-form {
    padding: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Clients Marquee ─────────────────────────────────────────────────────── */
.clients-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.clients-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.clients-header p {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

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

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 16s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 1.5rem;
  filter: none;
  transition: opacity .3s ease;
}

.client-logo-item:hover {
  opacity: 0.8;
}

.client-logo-item img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.client-logo-item span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}