/* Custom Fonts */
@font-face {
  font-family: 'Supreme LL';
  src: url('fonts/SUPREMELL-LIGHT.OTF') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Supreme LL';
  src: url('fonts/SupremeLL-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Supreme LL';
  src: url('fonts/SUPREMELL-MEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
}

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

body {
  font-family: 'Supreme LL', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
  overflow-x: hidden;
}

/* LOGO (top layer) */
#logo {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.25s ease, width 0.25s ease, height 0.25s ease;
}

#logoImg {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1); /* Make SVG white */
  transition: width 0.25s ease;
}

#logo.logo-fixed #logoImg {
  width: 30px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0.8rem 3rem;
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 7rem;
  font-size: 14;
  flex: 1;
}

.nav-left {
justify-content: center;
}

.nav-right {
    justify-content: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

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

/* HERO */
.hero-spacer {
  height: 250vh;
  width: 100%;
  position: relative;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* Hero sticky state - locks hero at bottom of viewport */
.hero-spacer.hero-locked .hero {
  position: fixed;
  top: 0;
  left: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero-background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: background-position;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  background-image: url('images/hero-overlay.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  pointer-events: none;
  margin-top: 10vh;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 5rem;
}

.title-text {
  width: 400px;
  height: auto;
  will-change: opacity;
  margin-top: 1rem;
  filter: brightness(0) invert(1); /* Make SVG white */
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-details {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.8;
}

.hero-details p {
  margin: 0.25rem 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.scroll-icon {
  width: 50px;
  height: 50px;
  opacity: 0.9;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Specification Tiles */

.specs-container {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 4rem 3rem;
  z-index: 15;
  pointer-events: none;
}

/* Scroll trigger - invisible element to detect animation start */
.scroll-trigger {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.spec-tile {
  background: #D0CCCC33;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid #FFFBFB26;
  border-radius: 12px;
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: all;
  align-content: center;
  will-change: transform, opacity;
}

.spec-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.spec-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  margin: 0;
}

.spec-description {
  font-size: 0.95rem;
  font-weight: 300;
  color: white;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.spec-button {
  background: #795653;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Supreme LL', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  justify-content: space-between;
}

.spec-button:hover {
  background: #8a6460;
  transform: translateY(-2px);
}

.button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.spec-button:hover .button-arrow {
  transform: translateX(4px);
}

/* Responsive Tiles */
@media (max-width: 1024px) {
  .specs-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .specs-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .spec-icon {
    width: 60px;
    height: 60px;
  }

  .spec-title {
    font-size: 1.25rem;
  }
}

/* EXPANDABLE SECTION */
.expandable-section {
  position: relative;
  height: 220vh; /* controls duration of the animation */
  background: #D4ABA4;
  z-index: 2;
}

.expandable-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.expandable-headline {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.5rem;
  font-weight: 300;
  color: white;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  max-width: 1200px;
  padding: 30px 3rem;
  z-index: 10;
  opacity: 1;
}

/* Character animation styles for expandable headline */
.expandable-headline .char {
  transition: opacity 0.3s ease;
  display: inline-block;
  color: white;
}

/* Content panel - always visible, behind the image */
.expandable-panel {
  position: absolute;
  max-width: 1600px;
  margin-top: 60px;
  width: calc(100% - 8vw);
  height: calc(90vh - 30vh);
  background: #E8DDD9;
  border-radius: 24px;
  z-index: 0;
}

.expandable-container {
  position: relative;
  max-width: 1600px;
  width: calc(100% - 8vw);
  height: calc(100vh - 28vh);
}

.expandable-content {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.expandable-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expandable-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: #7D5B56;
  margin: 0;
  line-height: 1.3;
}

.expandable-description {
  font-size: 1rem;
  font-weight: 300;
  color: #7D5B56;
  line-height: 1.6;
  margin: 0;
}

.expandable-button {
  background: transparent;
  color: #7D5B56;
  border: 1.5px solid #7D5B56;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-family: 'Supreme LL', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.expandable-button:hover {
  background: #7D5B56;
  color: white;
}

.expandable-button svg {
  transition: transform 0.3s ease;
}

.expandable-button:hover svg {
  transform: translateX(4px);
}

.expandable-image {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  will-change: width, height, top, left, border-radius;
  background-image: url('images/expandable-section.jpg');
  background-size: cover;
  background-position: center;
  z-index: 99;
}

/* Responsive */
@media (max-width: 1024px) {
  .expandable-headline {
    font-size: 2.5rem;
    top: 8vh;
  }

  .expandable-panel,
  .expandable-container {
    width: calc(100% - 4vw);
  }

  .expandable-content {
    width: 60%;
    padding: 2rem;
  }

  .expandable-image {
    width: 40vw;
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .expandable-headline {
    font-size: 2rem;
    padding: 0 1.5rem;
    top: 6vh;
  }

  .expandable-content {
    width: 100%;
    padding: 1.5rem;
    position: relative;
    background: rgba(232, 221, 217, 0.95);
    border-radius: 16px;
    margin: 0 1rem;
  }

  .expandable-panel {
    display: none;
  }

  .expandable-image {
    width: 55vw;
    height: 65vh;
  }

  .expandable-title {
    font-size: 1.5rem;
  }
}

/* CONTENT */
main {
  min-height: 100vh;
  background: linear-gradient(to bottom, #DBA9AC 0%, #E9E4DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 2;
}

.content-container {
  max-width: 900px;
  color: #D7A6AC;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.content-container h2 {
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: #D7A6AC;
}

/* Character animation styles */
.content-container h2 .char {
  transition: opacity 0.3s ease;
  display: inline-block;
  color: #D7A6AC; /* Final color - lighter */
}

.content-container p {
  font-size: 2.2rem;
  line-height: 1.15;
  color: #D7A6AC;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.content-button {
  background: #F5F0EB;
  color: #B98B97;
  border: none;
  border-radius: 12px;
  font-size: 1.25rem;
  font-family: 'Supreme LL', sans-serif;
  font-weight: 400;
  padding: 0.9rem 2.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.content-button:hover {
  background: #E9E4DB;
  color: #A97C8A;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
