/* --- Imports & Variables --- */
:root {
  /* ???????? ??????? ??????? */
  --bg-main: #0b0f15;
  --bg-secondary: #121822;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* ??????? ??????? (???? ??????) */
  --gold-primary: #d4af37;
  --gold-light: #f4e3b2;
  --gold-dark: #aa8929;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8929 100%);

  /* ?????? */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-muted-dark: #64748b;

  /* ???????? */
  --max-width: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  /* ?????? */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
}

/* --- Global Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  /* ????? ????? ???? ????? */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(41, 60, 89, 0.15), transparent 25%);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 2rem;
}

.kicker {
  color: var(--gold-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.small {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* --- Navbar --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 21, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.brand .t1 {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand .t2 {
  font-size: 0.75rem;
  color: var(--gold-primary);
  opacity: 0.9;
}

.links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.links a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.links a:hover, .links a[style*="color:var(--text)"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main) !important;
}

.lang {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--gold-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  margin-left: 8px;
  transition: 0.3s;
}

.lang:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* --- Hero Section --- */
.hero {
  padding: 60px 0 80px;
  position: relative;
}

.heroGrid, .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.heroImg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  position: relative;
  aspect-ratio: 16/10;
}

.heroImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s ease;
}

.heroImg:hover img {
  transform: scale(1.05);
}

/* --- Cards (Glass Effect) --- */
.card, .hCard {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Add a subtle shine effect on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
}
.card:hover::before {
  left: 100%;
}

.pad { padding: 0; background: none; border: none; box-shadow: none; }

/* --- Buttons --- */
.ctaRow {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn.primary {
  background: var(--gold-gradient);
  color: #0b0f15;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn:not(.primary) {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn:not(.primary):hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* --- Grids --- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* --- Badges & Lists --- */
.badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.li span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dot {
  min-width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 10px var(--gold-primary);
}

/* --- Gallery & Tiles --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tile {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--glass-border);
  transition: 0.4s ease;
  grid-column: span 1; /* Reset span logic for better responsiveness */
}

.tile:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s;
}

.tile:hover img {
  transform: scale(1.1);
}

.tile .cap {
  padding: 20px;
  background: linear-gradient(0deg, var(--bg-secondary) 80%, transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(10px);
}

.tile .cap strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.tile .cap span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Footer --- */
footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  background: #05080c;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.show { display: grid; }

.modalCard {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
  animation: modalUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalUp {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modalImg { height: 350px; }
.modalBody { padding: 30px; }
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s;
}
.close:hover { background: var(--gold-primary); color: #000; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .heroGrid, .split { grid-template-columns: 1fr; }
  .navbar { flex-wrap: wrap; height: auto; padding: 15px 0; }
  .links { margin-top: 15px; width: 100%; justify-content: center; }
  h1 { font-size: 2.5rem; }
  .pad { padding: 0; }
  .section { padding: 60px 0; }
}