/* =========================================================
   MATRIMAA MEDIA PAGE
   ZALANDO SANS + LANDING PAGE THEME
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Zalando Sans", sans-serif;
  color: #200508;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fff7f8 24%,
    #fcd6dc 62%,
    #f59ba2 100%
  );
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 85%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  margin-top: 15px;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease-in-out;
}

#navbar.scrolled {
  width: 100%;
  margin-top: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

#navbar img {
  width: 75px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

#nav-buttons {
  display: flex;
  gap: 8px;
}

#nav-buttons a,
.hero-cta a,
.footer-col a {
  text-decoration: none;
}

#nav-buttons button {
  font-family: "Zalando Sans", sans-serif;
  border: none;
  background: transparent;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

#nav-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: #ed1b24;
}

.spl-btn button {
  border: none;
  background: linear-gradient(
    to right,
    #ff0d25 0%,
    #f59ba2 25%,
    #fae2e5 50%,
    #f59ba2 75%,
    #ff0d25 100%
  );
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #000000;
  font-family: "Zalando Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.spl-btn button:hover {
  background-position: 100% 0%;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(237, 27, 36, 0.3);
}

/* HAMBURGER MENU STYLES */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #200508;
  border-radius: 3px;
  transition: all 0.35s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: #000000;
}

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

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: #000000;
}

/* BACKGROUND GLOWS */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(100px);
  opacity: 0.5;
}

.glow-left {
  width: 500px;
  height: 500px;
  top: -180px;
  left: -200px;
  background: radial-gradient(
    circle,
    rgba(245, 155, 162, 0.45),
    transparent 70%
  );
}

.glow-right {
  width: 500px;
  height: 500px;
  right: -200px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.16), transparent 70%);
}

/* MAIN CONTENT & HERO */
.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 145px 30px 90px;
}

.gallery-hero {
  text-align: center;
  margin-bottom: 70px;
}

.sub-tag {
  display: inline-block;
  margin-bottom: 13px;
  color: #ed1b24;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Zalando Sans", sans-serif;
  color: #200508;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 35px;
  color: #664449;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.7;
}

/* FILTERS */
.filter-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(168, 0, 29, 0.14);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(128, 0, 21, 0.08);
}

.filter-btn {
  border: none;
  background: transparent;
  color: #664449;
  font-family: "Zalando Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 11px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.filter-btn:hover {
  color: #ed1b24;
  background: rgba(245, 155, 162, 0.18);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(
    to right,
    #ff0d25 0%,
    #f59ba2 25%,
    #fae2e5 50%,
    #f59ba2 75%,
    #ff0d25 100%
  );
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #000000;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(237, 27, 36, 0.25);
  transform: scale(1.03);
}

.filter-btn.active:hover {
  background-position: 100% 0%;
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(237, 27, 36, 0.35);
}

/* CAROUSEL 3D */
.stage-section {
  margin-bottom: 95px;
}

.stage-header {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.stage-label {
  color: #800015;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-3d-viewport {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}

.carousel-3d-track {
  position: relative;
  width: 320px;
  height: 480px;
  transform-style: preserve-3d;
}

.glass-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 480px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(128, 0, 21, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 50px rgba(128, 0, 21, 0.12);
  cursor: pointer;
  transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card.active {
  border-color: rgba(237, 27, 36, 0.7);
  box-shadow:
    0 25px 60px rgba(128, 0, 21, 0.22),
    0 0 35px rgba(237, 27, 36, 0.12);
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.glass-card:hover img {
  transform: scale(1.055);
}

.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(128, 0, 21, 0.12);
  color: #800015;
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.4px;
}

.card-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 80px 24px 25px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 247, 248, 0.88) 72%,
    rgba(255, 247, 248, 0.98) 100%
  );
  color: #200508;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 750;
  margin-bottom: 6px;
}

.card-content p {
  color: #664449;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.expand-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: linear-gradient(
    to right,
    #ff0d25,
    #f59ba2,
    #fae2e5,
    #f59ba2,
    #ff0d25
  );
  background-size: 200% 100%;
  color: #000000;
  font-family: "Zalando Sans", sans-serif;
  font-size: 12px;
  font-weight: 650;
  padding: 10px 17px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(237, 27, 36, 0.15);
  transition: all 0.4s ease;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(128, 0, 21, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #800015;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(128, 0, 21, 0.1);
  transition: all 0.4s ease;
}

.prev-btn {
  left: 15px;
}
.next-btn {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 17px;
}

.dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(128, 0, 21, 0.25);
  cursor: pointer;
  transition: all 0.4s ease;
}

.dot.active {
  width: 27px;
  border-radius: 10px;
  background: linear-gradient(to right, #ff0d25, #f59ba2);
}

/* MASONRY GRID */
.gallery-grid-section {
  margin-top: 50px;
  scroll-margin-top: 80px;
}

.section-topline {
  text-align: center;
  margin-bottom: 8px;
  color: #ed1b24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
  color: #200508;
  font-size: 42px;
  font-weight: 800;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.masonry-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(128, 0, 21, 0.12);
  box-shadow: 0 12px 30px rgba(128, 0, 21, 0.08);
  cursor: pointer;
  transition: all 0.5s ease;
}

.masonry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.masonry-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 27, 36, 0.5);
  box-shadow: 0 20px 45px rgba(128, 0, 21, 0.18);
}

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

.overlay-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transform: translateY(18px);
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(74, 0, 12, 0.94) 100%
  );
  transition: all 0.45s ease;
}

.masonry-card:hover .overlay-info {
  opacity: 1;
  transform: translateY(0);
}

.overlay-info .category {
  color: #f59ba2;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.overlay-info h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.overlay-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 1000px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  #navbar {
    width: 92%;
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
  }

  /* MOBILE DROPDOWN MENU */
  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(128, 0, 21, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  #nav-buttons a,
  #nav-buttons button {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 10px 16px;
  }

  .spl-btn {
    width: 100%;
  }

  .spl-btn button {
    width: 100%;
    font-size: 13px;
    padding: 12px 20px;
  }

  .gallery-container {
    padding: 125px 18px 70px;
  }

  .hero-title {
    font-size: 46px;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
