/* gallery.css - extracted from inline styles in gallery.html */
/* Small responsive adjustments */
@media (max-width: 768px) {
  .top-bar-content {
    padding: 0 0.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .top-bar-contact, .top-bar-hours { white-space: nowrap !important; }
}
@media (max-width: 480px) {
  .top-bar-content { padding: 0 0.3rem !important; gap: 0.3rem !important; }
  .top-bar-separator { display: none !important; }
}

/* Critical header/top-bar styles extracted */
.top-bar {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.2);
}
.top-bar-content { max-width: 2200px !important; margin: 0 auto !important; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; width: 100% !important; box-sizing: border-box !important; }
.top-bar-contact { display: flex; align-items: center; gap: 1rem; }
.top-phone-link { color: #e5e7eb; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s; }
.top-phone-link:hover { color: #f97316; }
.top-bar-separator { color: #9ca3af; }
.top-bar-text { color: #d1d5db; }
.top-bar-hours { display: flex; align-items: center; gap: 0.5rem; color: #d1d5db; }

/* Header & language/nav basics */
body { margin: 0; font-family: 'Heebo', 'Assistant', sans-serif; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f3f4f6 100%); background-attachment: fixed; direction: rtl; }
.header { background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.99) 50%, rgba(243,244,246,1) 100%); padding: 1rem 2rem; position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid rgba(229,231,235,0.8); min-height: 80px; }
.logo { font-size: 2.8rem; font-weight: 700; color: #1f2937; text-decoration: none; }
.logo span { color: #f97316; }
.logo-center { flex: 1; display: flex; justify-content: center; }
.language-selector { display: flex; gap: 0.5rem; }
.lang-btn { background: rgba(243,244,246,0.8); border: 1px solid #d1d5db; color: #374151; padding: 0.3rem 0.8rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s; }
.lang-btn:hover, .lang-btn.active { background: #f9fafb; color: #111827; border-color: #9ca3af; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.simple-nav { display: none; }
@media (min-width: 768px) { .simple-nav { display: block; } .nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2rem; } .nav-menu a { background: #f8f9fa !important; color: #374151 !important; text-decoration: none; font-weight: 600 !important; font-size: 0.8rem !important; padding: 0.5rem 0.8rem !important; border-radius: 8px !important; box-shadow: 0 2px 6px rgba(107,114,128,0.1) !important; border: 1px solid rgba(107,114,128,0.2) !important; transition: all 0.3s ease !important; } .nav-menu a:hover { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important; color: #ffffff !important; transform: translateY(-3px) !important; box-shadow: 0 8px 16px rgba(107,114,128,0.25) !important; } }
.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; position: relative; z-index: 1015; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.hamburger-line { display: block; width: 25px; height: 3px; background: #374151; margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Layout centering for large screens */
body { max-width: 2200px !important; margin: 0 auto !important; box-sizing: border-box !important; }
.container, .top-bar-content, .header-content { max-width: 2200px !important; margin: 0 auto !important; box-sizing: border-box !important; }
@media (min-width: 1920px) {
  body { max-width: 2200px !important; margin: 0 auto !important; width: 100% !important; display: block !important; }
  .container, .top-bar-content, .header-content { max-width: 2200px !important; margin: 0 auto !important; padding-left: 4rem !important; padding-right: 4rem !important; width: 100% !important; box-sizing: border-box !important; }
}
@media (min-width: 2560px) {
  body { max-width: 2600px !important; margin: 0 auto !important; }
  .container, .top-bar-content, .header-content { max-width: 2600px !important; margin: 0 auto !important; padding-left: 6rem !important; padding-right: 6rem !important; }
}

/* Mobile nav drawer basics (kept for header fragment) */
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; background: rgba(248,246,240,0.98); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(229,231,235,0.3); z-index: 1000; transform: translateY(-100%); transition: transform 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.1); max-height: 100vh; overflow-y: auto; overflow-x: hidden; }
.mobile-nav.active { transform: translateY(0); }
.mobile-nav-content { padding: 4rem 2rem 2rem; height: calc(100vh - 1rem); display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; }
.mobile-nav-content::-webkit-scrollbar { display: none; }

/* Hero and project card basics kept for gallery layout */
.hero { height: 28vh; min-height: 220px; background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%); display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.hero-content { text-align: center; max-width: 900px; padding: 0 2rem; color: #ffffff; }
.hero h1 { font-size: 2.8rem; color: #ffffff; margin: 0 0 1rem 0; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; padding: 2rem 0; }
.project-card { height: 400px; perspective: 1000px; }
.card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; cursor: pointer; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-info { padding: 1.5rem; }

/* Gallery-specific cards are handled in gallery-cards.css - removed duplicate styles */

/* Fix mobile card text color */
@media (max-width: 768px) {
  .card-back {
    color: #ffffff !important; /* Force white text on mobile */
  }
  .card-back h3,
  .card-back p,
  .card-back li {
    color: #ffffff !important; /* Ensure all text elements are white */
  }
  .project-features li {
    color: #ffffff !important;
  }
}

/* Gallery-specific mobile language buttons - vertical layout */
#gallery .mobile-language-buttons {
  flex-direction: column !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

#gallery .mobile-lang-btn {
  width: 100% !important;
  flex: none !important;
}

/* Gallery-specific mobile language buttons for different screen sizes */
@media (max-width: 768px) {
  #gallery .mobile-language-buttons {
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: center !important;
  }
}

@media (max-width: 600px) {
  #gallery .mobile-language-buttons {
    gap: 0.3rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

@media (max-width: 480px) {
  #gallery .mobile-language-buttons {
    gap: 0.25rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

@media (max-width: 375px) {
  #gallery .mobile-language-buttons {
    gap: 0.2rem !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
}
