/* ===== CSS Variables - Fresh Color Palette ===== */
:root {
  --blue-primary: #5B7BA6;
  --blue-light: #7B9FC6;
  --blue-pale: #E8F0FA;
  --orange-primary: #F5A623;
  --orange-light: #FFC96A;
  --orange-pale: #FFF4E0;
  --cream: #FFFDF8;
  --white: #FFFFFF;
  --text-dark: #3D4852;
  --text-muted: #7A8999;
  --shadow-soft: 0 2px 16px rgba(91, 123, 166, 0.10);
  --shadow-card: 0 4px 20px rgba(91, 123, 166, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Nunito', -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blue-pale) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-pale) 100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(91, 123, 166, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* Floating bubbles (aquarium vibe) */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(91, 123, 166, 0.18);
  animation: rise linear infinite;
}

.bubble.b1 { left: 12%; width: 14px; height: 14px; animation-duration: 9s;  animation-delay: 0s;   }
.bubble.b2 { left: 27%; width: 9px;  height: 9px;  animation-duration: 11s; animation-delay: 2s;   background: rgba(245, 166, 35, 0.20); border-color: rgba(245,166,35,0.25); }
.bubble.b3 { left: 44%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 1s;   }
.bubble.b4 { left: 60%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: 3s;   background: rgba(245, 166, 35, 0.18); border-color: rgba(245,166,35,0.22); }
.bubble.b5 { left: 76%; width: 13px; height: 13px; animation-duration: 12s; animation-delay: 0.5s; }
.bubble.b6 { left: 88%; width: 8px;  height: 8px;  animation-duration: 8s;  animation-delay: 4s;   }

@keyframes rise {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(-240px) scale(1.1); opacity: 0; }
}

.logo {
  width: 224px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

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

.header-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 4px;
}

.subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange-primary);
  letter-spacing: 2px;
  margin-top: -4px;
}

/* Decorative divider under logo */
.tagline-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}

.deco-line {
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light));
}

.tagline-deco .deco-line:last-child {
  background: linear-gradient(90deg, var(--blue-light), transparent);
}

.deco-dot {
  font-size: 0.9rem;
  line-height: 1;
}

.tagline {
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 3px;
}

/* ===== Tab Navigation ===== */
.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 16px 0;
  max-width: 800px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--cream) 60%, transparent 100%);
  padding-top: 24px;
}

.tab-btn {
  padding: 10px 24px;
  border: none;
  background: var(--white);
  color: var(--text-muted);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 123, 166, 0.15);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(91, 123, 166, 0.3);
  transform: translateY(-2px);
}

/* ===== Content / Image Grid ===== */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.image-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(91, 123, 166, 0.18);
}

.image-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card .card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: var(--white);
  margin-top: 20px;
}

/* ===== Admin Link (subtle) ===== */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0.5;
}

.admin-link:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--blue-primary);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header { padding: 30px 16px 24px; }
  .logo { width: 170px; }
  .header-text h1 { font-size: 1.6rem; letter-spacing: 2px; }
  .subtitle { font-size: 0.88rem; }
  .tab-btn { padding: 8px 16px; font-size: 0.84rem; }
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .content { padding: 20px 14px 50px; }
}
