:root {
  --primary-gold: #d4af37;
  --primary-gold-hover: #e5c158;
  --midnight-blue: #132036;
  --midnight-blue-light: #1c2b4a;
  --warm-beige: #f8f5f0;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #f8f5f0;
  
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Playfair Display', serif;
  
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: var(--font-arabic);
  background-color: var(--warm-beige);
  color: var(--midnight-blue);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  color: var(--midnight-blue);
}

.english-font {
  font-family: var(--font-english);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Background Pattern */
.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 20.5V18H0v-2h20v-2h2v4h20v2H22v2.5h18v2H22v4h-2v-4H0v-2h20z" fill="%23d4af37" fill-opacity="0.05" fill-rule="evenodd"/></svg>');
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

header.scrolled {
  background: rgba(19, 32, 54, 0.95);
  padding: 10px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 60px;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--primary-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.3) 0%, rgba(19, 32, 54, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 120px;
  margin-bottom: 20px;
  background-color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: var(--warm-beige);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--midnight-blue);
  color: var(--white);
  border-color: var(--midnight-blue);
}

.btn-primary:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--midnight-blue);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.btn-outline:hover {
  background-color: var(--primary-gold);
  color: var(--midnight-blue);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--midnight-blue);
  margin-bottom: 10px;
}

.section-title .separator {
  width: 80px;
  height: 3px;
  background-color: var(--primary-gold);
  margin: 0 auto;
}

/* Sections padding */
section {
  padding: 80px 0;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 2px solid var(--primary-gold);
  border-radius: 10px;
  transform: scale(0.95);
  pointer-events: none;
  z-index: 2;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.info-cards {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: var(--warm-beige);
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
  border-bottom: 3px solid var(--primary-gold);
}

.info-card h4 {
  color: var(--midnight-blue);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-card i {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.info-card p {
  font-weight: bold;
  color: var(--text-dark);
}

/* Services / Categories */
.services {
  background-color: var(--warm-beige);
}

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

.service-card {
  background-color: var(--white);
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
  border-color: var(--primary-gold);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-weight: 100;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-dark);
}

.location-icon-wrapper {
  width: 90px;
  height: 90px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border: 2px dashed var(--primary-gold);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
  transition: var(--transition);
  position: relative;
}

.location-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  opacity: 0.5;
  transition: var(--transition);
}

.service-card:hover .location-icon-wrapper {
  transform: translateY(-5px) scale(1.05);
  background-color: var(--primary-gold);
  border-style: solid;
}

.service-card:hover .location-icon-wrapper::after {
  top: -12px; left: -12px; right: -12px; bottom: -12px;
  opacity: 0;
}

.location-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

.service-card:hover .location-icon-wrapper i {
  color: var(--white);
}

/* Features / Why Choose Us Section */
.features {
  background-color: var(--midnight-blue);
  color: var(--white);
  position: relative;
}

.light-title h2 {
  color: var(--white);
}

.light-title .separator {
  background-color: var(--primary-gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--midnight-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--primary-gold);
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background-color: var(--primary-gold);
  transform: rotate(10deg) scale(1.1);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

.feature-box:hover .feature-icon i {
  color: var(--midnight-blue);
}

.feature-box h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Gallery Preview Section */
.gallery-preview {
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(19, 32, 54, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay i {
  color: var(--primary-gold);
  font-size: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

.text-center {
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--midnight-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: var(--primary-gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 50%;
  height: 2px;
  background-color: var(--primary-gold);
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary-gold);
  margin-left: 15px;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Full Gallery Page Styles */
.page-header {
  padding: 150px 0 80px;
  background-color: var(--midnight-blue);
  color: var(--white);
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--primary-gold);
  font-size: 3rem;
  margin-bottom: 10px;
}

.full-gallery {
  padding: 50px 0;
  background: var(--warm-beige);
}

/* Lightbox Base */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(19, 32, 54, 0.95);
  display: none;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border: 2px solid var(--primary-gold);
  border-radius: 5px;
}

.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary-gold);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-content { flex-direction: column; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; position: absolute; left: 20px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--midnight-blue);
    flex-direction: column;
    padding-top: 80px;
    padding-right: 30px;
    transition: 0.4s ease;
  }
  .nav-links.active { right: 0; }
  .nav-links li { margin-bottom: 20px; }
  .hero h1 { font-size: 2.5rem; }
  .info-cards { flex-direction: column; }
}

/* RTL to LTR Support overrides */
html[dir="ltr"] .contact-info i {
  margin-left: 0;
  margin-right: 15px;
}

@media (max-width: 768px) {
  html[dir="ltr"] .menu-toggle {
    left: auto;
    right: 20px;
  }
  
  html[dir="ltr"] .nav-links {
    padding-right: 0;
    padding-left: 30px;
  }
}
