/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap");

/* Reset và base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Playfair Display", serif;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 124px;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 124px;
  background-color: rgba(60, 36, 21, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(60, 36, 21, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  margin: 24px auto 0;
  max-width: 1280px;
  padding: 0 320px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 592px;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  color: #f5e8d7;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #e8c1c1;
}

.nav-button {
  background-color: #e8c1c1;
  color: #3c2415;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 8px 24px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: #d4a5a5;
  transform: translateY(-1px);
}

/* Logo Styles */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 95px;
  height: 76px;
  margin: 0 auto;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  color: #f5e8d7;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #f5e8d7;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 1001;
  transition: right 0.3s ease;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: #2d1e12;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
  z-index: 1003;
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 280px);
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.mobile-sidebar.active .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 232, 215, 0.2);
}

.mobile-logo .logo-icon {
  width: 48px;
  height: 48px;
}

.mobile-logo .logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #f5e8d7;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  color: #f5e8d7;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.mobile-nav-link:hover {
  background-color: rgba(245, 232, 215, 0.1);
  color: #e8c1c1;
}

.mobile-nav-link.active {
  background-color: #e8c1c1;
  color: #2d1e12;
}

.mobile-nav-button {
  display: block;
  background-color: #e8c1c1;
  color: #2d1e12;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.mobile-nav-button:hover {
  background-color: #d4a5a5;
  transform: translateY(-1px);
}

/* Hero Section Styles */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url("images/cofe-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 1920px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 4;
  text-align: center;
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0;
  width: 100%;
  text-align: center;
}

.hero-title {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  margin: 0;
  width: 100%;
  display: block;
}

/* Responsive Design */
@media (max-width: 2000px) {
  .header-content {
    padding: 0 120px;
  }

  .hero-content {
    width: 90%;
  }
}

@media (max-width: 1200px) {
  .header-content {
    padding: 0 80px;
  }

  .nav-left,
  .nav-right {
    gap: 24px;
    width: auto;
  }

  .hero-title {
    font-size: 36px;
    line-height: 36px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    height: 80px;
    padding: 0;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    margin: 0;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .logo-container {
    width: auto;
    height: auto;
    margin: 0;
    flex-direction: row;
    gap: 12px;
  }

  .logo-text {
    font-size: 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    height: 400px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-title {
    font-size: 28px;
    line-height: 28px;
    text-align: center;
  }

  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 24px;
    white-space: normal;
    text-align: center;
  }

  .nav-left,
  .nav-right {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* About Section */
.about-section {
  background-color: #2d1b13;
  padding: 96px 0;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 320px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 462px;
}

.about-text {
  flex: 1;
  padding-right: 24px;
}

.about-title {
  font-size: 36px;
  font-weight: bold;
  line-height: 40px;
  color: #ffffff;
  margin-bottom: 32px;
}

.about-description {
  margin-bottom: 24px;
}

.about-description p {
  font-size: 18px;
  line-height: 28px;
  color: #f5e8d7;
  margin: 0;
}

.about-button {
  background-color: #3a2618;
  color: #ffffff;
  padding: 12px 32px;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.about-button:hover {
  background-color: #2d1e12;
  transform: translateY(-2px);
}

.about-image {
  flex: 1;
}

.about-image-container {
  width: 100%;
  height: 462px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

/* Products Section */
.products-section {
  background-image: linear-gradient(
      rgba(26, 20, 17, 0.85),
      rgba(26, 20, 17, 0.85)
    ),
    url("images/vintage_texture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 80px 0;
}

.products-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 320px;
}

.products-title {
  font-size: 40px;
  font-weight: bold;
  line-height: 36px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.product-card {
  background-color: #3a2618;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #5d3a22;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4),
    0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.product-image-container {
  height: 288px;
  padding: 16px;
}

.product-image-wrapper {
  width: 100%;
  height: 256px;
  border-radius: 9999px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 24px;
  height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 12px;
}

.product-description {
  font-size: 16px;
  line-height: 24px;
  color: #f5e8d7;
  margin-bottom: 16px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.product-price {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #f5e8d7;
}

/* Space Section */
.space-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.space-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 320px;
}

.space-content {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 500px;
}

.space-image {
  flex: 1;
}

.space-image-container {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

.space-text {
  flex: 1;
  padding: 66px 32px;
}

.space-title {
  font-size: 30px;
  font-weight: bold;
  line-height: 36px;
  color: #3a2618;
  margin-bottom: 32px;
}

.space-description {
  margin-bottom: 24px;
}

.space-description p {
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  margin: 0;
}

.space-button {
  background-color: #3a2618;
  color: #ffffff;
  padding: 12px 32px;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.space-button:hover {
  background-color: #2d1e12;
  transform: translateY(-2px);
}

/* Additional Responsive Styles for New Sections */
@media (max-width: 2000px) {
  .about-container,
  .products-container,
  .space-container {
    padding: 0 160px;
  }
}

@media (max-width: 1200px) {
  .about-container,
  .products-container,
  .space-container {
    padding: 0 80px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-container,
  .products-container,
  .space-container {
    padding: 0 40px;
  }

  .about-content,
  .space-content {
    flex-direction: column;
    height: auto;
    gap: 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-title,
  .space-title,
  .products-title {
    font-size: 30px;
    line-height: 32px;
  }

  .about-description p,
  .space-description p {
    font-size: 16px;
    line-height: 24px;
  }

  .product-name {
    font-size: 20px;
    line-height: 28px;
  }

  .product-description {
    font-size: 14px;
    line-height: 20px;
  }

  .product-price {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Footer */
.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 64px 0 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 320px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-description {
  font-size: 16px;
  line-height: 24px;
  color: #d1d5db;
  margin-bottom: 32px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  color: #d1d5db;
}

.contact-item svg {
  color: #d1d5db;
  flex-shrink: 0;
}

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

.footer-link {
  font-size: 16px;
  line-height: 24px;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #e8c1c1;
}

.newsletter-description {
  font-size: 16px;
  line-height: 24px;
  color: #d1d5db;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.newsletter-input {
  flex: 1;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-family: "Playfair Display", serif;
}

.newsletter-input::placeholder {
  color: #9ca3af;
}

.newsletter-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
  background-color: #f5a8b6;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.newsletter-button:hover:not(:disabled) {
  background-color: #f093a5;
  transform: translateY(-1px);
}

.newsletter-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #374151;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 16px;
  line-height: 24px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  color: #9ca3af;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #e8c1c1;
  transform: translateY(-2px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Footer Responsive Design */
@media (max-width: 2000px) {
  .footer-container {
    padding: 0 160px;
  }
}

@media (max-width: 1200px) {
  .footer-container {
    padding: 0 80px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 40px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-title {
    font-size: 20px;
    line-height: 28px;
  }

  .footer-section-title {
    font-size: 18px;
    line-height: 24px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-button {
    align-self: flex-start;
  }
}

/* Contact Page Styles */
.contact-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #3c2415 0%, #e8c1c1 100%);
  text-align: center;
  color: white;
}

.contact-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }

  .contact-hero-content h1 {
    font-size: 2.5rem;
  }

  .contact-hero-content p {
    font-size: 1rem;
  }
}

/* Desktop Override - Ensure mobile elements are hidden on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-sidebar {
    display: none !important;
  }

  .nav-left,
  .nav-right {
    display: flex !important;
  }
}

/* Filter Section Styles */
.filter-section {
  background-color: #8b5a2b;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.filter-container {
  max-width: 1920px;
  width: 100%;
  padding: 0 80px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.6s ease 0.3s forwards;
}

.filter-tab {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  padding: 8px 32px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(0.9);
  animation: filterTabScale 0.6s ease forwards;
}

.filter-tab:nth-child(1) {
  animation-delay: 0.5s;
}
.filter-tab:nth-child(2) {
  animation-delay: 0.7s;
}
.filter-tab:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes filterTabScale {
  to {
    transform: scale(1);
  }
}

.filter-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.filter-tab:hover::before {
  left: 100%;
}

.filter-tab.active {
  background-color: #3d2314;
  color: #f5e8d7;
  border: 2px solid #e8c1c1;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-tab:hover {
  background-color: rgba(61, 35, 20, 0.5);
  transform: translateY(-2px) scale(1.02);
}

/* Gallery Section Styles */
.gallery-section {
  background-color: #ffffff;
  padding: 64px 0 96px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
}

.gallery-title {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  color: #3d2314;
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.gallery-item {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}
.gallery-item:nth-child(9) {
  animation-delay: 0.9s;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 258px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f8c8dc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-image-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
  border-color: #e8a0b5;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-image-container:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(61, 35, 20, 0.8);
  display: flex;
  align-items: center;
  padding: 0 16px;
  transform: translateY(60px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-image-container:hover .gallery-overlay {
  transform: translateY(0);
  background: rgba(61, 35, 20, 0.95);
}

.gallery-text {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.gallery-image-container:hover .gallery-text {
  transform: translateY(0);
  opacity: 1;
}

.gallery-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-container:hover .gallery-corners {
  opacity: 1;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #f8c8dc;
  transition: all 0.3s ease;
}

.gallery-image-container:hover .corner {
  border-color: #e8a0b5;
  animation: cornerPulse 2s ease-in-out infinite;
}

.corner-tl {
  top: 9px;
  left: 9px;
  border-right: none;
  border-bottom: none;
  transform: translate(-5px, -5px);
}

.gallery-image-container:hover .corner-tl {
  transform: translate(0, 0);
}

.corner-tr {
  top: 9px;
  right: 9px;
  border-left: none;
  border-bottom: none;
  transform: translate(5px, -5px);
}

.gallery-image-container:hover .corner-tr {
  transform: translate(0, 0);
}

.corner-bl {
  bottom: 9px;
  left: 9px;
  border-right: none;
  border-top: none;
  transform: translate(-5px, 5px);
}

.gallery-image-container:hover .corner-bl {
  transform: translate(0, 0);
}

.corner-br {
  bottom: 9px;
  right: 9px;
  border-left: none;
  border-top: none;
  transform: translate(5px, 5px);
}

.gallery-image-container:hover .corner-br {
  transform: translate(0, 0);
}

.gallery-button-container {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 1s forwards;
}

.gallery-button {
  background-color: #3d2314;
  color: #ffffff;
  border: 2px solid #f8c8dc;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.gallery-button:hover::before {
  left: 100%;
}

.gallery-button:hover {
  background-color: #2a1e0f;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #e8a0b5;
}

/* Video Section Styles */
.video-section {
  background-color: #f9f5f0;
  padding: 64px 0 96px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px;
}

.video-title {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  color: #3d2314;
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.video-item {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease forwards;
}

.video-item:nth-child(1) {
  animation-delay: 0.4s;
}
.video-item:nth-child(2) {
  animation-delay: 0.6s;
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  height: 352px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f8c8dc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-thumbnail-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.2);
  border-color: #e8a0b5;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-thumbnail-container:hover .video-thumbnail {
  transform: scale(1.1);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80px;
  height: 80px;
  background: rgba(61, 35, 20, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.8;
}

.video-thumbnail-container:hover .video-play-button {
  background: rgba(61, 35, 20, 0.95);
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
  animation: playButtonPulse 2s ease-in-out infinite;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(61, 35, 20, 0.8);
  display: flex;
  align-items: center;
  padding: 0 16px;
  transform: translateY(60px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-thumbnail-container:hover .video-overlay {
  transform: translateY(0);
  background: rgba(61, 35, 20, 0.95);
}

.video-text {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.video-thumbnail-container:hover .video-text {
  transform: translateY(0);
  opacity: 1;
}

.video-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.video-button-container {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

.video-button {
  background-color: #3d2314;
  color: #ffffff;
  border: 2px solid #f8c8dc;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.video-button:hover::before {
  left: 100%;
}

.video-button:hover {
  background-color: #2a1e0f;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #e8a0b5;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cornerPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes playButtonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 35, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(61, 35, 20, 0);
  }
}

/* Responsive Design for Gallery and Video Sections */
@media (max-width: 1200px) {
  .gallery-container,
  .video-container {
    padding: 0 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .filter-container {
    padding: 0 20px;
  }

  .filter-tabs {
    gap: 12px;
  }

  .filter-tab {
    padding: 6px 16px;
    font-size: 14px;
  }

  .gallery-container,
  .video-container {
    padding: 0 20px;
  }

  .gallery-section,
  .video-section {
    padding: 40px 0 60px;
  }

  .gallery-title,
  .video-title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .gallery-image-container {
    height: 200px;
  }

  .video-thumbnail-container {
    height: 250px;
  }

  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .gallery-text,
  .video-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-image-container {
    height: 180px;
  }

  .video-thumbnail-container {
    height: 200px;
  }

  .gallery-text,
  .video-text {
    font-size: 14px;
  }

  .gallery-button,
  .video-button {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 70%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2001;
}

.video-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.video-container-modal {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-container-modal iframe {
  border-radius: 8px;
}

/* Video Modal Responsive */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    height: 60%;
  }

  .video-modal-close {
    top: -40px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 98%;
    height: 50%;
  }

  .video-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}

/* Loading Indicator Styles */
.loading-indicator,
.video-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5e8d7 0%, #e8d5c4 100%);
  margin: 40px 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(61, 35, 20, 0.1);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e8d5c4;
  border-top: 4px solid #e8c1c1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #3c2415;
  text-align: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* End Message Styles */
.end-message,
.video-end {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5e8d7 0%, #e8d5c4 100%);
  margin: 40px 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(61, 35, 20, 0.1);
  border: 2px solid #e8c1c1;
}

.end-message-content {
  text-align: center;
  max-width: 400px;
}

.end-message-text {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #3c2415;
  margin: 15px 0 10px 0;
}

.end-message-subtext {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b4e37;
  line-height: 1.5;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  text-align: center;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Infinite Scroll Enhanced Animations */
.gallery-item.loading-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.loading-animation.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.video-item.loading-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-item.loading-animation.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Loading indicator responsive */
@media (max-width: 768px) {
  .loading-indicator {
    padding: 40px 15px;
    margin: 20px 10px;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .loading-text {
    font-size: 14px;
  }
}

/* Lightbox responsive */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-close {
    top: -40px;
    right: -10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-caption {
    font-size: 14px;
    margin-top: 15px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .lightbox-image {
    max-height: 60vh;
  }
}

/* Enhanced Gallery Grid for Better Loading */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  min-height: 400px; /* Prevent layout shift during loading */
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  min-height: 300px; /* Prevent layout shift during loading */
}

/* Scroll indicator styles */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(232, 193, 193, 0.9);
  color: #3c2415;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(61, 35, 20, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-indicator:hover {
  background: #e8c1c1;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(61, 35, 20, 0.3);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.scroll-indicator:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-indicator svg {
    width: 18px;
    height: 18px;
  }
}
