/* =============================================
   ROOT VARIABLES & THEME
   ============================================= */
:root {
  /* Light theme — white base, navy text, blue-grey accents */
  --bg-primary:    #ffffff;
  --bg-secondary:  rgba(92, 124, 137, 0.07);
  --bg-card:       #ffffff;
  --bg-overlay:    rgba(255, 255, 255, 0.95);
  --text-primary:  #1F4959;
  --text-secondary:#5C7C89;
  --text-muted:    rgba(92, 124, 137, 0.55);
  --accent:        #1F4959;
  --accent-hover:  #5C7C89;
  --border:        rgba(92, 124, 137, 0.22);
  --shadow:        0 2px 6px rgba(31, 73, 89, 0.08), 0 8px 24px rgba(31, 73, 89, 0.13);
  --shadow-hover:  0 4px 12px rgba(31, 73, 89, 0.12), 0 20px 48px rgba(31, 73, 89, 0.26);
  --nav-bg:        rgba(255, 255, 255, 0.92);
  --folder-bg:     rgba(92, 124, 137, 0.09);
  --folder-hover:  rgba(92, 124, 137, 0.16);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark theme — navy base, white text, blue-grey accents */
  --bg-primary:    #1F4959;
  --bg-secondary:  rgba(31, 73, 89, 0.85);
  --bg-card:       rgba(92, 124, 137, 0.14);
  --bg-overlay:    rgba(31, 73, 89, 0.97);
  --text-primary:  #ffffff;
  --text-secondary:rgba(255, 255, 255, 0.72);
  --text-muted:    rgba(255, 255, 255, 0.40);
  --accent:        #5C7C89;
  --accent-hover:  rgba(92, 124, 137, 0.75);
  --border:        rgba(92, 124, 137, 0.30);
  --shadow:        0 2px 6px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-hover:  0 4px 12px rgba(0, 0, 0, 0.35), 0 20px 48px rgba(0, 0, 0, 0.60);
  --nav-bg:        rgba(31, 73, 89, 0.96);
  --folder-bg:     rgba(255, 255, 255, 0.07);
  --folder-hover:  rgba(255, 255, 255, 0.13);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(31, 73, 89, 0.10), 0 1px 3px rgba(31, 73, 89, 0.08);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--folder-bg);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--folder-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION (INDEX)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-primary) 100%
  );
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(92, 124, 137, 0.13) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(31, 73, 89, 0.07)  0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(92, 124, 137, 0.30);
  border-radius: 100px;
  background: rgba(92, 124, 137, 0.09);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(31, 73, 89, 0.12), 0 8px 24px rgba(31, 73, 89, 0.08);
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.22), 0 6px 20px rgba(31, 73, 89, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(31, 73, 89, 0.28), 0 16px 40px rgba(31, 73, 89, 0.22);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(31, 73, 89, 0.08), 0 4px 14px rgba(31, 73, 89, 0.07);
}

.btn-secondary:hover {
  background: var(--folder-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* =============================================
   FEATURED GRID (INDEX)
   ============================================= */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: gap var(--transition);
}

.section-link:hover {
  gap: 0.7rem;
}

/* Masonry Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--folder-bg);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.photo-card.tall { grid-row: span 2; }
.photo-card.wide { grid-column: span 2; }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.photo-card img.img-fade {
  opacity: 0;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-label {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Placeholder card when no images */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 2px dashed var(--border);
}

.photo-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* =============================================
   STATS SECTION (INDEX)
   ============================================= */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  transition: background var(--transition);
}

.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =============================================
   ABOUT SECTION (INDEX)
   ============================================= */
.about-section {
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 520px;
}

.about-img-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  height: 88%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--folder-bg);
  box-shadow: 0 4px 16px rgba(31, 73, 89, 0.14), 0 24px 60px rgba(31, 73, 89, 0.28);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 50%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--folder-bg);
  box-shadow: 0 4px 12px rgba(31, 73, 89, 0.16), 0 16px 40px rgba(31, 73, 89, 0.30);
  border: 4px solid var(--bg-primary);
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: -1rem;
  bottom: 6rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 73, 89, 0.22), 0 12px 32px rgba(31, 73, 89, 0.32);
  z-index: 2;
}

.about-badge-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--folder-bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =============================================
   CONTENT PAGE
   ============================================= */
.content-page {
  padding-top: 68px;
  min-height: 100vh;
  background: #1F4959;
}

.content-header {
  padding: 4rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.content-search {
  position: relative;
  width: 280px;
}

.content-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

.content-search input::placeholder {
  color: var(--text-muted);
}

.content-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 124, 137, 0.15), 0 4px 12px rgba(31, 73, 89, 0.12);
}

.content-search svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Folder Grid */
.folders-section {
  padding: 0 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.folder-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.folder-preview {
  height: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--folder-bg);
  overflow: hidden;
}

.folder-preview-item {
  background: var(--folder-bg);
  overflow: hidden;
  position: relative;
}

.folder-preview-item:first-child {
  grid-row: span 2;
}

.folder-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder-card:hover .folder-preview-item img {
  transform: scale(1.05);
}

.folder-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-preview-empty svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  opacity: 0.4;
}

.folder-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.folder-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.folder-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.folder-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--folder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background var(--transition);
}

.folder-card:hover .folder-icon {
  background: rgba(92, 124, 137, 0.20);
}

.folder-icon svg {
  width: 18px;
  height: 18px;
}

/* =============================================
   GALLERY VIEW (inside a folder)
   ============================================= */
.gallery-section {
  padding: 0 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 73, 89, 0.10), 0 4px 12px rgba(31, 73, 89, 0.07);
  transition: all var(--transition);
}

.back-btn:hover {
  background: var(--folder-hover);
  color: var(--text-primary);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Masonry gallery grid */
.masonry-grid {
  columns: 4;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--folder-bg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.masonry-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Empty state */
.empty-gallery {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-gallery svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  opacity: 0.3;
}

.empty-gallery h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-gallery p {
  font-size: 0.9rem;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 5rem;
    transform: none;
  }
  .lightbox-prev { left: calc(50% - 52px); }
  .lightbox-next { right: calc(50% - 52px); }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  transition: background var(--transition);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* =============================================
   PAGE LOADER
   ============================================= */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1F4959;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-loader.loader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* ── Letters ── */
.loader-letters {
  display: flex;
  gap: 0.04em;
}

.loader-letters span {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) scale(0.85);
  animation: loaderLetterUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered delays for each letter */
.loader-letters span:nth-child(1)  { animation-delay: 0.00s; }
.loader-letters span:nth-child(2)  { animation-delay: 0.07s; }
.loader-letters span:nth-child(3)  { animation-delay: 0.14s; }
.loader-letters span:nth-child(4)  { animation-delay: 0.21s; }
.loader-letters span:nth-child(5)  { animation-delay: 0.28s; }
.loader-letters span:nth-child(6)  { animation-delay: 0.35s; }
.loader-letters span:nth-child(7)  { animation-delay: 0.42s; }
.loader-letters span:nth-child(8)  { animation-delay: 0.49s; }
.loader-letters span:nth-child(9)  { animation-delay: 0.56s; }
.loader-letters span:nth-child(10) { animation-delay: 0.63s; }
.loader-letters span:nth-child(11) { animation-delay: 0.70s; }

@keyframes loaderLetterUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Tagline ── */
.loader-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: loaderFadeIn 0.5s ease forwards;
  animation-delay: 0.75s;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

/* ── Progress bar ── */
.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.4s ease forwards;
  animation-delay: 0.8s;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #5C7C89;
  border-radius: 2px;
  animation: loaderBarGrow 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.85s;
}

@keyframes loaderBarGrow {
  to { width: 100%; }
}

/* =============================================
   IMAGE PROTECTION
   ============================================= */
img {
  -webkit-user-select:  none;
  -moz-user-select:     none;
  user-select:          none;
  -webkit-touch-callout: none;   /* iOS long-press menu */
  pointer-events:       none;    /* blocks right-click & drag on images */
}

/* Re-enable pointer-events only on interactive wrappers
   so clicks on masonry items & folder cards still work */
.masonry-item,
.folder-card,
.photo-card,
.folder-preview-item,
.lightbox-img {
  pointer-events: auto;
}

.lightbox-img {
  -webkit-user-select:  none;
  user-select:          none;
  pointer-events:       none;
}

/* =============================================
   UTILITIES
   ============================================= */
.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 380px; }
  .masonry-grid { columns: 3; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .photo-card.wide { grid-column: span 1; }
  .photo-card.tall { grid-row: span 1; }

  .about-visual { height: 320px; }
  .about-badge { right: 0.5rem; }

  .masonry-grid { columns: 2; }
  .folders-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .content-search { width: 100%; }
  .content-title-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid { columns: 1; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
