/* ===== GALERI.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Archivo+Black&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #ffffff;
  --charcoal: #222222;
  --red: #e11d48;
  --red-light: #fda4af;
  --white: #ffffff;
  --gray: #a3a3a3;
  --light: #f5f5f5;
}

body { font-family: 'DM Sans', sans-serif; background: var(--black); color: var(--white); overflow-x: hidden; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2a2a;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; }
.brand-text { font-family: 'Archivo Black', sans-serif; font-size: 20px; color: var(--white); letter-spacing: 3px; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 6px; transition: all 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--red); }
.hamburger { display: none; background: none; border: 1px solid #444; color: var(--white); font-size: 20px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }

.mobile-menu { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; z-index: 999; background: rgba(10,10,10,0.98); padding: 20px; gap: 10px; border-bottom: 1px solid #2a2a2a; }
.mobile-menu a { color: var(--white); text-decoration: none; font-weight: 600; padding: 12px 16px; border-radius: 8px; text-align: center; border: 1px solid #2a2a2a; transition: all 0.2s; }
.mobile-menu a:hover { background: var(--red); }
.mobile-menu.open { display: flex; }

/* PAGE HERO */
.page-hero {
  min-height: 55vh;
  background: url('armada5.jpeg') center/cover no-repeat;
  position: relative; display: flex; align-items: flex-end;
  padding: 120px 60px 70px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 16px; }
.page-hero-content h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05; color: var(--white);
}

/* GALLERY SECTION */
.gallery-section { padding: 60px 40px; }

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  background: var(--charcoal); color: var(--gray);
  border: 1px solid #333; padding: 10px 22px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* MASONRY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  max-width: 1200px; margin: 0 auto;
}
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: all 0.4s;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.hidden { display: none !important; }

.gallery-img { width: 100%; height: 100%; transition: transform 0.5s; }
.gallery-item:hover .gallery-img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }

/* SPLIT IMAGE */
.split-img { display: flex; height: 100%; position: relative; }
.split-left, .split-right { flex: 1; height: 100%; }
.split-divider {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--red); color: var(--white);
  font-family: 'Archivo Black', sans-serif; font-size: 14px;
  padding: 8px 14px; border-radius: 50px; z-index: 2;
  box-shadow: 0 0 20px rgba(225,29,72,0.6);
}

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.95); }
.lightbox-inner {
  position: relative; z-index: 2;
  max-width: 90vw; max-height: 90vh;
  background: var(--dark); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: rgba(255,255,255,0.1); color: var(--white); border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px;
  cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: var(--red); }
.lightbox-img { width: 70vw; height: 60vh; }
.lightbox-caption { padding: 16px 20px; color: var(--gray); font-size: 14px; }

/* STATS BAR */
.stats-bar {
  background: var(--red); padding: 50px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat-num { font-family: 'Archivo Black', sans-serif; font-size: 52px; color: var(--white); }
.stat span { font-family: 'Archivo Black', sans-serif; font-size: 52px; color: var(--white); }
.stat p { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 6px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* FOOTER */
.footer { background: var(--dark); color: #555; text-align: center; padding: 30px 20px; font-size: 14px; line-height: 2; border-top: 1px solid #2a2a2a; }

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .page-hero { padding: 90px 24px 50px; }
  .gallery-section { padding: 40px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 2; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-num, .stat span { font-size: 36px; }
}