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

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #d74242, #444);
  color: white;
  scroll-behavior: smooth;
}

a {
  color: #ffea00;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container h2 {
  font-size: 1.4em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  color: white;
}

/* Hero */
.hero-section {
  text-align: center;
  padding: 60px 20px;
}

.hero-section h1 {
  font-size: 2.0em;
  margin-bottom: 20px;
}
.hero-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}
.hero-section p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog */
.blog-section {
  padding: 50px 20px;
  text-align: center;
}

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

.blog-card {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h4 {
  margin-top: 15px;
  font-size: 1.1em;
}

.blog-card p {
  font-size: 0.95em;
  margin-top: 5px;
  color: #f1f1f1;
}

/* About */
.about-section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-section h3 {
  margin-bottom: 15px;
}

.about-section p {
  line-height: 1.6;
  font-size: 1em;
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  height: 400px;
  width: 280px;
  border-radius: 8px;
}

/* Contact */
.contact-section {
  padding: 50px 20px;
  text-align: center;
}

.qr-code {
  margin-top: 15px;
  width: 200px;
  border-radius: 8px;
  border: 2px solid white;
  transition: transform 0.2s;
}

.qr-code:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 0.95em;
  color: #ffffff;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-social {
  margin: 10px 0;
}

.footer-social a {
  display: inline-block;
  color: #ffffff;
  font-size: 1em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a i {
  margin-right: 8px;
  font-size: 1.2em;
}

.footer-social a:hover {
  color: #ffea00;
}

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

.qr-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.qr-box p {
  margin-top: 8px;
  color: white;
  font-size: 0.95em;
}

/* Video */
.video-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.video-wrapper video {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #E53935;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none;
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #b71c1c;
  transform: scale(1.1);
}

/* Language Switcher */
.lang-switcher {
  margin-right: 10px;
}

.lang-switcher select {
  background-color: #E53935;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
  height: 45px;
}

.lang-switcher select:hover {
  background-color: #b71c1c;
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
  transition: transform 0.3s;
}

.lightbox:hover img {
  transform: scale(1.01);
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .lightbox img {
    transform: scale(1.2);
  }
}

/* Mobile Menu Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 999;
  transition: transform 0.3s ease;
}

.mobile-nav.show {
  display: flex;
}

.mobile-nav a {
  color: white;
  font-size: 1.2em;
  padding: 15px 0;
  display: block;
}

.mobile-nav .lang-switcher {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  font-size: 2em;
  cursor: pointer;
  color: white;
}

html[lang="ar"] .mobile-nav .close-btn {
  right: 20px;
}

html[lang="en"] .mobile-nav .close-btn {
  left: 20px;
}

.custom-hr {
  width: 30%;
  margin: 20px auto; /* centers it horizontally */
  border: none;
  border-top: 2px solid #ccc; /* you can customize this */
}
