/* --- IMPORTS & VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Tajawal:wght@400;700&display=swap");

:root {
  --primary: #004d40; /* Deep Teal */
  --primary-dark: #00251a;
  --secondary: #ffb300; /* Rich Gold */
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --glass: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, #004d40 0%, #00695c 100%);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  background-color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body[dir="rtl"] {
  font-family: "Tajawal", sans-serif;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}
.section-padding {
  padding: 100px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}
.section-title p {
  color: #666;
  margin-top: 15px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- HEADER & NAV (FIXED) --- */
.top-bar {
  background: var(--dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-info span {
  margin: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.top-info i {
  color: var(--secondary);
}

header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative; /* Needed for absolute positioning of mobile menu */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.logo img {
  height: 45px;
  width: auto;
  border-radius: 5px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--secondary);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger - HIDDEN BY DEFAULT on Desktop */
.hamburger {
  display: none !important; /* Force hide on desktop */
}

/* --- BUTTONS --- */
.btn {
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 77, 64, 0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
}
.lang-btn:hover {
  background: var(--dark);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0, 30, 20, 0.7), rgba(0, 30, 20, 0.7)),
    url("../images/images1.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 35px;
  opacity: 0.95;
}

/* --- FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}
.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--secondary);
}
.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 77, 64, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--dark);
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 350px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 77, 64, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .overlay {
  opacity: 1;
}

/* --- PAGE ELEMENTS --- */
.about-split,
.service-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}
.text-box h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.text-box p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555;
}
.img-box img {
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}
.check-list i {
  color: var(--secondary);
  margin-right: 15px;
  font-size: 1.2rem;
}
body[dir="rtl"] .check-list i {
  margin-right: 0;
  margin-left: 15px;
}

/* --- CONTACT --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.contact-box {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: var(--transition);
}
.contact-box:hover {
  transform: translateY(-5px);
}
.contact-box i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
  background: rgba(255, 179, 0, 0.1);
  padding: 20px;
  border-radius: 50%;
}
.contact-box h3 {
  margin-bottom: 15px;
  color: var(--primary);
}
.contact-box p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- FOOTER --- */
footer {
  background: #0f1514;
  color: #bbb;
  padding-top: 80px;
  border-top: 5px solid var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h3 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 40px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  transition: 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}
body[dir="rtl"] .footer-links a:hover {
  transform: translateX(-5px);
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}
.copyright {
  background: #000;
  padding: 25px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* --- RESPONSIVE MEDIA QUERIES (Mobile Fix) --- */
@media (max-width: 900px) {
  /* Show Hamburger on Mobile */
  .hamburger {
    display: block !important;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
  }

  /* Hide Nav Links initially */
  .nav-links {
    display: none; /* Important: Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Push exactly below header */
    left: 0;
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #eee;
    gap: 20px;
  }

  /* Show Nav Links when active */
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  /* Center Align Links on Mobile */
  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 1.1rem;
  }

  /* Top Bar Mobile Adjustments */
  .top-bar-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  /* Hero Text Size */
  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* Feature Grid Spacing */
  .features-grid {
    margin-top: 40px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
