@import url('https://fonts.googleapis.com/css2?family=Vend+Sans:ital,wght@0,300..700;1,300..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  text-align: center;
  padding-top: 90px; /* space for fixed navbar */
  transition: all 0.3s ease;
  color: #000;
  opacity: 1;
  visibility: visible;
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 25px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.logo img {
  width: 70px;
  height: auto;
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff9800;
}

#txt-en{
  text-align: center;
}

#txt-ar{
  font-size: 17px;
  transform: translate(0px, -8px);
  text-align: center;
}

/* ===== TRANSLATE BUTTON ===== */
.translate-btn {
  background: none;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
  transition: background-color 0.3s;
}

/* ===== BURGER MENU ===== */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 10px;
  z-index: 200;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px;
  transition: all 0.3s ease;
}

/* ===== RIGHT SLIDE MENU (MOBILE) ===== */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px; /* hidden off-screen to the right */
    width: 250px;
    height: 100%;
    background-color: white;
    text-align: left;
    padding: 80px 30px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 99;
  }

  .nav-links.active {
    right: 0; /* slide in from right */
  }

  .burger {
    display: flex;
  }

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* ========== CONTENT AREA ========== */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* Upload Box */
.upload-item {
  width: 100%;
  background: white;
  border: 2px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.upload-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Image & Video Responsive */
.upload-img,
.upload-video {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 0 auto;
  display: block;
}

.upload-img:hover,
.upload-video:hover {
  transform: scale(1.03);
}

/* Text under image */
#text-side {
  margin-top: 15px;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  text-align: right;
  font-size: large;
}

/* ===== Fade-in animation for cards ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay for natural animation */
.upload-item:nth-child(1) { animation-delay: 0.1s; }
.upload-item:nth-child(2) { animation-delay: 0.2s; }
.upload-item:nth-child(3) { animation-delay: 0.3s; }
.upload-item:nth-child(4) { animation-delay: 0.4s; }
.upload-item:nth-child(5) { animation-delay: 0.5s; }

/* ====== Modal ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
}

.modal img,
.modal video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

/* ===== SOCIAL BUTTON SECTION ===== */
.social-section {
  background-color: #333;
  padding: 50px 0;
  text-align: center;
  transform: translate(0px, 50px);
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-btn {
      width: 60px;
      height: 60px;
      border: 0.5px solid #fff;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      background: none;
      color: #fff;
      font-size: 26px;
      text-decoration: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.social-btn i{
  color: #fff;
  background: none;
}

/* Platform colors */
    .instagram { background: none; }
    .youtube { background: none; }
    .facebook { background: none; }
    .email { background: none; }
    .map-marker{ background: none; }

.social-btn:hover{
  transform: scale(1.1);
  background: #ff9800;
  color: #fff;
  border-color: #ff9800;
  box-shadow: 0px 0px 20px #ff9800;
}

.instagram, .youtube, .facebook, .email, .map-marker i{
  color: #fff;
  background: none;
}

@media (max-width: 480px) {
  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .social-section {
    padding: 40px 0;
  }
}


/* Button style */
.open-gallery-btn {
  padding: 12px 24px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 20px 0;
}
.open-gallery-btn:hover {
  opacity: 0.8;
}

/* Fullscreen overlay */
.media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Content inside overlay */
.media-overlay-content {
  width: 90%;
  max-width: 1200px;
  background: white;
  padding: 20px;
  border-radius: 14px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close-gallery {
  font-size: 35px;
  font-weight: bold;
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  color: #333;
}
.close-gallery:hover {
  color: red;
}

/* Grid */
.media-grid {
  display: grid;
  gap: 15px;
}

/* Responsive grid */
@media (min-width: 992px) { .media-grid { grid-template-columns: repeat(4,1fr);} }
@media (min-width: 600px) and (max-width: 991px) { .media-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 599px) { .media-grid { grid-template-columns: 1fr;} }

.media-item img,
.media-item video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease;
}

.media-item img:hover,
.media-item video:hover {
  transform: scale(1.04);
}

@keyframes fadeIn {
  from {opacity:0; transform:scale(.97);}
  to {opacity:1; transform:scale(1);}
}

#cel-h2{
  text-align: center;
}

