/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  background: #420142;
  color: #FFFFFF;
  direction: rtl;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  height: 70px;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  animation: pulse 2s infinite;
}

.navbar-title {
  font-size: 1.5rem;
  color: #ee930b;
  font-weight: 700;
  text-shadow: 0 0 5px #ee930b;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-right: 15px;
  margin-left: 30px;
}

.social-icon {
  color: #ee930b;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #ee930b;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a i {
  transition: transform 0.3s;
}

.nav-links a:hover i {
  transform: scale(1.2);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: #ee930b;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-toggle {
  background: #ee930b;
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.lang-toggle:hover {
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #ee930b;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Branches Section */
.branches-section {
  padding: 50px 20px;
  background: #420142;
  text-align: center;
}

.branches-title {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 40px;
  text-shadow: 0 0 5px #FFD700;
}

.branches-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.branch-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.5);
}

.branch-icon {
  font-size: 2.5rem;
  color: #ee930b;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.branch-card h3 {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 15px;
}

.branch-card p {
  font-size: 1rem;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

/* Footer Styles */
.site-footer {
  background: #0c000c;
  color: #FFFFFF;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 15px;
}

.footer-column {
  text-align: center;
  transition: transform 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
}

.footer-column h4 {
  color: #FFD700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #FFD700;
}

.footer-logo-container {
  margin-bottom: 15px;
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #FFD700);
  transition: transform 0.5s ease;
}

.footer-logo:hover {
  transform: rotateY(360deg);
}

.footer-logo-text {
  display: block;
  font-size: 1.3rem;
  color: #FFD700;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  margin: 10px 0;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.footer-social a {
  color: #FFD700;
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
  color: #FFFFFF;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700;
}

.contact-info li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.95rem;
}

.contact-info i {
  color: #FFD700;
  width: 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 10px;
    justify-content: space-between;
    height: 60px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    flex-direction: column;
    padding: 15px;
    text-align: center;
    animation: slideDown 0.3s;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 8px 0;
  }
  .hamburger {
    display: flex;
  }
  .logo {
    width: 50px;
    height: 50px;
  }
  .navbar-title {
    font-size: 1.2rem;
  }
  .social-icons {
    gap: 6px;
    margin-right: 10px;
    margin-left: 20px;
  }
  .social-icon {
    font-size: 1.2rem;
  }
  .branches-section {
    padding: 30px 15px;
  }
  .branches-title {
    font-size: 2rem;
  }
  .branches-container {
    grid-template-columns: 1fr;
  }
  .branch-card p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .branches-title {
    font-size: 1.8rem;
  }
  .branch-card {
    padding: 15px;
  }
  .branch-card h3 {
    font-size: 1.5rem;
  }
  .branch-card p {
    font-size: 0.9rem;
  }
}