/* ==========================================================================
   1. CORE VARIABLES & THEMES
   ========================================================================== */
:root {
  /* Dark Mode (Default) */
  --bg: #0A0A12;
  --surface: #121222;
  --surface-hover: #18182E;
  --blue-primary: #2E4B9C;
  --purple-primary: #3C3585;
  --blue-accent: #4A6FD4;
  --blue-border: rgba(46, 75, 156, 0.35);
  --blue-glow: rgba(46, 75, 156, 0.15);
  
  /* Typography Colors - Dark Mode */
  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-tertiary: rgba(255, 255, 255, 0.28);
  
  /* Statuses */
  --success: #22C55E;
  --error: #EF4444;
  --shadow: rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

:root.light-theme {
  /* Premium Light Mode Overrides */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  --blue-primary: #1E3A8A;
  --purple-primary: #4338CA;
  --blue-accent: #2563EB;
  --blue-border: rgba(37, 99, 235, 0.12);
  --blue-glow: rgba(37, 99, 235, 0.04);
  
  /* Typography Colors - Light Mode (High Contrast & Professional) */
  --text-main: #0F172A;        /* Deep Slate (Sangat terbaca) */
  --text-secondary: #334155;   /* Slate 700 */
  --text-muted: #475569;       /* Slate 600 */
  --text-tertiary: #94A3B8;    /* Slate 400 */
  
  --shadow: rgba(15, 23, 42, 0.06);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}

/* Prevent default image border/glitch when src is empty */
img:not([src]), img[src=""] {
  opacity: 0 !important;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 18, 0.75);
  border-bottom: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.light-theme .navbar {
  background: rgba(248, 250, 252, 0.80);
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.nav-badge {
  background: rgba(46, 75, 156, 0.15);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 0.3px;
}

.light-theme .nav-badge {
  background: rgba(37, 99, 235, 0.08);
}

.sound-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 200ms ease;
}

.sound-btn:hover {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: transparent;
}

.light-theme .sound-btn {
  background: rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-outer {
  position: relative;
  overflow: hidden;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero {
  position: absolute;
  inset: -40px;
  background: var(--bg);
  transform: translate3d(0, 0, 0);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(46, 75, 156, 0.22) 0%, transparent 75%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(60, 53, 133, 0.18) 0%, transparent 75%);
  animation: meshMove 10s ease-in-out infinite alternate;
}

.light-theme .hero-mesh {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(37, 99, 235, 0.10) 0%, transparent 75%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(67, 56, 202, 0.06) 0%, transparent 75%);
}

@keyframes meshMove {
  0%   { opacity: 0.8; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.04) rotate(1.5deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 75, 156, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 75, 156, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 75, 156, 0.15);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-accent);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--blue-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-sub2 {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, var(--blue-accent), transparent);
}

/* ==========================================================================
   4. MAIN LAYOUT & STATS BAR
   ========================================================================== */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--blue-border);
  box-shadow: 0 10px 30px -10px var(--shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.stat-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-2px);
}

.stat-icon {
  color: var(--blue-accent);
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   5. SEARCH & FILTER CONTROLS
   ========================================================================== */
.search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: calc(64px + env(safe-area-inset-top) + 12px);
  z-index: 90;
  background: rgba(18, 18, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-border);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}

.light-theme .search-bar {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 15px 35px -10px var(--shadow);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 200ms ease;
}

.light-theme .search-input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  border-color: var(--blue-accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.filter-btns {
  display: flex;
  gap: 8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--blue-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.filter-btn:hover {
  background: rgba(46, 75, 156, 0.1);
  color: var(--text-main);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
  border-color: transparent;
  color: #FFFFFF;
}

.search-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   6. GALLERY & PHOTO CARDS
   ========================================================================== */
.gallery-section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 24px;
}

.gallery {
  columns: 1;
  column-gap: 20px;
  width: 100%;
}

@media (min-width: 560px)  { .gallery { columns: 2; } }
@media (min-width: 960px)  { .gallery { columns: 3; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }

.photo-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), border-color 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 4px 20px -5px var(--shadow);
}

.photo-card:hover, .photo-card:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 15px 35px -10px var(--shadow);
}

/* Progressive Image Wrapping & Skeleton Fixing */
.smooth-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
}

/* Skeleton Loading Layer */
.smooth-img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  z-index: 2;
}

.light-theme .smooth-img-skeleton {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.03) 25%, rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0.03) 75%);
}

@keyframes skeletonLoading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.smooth-img {
  opacity: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 350ms ease-in-out, filter 250ms ease;
}

/* CRITICAL BUG FIX FOR THE GREY BOX GLITCH */
.smooth-img-wrap.loaded .smooth-img-skeleton {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

.smooth-img-wrap.loaded .smooth-img {
  opacity: 1;
}

.photo-thumb-container {
  aspect-ratio: 3 / 2;
  width: 100%;
}

.photo-card:hover .smooth-img {
  filter: brightness(1.05);
}

.photo-thumb-wrap {
  position: relative;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
  transition: opacity 250ms ease;
  color: #FFFFFF;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface);
}

.photo-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue-accent);
  font-weight: 600;
}

.photo-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Realtime Item Animation */
.photo-card-new {
  animation: cardEnter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  0%   { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   7. LOADERS & EMPTY STATES
   ========================================================================== */
.gallery-loader {
  text-align: center;
  padding: 48px 0;
  width: 100%;
}

.loader-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  margin: 0 4px;
  animation: dotBounce 1.2s infinite ease-in-out;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-10px); opacity: 1; }
}

.gallery-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 14px;
  color: var(--text-muted);
  width: 100%;
}

/* ==========================================================================
   8. MODAL WINDOW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 250ms ease-out;
}

.light-theme .modal-backdrop {
  background: rgba(241, 245, 249, 0.85);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  box-shadow: 0 30px 70px -15px var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleUp 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(15px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 220;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--blue-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.light-theme .modal-close {
  background: #FFFFFF;
  box-shadow: 0 4px 12px var(--shadow);
}

.modal-close:hover {
  background: var(--error);
  color: #FFFFFF;
  border-color: transparent;
}

.modal-body {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.modal-img-wrap {
  position: relative;
  flex: 7;
  background-color: #05050B;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.light-theme .modal-img-wrap {
  background-color: #E2E8F0;
}

.modal-img-container .smooth-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--blue-border);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.light-theme .modal-nav {
  background: rgba(255,255,255,0.8);
  color: #0F172A;
}

.modal-nav:hover {
  background: var(--blue-accent);
  color: #FFFFFF;
  border-color: transparent;
}

.modal-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

/* Slide Navigation Classes */
.slide-left { animation: slideLeft 250ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.slide-right { animation: slideRight 250ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes slideLeft {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideRight {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.modal-info {
  flex: 3;
  min-width: 280px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--blue-border);
  background: var(--surface);
  overflow-y: auto;
}

.modal-badge {
  background: rgba(46, 75, 156, 0.12);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
}

.modal-photo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 24px;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--blue-border);
  gap: 12px;
}

.modal-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-detail-value {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.modal-detail-value.mono {
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue-accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* Buttons System */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  transition: all 200ms ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 200ms ease;
}

.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: rgba(46, 75, 156, 0.15);
  color: var(--blue-accent);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   9. TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3);
  animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 340px;
}

.light-theme .toast {
  box-shadow: 0 10px 25px -5px var(--shadow);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--error); }
.toast-info    { border-left: 4px solid var(--blue-accent); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--blue-border);
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: linear-gradient(to bottom, transparent, var(--blue-glow));
}

.footer-info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1050px;
  width: 100%;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
  min-width: 260px;
  max-width: 330px;
  box-shadow: 0 4px 15px -5px var(--shadow);
}

.footer-info-item:hover {
  border-color: var(--blue-accent);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px var(--shadow);
}

.footer-info-icon {
  color: var(--blue-accent);
  flex-shrink: 0;
  background: rgba(46, 75, 156, 0.1);
  padding: 10px;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-info-title {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-info-value {
  color: var(--text-main);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--blue-border);
  width: 100%;
  max-width: 1050px;
  line-height: 1.7;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 200ms;
}

.footer-link:hover {
  color: var(--blue-accent);
  text-decoration: underline;
}

.footer-author {
  font-style: italic;
  color: var(--blue-accent);
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  
  .stat-icon { margin-bottom: 0; }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-img-wrap {
    flex: none;
    min-height: 250px;
  }
  
  .modal-info {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--blue-border);
    padding: 20px;
  }
  
  .modal-nav {
    top: auto;
    transform: none;
    bottom: 16px;
  }
  
  .modal-prev { left: 16px; }
  .modal-next { right: 16px; }
  
  .navbar { padding: 0 16px; }
  .main { padding: 24px 16px 60px; }
  
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast { max-width: 100%; }
}