/* Initial states for animated elements */
.hero-content, .hero-footer,
.home-about .about-left,
.home-about .about-right,
.home-location .location-left,
.home-location .location-right,
.home-sections .section-left,
.home-sections .section-right,
.home-gallery .gallery-item,
.home-video video {
  opacity: 0;
}

/* Home / Hero improvements */
.hero .hero-content {
  transform: translateY(30px);
}
.hero .hero-footer {
  transform: translateY(20px);
}
/* Parallax effect for hero background */
@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Home / About */
.home-about {
  overflow: hidden;
}
.home-about .about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 8vw, 140px);
}
.home-about p {
  padding-top: 0;
  margin-bottom: 0;
}
.home-about p + p {
  margin-top: 2em;
}
.home-about .about-left h1 {
  line-height: 1;
  margin-bottom: 40px;
}
.home-about .about-left img {
  margin-top: 40px;
}
.home-about .about-right img {
  margin-bottom: 56px;
}
.home-about .about-right a {
  margin-top: 56px;
}
@media (max-width: 768px) {
  .home-about .about-content {
    grid-template-columns: 1fr;
  }
}

/* Home / Video */
.home-video {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin: var(--s-5) auto;
}
.home-video .video-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-video .video-container video {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  max-width: 1920px;
  display: block;
  margin-inline: auto;
}
/* Video loading states */
.lazy-video {
  transition: opacity 0.5s ease;
}
.lazy-video.loading {
  opacity: 0.7;
}
.lazy-video.loaded {
  opacity: 1;
}

/* Home / Location */
.home-location {
  padding-block: var(--s-2) var(--s-4);
  overflow: hidden;
}
.home-location .location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 8vw, 180px);
  align-items: center;
}
.home-location p {
  padding-top: 0;
  margin-bottom: 0;
}
.home-location p + p {
  margin-top: 2em;
}
.home-location .location-right h2 {
  line-height: 1;
  margin-bottom: 40px;
}
.home-location img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.home-location a {
  margin-top: 40px;
}
@media (max-width: 768px) {
  .home-location .location-content {
    grid-template-columns: 1fr;
  }
}

/* Home / Gallery */
.home-gallery {
  padding: var(--s-5) 0;
}
.home-gallery .gallery {
  column-count: 3;
  column-gap: var(--s-4);
}
.home-gallery .gallery-item {
  break-inside: avoid;
  width: 100%;
  margin-bottom: var(--s-4);
  transition: all 0.4s ease;
  cursor: pointer;
}
.home-gallery .top-space {
  padding-top: var(--s-5);
}
.home-gallery .gallery-link {
  text-align: center;
  margin-top: var(--s-3);
}
@media (max-width: 1140px) {
  .home-gallery .gallery {
    column-gap: var(--s-3);
  }
  .home-gallery .gallery-item {
    margin-bottom: var(--s-3);
  }
}
@media (max-width: 960px) {
  .home-gallery .gallery {
    column-gap: var(--s-2);
  }
  .home-gallery .gallery-item {
    margin-bottom: var(--s-2);
  }
  .home-gallery .top-space {
    padding-top: var(--s-4);
  }
}
@media (max-width: 768px) {
  .home-gallery {
    padding-block: var(--s-4) var(--s-5);
  }
  .home-gallery .gallery {
    column-count: 2;
  }
  .home-gallery .top-space {
    padding-top: 0;
  }
  .home-gallery .hide-on-tablet {
    display: none;
    visibility: hidden;
  }
}
@media (max-width: 480px) {
  .home-gallery .gallery {
    column-gap: var(--s-1);
  }
  .home-gallery .gallery-item {
    margin-bottom: var(--s-1);
  }
}

/* Home / Sections */
.home-sections {
  margin-block: var(--s-3) var(--s-5);
  overflow: hidden;
}
.home-sections .container-fluid {
  max-width: 1636px;
  margin: 0 auto;
}
.home-sections .section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-0);
}
.home-sections .image-container {
  position: relative;
  flex: 1;
  height: 400px;
  overflow: hidden;
}
.home-sections .section-left .image-container {
  border-top-right-radius: 100px;
}
.home-sections .section-right .image-container {
  border-top-left-radius: 100px;
}
.home-sections .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-sections .image-title {
  position: absolute;
  bottom: 0px;
  left: 10px;
  color: var(--color-background);
  font-size: 4em;
  margin: 0;
}
.home-sections .text-container {
  max-width: 52ch;
  margin-inline: auto;
  padding-inline: var(--s-1);
}
.home-sections p {
  margin-block: var(--s-3) 0;
}
.home-sections a {
  margin-top: var(--s-3)
}
.home-sections .image-container img {
  transition: transform 0.6s ease;
}
@media (max-width: 768px) {
  .home-sections .section-content {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .home-sections .image-container {
    height: 360px;
  }
  .home-sections .section-right .image-container {
    border-top-right-radius: 100px;
  }
  .home-sections .section-right .image-container {
    border-top-left-radius: 0;
  }
}

/* Performance optimization */
.home-gallery .gallery-item,
.home-sections .image-container img {
  will-change: transform;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-footer,
  .home-about .about-left,
  .home-about .about-right,
  .home-location .location-left,
  .home-location .location-right,
  .home-sections .section-left,
  .home-sections .section-right,
  .home-gallery .gallery-item,
  .home-video video {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}