/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Base */
body {
  font-family: 'Tajawal', 'Cairo', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Tajawal', sans-serif;
  letter-spacing: -0.025em;
}

/* Grid Lines */
.grid-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(20, 20, 20, 0.05);
}
.grid-line-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(20, 20, 20, 0.05);
}
.section-border-t {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}
.section-border-b {
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Section Padding */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Custom Container */
.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Antra-style Buttons */
.btn-antra {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.5s;
  border: 1px solid rgba(20, 20, 20, 0.2);
  z-index: 1;
}
.btn-antra::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #098980;
  transform: translateY(102%);
  transition: transform 0.5s ease-out;
  z-index: -1;
}
.btn-antra:hover::before {
  transform: translateY(0);
}
.btn-antra:hover {
  color: white;
  border-color: #098980;
}
.btn-antra.bg-accent:hover {
  background: transparent;
}

/* Vertical Writing */
.writing-mode-vertical {
  writing-mode: vertical-rl;
}

/* Text Stroke */
.text-stroke-white {
  -webkit-text-stroke: 1px white;
  color: transparent;
}
.text-stroke-ink {
  -webkit-text-stroke: 1px #141414;
  color: transparent;
}

/* Line Clamp */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-none {
  -webkit-line-clamp: unset;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero Zoom */
@keyframes hero-zoom {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}
.hero-image {
  animation: hero-zoom 10s linear forwards;
}

/* Smooth Scroll & Snap */
.snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.snap-start {
  scroll-snap-align: start;
}
.overflow-x-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overflow-x-hidden::-webkit-scrollbar {
  display: none;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.accordion-content.open {
  max-height: 500px;
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 80rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}
.lightbox-close:hover {
  color: #c2c766;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 800px;
  opacity: 1;
}

/* Hero Grid Overlay */
.hero-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Stat number animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-animate {
  animation: count-up 0.8s ease forwards;
}

/* Pulse animation for map marker */
@keyframes pulse-map {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.animate-pulse-map {
  animation: pulse-map 2s ease-in-out infinite;
}

/* Scroll indicator animation */
@keyframes scroll-line {
  0% { height: 0; opacity: 1; }
  100% { height: 100%; opacity: 0.3; }
}
.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite alternate;
}

/* Gradient backgrounds */
.bg-gradient-accent {
  background: linear-gradient(to bottom, #c2c766, transparent);
}

/* Backdrop blur fallback */
.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Hover card styles */
.hover-card {
  transition: all 0.5s;
}
.hover-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Pattern background */
.bg-dot-pattern {
  background-image: radial-gradient(#05635f 1px, transparent 1px);
  background-size: 30px 30px;
}

/* RTL-safe flex gap for spacer elements */
.flex-spacer {
  flex: 1;
}

/* Smooth nav transition */
.nav-transition {
  transition: background-color 0.5s, padding 0.5s, border-color 0.5s;
}

/* Prose-like styles for news content */
.prose-content p {
  margin-bottom: 1.5rem;
  line-height: 2;
}
