/* ==========================================================================
   MRK EGYPT - LUXURY COMMERCIAL REAL ESTATE DESIGN SYSTEM 2027
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Cinzel:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-primary: #070a10;
  --bg-secondary: #0e1320;
  --bg-tertiary: #151c2e;
  --bg-card: rgba(21, 28, 46, 0.65);
  --bg-card-hover: rgba(28, 38, 61, 0.85);

  --gold-primary: #d4af37;
  --gold-light: #f6e6ad;
  --gold-dark: #a17f1a;
  --gold-gradient: linear-gradient(135deg, #f7e7af 0%, #d4af37 50%, #997715 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  --cyan-accent: #00f2fe;
  --cyan-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

  --text-main: #f0f4fd;
  --text-muted: #94a3b8;
  --text-gold: #e2c055;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Typography */
  --font-en-head: 'Cinzel', serif;
  --font-en-body: 'Plus Jakarta Sans', sans-serif;
  --font-ar-head: 'Tajawal', sans-serif;
  --font-ar-body: 'Cairo', sans-serif;

  /* Spacing */
  --container-max: 1320px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::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-main);
  font-family: var(--font-en-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Language font switching */
body[lang="ar"], [dir="rtl"] {
  font-family: var(--font-ar-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en-head);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

body[lang="ar"] h1, body[lang="ar"] h2, body[lang="ar"] h3, 
body[lang="ar"] h4, body[lang="ar"] h5, body[lang="ar"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-ar-head);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Card Base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

.glass-panel-gold {
  background: rgba(15, 20, 34, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
}

/* Gold Gradient Text */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-text {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Ambient Glow Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-gold {
  background: rgba(212, 175, 55, 0.12);
  width: 450px;
  height: 450px;
}

.glow-cyan {
  background: rgba(0, 242, 254, 0.08);
  width: 500px;
  height: 500px;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(7, 10, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: 1px;
}

.logo-badge {
  background: var(--gold-gradient);
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-fast);
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Toggle Button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.05);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: var(--shadow-gold);
}

/* Primary Luxury CTA Button */
.btn-primary {
  padding: 0.85rem 1.75rem;
  background: var(--gold-gradient);
  color: #0a0e17;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .nav-links {
    display: none; /* Can be toggled via JS drawer */
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 2.1rem;
  }
}
