:root {
  --green-dark: #0f1a14;
  --green: #1a3a2a;
  --green-mid: #254a3a;
  --green-light: #3a6b55;
  --gold: #c4a855;
  --gold-light: #d4bc6a;
  --cream: #f5f0e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--green-dark);
  color: var(--cream);
  direction: rtl;
  line-height: 1.7;
}

/* Navigation */
.nav {
  background: rgba(15, 26, 20, 0.97);
  border-bottom: 1px solid rgba(196, 168, 85, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
}

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

.logo {
  font-family: 'El Messiri', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(15,26,20,0.92) 0%, rgba(26,58,42,0.75) 100%), url('../images/facility/exterior-building.jpg') center/cover;
  position: relative;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: 'El Messiri', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero .lead {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.gold { color: var(--gold); }

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: 'Cairo', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}

.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover { background: rgba(196, 168, 85, 0.1); }

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover { background: #1da851; }

/* Sections */
.section {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-gray {
  background: rgba(26, 58, 42, 0.3);
}

.section h2 {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,168,85,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(196,168,85,0.4);
}

.card h3 {
  font-family: 'El Messiri', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card p { opacity: 0.85; font-size: 0.95rem; }

/* Stats */
.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'El Messiri', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label { font-size: 0.9rem; opacity: 0.75; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.gallery img:hover { transform: scale(1.02); }

/* FAQ */
.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(196,168,85,0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  opacity: 0.8;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 26, 20, 0.98);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 90;
  border-top: 1px solid var(--gold);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta .btn { flex: 1; justify-content: center; padding: 0.75rem; }

/* Footer */
.footer {
  background: rgba(0,0,0,0.3);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid rgba(196,168,85,0.1);
  margin-bottom: 60px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; background: rgba(15,26,20,0.98); flex-direction: column; padding: 1rem; border-bottom: 1px solid rgba(196,168,85,0.2); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .cta-group { flex-direction: column; }
  .cta-group .btn { width: 100%; justify-content: center; }
  .stats { gap: 1rem; }
  .stat-number { font-size: 1.8rem; }
}


/* === React Bits-Inspired Animations === */

/* Aurora Background */
.aurora-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-float 20s ease-in-out infinite;
    will-change: transform;
}

.aurora-blob-1 {
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, #1a3a2a 0%, #0d1f17 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.aurora-blob-2 {
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse, #254a3a 0%, #0d1f17 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -7s;
}

.aurora-blob-3 {
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, #1a3a2a 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes aurora-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Blur-in animation */
.blur-in {
    animation: blur-in 1.2s ease-out forwards;
    opacity: 0;
    filter: blur(8px);
}

.blur-in-delay-1 { animation-delay: 0.2s; }
.blur-in-delay-2 { animation-delay: 0.5s; }
.blur-in-delay-3 { animation-delay: 0.8s; }

@keyframes blur-in {
    to { opacity: 1; filter: blur(0); }
}

/* Fade-up for cards */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease-out forwards;
}

.fade-up-delay-1 { animation-delay: 0.2s; }
.fade-up-delay-2 { animation-delay: 0.4s; }
.fade-up-delay-3 { animation-delay: 0.6s; }
.fade-up-delay-4 { animation-delay: 0.8s; }

@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* Magnet button */
.btn-magnet {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-magnet:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 168, 85, 0.3);
}

/* Pulse glow */
.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 168, 85, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(196, 168, 85, 0); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #c4a855, #d4bc6a, #c4a855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(196, 168, 85, 0.3);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: -3s; }
.particle:nth-child(3) { left: 50%; animation-delay: -6s; }
.particle:nth-child(4) { left: 70%; animation-delay: -9s; }
.particle:nth-child(5) { left: 90%; animation-delay: -12s; }

@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 26, 20, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 90;
    border-top: 1px solid var(--gold);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; justify-content: center; padding: 0.75rem; }

/* Mobile improvements */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; background: rgba(15,26,20,0.98); flex-direction: column; padding: 1rem; border-bottom: 1px solid rgba(196,168,85,0.2); z-index: 100; }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .cta-group { flex-direction: column; }
    .cta-group .btn { width: 100%; justify-content: center; }
    .stats { gap: 1rem; }
    .stat-number { font-size: 1.8rem; }
    .aurora-blob { opacity: 0.25; filter: blur(60px); }
    .aurora-blob-1 { width: 300px; height: 200px; }
    .aurora-blob-2 { width: 250px; height: 175px; }
    .aurora-blob-3 { width: 200px; height: 150px; }
}
