/* =================================================
   HEADER — NAVIGATION & BRANDING
================================================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.dark .main-header {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.logo p {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 0 0;
  font-weight: 400;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.25s ease;
  font-weight: 400;
}

.nav-link:hover {
  opacity: 1;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
}

.header-socials svg {
  width: 18px;
  height: 18px;
}

.social-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.25s ease;
  font-weight: 400;
  text-transform: uppercase;
}

.social-link:hover {
  opacity: 1;
}

.divider {
  opacity: 0.3;
}

.hamburger-menu {
  display: none !important;
  visibility: hidden;
}

.mobile-nav-header {
  display: none;
}

.mobile-nav-theme {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    gap: 24px;
    padding: 12px 24px;
  }

  .main-nav ul {
    gap: 20px;
  }

  .logo h1 {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    position: fixed;
  }

  .header-container {
    gap: 16px;
    padding: 16px 16px;
  }

  .hamburger-menu {
    display: flex !important;
    visibility: visible;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }

  .hamburger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    display: block;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .main-nav {
    position: fixed;
    left: -100%;
    top: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 80px 24px 40px;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .mobile-nav-theme {
    display: flex !important;
    justify-content: center;
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-theme .rail-btn {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    padding: 8px 16px;
    font-size: 0.65rem;
    gap: 8px;
  }

  .mobile-nav-theme .rail-divider {
    width: 1px;
    height: 14px;
  }

  .header-socials {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-nav {
    width: 85%;
  }
}

/* =================================================
   INTRO — BRIAN STYLE (FINAL)
================================================= */

.intro {
  max-width: 1400px;
  min-height: 85vh;
  margin: 0 auto;
  padding: 200px 32px 120px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  text-align: center;
}

/* Headline */
.intro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.2rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}

/* Muted inline role */
.intro-title .intro-muted {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: inherit;
  letter-spacing: -0.025em;
  color: var(--muted);
  opacity: 0.7;
}

/* Actions */
.intro-actions {
  display: flex;
  gap: 56px;
  margin-top: 44px;
}

.intro-actions a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  opacity: 0.45;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}

.intro-actions a:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .intro-title {
    font-size: clamp(2.8rem, 8vw, 3.6rem);
    line-height: 1.08;
  }

  .intro-title .intro-muted {
    display: block;
    margin-top: 14px;
    font-size: 0.52em;
    letter-spacing: 0.16em;
  }
}

/* =================================================
   CINEMATIC TEXT REVEAL
================================================= */

.intro-title,
.intro-actions {
  opacity: 0;
  transform: translateY(12px);
  animation: creditIn 1.2s ease forwards;
}

.intro-title { animation-delay: 0.4s; }
.intro-actions { animation-delay: 1.2s; }

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

/* =================================================
   RECENT WORK — MASONRY
================================================= */

.recent-work {
  max-width: 1160px;
  margin: 0 auto 220px;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 96px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 28px auto 0;
  background: currentColor;
  opacity: 0.25;
}

/* Masonry grid */
.recent-grid {
  column-count: 3;
  column-gap: 32px;
  column-fill: balance;
  padding-bottom: 120px;
}

/* Card */
.recent-card {
  break-inside: avoid;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.recent-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  transition: filter 0.45s ease, transform 0.6s ease;
}

.recent-card:hover img {
  filter: grayscale(100%);
  transform: scale(1.025);
}

/* Meta overlay */
.work-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0) 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.recent-card:hover .work-meta {
  opacity: 1;
}

.work-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.work-meta span {
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Stagger */
.recent-card:nth-child(3n + 2) { margin-top: 28px; }
.recent-card:nth-child(3n + 3) { margin-top: 36px; }

/* Responsive */
@media (max-width: 1100px) {
  .recent-grid { column-count: 2; }
}

@media (max-width: 640px) {
  .recent-grid { column-count: 1; }
}

/* ================================================= COLLECTIONS — FEATURE VIDEO (FIXED) ================================================= */

.collections-feature {
  position: relative;
  width: 100vw;
  height: 70vh;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  overflow: hidden;
  margin-bottom: 180px;
}

/* Video layer — BOLD GRAYSCALE */
.collections-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collections-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(100%) contrast(1.15) brightness(0.95);
  opacity: 1;

  transition: filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collections-feature:hover .collections-media video {
  filter: grayscale(0%) contrast(1.1) brightness(1);
}

.dark .collections-media video {
  opacity: 1;
}

/* Stronger overlay wash */
.collections-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light theme wash — STRONGER */
:root .collections-feature::before {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    rgba(0,0,0,0.35)
  );
}

.collections-feature:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.45)
  );
}

/* Dark theme wash — STRONGER */
.dark .collections-feature::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.45)
  );
}

.dark .collections-feature:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35)
  );
}

/* Content */
.collections-overlay {
  position: relative;
  z-index: 2;

  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Eyebrow */
.collections-overlay .collections-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 18px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
  display: block;
  margin-top: 16px;
}

/* Heading */
.collections-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7), 0 6px 24px rgba(0, 0, 0, 0.6);
}

/* CTA */
.collections-link {
  margin-top: 40px;
  width: fit-content;

  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;

  color: #fff;
  opacity: 1;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;

  transition: opacity 0.25s ease;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.collections-link:hover {
  opacity: 0.95;
}

/* =================================================
   COLLECTIONS INTRO — EDITORIAL STYLE (BRYAN INSPIRED)
================================================= */

.collections-intro {
  max-width: 1400px;
  margin: 0 auto 160px;
  padding: 140px 24px 100px;
  text-align: left;
}

.collections-intro-content {
  max-width: none;
}

/* Eyebrow */
.collections-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  margin: 0 0 28px 0;
  font-weight: 400;
}

/* Title */
.collections-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 32px 0;
  line-height: 1.08;
  font-weight: 400;
}

/* Subtitle */
.collections-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  margin: 0;
  font-weight: 300;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .collections-intro {
    padding: 100px 24px 80px;
    margin: 0 auto 120px;
  }

  .collections-intro-content {
    max-width: 100%;
  }

  .collections-title {
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    margin-bottom: 24px;
  }

  .collections-eyebrow {
    margin-bottom: 20px;
  }
}

/* =================================================
   SIDE RAILS
================================================= */

.side-rail.left  { left:  clamp(2px, 0.3vw, 6px); }
.side-rail.right { right: clamp(2px, 0.3vw, 6px); }


/* =================================================
   COLLECTIONS PAGE — STRUCTURE
================================================= */

.collections-wrapper {
  max-width: 1400px;
  margin: 0 auto 200px;
  padding: 0 24px;
}

.collection-category {
  margin-bottom: 160px;
}

.collection-category-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 56px;
}

/* Grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* Card */
.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  
}

.collection-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.45s ease;
}

.collection-card:hover img {
  transform: scale(1.04);
  filter: grayscale(100%);
}

/* Meta */
.collection-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
  );
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease; /* Smooth transition */
}

.collection-card:hover .collection-meta {
  opacity: 1; /* Visible on hover */
}

.collection-meta h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
}

.collection-meta span {
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* New styles for album display grids */
.album-display-grid {
  display: grid;
  gap: 40px; /* Consistent with collection-grid */
  margin-top: 56px; /* Added margin for spacing below category title */
}

/* Single item layout */
.album-display-grid-single {
  grid-template-columns: 1fr; /* One column, full width */
}

/* Double item layout */
.album-display-grid-double {
  grid-template-columns: repeat(2, 1fr); /* Two columns, equal width */
}

/* Multi item layout (default responsive grid) */
.album-display-grid-multi {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Use existing responsive grid logic */
}

/* Ensure collection-card styles apply within these new grids */
.album-display-grid .collection-card {
  /* Inherit existing collection-card styles for image and meta */
}

/* =================================================
   COLLECTIONS — EDITORIAL INTRO
================================================= */

.collections-editorial {
  max-width: 1160px;
  margin: 160px auto 140px;
  padding: 0 24px;
  text-align: center;
}

.collections-editorial .section-title {
  margin-bottom: 36px;
}

.collections-description {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}


/* =================================================
   ALBUM OVERLAY — PROFESSIONAL MODAL STYLE
================================================= */

.album-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.album-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal container */
.overlay-container {
  position: relative;
  width: 100%;
  height: 85vh;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

/* Close button */
.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  border-radius: 8px;
}

.overlay-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Navigation buttons */
.overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, background 0.25s ease;
  border-radius: 6px;
}

.overlay-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.overlay-nav.prev {
  left: 16px;
}

.overlay-nav.next {
  right: 16px;
}

/* Track */
.overlay-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual slides */
.overlay-slide {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 40px;
  overflow: hidden;
}

/* Description slide styling */
.overlay-slide.description-slide {
  background: var(--bg);
  flex-direction: column;
}

.overlay-editorial {
  max-width: 580px;
  text-align: center;
  animation: slideInContent 0.6s ease 0.1s both;
}

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

.overlay-editorial h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.overlay-editorial .year {
  margin-top: 12px;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  margin-bottom: 24px;
}

.overlay-editorial .description {
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: var(--text);
  opacity: 0.8;
}

/* Image slide styling */
.overlay-slide.image-slide {
  background: var(--bg);
}

.overlay-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: slideInImage 0.4s ease both;
}

@keyframes slideInImage {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Indicator */
.overlay-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  opacity: 0.8;
  z-index: 15;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 16px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .album-overlay {
    padding: 8px;
  }

  .overlay-container {
    height: 90vh;
    border-radius: 10px;
  }

  .overlay-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .overlay-nav.prev {
    left: 8px;
  }

  .overlay-nav.next {
    right: 8px;
  }

  .overlay-close {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    top: 12px;
    right: 12px;
  }

  .overlay-slide {
    padding: 32px 16px;
  }

  .overlay-editorial {
    max-width: 85vw;
  }

  .overlay-editorial h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .overlay-slide img {
    width: 100%;
    height: 100%;
  }

  .overlay-indicator {
    bottom: 12px;
    font-size: 0.65rem;
    padding: 5px 12px;
  }
}

/* =================================================
   EXPERTISE SECTION
================================================= */

.expertise-section {
  max-width: 1160px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.expertise-content {
  max-width: 1160px;
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 48px;
  margin-top: 60px;
  padding-bottom: 120px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

.expertise-card p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .expertise-section {
    margin: 0 auto 160px;
  }

  .expertise-grid {
    gap: 32px;
    margin-top: 40px;
  }
}

/* =================================================
   TESTIMONIALS SECTION — GRID LAYOUT
================================================= */

.testimonials-section {
  max-width: 1160px;
  margin: 0 auto 0;
  padding: 0 24px;
}

.testimonials-content {
  max-width: 1160px;
  margin: 0 auto;
}

.testimonials-header {
  margin-bottom: 60px;
}

.testimonials-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonials-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 28px auto 0;
  background: currentColor;
  opacity: 0.25;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 120px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dark .testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

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

@media (max-width: 640px) {
  .testimonials-section {
    margin: 0 auto 160px;
  }

  .testimonials-header h2 {
    font-size: 1.6rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }
}

/* =================================================
   FEATURED GALLERY — SINGLE ROW
================================================= */

.featured-gallery {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.gallery-row {
  display: flex;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.gallery-row::-webkit-scrollbar {
  height: 3px;
}

.gallery-row::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.gallery-item {
  flex: 0 0 auto;
  width: 10%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .gallery-item {
    width: 12%;
  }

  .featured-gallery {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .featured-gallery {
    height: 130px;
  }

  .gallery-item {
    width: 14.28%;
  }
}

/* =================================================
   FOOTER — NAVIGATION & INFORMATION
================================================= */

.main-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 40px 60px;
  margin-top: 0;
  position: relative;
}

.dark .main-footer {
  background: var(--bg);
  border-top-color: rgba(255, 255, 255, 0.15);
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 0 0 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 100px;
  margin-bottom: 80px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-section:first-child {
  gap: 16px;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
  opacity: 1;
}

.footer-section:first-child h3 {
  font-size: 1.2rem;
  letter-spacing: 0;
  font-weight: 600;
}

.footer-section p {
  font-size: 0.7rem;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.footer-section:first-child p {
  font-size: 0.72rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  opacity: 0.7;
  font-weight: 300;
}

.footer-link:hover {
  color: var(--text);
  opacity: 1;
  letter-spacing: 1px;
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 50px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.footer-copyright {
  font-size: 0.68rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin: 0;
  opacity: 0.6;
  font-weight: 300;
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  opacity: 0.7;
  font-weight: 400;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
  }

  .main-footer {
    padding: 50px 32px 50px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 50px 24px 40px;
    margin-top: 80px;
  }

  .featured-gallery {
    height: 80px;
    margin-bottom: 60px;
  }

  .gallery-item {
    width: 16.66%;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 60px;
  }

  .footer-section h3 {
    font-size: 0.72rem;
  }

  .footer-section:first-child h3 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.68rem;
  }

  .footer-link {
    font-size: 0.68rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .footer-copyright {
    font-size: 0.6rem;
  }

  .footer-tagline {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 40px 16px 32px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-gallery {
    height: 60px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    gap: 20px;
  }
}
/* =================================================
   SCROLL ANIMATION
================================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px); /* Increased translateY for more noticeable effect */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Longer transition */
  will-change: opacity, transform; /* Performance hint */
  visibility: hidden; /* Explicitly hide */
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible; /* Explicitly show */
}