﻿:root {
  --bg-main: #121212;
  --bg-soft: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.22);
  --text-main: #f2f4f8;
  --text-muted: #b2b9c3;
  --accent-a: #72d4ff;
  --accent-b: #5effc2;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

:root[data-theme='light'] {
  --bg-main: #f2f6fb;
  --bg-soft: #e8eef8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --border: rgba(22, 45, 74, 0.14);
  --text-main: #122238;
  --text-muted: #4d617b;
  --accent-a: #2f9fd7;
  --accent-b: #21b88a;
  --shadow: 0 16px 36px rgba(16, 34, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', 'Tajawal', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 12% 10%, #1f3a58 0%, var(--bg-main) 46%),
    linear-gradient(150deg, var(--bg-main), var(--bg-soft));
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

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

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

.bg-orb {
  position: fixed;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -2;
  opacity: 0.23;
  pointer-events: none;
}

.orb-a {
  top: -6rem;
  left: -7rem;
  background: var(--accent-a);
}

.orb-b {
  right: -6rem;
  bottom: -8rem;
  background: var(--accent-b);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 94%);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 60;
  width: min(1120px, calc(100% - 1rem));
  margin: 0.85rem auto 0;
  padding: 0.65rem 0.8rem;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--surface-strong);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-radius: 11px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  width: 42px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-inline: 10px;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: inline-flex;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 49;
}

.mobile-panel {
  position: fixed;
  top: 0.8rem;
  bottom: 0.8rem;
  width: min(88vw, 360px);
  right: 0.7rem;
  z-index: 50;
  padding: 0.9rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.34s ease, opacity 0.34s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body[dir='rtl'] .mobile-panel {
  right: auto;
  left: 0.7rem;
  transform: translateX(-120%);
}

body.menu-open .mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-panel {
  transform: translateX(0);
  opacity: 1;
}

body[dir='rtl'].menu-open .mobile-panel {
  transform: translateX(0);
}

.mobile-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav {
  display: grid;
  gap: 0.3rem;
}

.mobile-nav a {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.65rem;
  color: var(--text-muted);
}

.mobile-nav a:hover {
  border-color: var(--border);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-controls {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

main {
  width: min(1120px, calc(100% - 1rem));
  margin: 1rem auto 2.4rem;
  display: grid;
  gap: 0.8rem;
}

.hero,
.split,
.service-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.hero-copy,
.hero-media,
.panel,
.panel-image,
.service-card,
.gallery-item,
.contact-card {
  padding: 1rem;
}

.kicker {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-b);
}

h1 {
  margin: 0.5rem 0 0.45rem;
  line-height: 1.13;
  font-size: clamp(1.45rem, 6vw, 2.65rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.05rem, 4vw, 1.7rem);
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  border-radius: 999px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #062033;
}

.btn-ghost {
  border-color: var(--border);
}

.hero-media,
.panel-image {
  min-height: 240px;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.gallery-item {
  min-height: 170px;
}

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .site-header {
    width: min(1120px, calc(100% - 1.8rem));
    padding: 0.8rem 1rem;
  }

  main {
    width: min(1120px, calc(100% - 1.8rem));
    margin-top: 1.2rem;
    gap: 1rem;
  }

  .desktop-only {
    display: inline-flex;
  }

  .mobile-only,
  .mobile-backdrop,
  .mobile-panel {
    display: none;
  }

  .site-header {
    display: flex;
  }

  .nav-links {
    display: inline-flex;
    gap: 0.9rem;
    margin-inline-start: auto;
  }

  .nav-links a {
    color: var(--text-muted);
    font-size: 0.93rem;
  }

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

  .hero,
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .hero-media {
    min-height: 360px;
  }
}
