/* RESET */
body {
  margin: 0;
  padding: 0;
  background: black;
  font-family: 'Montserrat', sans-serif;
  color: white;
  overscroll-behavior: none;
  height: 100%;        /* ensures body doesn't extend past viewport */
}

/* MAIN LAYOUT: LEFT + RIGHT */
.layout {
  display: flex;
  height: 100dvh;      /* correct modern viewport unit */
  width: 100%;
  position: relative;
  overflow: hidden;    /* keep anything from pushing layout down */
}

/* LEFT HERO IMAGE */
/* LEFT HERO IMAGE */
.left-hero {
  position: relative;
  width: 45%;
  height: 100dvh;         /* dynamic viewport height (Chrome fix) */
  min-height: 600px;      /* ensures no cutoff on short displays */
  overflow: hidden;
  z-index: 1;
}

/* HERO IMAGE */
.left-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* always fills the area */
  object-position: top;    /* keeps the portrait aligned upward */
  display: block;          /* prevents Chrome from adding extra gap */
}

/* RIGHT SIDE FADE */
.fade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0) 30%,      /* more visible fade */
    rgba(0,0,0,0.75) 85%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
  z-index: 2;   /* lies ABOVE image */
}


/* RIGHT TEXT CONTENT */
.right-content {
  width: 40%;
  padding: 60px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  height: 100%;
}

.right-content h1 {
  margin: 0;
  font-size: clamp(4rem, 6vw, 6rem); /* prevents Windows scaling issues */
  letter-spacing: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 5px;
}

.right-content p {
  margin-top: 10px;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.75;
}

/* BOTTOM NAV */
.bottom-nav {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.bottom-nav a {
  position: relative;
  aspect-ratio: 4 / 3;
  width: min(320px, 22vw);
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  margin: 0;
}

.bottom-nav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  animation: navPan 12s ease-in-out infinite;
  filter: brightness(60%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* PAN ANIMATION */
@keyframes navPan {
  0% { object-position: top; }
  50% { object-position: 0% 60%; }
  100% { object-position: top; }
}

.bottom-nav a:hover img {
  animation-play-state: paused;   /* freezes the pan */
  transform: scale(1.08);         /* keeps your enlarge effect */
  filter: brightness(100%);       /* keeps your highlight effect */
}

/* HOVER EFFECT */
.bottom-nav a:hover img {
  transform: scale(1.08);
  filter: brightness(100%);
}

/* STOP ALL IMAGES WHEN ANY NAV IS HOVERED */
.bottom-nav:hover img {
  animation-play-state: paused;
}

/* LABEL */
.bottom-nav a span {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  letter-spacing: 1px;
  text-shadow: 0 0 4px black;
}

/* LIGHT BOTTOM FADE (BEHIND BUTTONS) */
.bottom-light-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45vh; /* adjust fade height */
  pointer-events: none;
  overflow: hidden;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,        /* transparent */
    rgba(255,255,255,0.20) 70%, /* soft light fade */
    rgba(255,255,255,0.35) 100% /* strongest at bottom */
  );

  z-index: 5; /* BELOW nav (nav is z-index: auto = above default 0) */
}

/* GALLERY PAGE */
.gallery-body {
  background: black;
  color: white;
  padding: 40px;
  font-family: 'Montserrat', sans-serif;
}

.gallery-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

/* TABS */
.gallery-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-btn {
  background: transparent;
  border: 1px solid white;
  padding: 10px 22px;
  cursor: pointer;
  color: white;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: white;
  color: black;
}

/* HORIZONTAL SCROLL SECTION */
.gallery-section {
  display: none;
}

.gallery-section.active {
  display: block;
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.horizontal-scroll img {
  height: 550px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.horizontal-scroll img:hover {
  transform: scale(1.05);
}

/* ABOUT PAGE */
.about-body {
  background: black;
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 40px;
}

.about-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 60px;
}

/* SECTION LAYOUT */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 80px;
}

.about-section.reverse {
  flex-direction: row-reverse;
}

/* TEXT */
.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* IMAGE */
.about-image-wrapper {
  flex: 1;
  max-width: 450px;
  overflow: hidden;
  border-radius: 10px;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.about-image-wrapper img:hover {
  transform: scale(1.03);
}

/* FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMove .8s ease-out forwards;
}

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

/* NAV BAR — DESKTOP */
.top-nav {
  width: 100%;
  display: flex;
  justify-content: space-between; /* title left, links right */
  align-items: center;
  padding: 5px 10px;
  box-sizing: border-box;
}

.nav-left {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
}

.nav-right {
  display: flex;
  gap: 30px; /* spacing between links */
}

.nav-right a {
  color: white;
  text-decoration: none; /* remove purple underline */
  font-size: 1.2rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-right a:hover {
  opacity: 0.6;
}

/* CONTACT PAGE */
.contact-body {
  background: black;
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 40px;
}

.contact-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.contact-subtitle {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* CONTACT OPTION CARDS */
.contact-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-card {
  display: block;
  background: #111;
  padding: 30px 40px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  width: 260px;
  text-align: center;
  border: 1px solid #222;
  transition: 0.3s ease;
}

.contact-card:hover {
  background: #222;
  transform: translateY(-4px);
}

.contact-card h2 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

.contact-card p {
  opacity: 0.8;
  font-size: 1rem;
}

/* FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMove .8s ease-out forwards;
}

/****************************************
   FINAL MOBILE LAYOUT (max-width: 900px)
*****************************************/
@media (max-width: 900px) {

  /* ABOUT PAGE MOBILE FIX */
  .about-section,
  .about-section.reverse {
    flex-direction: column;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 100%;
  }

  /* CONTACT PAGE (spacing only; rest stays desktop until later) */
  .contact-options {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
  }

  .contact-card {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center !important;
    padding: 25px;
  }

  /* -------------------------------
     MOBILE NAV – TITLE + LINKS
  --------------------------------*/
  .top-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    gap: 6px;
  }

  .top-nav .site-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    color: white;
  }

  .top-nav .nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }

  .top-nav .nav-links a {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1rem;
  }

  /* -------------------------------
     MOBILE HOME HERO
  --------------------------------*/
  .layout {
    flex-direction: column;
    height: auto;
  }

  .left-hero,
  .left-hero img {
    width: 100% !important;
    height: auto !important;
  }

  .right-content {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
  }

  .right-content h1 {
    font-size: 2.7rem !important;
    line-height: 1.1;
  }

  /* TURN OFF DESKTOP FADE */
  .bottom-light-fade {
    display: none !important;
  }

  /* -------------------------------
     MOBILE BUTTON GRID (2×2)
  --------------------------------*/
  .bottom-nav {
    position: relative !important;
    bottom: unset !important;
    left: unset !important;
    transform: none !important;

    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    width: 100%;
    max-width: 420px;
    margin: 25px auto 40px auto;
    padding: 0 15px;
  }

  .bottom-nav a {
    width: 100% !important;
    height: 150px !important;
    border-radius: 14px;
  }

  .bottom-nav img {
    object-fit: cover;
    object-position: center;
    animation: none !important;
    filter: brightness(60%);
  }

  .bottom-nav a span {
    font-size: 1.4rem !important;
  }

  /* -------------------------------
     MOBILE GALLERY
  --------------------------------*/
  .horizontal-scroll {
    display: block !important;
    overflow-x: visible !important;
    padding: 0;
  }

  .horizontal-scroll img {
    width: 90%;
    margin: 0 auto 20px auto;
    height: auto;
    display: block;
    border-radius: 12px;
  }
}
