

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

html, body {
  height: 100%;
  font-family: 'Sora', sans-serif;
  color: #F8F4FB;
}

/* Background image */
body {
  background-image: url('/assets/1280×832 bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Large screen background switch */
@media (min-width: 1280px) {
  body {
    background-image: url('/assets/1920×1248 bg.webp');
  }
}
@media (min-width: 1920px) {
  body {
    background-image: url('/assets/2560×1664 bg.webp');
  }
}

/* Page layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content */
.content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column; /* changed from center alignment */
  justify-content: space-between;
  overflow: hidden;
}


/* Canvas */

#riveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height removed – JS will handle it */
  z-index: 0;
  object-fit: contain;
}



/* Overlay images */
.image-container {
  position: relative;
  width: 720px;
  max-width: 90%;
  margin: auto;
  margin-top: 10rem;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 8rem; /* Leaves space above the footer */
}


.overlay-image {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.image1 { opacity: 1; z-index: 2; }
.image2 { opacity: 0; z-index: 3; }

/* Caption */
.caption {
  margin-top: 30%;
  font-size: 24px;
  font-weight: bold;
  padding: 1rem;
  left:1rem;
  z-index: 4;
  position: relative;
}

/* Footer-like container */
.fake-footer {
  padding: 20px 0;
  flex-shrink: 0;
}


  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}


.contact-item {
  display: flex;
  gap: 8px;
}



a {
  color: #F8F4FB;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

 
  .content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .image-container {
    width: 100%;
    max-width: 90%;
   
  }

  .caption {
    font-size: 1rem;
    margin-top: 22%;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
 

  .contact-item {
    justify-content: center;
  }
  #riveCanvas {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
  }
}


@media (min-width: 768px) and (max-width: 1024px) {
  .content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  #riveCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
  }

  .image-container {
    width: 90%;
    max-width: 720px;
    margin-top: 3rem;
  }

  .caption {
    font-size: 2rem;
    margin-top: 25%;
   
  }
.fake-footer{
  width: 100%;
}
  .footer-content {
    flex-direction: row;
    padding: 1rem 0;
    text-align: center;
    justify-content: space-between;
  }

  .contact-item {
    justify-content: space-between;
  }
}
