/* CSS Variables for Premium Black and Gold Theme */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1f1f1f;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa8529;
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body {
  font-family:
    "Cairo",
    "Inter",
    system-ui,
    -apple-system,
    sans-serif; /* Example Arabic font fallback */
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggler span {
  width: 100%;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--color-gold);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-gold-dark),
    var(--color-gold)
  );
  color: var(--color-bg);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  /* Basic parallax using fixed attachment */
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.5), var(--color-bg)),
    url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-content h3 {
  font-size: 1.5rem;
}

.service-content p {
  color: var(--color-text-muted);
  flex: 1;
}

/* Service Card CTA Button */
.btn-service-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: transparent;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-service-cta:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold);
  transform: translateX(4px);
}

/* About Section */
.about {
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
    url("../images/about-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 8rem 5%;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.about h2,
.about p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Stats Row */
.about-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  padding: 4rem 5% 1rem;
  background: var(--color-surface);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--color-text-muted);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-gold);
}

.brand-col .footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col a:hover {
  color: var(--color-gold);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-gold);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--color-gold); /* gold shade circle */
  color: #000; /* dark text if any */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-socials a:hover img {
  filter: brightness(0) saturate(0) contrast(200%);
}

.footer-socials img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Language Toggler */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.lang-toggle a {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.lang-toggle a.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggler {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    align-items: flex-start;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .lang-toggle {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
    align-items: center;
  }

  .lang-toggle .btn {
    width: 100%;
    justify-content: center;
    margin-inline-end: 0 !important;
  }

  .navbar {
    padding: 1rem;
  }
  .hero,
  .about {
    background-attachment: scroll; /* iOS fixes for fixed backgrounds */
  }
}
