@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;
  --border: #2a2a2a;
  --accent: #f07070;
  --accent-dim: rgba(240,112,112,0.12);
  --accent-glow: rgba(240,112,112,0.18);
  --accent2: #ff4d4d;
  --text: #f0f0f0;
  --muted: #555;
  --muted2: #888;
  --radius: 25px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(232,255,71,0.25); }
  50%       { text-shadow: 0 0 40px rgba(232,255,71,0.55), 0 0 80px rgba(232,255,71,0.15); }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(232,255,71,0); }
  50%       { box-shadow: 0 0 20px rgba(232,255,71,0.1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scanMove {
  0%   { left: -60%; }
  100% { left: 120%; }
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  z-index: 100;
  animation: fadeIn 0.5s ease both;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-decoration: none;
  transition: letter-spacing 0.3s;
  animation: glowPulse 4s ease-in-out infinite;
}
.nav-logo:hover { letter-spacing: 5px; }

.nav-links { display: flex; gap: 4px; list-style: none; }

.nav-links li { animation: fadeIn 0.5s ease both; }
.nav-links li:nth-child(1) { animation-delay: 0.05s; }
.nav-links li:nth-child(2) { animation-delay: 0.10s; }
.nav-links li:nth-child(3) { animation-delay: 0.15s; }
.nav-links li:nth-child(4) { animation-delay: 0.20s; }

.nav-links a {
  color: var(--muted2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.25s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--accent);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── PAGE WRAPPER ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* ── ANIMATION UTILS ── */
.anim-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.12s; }
.anim-delay-3 { animation-delay: 0.19s; }
.anim-delay-4 { animation-delay: 0.26s; }
.anim-delay-5 { animation-delay: 0.33s; }

/* ── HEADINGS ── */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  line-height: 1.1;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }
.accent { color: var(--accent); }
.muted  { color: var(--muted2); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -200% center;
  transition: background-position 0.4s;
}
.btn:hover::after { background-position: 200% center; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover {
  background: #f5ff70;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,255,71,0.35), 0 0 0 1px rgba(232,255,71,0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: var(--accent2);
  border: 1px solid rgba(255,77,77,0.3);
  padding: 7px 14px;
  font-size: 0.75rem;
}
.btn-danger:hover {
  background: rgba(255,77,77,0.1);
  box-shadow: 0 0 12px rgba(255,77,77,0.15);
}

/* ── STAT BOXES ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
  position: relative;
  overflow: hidden;
}
.stat-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-box:hover {
  border-color: rgba(232,255,71,0.25);
  transform: translateY(-2px);
  animation: borderGlow 2s ease-in-out infinite;
}
.stat-box:hover::after { opacity: 1; }
.stat-box:nth-child(1) { animation-delay: 0.10s; }
.stat-box:nth-child(2) { animation-delay: 0.18s; }
.stat-box:nth-child(3) { animation-delay: 0.26s; }
.stat-box:nth-child(4) { animation-delay: 0.34s; }

.stat-box .stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
}
.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── PHOTO GRID ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  animation: scaleIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.photo-card:nth-child(1) { animation-delay: 0.04s; }
.photo-card:nth-child(2) { animation-delay: 0.08s; }
.photo-card:nth-child(3) { animation-delay: 0.12s; }
.photo-card:nth-child(4) { animation-delay: 0.16s; }
.photo-card:nth-child(5) { animation-delay: 0.20s; }
.photo-card:nth-child(6) { animation-delay: 0.24s; }
.photo-card:nth-child(7) { animation-delay: 0.28s; }
.photo-card:nth-child(8) { animation-delay: 0.32s; }

.photo-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,255,71,0.12);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.photo-card:hover img { transform: scale(1.05); }

.photo-card .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-card:hover .photo-overlay { opacity: 1; }

.photo-card .photo-info {
  padding: 12px 14px;
  position: relative;
}
.photo-card .photo-info::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.photo-card .photo-date {
  font-size: 0.72rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.photo-card .photo-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card .photo-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  transition: background 0.2s;
}
.photo-card:hover .photo-tag { background: rgba(232,255,71,0.2); }

.photo-card .delete-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  border: none;
  color: var(--accent2);
  width: 28px; height: 28px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
  transform: scale(0.7);
}
.photo-card:hover .delete-btn { opacity: 1; transform: scale(1); }
.photo-card .delete-btn:hover {
  background: rgba(255,77,77,0.35);
  box-shadow: 0 0 10px rgba(255,77,77,0.3);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  animation: fadeIn 0.5s ease;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state p {
  color: var(--muted2);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  background: var(--surface);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 40px rgba(232,255,71,0.06), inset 0 0 30px rgba(232,255,71,0.03);
  transform: scale(1.006);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.upload-zone .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
  transition: all 0.3s;
}
.upload-zone:hover .upload-icon {
  opacity: 1;
  transform: translateY(-5px) scale(1.1);
}
.upload-zone p { color: var(--muted2); font-size: 0.9rem; transition: color 0.2s; }
.upload-zone:hover p { color: var(--text); }
.upload-zone .upload-hint { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted2);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.form-group:focus-within label { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: all 0.25s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #181818;
  box-shadow: 0 0 0 3px rgba(232,255,71,0.07);
}
.form-group select option { background: var(--surface2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(10px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.93);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.modal-overlay.open img { transform: scale(1); }
.modal-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.12);
  transform: rotate(90deg);
}

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 2px; }
.timeline-month {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
  transition: border-color 0.2s;
}
.timeline-month:hover { border-color: #3a3a3a; }
.timeline-month-header {
  padding: 14px 20px;
  background: var(--surface);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: 1rem;
  color: var(--muted2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}
.timeline-month-header:hover { background: var(--surface2); color: var(--text); }
.timeline-month-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 2px;
  background: var(--bg);
}
.timeline-month-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s;
}
.timeline-month-photos img:hover { opacity: 0.7; transform: scale(1.04); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 9999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 48px; }
.page-header .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  animation: slideInLeft 0.5s ease both;
}
.page-header h2 { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.05s both; }
.page-header p {
  color: var(--muted2);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 500px;
  animation: fadeUp 0.6s ease 0.12s both;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanMove 3s ease-in-out infinite;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted2);
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.filter-btn:hover { border-color: rgba(232,255,71,0.4); color: var(--text); transform: translateY(-1px); }
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 12px rgba(232,255,71,0.1);
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.5s ease 0.2s both;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,255,71,0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--surface2));
  border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 14px 20px; }
  .page { padding: 40px 20px; }
  .compare-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links a { padding: 5px 10px; font-size: 0.75rem; }
  .cursor-glow { display: none; }
}
