/* ==========================================================================
   Sunu Diiné — Main Stylesheet
   Colors: Emerald Green #00674F, Cream #FDFBD4, Navy Blue #000080
   Font: Open Sans
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #222;
  background-color: #FDFBD4;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #00674F;
  color: #FDFBD4;
  border-color: #00674F;
}

.btn-primary:hover {
  background-color: #004d3a;
  border-color: #004d3a;
}

.btn-outline {
  background-color: transparent;
  color: #00674F;
  border-color: #00674F;
}

.btn-outline:hover {
  background-color: #00674F;
  color: #FDFBD4;
}

.btn-outline-light {
  background-color: transparent;
  color: #FDFBD4;
  border-color: #FDFBD4;
}

.btn-outline-light:hover {
  background-color: #FDFBD4;
  color: #00674F;
}

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 128, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #FDFBD4;
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar-logo {
  font-size: 1.6rem;
  line-height: 1;
}

.navbar-name {
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links li a {
  color: #FDFBD4;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FDFBD4;
  transition: width 0.25s ease;
}

.navbar-links li a:hover::after {
  width: 100%;
}

.navbar-auth {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1rem;
}

.navbar-auth .btn-outline {
  color: #FDFBD4;
  border-color: #FDFBD4;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.navbar-auth .btn-outline:hover {
  background-color: #FDFBD4;
  color: #000080;
}

.navbar-auth .btn-primary {
  background-color: #00674F;
  border-color: #00674F;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.navbar-auth .btn-primary:hover {
  background-color: #004d3a;
  border-color: #004d3a;
}

/* Navbar toggle (mobile) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle-icon {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #FDFBD4;
  border-radius: 2px;
  position: relative;
  transition: background-color 0.3s ease;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background-color: #FDFBD4;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.navbar-toggle-icon::before {
  top: -8px;
}

.navbar-toggle-icon::after {
  top: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    url('https://images.unsplash.com/photo-1585036156171-384164a8c159?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 1.5rem 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 128, 0.7) 0%,
    rgba(0, 103, 79, 0.75) 100%
  );
}

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

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  color: #FDFBD4;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: #FDFBD4;
  margin-bottom: 2.2rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Verse Section (Quran 20:114)
   ========================================================================== */
.verse-section {
  background-color: #00674F;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.verse-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.verse-arabic-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.verse-arabic {
  font-size: 2.6rem;
  font-weight: 700;
  color: #FDFBD4;
  direction: rtl;
  line-height: 1.8;
  white-space: nowrap;
  animation: scroll-verse 20s linear infinite;
}

@keyframes scroll-verse {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.verse-reference {
  margin-bottom: 1.5rem;
}

.verse-reference span {
  color: #FDFBD4;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.verse-translation {
  font-size: 1.05rem;
  font-weight: 300;
  color: #FDFBD4;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.85;
  font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 128, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0 2rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .navbar-links.active {
    transform: translateY(0);
  }

  .navbar-links li {
    padding: 0.8rem 0;
  }

  .navbar-auth {
    flex-direction: column;
    margin-left: 0;
    margin-top: 0.5rem;
    gap: 0.6rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .verse-arabic {
    font-size: 1.8rem;
  }

  .verse-translation {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verse-arabic {
    animation: none;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }

  .verse-arabic {
    font-size: 1.4rem;
  }
}
