/* ============================================================
   MARTYRS MEMORIAL – KANAWAT · DARK THEME
   Druze Five-Color System + Modern Premium Dark UI
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Druze Five Colors – vivid & bright */
  --druze-green:  #22c55e;
  --druze-red:    #ef4444;
  --druze-yellow: #facc15;
  --druze-blue:   #3b82f6;
  --druze-white:  #f8fafc;

  /* Dark palette */
  --bg-primary:   #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card:      #13131f;
  --bg-card-hover:#1a1a2e;
  --border-subtle: rgba(255,255,255,0.07);
  --border-glow:   rgba(250,204,21,0.4);

  /* Text */
  --text-primary:  #f0ede8;
  --text-secondary:#b8b5ae;
  --text-muted:    #6e6b65;

  /* Accent gold – matches Druze yellow family */
  --gold:          #facc15;
  --gold-light:    #fef08a;
  --gold-dim:      rgba(250,204,21,0.15);

  /* Sizes */
  --stripe-h: 6px;
  --radius-card: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(250,204,21,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Amiri', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- DRUZE FIVE-BORDER STRIPE ---------- */
.druze-stripe {
  display: flex;
  height: 10px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 4px 20px rgba(0,0,0,0.7),
    0 2px 40px rgba(250,204,21,0.25);
  filter: brightness(1.1) saturate(1.3);
}
.druze-stripe span { flex: 1; transition: flex 0.4s ease, filter 0.4s; }
.druze-stripe:hover span { flex: 1.5; filter: brightness(1.25); }

/* Individual glow per color */
.druze-green  { background: var(--druze-green);  box-shadow: inset 0 -2px 8px rgba(34,197,94,0.6); }
.druze-red    { background: var(--druze-red);    box-shadow: inset 0 -2px 8px rgba(239,68,68,0.6); }
.druze-yellow { background: var(--druze-yellow); box-shadow: inset 0 -2px 8px rgba(250,204,21,0.6); }
.druze-blue   { background: var(--druze-blue);   box-shadow: inset 0 -2px 8px rgba(59,130,246,0.6); }
.druze-white  { background: var(--druze-white);  box-shadow: inset 0 -2px 8px rgba(248,250,252,0.5); }

/* Subtle shimmer animation */
@keyframes stripeShimmer {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.85; }
}
.druze-stripe {
  animation: stripeShimmer 3s ease-in-out infinite;
}

/* Footer stripe */
.footer-stripe {
  position: static;
  margin-bottom: 2rem;
  border-radius: 4px 4px 0 0;
  animation: none;
  filter: brightness(1) saturate(1.1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
  text-align: center;
}

/* animated starfield background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,122,60,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 90%,  rgba(26,79,160,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%,  rgba(192,57,43,0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='50' cy='60' r='1' fill='%23ffffff22'/%3E%3Ccircle cx='120' cy='20' r='0.8' fill='%23ffffff18'/%3E%3Ccircle cx='250' cy='80' r='1.2' fill='%23ffffff15'/%3E%3Ccircle cx='350' cy='30' r='0.6' fill='%23ffffff20'/%3E%3Ccircle cx='80' cy='180' r='1' fill='%23ffffff12'/%3E%3Ccircle cx='310' cy='150' r='0.9' fill='%23ffffff18'/%3E%3Ccircle cx='180' cy='300' r='1.1' fill='%23ffffff14'/%3E%3Ccircle cx='380' cy='280' r='0.7' fill='%23ffffff20'/%3E%3Ccircle cx='30' cy='350' r='1' fill='%23ffffff16'/%3E%3Ccircle cx='200' cy='370' r='0.8' fill='%23ffffff12'/%3E%3C/svg%3E") repeat;
  z-index: 0;
  animation: subtleDrift 20s ease-in-out infinite alternate;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,15,0.3) 0%,
    rgba(10,10,15,0.5) 60%,
    rgba(10,10,15,0.95) 100%
  );
  z-index: 1;
}

@keyframes subtleDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0, 30px 20px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 760px;
}

/* Logo */
.logo-wrap {
  position: relative;
  display: inline-block;
}
.logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,160,23,0.15), var(--shadow-glow);
  animation: logoPulse 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.25) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(212,160,23,0.15), 0 0 30px rgba(212,160,23,0.2); }
  50%      { box-shadow: 0 0 0 10px rgba(212,160,23,0.08), 0 0 50px rgba(212,160,23,0.35); }
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* Title */
.title-block { text-align: center; }

.pre-title {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--druze-yellow);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.main-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.main-title .highlight {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.2em;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  margin: 1rem auto;
  font-size: 1rem;
  font-weight: 700;
  color: #ff6b5b;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint span { font-size: 1.4rem; display: block; color: var(--gold); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--druze-green), var(--druze-yellow), var(--druze-red));
  margin: 0.75rem auto 0;
  border-radius: 3px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

/* ============================================================
   DRUZE COLORS LEGEND
   ============================================================ */
.colors-legend {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.color-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.color-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: height 0.3s;
}
.color-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.color-card:hover::before { height: 6px; }

.color-card.green::before { background: var(--druze-green); }
.color-card.red::before   { background: var(--druze-red); }
.color-card.yellow::before{ background: var(--druze-yellow); }
.color-card.blue::before  { background: var(--druze-blue); }
.color-card.white::before { background: var(--druze-white); }

.color-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,0.1);
}
.color-card.green  .color-dot { background: var(--druze-green);  box-shadow: 0 0 16px rgba(26,122,60,0.5); }
.color-card.red    .color-dot { background: var(--druze-red);    box-shadow: 0 0 16px rgba(192,57,43,0.5); }
.color-card.yellow .color-dot { background: var(--druze-yellow); box-shadow: 0 0 16px rgba(212,160,23,0.5); }
.color-card.blue   .color-dot { background: var(--druze-blue);   box-shadow: 0 0 16px rgba(26,79,160,0.5); }
.color-card.white  .color-dot { background: var(--druze-white);  box-shadow: 0 0 16px rgba(240,237,232,0.4); }

.color-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary); }
.color-card p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 5rem 0 6rem;
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* Martyr Card */
.martyr-card {
  animation: fadeUp 0.6s ease both;
}
.martyr-card:nth-child(1)  { animation-delay: 0.05s; }
.martyr-card:nth-child(2)  { animation-delay: 0.10s; }
.martyr-card:nth-child(3)  { animation-delay: 0.15s; }
.martyr-card:nth-child(4)  { animation-delay: 0.20s; }
.martyr-card:nth-child(5)  { animation-delay: 0.25s; }
.martyr-card:nth-child(6)  { animation-delay: 0.30s; }
.martyr-card:nth-child(7)  { animation-delay: 0.35s; }
.martyr-card:nth-child(8)  { animation-delay: 0.40s; }
.martyr-card:nth-child(9)  { animation-delay: 0.45s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-inner {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.35s,
              border-color 0.35s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.martyr-card:hover .card-inner {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: var(--border-glow);
}

/* Image wrapper */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/3.5;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}
.martyr-card:hover .card-img-wrap img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* 5-color Druze top stripe on image */
.card-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--druze-green)  0%   20%,
    var(--druze-red)    20%  40%,
    var(--druze-yellow) 40%  60%,
    var(--druze-blue)   60%  80%,
    var(--druze-white)  80%  100%
  );
  z-index: 2;
}

/* 5-color Druze glow border on hover */
.martyr-card:hover .card-inner {
  border-color: transparent;
  box-shadow:
    var(--shadow-card),
    0 0 0 2px var(--druze-yellow),
    0 0 20px rgba(250,204,21,0.3);
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.martyr-card:hover .card-overlay { opacity: 1; }
.martyr-name-overlay {
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Amiri', serif;
}

/* Card body */
.card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
}

.martyr-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  width: fit-content;
}
.female-badge {
  background: rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.3);
  color: #ff7f77;
}

.martyr-name {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.martyr-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  border-right: 2px solid var(--druze-yellow);
  padding-right: 0.75rem;
  margin-top: auto;
}

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg,
    rgba(26,122,60,0.08) 0%,
    rgba(26,79,160,0.08) 50%,
    rgba(192,57,43,0.08) 100%
  );
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.quote-banner::before {
  content: '❝';
  position: absolute;
  top: -0.5rem;
  right: 2rem;
  font-size: 12rem;
  color: rgba(212,160,23,0.04);
  line-height: 1;
  font-family: serif;
}
.quote-banner blockquote {
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote-banner blockquote p {
  font-family: 'Amiri', serif;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--gold-light);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  padding-top: 0;
  padding-bottom: 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  opacity: 0.85;
}
.footer-title {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
}
.footer-sub {
  font-size: 0.9rem;
  color: var(--druze-yellow);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .colors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .color-card:nth-child(4),
  .color-card:nth-child(5) {
    grid-column: span 1;
  }
  /* center last two items */
  .colors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .colors-grid { grid-template-columns: repeat(2, 1fr); }
  .color-card:last-child { grid-column: span 2; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .logo { width: 110px; height: 110px; }
  .main-title { font-size: 2rem; }

  .hero { padding: 4rem 1rem 3rem; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .colors-grid  { grid-template-columns: 1fr 1fr; }
  .color-card:last-child { grid-column: span 2; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  padding: 1rem;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 560px;
  width: 100%;
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-inner img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 2px solid var(--border-glow);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--druze-red);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.15); }
.lightbox-caption {
  text-align: center;
  margin-top: 1rem;
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
}
