/* ==========================================================
   PERSONAL PHOTO SHOWCASE & PORTFOLIO STYLES
   Themes: Midnight Velvet (Default), Golden Temple, Royal Slate
   ========================================================== */

:root {
  /* Midnight Velvet Theme (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #101623;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-glass: rgba(22, 30, 48, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  --accent-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #fcd34d 100%);
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --primary-btn: #f59e0b;
  --primary-btn-hover: #d97706;
  --primary-btn-text: #0b0f19;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.2);
  
  --font-main: 'Outfit', 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cinzel', 'Outfit', 'Noto Sans Telugu', serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Golden Temple Theme */
[data-theme="golden"] {
  --bg-primary: #0d0b07;
  --bg-secondary: #1a160d;
  --bg-card: rgba(29, 23, 14, 0.8);
  --bg-glass: rgba(38, 30, 18, 0.7);
  --border-color: rgba(245, 158, 11, 0.18);
  --border-glow: rgba(245, 158, 11, 0.45);
  --text-primary: #fffbeb;
  --text-secondary: #d4c5a9;
  --accent-glow: rgba(245, 158, 11, 0.4);
}

/* Clean Daylight Theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(217, 119, 6, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-glow: rgba(245, 158, 11, 0.2);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Ambient glow orbs in background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: all 1s ease;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  top: 35%;
  right: -150px;
}

.glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
}

/* Containers */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-gold-gradient);
  color: #0b0f19;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.drawer-link:hover {
  color: var(--accent-gold);
}

/* HERO SECTION */
.hero-section {
  padding-top: calc(72px + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.title-sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.title-main {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #fbbf24 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1e293b 10%, #d97706 70%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-badges-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-origin-badge,
.hero-edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-origin-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--text-primary);
}

.hero-edu-badge {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}

.hero-origin-badge .origin-icon,
.hero-edu-badge .origin-icon {
  font-size: 1.05rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-block {
  width: 100%;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-amber);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero Visual / Tilt Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--bg-card);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.hero-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

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

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(10, 13, 20, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hero-photo-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero-photo-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.hero-photo-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold-gradient);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.section-title.text-left {
  text-align: left;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* PHOTO GALLERY SECTION */
.gallery-section {
  padding: 5rem 0;
  position: relative;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-gold-gradient);
  color: #0b0f19;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow), filter var(--transition-fast);
}

.photo-card:hover .card-img {
  transform: scale(1.06);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.photo-card:hover .media-overlay {
  opacity: 1;
}

.overlay-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold-gradient);
  color: #0b0f19;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}

.overlay-btn:hover {
  transform: scale(1.05);
}

.media-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.category-badge {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portrait-badge {
  background: var(--accent-gold-gradient);
  color: #0b0f19;
}

/* Card Body */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.meta-dot {
  color: var(--text-muted);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.like-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.like-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.like-btn.liked {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-tool-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.open-modal-link {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.open-modal-link:hover {
  transform: translateX(3px);
  text-decoration: underline;
}

/* IMMERSIVE CAROUSEL SECTION */
.carousel-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-image-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #05070a;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 13, 20, 0.95) 90%);
  color: #fff;
}

.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.slide-caption h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.slide-caption p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.carousel-nav-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.carousel-play-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* Carousel Thumbnails */
.thumbnail-strip {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.thumb-btn {
  flex: 1;
  max-width: 140px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.thumb-btn img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.thumb-label {
  padding: 0.35rem 0.2rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-card);
}

.thumb-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
}

.thumb-btn.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.thumb-btn.active .thumb-label {
  color: var(--accent-amber);
  font-weight: 700;
}

/* ABOUT & MOMENTS SECTION */
.moments-section {
  padding: 5.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.about-bio-card {
  display: flex;
  flex-direction: column;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-subtext {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-item:hover {
  transform: translateX(4px);
  border-color: var(--border-glow);
}

.pillar-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pillar-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Timeline Card */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.timeline-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-amber);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-items::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 17px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-gold);
  color: var(--accent-amber);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.timeline-info {
  display: flex;
  flex-direction: column;
}

.timeline-time {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.2rem;
}

.timeline-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* GUESTBOOK SECTION */
.guestbook-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.guestbook-form-box,
.guestbook-list-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.list-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.clear-notes-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.guestbook-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.guest-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  transition: transform var(--transition-fast);
}

.guest-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.guest-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-amber);
}

.guest-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guest-fav {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.guest-msg {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CONTACT & CONNECT SECTION */
.contact-section {
  padding: 5rem 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.social-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.channel-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}

.channel-card.whatsapp:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.channel-card.phone:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.channel-card.instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
}

.channel-icon {
  font-size: 1.6rem;
}

.channel-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.channel-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-interactive {
  display: flex;
  justify-content: center;
}

.qr-share-box {
  width: 100%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.qr-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.share-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* FOOTER */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-branding {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-amber);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-branding p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-3px);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(20px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1100px;
  height: 92vh;
  display: flex;
  flex-direction: column;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lightbox-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.lightbox-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.lb-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lb-filter-btn.active,
.lb-filter-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-tool-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.lb-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lightbox-stage {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 0;
}

.lightbox-image-container {
  max-width: 90%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Lightbox Dynamic Image Filters */
.lightbox-img.filter-warm {
  filter: sepia(0.35) saturate(1.4) brightness(1.05) contrast(1.05);
}

.lightbox-img.filter-cinematic {
  filter: contrast(1.2) saturate(1.3) hue-rotate(-8deg);
}

.lightbox-img.filter-bw {
  filter: grayscale(1) contrast(1.25) brightness(0.95);
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(20, 25, 40, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lb-nav-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

.lightbox-footer {
  padding: 1rem 1.5rem;
  background: rgba(10, 13, 20, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: #fff;
}

.lb-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.lb-caption-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.lb-caption-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* CUSTOM MODAL (Profile editor) */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.custom-modal-dialog {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.custom-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.custom-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-badges-stack {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    height: 64px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1rem;
    gap: 0.45rem;
  }

  .logo-badge {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .action-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(64px + 1.8rem);
    padding-bottom: 3.5rem;
  }

  .hero-title .title-sub {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }

  .hero-title .title-main {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
  }

  .hero-visual {
    margin-top: 0.5rem;
  }

  .hero-image-card {
    max-width: 320px;
  }

  /* Gallery Grid */
  .gallery-section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .photo-card {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  /* Carousel */
  .carousel-section {
    padding: 3.5rem 0;
  }

  .carousel-stage {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .slide-caption {
    padding: 1.5rem 1.25rem 1rem;
  }

  .slide-caption h3 {
    font-size: 1.15rem;
  }

  .slide-caption p {
    font-size: 0.82rem;
  }

  .carousel-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .prev-btn { left: 0.5rem; }
  .next-btn { right: 0.5rem; }

  .thumbnail-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.6rem;
    padding-bottom: 0.4rem;
    justify-content: flex-start;
  }

  .thumb-btn {
    flex: 0 0 85px;
    max-width: 85px;
    scroll-snap-align: start;
  }

  .thumb-btn img {
    height: 54px;
  }

  .thumb-label {
    display: none;
  }

  /* About / Timeline */
  .moments-section {
    padding: 3.5rem 0;
  }

  .timeline-card {
    padding: 1.5rem 1.25rem;
  }

  .timeline-items::before {
    left: 14px;
  }

  .timeline-marker {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .timeline-item {
    gap: 1rem;
  }

  /* Guestbook & Contact */
  .guestbook-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .guestbook-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guestbook-form-box,
  .guestbook-list-box {
    padding: 1.5rem 1.25rem;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .channel-card {
    padding: 0.85rem 1rem;
  }

  /* Lightbox on mobile */
  .lightbox-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .lightbox-top-bar {
    padding: 0.5rem 0.8rem;
  }

  .lightbox-filters {
    display: flex;
    overflow-x: auto;
    max-width: 52vw;
    scrollbar-width: none;
  }

  .lightbox-filters::-webkit-scrollbar {
    display: none;
  }

  .lb-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .lightbox-img {
    max-height: 52vh;
  }

  .lightbox-footer {
    padding: 0.75rem 1rem;
  }

  .lb-caption-content h3 {
    font-size: 1.05rem;
  }

  .lb-caption-content p {
    font-size: 0.82rem;
  }

  .lb-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
}

@media (max-width: 540px) {
  /* Phone specific tweaks */
  .hero-badges-stack {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-origin-badge,
  .hero-edu-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-cta-group .btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.82rem;
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    padding-top: 1.25rem;
  }

  .stat-card {
    align-items: center;
    text-align: center;
  }

  .filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.6rem;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  .carousel-stage {
    aspect-ratio: 1 / 1;
    min-height: 290px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents auto zoom in iOS Safari */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero-title .title-main {
    font-size: 1.85rem;
  }

  .hero-cta-group {
    grid-template-columns: 1fr;
  }

  .hero-image-card {
    max-width: 270px;
  }
}
