:root {
  /* Color Palette - Extracted/Inferred from Logo Context */
  --primary-color: #0f2c4a; /* Deep Navy Blue */
  --primary-light: #1a3c6e;
  --secondary-color: #c5a059; /* Gold/Bronze Accent */
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e1e1e1;

  /* Typography */
  --font-en: "Poppins", sans-serif;
  --font-ar: "Cairo", sans-serif;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection */
::selection {
  background: var(--secondary-color);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  width: 100%;
}

/* RTL Support */
html[dir="rtl"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

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

ul {
  list-style: none;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(15, 44, 74, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

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

.logo-text {
  white-space: nowrap;
}

.logo-text h1 {
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-text span {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0; /* LTR default */
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

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

.btn-lang {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-lang:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(
      135deg,
      rgba(15, 44, 74, 0.85),
      rgba(15, 44, 74, 0.7)
    ),
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 0; /* Removed margin-top as navbar is fixed/transparent */
  padding-top: 80px; /* Added padding to compensate for navbar */
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.line {
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.line::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid var(--white);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 20px 20px 0 rgba(197, 160, 89, 0.2);
  transition: var(--transition);
}

.about-image img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 25px 25px 0 rgba(197, 160, 89, 0.3);
}

/* Products Section */
.products {
  background-color: var(--bg-light);
}

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

.product-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 220px;
  overflow: hidden;
}

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

.product-card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 30px;
}

.product-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 44, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
  color: var(--secondary-color);
  font-size: 2rem;
}

/* Why Choose Us */
.why-us {
  background-color: var(--bg-light);
  position: relative;
}

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

.feature-item {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(197, 160, 89, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(15, 44, 74, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background-color: var(--primary-color);
}

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

.feature-item:hover i {
  color: var(--white);
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

html[dir="rtl"] .info-item {
  border-left: none;
  border-right: 4px solid var(--secondary-color);
}

.info-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .info-item:hover {
  transform: translateX(-10px);
}

.info-item i {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.info-item:hover i {
  background: var(--secondary-color);
  color: var(--white);
}

.info-item div {
  flex: 1;
}

.info-item h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.info-item p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.4;
}

.map-container {
  background: var(--white);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  border-radius: 5px;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px;
  position: relative;
}

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

.footer-brand {
  max-width: 500px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.footer-logo p {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-social {
    align-items: center;
  }

  html[dir="rtl"] .footer-social {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%; /* LTR default */
    top: 80px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    padding: 40px 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    gap: 30px;
    overflow-y: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
  }

  .nav-link:hover::after {
    width: 0; /* Disable underline animation on mobile */
    color: var(--secondary-color);
  }

  .nav-link:hover {
    color: var(--secondary-color);
  }

  .btn-lang {
    margin: 0 auto;
    width: fit-content;
  }

  html[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
  }

  .nav-menu.active {
    left: 0;
  }

  html[dir="rtl"] .nav-menu.active {
    left: auto;
    right: 0;
  }

  .logo img {
    height: 40px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text span {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.8rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .logo-text h1 {
    font-size: 0.9rem;
  }

  .logo-text span {
    font-size: 0.8rem;
  }
}
