/* Base styles */
html {
}

.homepage{
  zoom: 85%;
    background-color: black;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  height: auto;
  min-height: 100vh;
  overflow-y: scroll;

  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Header section with gradient background */
.header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  overflow: hidden;

  z-index: 0;
}

#title {
  position: absolute;
  top: 10%;
  left: -100px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 380px;
  color: white;
  pointer-events: none;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Subtitle styling */
#subtitle {
  position: absolute;
  top: 53%;
  left: 20px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 100px;
  color: white;
  pointer-events: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.read-more {
  display: none;
}

/* Canvas layers */
canvas.layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#layer1 {
  mix-blend-mode: screen;
  opacity: .4;
  z-index: -1;
  filter: hue-rotate(0deg) blur(130px) saturate(500%);
}

#layer2 {
  mix-blend-mode: screen;
  opacity: 0.35;
  filter: hue-rotate(60deg) blur(135px) saturate(300%);
}

#layer3 {
  mix-blend-mode: screen;
  opacity: 0.3;
  filter: hue-rotate(120deg) blur(140px) saturate(300%);
}

#layer4 {
  mix-blend-mode: screen;
  opacity: 0.25;
  filter: hue-rotate(180deg) blur(145px) saturate(200%);
}

#layer5 {
  mix-blend-mode: screen;
  opacity: 0.2;
  filter: hue-rotate(240deg) blur(150px) saturate(200%);
}

#layer6 {
  mix-blend-mode: screen;
  opacity: 0.15;
  filter: hue-rotate(300deg) blur(155px) saturate(200%);
}

#grain {
  mix-blend-mode: overlay;
  opacity: 0.05;
  filter: blur(1px);
}

/* Main content area */
.content {
  z-index: 1;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-bottom: 50px;
}

/* Transparent Header Overlay */
.overlay-header {
  z-index: 1000;
  font-family: 'Open Sans';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 0 40px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  font-weight: 600;
  color: #fff;
}

/* Gallery layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  padding: 40px;

}

.gallery-item {
  opacity: 1;
  transition: opacity 0.3s ease;
  text-decoration: none;
  z-index: 1;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  z-index: 1;
}

.gallery-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  z-index: 1;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.02);
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 18px;
  color: white;
  text-decoration: none;
  z-index: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* About page text */
.about-page-text {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  line-height: 1.6;
  max-width: 80%;
  margin: 0 auto 20px;
  background-color: #00000000;
}

.about-page-text h3 {
  font-size: 32px;
  font-weight: 600;
}

/* Timeline styles */
#timeline-container {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 80px;
  padding: 120px 0 100px;
  box-sizing: border-box;
  margin-bottom: 500px;
}

#timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #fff;
  z-index: 5;
}

.timeline-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 122px;
  z-index: 10;
}

.timeline-marker.current {
  background: rgb(0, 0, 0);
}

.connector-line {
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  z-index: 6;
}

.connector-line.above {
  bottom: calc(100% - 120px);
}

.connector-line:not(.above) {
  top: 120px;
}

.timeline-item {
  position: absolute;
  transform: translateX(-50%);
  width: 300px;
  text-align: left;
  transition: all 0.3s ease;
  z-index: 15;
}

.timeline-item.above {
  bottom: calc(100% - 120px + 70px + var(--offset-y));
}

.timeline-item:not(.above) {
  top: calc(120px + 70px + var(--offset-y));
}

.timeline-item .content {
  justify-content: center;
  padding: 20px;
  border-radius: 6px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover .content {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.timeline-item .content h4 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

.timeline-item .content .place,
.timeline-item .content .time {
  display: block;
  font-size: 1.2rem;
  margin-top: 5px;
  opacity: 0.8;
}

.timeline-title {
  font-size: 60px;
  text-align: left;
  margin-bottom: 340px;
  margin-top: 200px;
  font-family: 'Open Sans', sans-serif;
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 500px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-title {
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.photo-item:hover .photo-title {
  opacity: 1;
  transform: translateY(0);
}

/* Section title */
.title {
  font-size: 60px;
  margin-top: 200px;
}

.centered-h3 {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Contact section */
.contact-section {
  text-align: center;
  text-decoration: none;
}

.contact-section h3 {
  font-size: 60px;
  text-decoration: none;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
}

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-decoration: none;
  color: #fff;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease;
  color: #fff;
}

.contact-icon:hover {
  transform: scale(1.05);
}

.contact-icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

/* RESPONSIVE DESIGN - Tablets */
@media (max-width: 1024px) {
  #title {
    font-size: 300px;
    left: -50px;
  }

  #subtitle {
    font-size: 80px;
  }

  .about-page-text {
    max-width: 90%;
  }

  .about-page-text h3 {
    font-size: 30px;
  }

  .timeline-title {
    font-size: 40px;
    margin-bottom: 200px;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .title {
    font-size: 40px;
  }

  .contact-section h3 {
    font-size: 40px;
  }
}

/* RESPONSIVE DESIGN - Mobile Phones */
@media (max-width: 650px) {

  /* Center the header nav */
  .overlay-header {
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  /* Header section with gradient background */
  .header {
    background-color: #00000000;
  }

  body {
    background-color: #00000000;
    background-size: cover;
    background-position: center;
    transition: filter 1s ease-in-out;
  }

  /* Navigation links */
  .header-nav a {
    color: #fff !important;
    font-size: 15px;
  }

  #title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    font-size: 12vw;
    line-height: 1;
    word-break: break-all;
    text-align: center;
  }

  #subtitle {
    position: absolute;
    top: 38%;
    left: 60%;
    transform: translateX(-50%);
    font-size: 40px;
    white-space: normal;
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 15px;
    background-color: #00000000;
  }

  .gallery-item {
    width: 100%;
    max-width: none;
  }

  .gallery-meta {
    padding: 3px 0;
    font-size: 8px;
    flex-wrap: wrap;
  }

  .about-page-text {
    max-width: 95%;
    padding: 0 10px;
  }

  .about-page-text h3 {
    font-size: 15px;
    font-weight: 600;
  }

  .timeline-title {
    font-size: 30px;
    margin-bottom: 150px;
    margin-top: 100px;
  }

  .timeline-item .content h4 {
    font-size: 1.2rem;
  }

  .timeline-item .content .place,
  .timeline-item .content .time {
    font-size: 0.9rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 300px;
  }

  .photo-title {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .title {
    font-size: 30px;
    margin-top: 100px;
  }

  .contact-section h3 {
    font-size: 30px;
  }

  .contact-icon {
    font-size: 0.8rem;
  }

  .contact-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .gallery-meta {
    text-align: left;
    font-size: small;
    margin: 10px;
  }

  #timeline-container {
    width: 300px;
    margin: 20px auto;
    position: relative;
    padding: 10px 0;

  }

  #timeline-line {
    display: none;
  }

  .timeline-title {
    margin-top: 150px;
    margin-bottom: 80px;
  }

  #timeline-spine {
    left: 99px;
    transform: none;
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #fff;
  }

  .timeline-item.vertical {
    position: relative;
    display: block;
    margin-bottom: 15px;
    margin-left: calc(50% + 20px);
    width: calc(50% - 40px);
  }

  .timeline-item.vertical::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
  }


  .timeline-item.vertical::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }


  .timeline-item .content h4 {
    font-size: .7rem;
  }

  .timeline-item .content .place,
  .timeline-item .content .time {
    display: block;
    font-size: .6rem;
  }

  .contact-icon img {
    width: 20px;
    height: 20px;
  }

  .header-nav {
    gap: 30px;
  }

  .header-nav a {
    font-size: 15px;
  }

  #title {
    position: absolute;
    top: 150px;
    left: 80px;
    width: 50vw;
    font-size: 200px;
    line-height: 1;
    word-break: break-all;
    text-align: center;
  }

  #subtitle {
    position: absolute;
    top: 334px;
    left: 100px;
    transform: translateX(-50%);
    font-size: 30px;
    text-align: left;
    white-space: nowrap;
    max-width: 35vw;
    overflow: visible;
  }

  .read-more {
    display: block;
    position: absolute;
    color: #ffffff81;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4vw;
    font-weight: 200;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    z-index: 10;
    transition: opacity 1s ease;
  }

  .contact-section h3,
  .contact-icon span {
    display: none !important;
  }

  .contact-icons {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 5rem;
    margin-top: 50px;
  }

  .contact-icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 481px) and (max-width: 900px) {

  body {
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
  }
  .homepage{
    display: none;
  }


  html {
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
  }

  .gallery-meta {
    text-align: left;
    font-size: 10px;
    margin: 10px;
  }

  #timeline-container {
    width: 300px;
    margin: 20px auto;
    position: relative;
    padding: 10px 0;
  }

  #timeline-line {
    display: none;
  }

  .timeline-title {
    margin-top: 150px;
    margin-bottom: 80px;
  }

  #timeline-spine {
    left: 99px;
    transform: none;
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #fff;
  }

  .timeline-item.vertical {
    position: relative;
    display: block;
    margin-bottom: 15px;
    margin-left: calc(50% + 20px);
    width: calc(50% - 40px);
  }

  .timeline-item.vertical::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
  }


  .timeline-item.vertical::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }


  .timeline-item .content h4 {
    font-size: .7rem;
  }

  .timeline-item .content .place,
  .timeline-item .content .time {
    display: block;
    font-size: .6rem;
  }

  .contact-icon img {
    width: 20px;
    height: 20px;
  }

  .header-nav {
    gap: 30px;
  }

  .header-nav a {
    font-size: 15px;
  }


  #title {
    position: absolute;
    top: 150px;
    left: -20px;
    width: 100vw;
    font-size: 150px;
    line-height: 1;
    text-align: left;
  }

  #subtitle {
    position: absolute;
    top: 295px;
    left: 150px;
    transform: translateX(-50%);
    font-size: 25px;
    text-align: left;
    white-space: nowrap;
    max-width: 35vw;
    overflow: visible;
  }

  .read-more {
    display: none;
  }

  .contact-section h3,
  .contact-icon span {
    display: none !important;
  }

  .contact-icons {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 5rem;
    margin-top: 50px;
  }

  .contact-icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
  }
}


@media (min-width: 650px) and (max-width: 900px) {
  .overlay-header {
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .header-nav a {
    color: #fff !important;
    font-size: 15px;
  }

  #title {
    position: absolute;
    top: 100px;
    left: -20px;
    width: 80vw;
    font-size: 100px;

  }

  #subtitle {
    position: absolute;
    top: 220px;
    left: 50px;
    font-size: 40px;
  }

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

  .gallery-item {
    width: 100%;
    max-width: none;
  }

  .gallery-meta {
    padding: 3px 0;
    font-size: 8px;
    flex-wrap: wrap;
  }

  .about-page-text {
    max-width: 95%;
    padding: 0 10px;
  }

  .about-page-text h3 {
    font-size: 15px;
    font-weight: 600;
  }

  .timeline-title {
    font-size: 30px;
    margin-bottom: 150px;
    margin-top: 100px;
  }

  .timeline-item .content h4 {
    font-size: 1.2rem;
  }

  .timeline-item .content .place,
  .timeline-item .content .time {
    font-size: 0.9rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 300px;
  }

  .photo-title {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .title {
    font-size: 30px;
    margin-top: 100px;
  }

  .contact-section h3 {
    font-size: 30px;
  }

  .contact-icon {
    font-size: 0.8rem;
  }

  .contact-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  #title {
    position: absolute;
    top: 100px;
    left: -20px;
    width: 100vw;
    font-size: 220px;

  }

  #subtitle {
    position: absolute;
    top: 350px;
    left: 20;
    font-size: 40px;
  }

  .gallery-meta {
    padding: 3px 0;
    font-size: 5px;
    flex-wrap: wrap;
  }
}