/* Custom styles & theme enhancements for Association Tawaya */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --primary-light: #d8f3dc;
  --secondary: #b45309;
  --secondary-hover: #92400e;
  --accent: #d97706;
  --bg-sand: #fbf9f5;
  --text-main: #1f2937;
  --text-muted: #4b5563;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* RTL font adjustment for Arabic */
[dir="rtl"] {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #2d6a4f;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b4332;
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

/* Hero Section gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(20, 45, 33, 0.88) 0%, rgba(35, 78, 55, 0.80) 50%, rgba(180, 83, 9, 0.75) 100%);
}

/* Card hover animation */
.card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Photo Gallery Grid Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 45, 33, 0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Partner Logo card */
.partner-logo-box {
  transition: all 0.3s ease;
  filter: grayscale(80%);
  opacity: 0.85;
}
.partner-logo-box:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

/* Custom Tag */
.badge-atlas {
  background: linear-gradient(90deg, #d8f3dc 0%, #e8f5e9 100%);
  color: #1b4332;
  border: 1px solid #b7e4c7;
}

/* Active filter button */
.filter-btn.active {
  background-color: #2d6a4f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(45, 106, 79, 0.3);
}

/* Language selector active */
.lang-opt.active {
  background-color: #f3f4f6;
  font-weight: 700;
  color: #2d6a4f;
}

/* Hide Google Translate top frame if generated */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  font-size: 11px !important;
  padding: 0 !important;
}
.goog-te-gadget-simple .goog-te-menu-value {
  color: #4b5563 !important;
}
.goog-te-gadget-icon {
  display: none !important;
}
