:root {
  /* Professional Blue Theme - Matches Menu */
  --primary: #102694;
  --primary-hover: #2641c2;
  --primary-dark: #0a1128;

  --bg-color: #f8fafc;
  --card-bg: #ffffff;

  --text-main: #0a1128;
  --text-muted: #64748b;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
}

/* Buttons */
.btn {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 12px rgba(16, 38, 148, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  /* Forces text to stay on one line */
  width: auto;
  /* Button adapts to content width */
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 38, 148, 0.25);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-secondary {
  background: white;
  color: var(--primary);
}

.btn-secondary:hover {
  background: #f0f0f0;
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

/* Sections */
.section-preview {
  padding: 4rem 1.5rem;
  background: var(--bg-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-main);
}

.link-arrow {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Location Banner */
.location-preview-banner {
  background: var(--primary);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.location-text h2 {
  margin-bottom: 1rem;
}

.location-text p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==============================
   Animations 
   ============================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero Section (Animates on Load) --- */
.hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-slogan {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  /* 0.2s delay */
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  /* 0.4s delay */
}

/* --- Scroll Sections (Targeting Existing Classes) --- */
/* We hide these initially */
.feature-card,
.about-text,
.about-image {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* JavaScript will add this class when the element is on screen */
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add a slight delay to the 2nd and 3rd cards so they ripple in */
.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* --- RTL Support --- */
[lang="ar"],
[lang="ku"] {
  font-family: "Cairo", "Outfit", sans-serif;
}

[lang="ar"] .hero-title,
[lang="ar"] .section-header h2,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ku"] .hero-title,
[lang="ku"] .section-header h2,
[lang="ku"] h2,
[lang="ku"] h3 {
  letter-spacing: 0;
}

[lang="en"] {
  font-family: "Outfit", sans-serif;
}

body.rtl {
  text-align: right;
}