/*
Theme Name: MiriamSong
Description: LA Korean American Realtor marketing website.
Version: 1.0.5
Author: Your Name
Text Domain: miriamsong
*/

/* ==========================================================================
   1. CSS Custom Properties (디자인 토큰)
   ========================================================================== */
:root {
  /* Colors */
  --color-navy: #0F2540;
  --color-white: #FAF8F5;
  --color-gray: #5A6672;
  --color-gold: #B08D57;
  --color-navy-light: #1A3A5C;
  --color-gray-light: #E8E6E3;
  --color-gray-dark: #3A444E;
  --color-success: #2E7D32;
  --color-error: #C62828;

  /* Typography */
  --font-ko: 'Arial', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Dotum', '돋움', sans-serif;
  --font-en: 'Arial', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Dotum', '돋움', sans-serif;
  --font-heading: 'Arial', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Dotum', '돋움', sans-serif;
  
  --fs-body: clamp(1.0625rem, 1vw + 0.75rem, 1.125rem); /* 17-18px */
  --fs-h1: clamp(2.25rem, 3vw + 1rem, 3.5rem); /* 36-56px */
  --fs-h2: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 3px rgba(15,37,64,0.08);
  --shadow-md: 0 4px 12px rgba(15,37,64,0.1);
  --shadow-lg: 0 8px 24px rgba(15,37,64,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ==========================================================================
   2. Reset/Normalize
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img, picture {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

/* 
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*/

/* ==========================================================================
   3. Base Typography
   ========================================================================== */
body {
  font-family: var(--font-ko);
  font-size: var(--fs-body);
  color: var(--color-gray-dark);
  line-height: 1.7;
  background-color: var(--color-white);
}

.lang-en body, 
body.en-us {
  font-family: var(--font-en);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-navy-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--spacing-xl);
}
@media (min-width: 768px) {
  .section {
    padding-block: var(--spacing-2xl);
  }
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 8px;
  z-index: 1001;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-left: var(--spacing-md);
  white-space: nowrap;
}

.site-logo {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.site-logo:hover {
  color: var(--color-white);
}

.primary-nav {
  display: block;
  margin-left: auto; /* 우측 정렬 */
  overflow-x: hidden;
  min-width: 0; /* flex container shrink */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  gap: 1rem; /* reduced from var(--spacing-md) to fit all items */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem; /* slightly reduced to fit */
  position: relative;
  padding-block: 0.5rem;
  text-decoration: none;
  white-space: nowrap; /* prevent breaking into multiple lines */
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.primary-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  color: var(--color-white);
}
.lang-switch a {
  color: var(--color-gray-light);
}
.lang-switch a.active {
  color: var(--color-gold);
  font-weight: bold;
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-navy);
  padding: var(--spacing-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  color: var(--color-white);
  font-size: 1.25rem;
  padding-block: var(--spacing-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   5.5 Global Main Content
   ========================================================================== */
.site-main {
  padding-top: var(--header-height);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
  min-height: calc(100vh - var(--header-height));
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 37, 64, 0.6); /* Navy overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--color-white);
  font-size: var(--fs-h1);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* ==========================================================================
   7. Button Components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-navy-light);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-gold);
  color: var(--color-navy);
}
.btn-secondary:hover {
  background-color: #c7a46e; /* Lighter gold */
  color: var(--color-navy);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-navy);
  padding-inline: 0;
}
.btn-ghost:hover {
  text-decoration: underline;
  background-color: transparent;
}

.btn-icon {
  gap: 0.5rem;
}
.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   8. Card Components
   ========================================================================== */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.card-meta {
  font-size: var(--fs-small);
  color: var(--color-gray);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  margin-bottom: var(--spacing-md);
  flex: 1;
}

/* ==========================================================================
   9. Form Components
   ========================================================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  background-color: #fff;
  transition: border-color var(--transition-fast);
  min-height: 48px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-gold);
  outline: 2px solid rgba(176, 141, 87, 0.2);
}

.form-error {
  color: var(--color-error);
  font-size: var(--fs-small);
  margin-top: 0.25rem;
  display: block;
}

.honeypot {
  display: none !important;
}

.form-checkbox, .form-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-radio-group {
  display: flex;
  gap: var(--spacing-md);
}

/* ==========================================================================
   10. Service Cards Section
   ========================================================================== */
.services {
  /* Uses .grid-2 or .grid-3 */
}
.service-card {
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid var(--color-gray-light);
}
.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-gold);
}

/* ==========================================================================
   11. Concerns Section
   ========================================================================== */
.concerns-grid {
  /* Uses .grid */
}
.concern-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}
.concern-icon {
  flex-shrink: 0;
  color: var(--color-error);
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   12. Why Miriam Section
   ========================================================================== */
.why-section {
  background-color: var(--color-gray-light);
}
.stat-card {
  text-align: center;
  padding: var(--spacing-md);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

/* ==========================================================================
   13. YouTube Lite Embed
   ========================================================================== */
.youtube-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.youtube-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}
.youtube-lite:hover img {
  opacity: 1;
}
.youtube-lite .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: rgba(33, 33, 33, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.youtube-lite:hover .play-btn {
  background-color: #ff0000;
}
.youtube-lite .play-btn::before {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.youtube-lite iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   14. Checklist CTA Section
   ========================================================================== */
.checklist-section {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}
.checklist-section h2 {
  color: var(--color-white);
}
.checklist-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
}
@media (min-width: 768px) {
  .checklist-form {
    flex-direction: row;
  }
}

/* ==========================================================================
   15. Testimonials Section
   ========================================================================== */
.testimonials {
  /* Grid usage */
}
.review-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.star-rating {
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}
.review-quote {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   16. Consultation Form Section
   ========================================================================== */
.consultation-section {
  background-color: var(--color-gray-light);
}
.consultation-wrapper {
  background: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .consultation-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
  .consultation-form-grid .full-width {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   17. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-gray-light);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl); /* Enough for mobile bar */
}
@media (min-width: 768px) {
  .site-footer {
    padding-bottom: var(--spacing-xl);
  }
}
.site-footer a {
  color: var(--color-gray-light);
}
.site-footer a:hover {
  color: var(--color-white);
}
.site-footer h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}
.footer-inner {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
}
.footer-legal {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: var(--spacing-sm);
}

/* ==========================================================================
   18. Mobile Bottom Bar
   ========================================================================== */
.mobile-action-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-navy);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) {
  .mobile-action-bar {
    display: none;
  }
}
.mobile-action-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.25rem;
  color: var(--color-white);
  font-size: 0.75rem;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.mobile-action-bar a:last-child {
  border-right: none;
}
.mobile-action-bar a svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

/* ==========================================================================
   19. Page-specific styles
   ========================================================================== */
.page-header {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  text-align: center;
}
.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}
.search-input {
  flex-grow: 1;
  max-width: 300px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--spacing-xl);
}
.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
}
.pagination .current {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* ==========================================================================
   20. Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn var(--transition-base) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
*/

/* ==========================================================================
   21. Print styles
   ========================================================================== */
@media print {
  .site-header,
  .mobile-action-bar,
  .site-footer,
  .hero,
  .btn,
  .youtube-lite {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* ==========================================================================
   22. Gallery / Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}
.gallery-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-item img {
  transition: transform var(--transition-base);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.lightbox-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   23. Dynamic & Luxury Theme Updates
   ========================================================================== */

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(15, 37, 64, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15, 37, 64, 0.2);
}

.glass-dark {
  background: rgba(15, 37, 64, 0.75);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-dark h1, .glass-dark h2, .glass-dark h3, .glass-dark p {
  color: var(--color-white);
}

/* Parallax Background */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
/* 모바일에서도 패럴랙스 유지 요청에 따라 미디어 쿼리 주석/삭제 처리 */

/* Luxury Hero specific */
.hero.parallax-bg {
  height: 100vh;
  min-height: 600px;
  background-image: url('../images/hero.jpg');
}

.hero.parallax-bg::before {
  background: linear-gradient(to bottom, rgba(15,37,64,0.4), rgba(15,37,64,0.8));
}

/* Advanced Animations */
.animate-hidden {
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
}

.animate-slide-up {
  visibility: visible;
  animation: slideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-zoom-in {
  visibility: visible;
  animation: zoomIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered delays for child elements */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Scale Hover for Images */
.hover-scale {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.hover-scale img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hover-scale:hover img {
  transform: scale(1.08);
}

/* Lightbox Extras */
.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.5);
}
.lightbox-prev {
  left: 2rem;
}
.lightbox-next {
  right: 2rem;
}
.lightbox-close {
  z-index: 2010;
}
body.lightbox-open {
  overflow: hidden;
}
