/* ===========================================
   Plateau State Pilgrims Box - Landing Page
   Modern Islamic-themed Design
   =========================================== */

/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-gradient-start: #0d6b32;
  --bg-gradient-end: #064520;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-bg-hover: rgba(255, 255, 255, 1);
  --text-primary: #1a2e1a;
  --text-secondary: #5a6b5a;
  --accent-green: #0d6b32;
  --accent-gold: #d4a843;
  --accent-gold-light: #f0d48a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(212, 168, 67, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #042d14 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* --- Islamic Pattern Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Geometric Pattern Decoration --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
  pointer-events: none;
  z-index: 0;
}

/* --- Wrapper --- */
.wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header / Hero --- */
.hero {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5), transparent);
}

.hero-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.hero-title-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  display: block;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 500px;
  margin: 8px auto 0;
}

.divider-icon {
  display: block;
  font-size: 24px;
  color: var(--accent-gold);
  margin: 8px auto;
  opacity: 0.7;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* --- Card --- */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: var(--card-bg-hover);
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-4px) scale(1.01);
}

/* --- Card: Decorative corner pattern --- */
.card::after {
  content: '✦';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 14px;
  color: var(--accent-gold);
  opacity: 0.3;
  transition: var(--transition);
}

.card:hover::after {
  opacity: 0.6;
  transform: rotate(90deg);
}

/* --- Card Icon --- */
.card-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  transition: var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.1);
}

/* --- Card Year --- */
.card-year {
  font-family: 'Amiri', serif;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.1;
  transition: var(--transition);
}

.card:hover .card-year {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Card Label --- */
.card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 8px 0 16px;
  position: relative;
  display: inline-block;
}

.card-label::before,
.card-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--accent-gold-light);
}

.card-label::before {
  right: calc(100% + 8px);
}

.card-label::after {
  left: calc(100% + 8px);
}

/* --- Card Description --- */
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.8;
}

/* --- Card: Status Badge --- */
.card-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.card-badge.active {
  background: rgba(13, 107, 50, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(13, 107, 50, 0.2);
}

.card-badge.upcoming {
  background: rgba(212, 168, 67, 0.15);
  color: #b8922e;
  border: 1px solid rgba(212, 168, 67, 0.3);
}

/* --- Card Button --- */
.card-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-green), #0a5226);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 220px;
  letter-spacing: 0.5px;
}

.card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: var(--transition);
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 107, 50, 0.4);
  color: #fff;
  text-decoration: none;
}

.card-btn:hover::before {
  left: 100%;
}

.card-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(13, 107, 50, 0.3);
}

.card-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.25);
}

/* --- Card: Gold variant for featured card --- */
.card.featured {
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.card.featured::before {
  background: linear-gradient(90deg, var(--accent-gold), #f0c860);
  opacity: 1;
}

.card.featured:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 48px rgba(212, 168, 67, 0.35);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Stars Decoration --- */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 36px 16px 24px;
  }

  .hero-icon {
    font-size: 44px;
  }

  .main-content {
    padding: 16px 16px 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }

  .card {
    padding: 24px 20px 20px;
  }

  .card.featured {
    transform: none;
  }

  .card.featured:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


