/* =========================================================
   THEME SYSTEM (4 VIP PALETTES)
   ========================================================= */
:root, [data-theme="crimson"] {
  --primary-dark: #0f1317;
  --secondary-dark: #171d24;
  --surface-card: #202731;
  --surface-elevated: #28313e;
  --brand-accent: #8b1e2d;
  --brand-accent-hover: #a82337;
  --brand-accent-light: #ea5064;
  --accent-glow: rgba(139, 30, 45, 0.45);
  --accent-bg-subtle: rgba(139, 30, 45, 0.2);
  --hero-gradient: radial-gradient(circle at 80% 20%, rgba(139, 30, 45, 0.22) 0%, rgba(15, 19, 23, 0.96) 72%);
  --brand-gray: #9ba3af;
  --brand-light: #f8fafc;
  --text-muted: #8e9cae;
  --border-color: rgba(255, 255, 255, 0.09);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="gold"] {
  --primary-dark: #0b0c0e;
  --secondary-dark: #14171d;
  --surface-card: #1d212b;
  --surface-elevated: #262c3a;
  --brand-accent: #c59b27;
  --brand-accent-hover: #e0b234;
  --brand-accent-light: #f3cc59;
  --accent-glow: rgba(197, 155, 39, 0.45);
  --accent-bg-subtle: rgba(197, 155, 39, 0.18);
  --hero-gradient: radial-gradient(circle at 80% 20%, rgba(197, 155, 39, 0.2) 0%, rgba(11, 12, 14, 0.96) 72%);
  --brand-gray: #a3a6ad;
  --brand-light: #fbfbfb;
  --text-muted: #959fad;
  --border-color: rgba(212, 175, 55, 0.14);
}

[data-theme="emerald"] {
  --primary-dark: #06120e;
  --secondary-dark: #0d1e18;
  --surface-card: #132b22;
  --surface-elevated: #1b382d;
  --brand-accent: #197a58;
  --brand-accent-hover: #21996f;
  --brand-accent-light: #34d399;
  --accent-glow: rgba(25, 122, 88, 0.45);
  --accent-bg-subtle: rgba(25, 122, 88, 0.2);
  --hero-gradient: radial-gradient(circle at 80% 20%, rgba(25, 122, 88, 0.22) 0%, rgba(6, 18, 14, 0.96) 72%);
  --brand-gray: #9ba8a2;
  --brand-light: #f4fbf8;
  --text-muted: #8ca398;
  --border-color: rgba(52, 211, 153, 0.12);
}

[data-theme="sapphire"] {
  --primary-dark: #070e17;
  --secondary-dark: #0e1928;
  --surface-card: #152438;
  --surface-elevated: #1d314c;
  --brand-accent: #1d5ba8;
  --brand-accent-hover: #2671ce;
  --brand-accent-light: #60a5fa;
  --accent-glow: rgba(29, 91, 168, 0.45);
  --accent-bg-subtle: rgba(29, 91, 168, 0.2);
  --hero-gradient: radial-gradient(circle at 80% 20%, rgba(29, 91, 168, 0.22) 0%, rgba(7, 14, 23, 0.96) 72%);
  --brand-gray: #99a5b4;
  --brand-light: #f4f8fd;
  --text-muted: #8a9cb2;
  --border-color: rgba(96, 165, 250, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--primary-dark);
  color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
}

h1, h2, h3, .brand-font {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand-font {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
}

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

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

.container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Bilingual dynamic-content toggling (used for DB-driven text) */
html[data-lang="en"] .lang-ar { display: none !important; }
html[data-lang="ar"] .lang-en { display: none !important; }

/* Top Bar */
.top-bar {
  background-color: #06080a;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--brand-gray);
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-contacts {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.top-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-contacts a:hover {
  color: #fff;
}

.top-contacts i {
  color: var(--brand-accent-light);
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Switcher Selector */
.theme-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
}

.theme-label {
  font-size: 0.74rem;
  color: var(--brand-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}

[dir="rtl"] .theme-label {
  margin-right: 0;
  margin-left: 4px;
}

.theme-dot-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.theme-dot-btn:hover {
  transform: scale(1.15);
}

.theme-dot-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.dot-crimson { background: #8b1e2d; }
.dot-gold { background: #c59b27; }
.dot-emerald { background: #197a58; }
.dot-sapphire { background: #1d5ba8; }

.lang-switcher {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.lang-switcher:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 19, 23, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="gold"] header { background: rgba(11, 12, 14, 0.96); }
[data-theme="emerald"] header { background: rgba(6, 18, 14, 0.96); }
[data-theme="sapphire"] header { background: rgba(7, 14, 23, 0.96); }

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.abakri-logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--brand-gray);
  text-transform: uppercase;
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

[dir="rtl"] .logo-text span {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #d1d7e0;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
  color: #fff;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.btn-primary {
  background: var(--brand-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  box-shadow: 0 8px 22px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  /* Kept as a poster frame: visible while the video buffers, and the permanent
     fallback when the embed is blocked (offline, strict privacy settings, or a
     reduced-motion preference). The video and scrim paint on top of it. */
  background: var(--hero-gradient),
              linear-gradient(rgba(15, 19, 23, 0.82), rgba(15, 19, 23, 0.95)),
              url('../img/header-bg.jpg') center/cover no-repeat;
  padding: 100px 0 80px;
  transition: background 0.4s ease;
}

/* --- Hero background video -------------------------------------------------
   Layering is deliberately non-negative. `.hero` is position:relative with
   z-index:auto, so it does not open a stacking context — a negative z-index
   here would paint the iframe behind the section's own background image and
   hide the video entirely. Stack explicitly: media 0, scrim 1, content 2. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Establishes the query container that .hero-video sizes against below. */
  container-type: size;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  /* Fallback: fill the section on both axes. The hero can be taller than the
     viewport once its content and padding are counted, so sizing purely in vh
     under-covers and lets the poster bleed through at the bottom. Percentages
     resolve against .hero-media, which is pinned to the hero box itself. */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

/* Preferred: exact 16:9 cover measured against the hero box, so the frame fills
   the section on the binding axis and overflows on the other — no letterboxing,
   no distortion, whatever the hero's height. */
@supports (width: 1cqw) {
  .hero-video {
    width: max(100cqw, 177.7778cqh);
    height: max(56.25cqw, 100cqh);
    min-width: 0;
    min-height: 0;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

/* Honour a reduced-motion preference: drop the footage, keep the poster. */
@media (prefers-reduced-motion: reduce) {
  .hero-media {
    display: none;
  }
}

.hero-content {
  max-width: 860px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand-accent-light);
  background: var(--accent-bg-subtle);
  border-left: 3px solid var(--brand-accent);
  padding: 7px 16px;
  margin-bottom: 24px;
}

[dir="rtl"] .hero-tagline {
  border-left: none;
  border-right: 3px solid var(--brand-accent);
  letter-spacing: 0;
}

.hero h2 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero h2 span {
  color: var(--brand-gray);
  display: block;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.hero p {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 720px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.stat-item h4 {
  font-size: 2.2rem;
  color: #fff;
  font-family: 'Cinzel', serif;
}

.stat-item h4 span {
  color: var(--brand-accent);
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--brand-gray);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Global */
section {
  padding: 95px 0;
  transition: var(--transition);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-subtitle {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

[dir="rtl"] .section-subtitle {
  letter-spacing: 0;
}

.section-title {
  font-size: 2.35rem;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.85rem;
  margin-bottom: 20px;
  color: #fff;
}

.about-text p {
  color: #c4cdd8;
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.highlight-card {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-accent);
  padding: 18px;
}

[dir="rtl"] .highlight-card {
  border-left: 1px solid var(--border-color);
  border-right: 3px solid var(--brand-accent);
}

.highlight-card h5 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #fff;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.about-image-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-image-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--brand-accent);
  color: #fff;
  padding: 22px 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
}

[dir="rtl"] .experience-badge {
  right: auto;
  left: -24px;
}

.experience-badge h3 {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0;
}

.experience-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Section */
.services-section {
  background: var(--secondary-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  background: var(--surface-elevated);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--brand-accent-light);
  margin-bottom: 22px;
}

.service-card h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Process Flow */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.step-number {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--brand-accent);
  opacity: 0.4;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.process-step {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 28px 20px;
  position: relative;
}

.process-step h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-section {
  background: var(--primary-dark);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  color: var(--brand-gray);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

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

.project-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border-color: var(--brand-accent);
}

.project-thumb {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: #0b0e11;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 19, 23, 0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-left: 2px solid var(--brand-accent);
  text-transform: uppercase;
  font-weight: 600;
}

[dir="rtl"] .project-badge {
  left: auto;
  right: 14px;
  border-left: none;
  border-right: 2px solid var(--brand-accent);
}

.project-info {
  padding: 24px;
}

.project-location {
  font-size: 0.78rem;
  color: var(--brand-accent-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-info h4 {
  font-size: 1.22rem;
  color: #fff;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--brand-gray);
}

.view-link {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.project-card:hover .view-link {
  color: var(--brand-accent);
}

/* Team / Leadership Section */
.team-section {
  background: var(--secondary-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
}

.team-avatar {
  height: 290px;
  overflow: hidden;
  background: #0d1014;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card:hover .team-avatar img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.team-details {
  padding: 24px 20px;
}

.team-details h4 {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.team-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 34px 26px;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
}

.why-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--brand-accent-light);
  margin-bottom: 20px;
}

.why-card h4 {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Consultation / Estimation CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--surface-card) 100%);
  border: 1px solid var(--brand-accent);
  padding: 55px 40px;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.cta-text h3 {
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  color: #cbd5e1;
  max-width: 620px;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.c-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.c-details h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-gray);
  margin-bottom: 4px;
}

.c-details p, .c-details a {
  color: #fff;
  font-size: 0.95rem;
}

.contact-form-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-gray);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: #11161d;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.88rem;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  border-color: var(--brand-accent);
  color: var(--brand-accent-light);
}

.form-status.error {
  border-color: #d93b3b;
  color: #f47171;
}

/* Modal / Project Lightbox */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-dialog {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

.modal-close:hover {
  background: var(--brand-accent);
}

.modal-img-holder {
  height: 400px;
  background: #090c0f;
}

.modal-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 36px 0;
  flex-wrap: wrap;
}

.modal-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.modal-thumbs img:hover,
.modal-thumbs img.active {
  opacity: 1;
  border-color: var(--brand-accent);
}

.modal-body {
  padding: 32px 36px;
}

.modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--brand-accent-light);
  font-weight: 600;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.modal-body h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #fff;
}

.modal-body p {
  color: #c4cdd8;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Footer */
footer {
  background: #06080a;
  border-top: 1px solid var(--border-color);
  padding: 65px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.6fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 330px;
}

.footer-title {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

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

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 80vh;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-dark);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }
  nav ul.active {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
