:root {
  --primary-color: #D4AF37;
  --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 50%, #D4AF37 100%);
  --text-gradient: linear-gradient(to right, #F2D06B, #D4AF37, #F2D06B);
  --primary-dark: #8a701e;
  --secondary-color: #050505;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --text-white: #ffffff;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
  --font-main: 'Cairo', sans-serif;
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables */
[data-theme="light"] {
  --secondary-color: #f8f9fa;
  --bg-dark: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --text-light: #444444;
  --text-muted: #666666;
  --text-white: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(212, 175, 55, 0.3);
  --glass-highlight: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);

  /* Light Mode Specifics */
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-header-scrolled: rgba(255, 255, 255, 0.95);
  --bg-footer: #f0f0f0;
}

/* Theme Toggle Button */
.theme-switch {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  margin-right: 10px;
}

[dir="rtl"] .theme-switch {
  margin-right: 0;
  margin-left: 10px;
}

.theme-switch:hover {
  background: var(--bg-card);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--secondary-color);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-white);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  border-radius: 4px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header, rgba(5, 5, 5, 0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

header.scrolled {
  background: var(--bg-header-scrolled, rgba(5, 5, 5, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo i {
  color: var(--primary-color);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switch {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Animated Background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/hero-bg-new.jpg') no-repeat center center/cover;
  z-index: -2;
  animation: zoomBg 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.8) 100%),
    radial-gradient(circle at center, transparent 0%, #050505 120%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero h2 {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}



/* Premium Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  background: var(--primary-gradient);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

/* Section Styling */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Glass Cards (Services & Features) */
.feature-card,
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 175, 55, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon,
.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.feature-card:hover .feature-icon,
.service-card:hover .service-icon {
  background: var(--primary-gradient);
  color: #000;
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.feature-card h3,
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.feature-card p,
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Why Us Section */
.why-us {
  background: linear-gradient(to bottom, #050505, #0a0a0a);
}

.why-us-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 24px;
  position: relative;
}

.why-us-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.5;
}

.why-us-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.why-us-list li:last-child {
  border-bottom: none;
}

.why-us-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

/* Gallery */
.gallery {
  padding: 5rem 0;
  position: relative;
}

.gallery-item {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 1;
  transition: all 0.5s;
}

.gallery-item:hover .overlay {
  background: linear-gradient(to top, rgba(212, 175, 55, 0.8), rgba(0, 0, 0, 0.4));
}

.gallery-item h4 {
  transform: translateY(0);
  transition: transform 0.5s;
  font-size: 1.5rem;
}

.gallery-item:hover h4 {
  transform: translateY(-10px);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stats */
.stats {
  background: var(--bg-card);
  padding: 5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  display: block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--bg-footer, #000);
  padding-top: 5rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.copyright {
  background: #030303;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .logo a {
  flex-direction: row-reverse;
}

[dir="rtl"] .whatsapp-float {
  left: 40px;
  right: auto;
}

[dir="rtl"] .btn-primary::before {
  background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Animations Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomBg {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {

  /* Header & Nav */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: -100%;
    /* Hidden by default */
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    overflow-y: auto;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links.active {
    left: 0;
    /* Slide in */
  }

  .mobile-menu-btn {
    display: block;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .mobile-menu-btn:active {
    transform: scale(0.9);
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-content {
    margin-top: -50px;
    /* Slight lift on mobile */
  }

  /* Grid Adjustments */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Feature & Service Cards */
  .feature-card,
  .service-card {
    padding: 2rem 1.5rem;
  }

  /* Why Us Section */
  .why-us-content {
    flex-direction: column;
    gap: 3rem;
  }

  .why-us-image {
    order: -1;
    /* Image first on mobile */
    width: 100%;
  }

  /* Footer */
  footer {
    padding-top: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 25px;
    right: 25px;
  }

  [dir="rtl"] .whatsapp-float {
    left: 25px;
    right: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn-primary {
    padding: 0.8rem 2rem;
    width: 100%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .gallery-item {
    height: 300px;
  }
}