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

  html, body 
  {
    width: 100%;
    height: 100%;
    background-color: black;
    scroll-behavior: smooth;
  }

.navbar
{
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-height: 100px;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,     /* solid black from top */
    rgba(0, 0, 0, 0.9) 30%,  /* still almost black */
    rgba(0, 0, 0, 0.5) 60%,  /* fading */
    rgba(0, 0, 0, 0) 100%     /* fully transparent at bottom */
  );
}


.nav-left, .nav-right 
{
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left
{
    justify-content: flex-start;
    padding-right: 2rem;
}

.nav-right
{
    justify-content: flex-end;
    padding-left: 2rem;
}

.hamburger
{
    display: flex;
    flex-direction: column;
    justify-content: center;        
    align-items: center;  
    gap: 8px;
    cursor: pointer;
    width: 55px;
    height: 50px;
    border-radius: 3px;
}

.hamburger span
{
    width: 40px;
    height: 4.5px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
}

.hamburger-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 10px;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  border-radius: 5px;
  border-color: white;
  border: 1px solid white;
  padding: 0.5rem 1rem;
  z-index: 999;
  gap: 10px;
  min-width: 250px;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.dropdown-menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
}

.dropdown-menu a:hover {
  text-decoration: underline;
}


.hamburger-container:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-logo
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.nav-center {
  justify-content: center; 
  flex: 0 0 auto;
}

.nav-logo img
{
    width: auto;
    display: block;
    object-fit: contain; 
    height: 125px;
}

.nav-btn
{
    font-size: 1.5em;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    color: white;
}

.nav-btn:hover
{
    color: white;
    transition: all 0.4s ease;
}
.hover-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5em;
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
  transition: color 0.4s ease;
}

.hover-icon-button .airplane-icon {
  width: 50px;
  height: auto;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-icon-button:hover {
  color: white;
}

.hover-icon-button:hover .airplane-icon {
  opacity: 1;
  transform: translateX(0);
}

.hero-title {
  position: absolute;
  top: 50%;            
  left: 50%;           
  transform: translate(-50%, -50%);
  font-size: 5rem;
  letter-spacing: 0.3em;
  color: white;
  font-family: 'Carrois Gothic SC', sans-serif;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.main-layout
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.main-layout-field1, .main-layout-field2, .main-layout-field3, .main-layout-field4
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 2rem;
    z-index: 1;
}

.main-layout-field1 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.main-layout-field1 > *:not(.background-video):not(.hero-title) {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.main-layout-field2
{
    background-color: black;
    height: 45px;
    cursor: pointer;
}

.main-layout-field3
{
    height: 500px;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.main-layout-field4
{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1500px;
  overflow: hidden;
  background-color: white;
  color: black;
  flex-direction: column;
}

.main-layout-field4-h1
{
  width: 50%;
  font-size: 2em;
  font-family: 'Carrois Gothic SC', sans-serif;
  text-align: center;
  z-index: 1;
  padding-left: 50px;
}

.main-layout-field4-h1-2
{
  width: 50%;
  font-size: 2em;
  font-family: 'Carrois Gothic SC', sans-serif;
  text-align: center;
  z-index: 1;
  padding-left: 50px;
  padding-top: 300px;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px); /* slide up */
  transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


.main-layout-field5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: white;
  text-align: center;
  transition: background-color 1s ease;
  padding: 2rem;
}

.founders-title
{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
}

.founders-title h1
{
  color: white;
  font-size: 4rem;
}

.main-layout-field6
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100%;
}

.column-item1, .column-item2
{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.column-item1
{
  margin-top: 50px;
  margin-left: 100px;
}

.column-item2
{
  margin-top: 100px;
  margin-right: 100px;
}

.column-item1 h2,
.column-item2 h2
{
  color: white;
  font-style: italic;
  font-size: 2rem;
}

.column-item1 h2
{
  margin-top: 25px;
}

.column-item2 h2
{
  margin-bottom: 20px;
}

.column-item1 img,
.column-item2 img
{
  height: 400px;
  width: auto;
  border: 2px solid white; 
  margin: 10px;
}


.text-container-h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 2;
  color:  black;
  margin: 2rem 0;
  font-size: 1.4rem;
  width: 800px;
}

.text-container-p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 2;
  color:  black;
  margin: 2rem 0;
  font-size: 1.4rem;
  width: 700px;
  text-align: center;
  gap: 10px;
}

.animated-lines {
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 1s ease, background-color 1s ease;
  margin: 2rem 0;
}

.top-line,
.bottom-line
{
  align-self: center;
}

.main-layout-field5.reveal-ready {
  background-color: black;
}

/* Triggered animation */
.main-layout-field5.reveal-ready .text-container-h2 {
  opacity: 1;
  transform: translateY(0);
  color: white;
}

.main-layout-field5.reveal-ready .text-container-p {
  opacity: 1;
  transform: translateY(0);
  color: white;
}

.main-layout-field5.reveal-ready .animated-lines {
  width: 1000px;
  background-color: white;
}


.sticky-button {
  position: sticky;
  top: 0; 
  z-index: 1001;
  background-color: black;
  color: white;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;  
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
}

.sticky-button.inverted {
  background-color: white;
  color: black;
  font-weight: bold;
}

/*-------------------- THREE PICTURES ------------------*/
.diagonal-img { 
  flex: 1;
  overflow: hidden;
  position: relative;
  transition: flex 0.5s ease, z-index 0.3s ease, margin 0.3s ease;
  filter: grayscale(100%) brightness(0.7);
  cursor: pointer;
}

.diagonal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: inherit;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Left image: straight edges */
.diagonal-img.img1 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: 0;
  z-index: 3;
}

/* Middle image: straight edges */
.diagonal-img.img2 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -60px; /* initial overlap */
  z-index: 2;
}

/* Right image: straight edges */
.diagonal-img.img3 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -60px; /* initial overlap */
  z-index: 1;
}

/* Hover effect */
.diagonal-img:hover {
  flex: 1.5;
  z-index: 10;
  filter: none; /* remove grayscale and brightness */
}

/* Keep slight overlap on hover to avoid gaps */
.diagonal-img.img2:hover {
  margin-left: -35px;
}

.diagonal-img.img3:hover {
  margin-left: -35px;
}

/* Remove tint and scale image on hover */
.diagonal-img:hover img {
  filter: none;
  transform: scale(1.05);
}

/* Overlay that appears on hover */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.3); /* optional semi-transparent dark layer */
  pointer-events: none; /* so it doesn’t block hover on image */
}

/* Button style */
.discover-button {
  padding: 20px 40px;
  background-color: black;/*rgb(55, 39, 25*/
  color: white; /* rgb(255, 215, 0)*/
  border: 2px solid white; /* rgb(255, 215, 0)*/
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  pointer-events: auto; /* re-enable pointer for button */
  border-radius: 5px;
}

/* Show overlay on hover */
.diagonal-img:hover .overlay {
  opacity: 1;
}



/*-------------------- FADE IN TEXT ------------------*/
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}


/*-------------------- FOOTER ------------------*/
/* Footer stays at bottom and gets revealed naturally */

.footer-reveal {
  position: relative;
  height: 40vh;
  overflow: hidden;
}

/* The video fills the section but stays contained */
.footer-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(5px);
}

/* Text on top */
.footer-text {
  position: absolute;
  bottom: 40%;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 2rem;
  z-index: 2;
  font-family: 'Noto Serif JP', serif;
  padding: 0 2rem;
}

.footer-button {
  position: absolute;
  bottom: 15%; /* adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: 'Noto Serif JP', serif;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none; /* removes underline */
  display: inline-block;
  transition: background-color 0.3s ease;
}

.footer-button:hover {
  background-color: black;
}



/*-------------------- INTRO ------------------*/
.intro-overlay {
  position: fixed;
  inset: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: overlayFadeOut 0.8s ease forwards;
  animation-delay: 1.2s;
}

.intro-logo {
  width: 250px;
  opacity: 0;
  animation: logoFade 0.9s ease forwards;
  animation-delay: 0.3s;
}

/* Logo fades in and stays */
@keyframes logoFade {
  0% { opacity: 0; }
  55% { opacity: 1; }
  100% { opacity: 1; }
}

/* Fade out everything */
@keyframes overlayFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


@media (max-width:1500px) and (min-width: 768px)
{
  .hero-title
  {
    font-size: 4rem;
  }
}

/*--------------------------- MOBILE VIEW -----------------------*/
@media (max-width: 768px) {

  /* General Reset for mobile layout */
  html, body {
    font-size: 14px;
    margin: 0;
    padding: 0;
  }

  .hero-title
  {
    font-size: 3rem;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 2rem; /* Adjust global horizontal padding */
    width: 100%;
    box-sizing: border-box;
  }

  .nav-left, .nav-right, .nav-center {
    flex: none;
    padding: 0;
  }

  .nav-center
  {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-left, .nav-right {
    width: auto;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .nav-right
  {
    padding-left: 150px;
  }

  .nav-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-logo img {
    height: 80px;
    width: auto;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    gap: 6px;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
  }

  .nav-btn, .hover-icon-button {
    font-size: 1rem;
  }

  .dropdown-menu a {
    font-size: 1.2rem;
  }

  .hover-icon-button .airplane-icon {
    width: 20px;
  }

  .main-layout-field2
  {
    height: 50px;
  }

  .main-layout-field3 {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0;
    padding: 0;
  }

  .diagonal-img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clip-path: none !important;
    filter: none !important;
    flex: none !important;
    position: relative;
  }

  .diagonal-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: none !important;
    transform: none !important;
    display: block;
  }

  .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1 !important;
    background: none !important;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .discover-button {
    background-color: black;
    color: white;
    border: 2px solid white;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
  }

  .main-layout-field4 {
    flex-direction: column;
    height: 1100px;
    padding: 2rem 1rem;
    text-align: center;
  }

  .main-layout-field4-h1,
  .main-layout-field4-h1-2 {
    width: 100%;
    font-size: 1.5rem;
    padding: 0;
    padding-bottom: 200px;
  }

  .main-layout-field4-h1
  {
    padding-top: 100px;
  }

  .main-layout-field5 {
    padding: 1rem;
    height: auto;
    padding-bottom: 150px;
    padding-top: 150px;
  }

  .text-container-h2,
  .text-container-p {
    width: 100%;
    font-size: 1.1rem;
    margin: 1rem 0;
  }

  .main-layout-field5.reveal-ready .animated-lines {
    width: 90%;
  }

  .footer-reveal {
    height: 30vh;
  }

  .footer-text {
    font-size: 1.3rem;
    bottom: 45%;
  }

  .founders-title {
    height: 5vh;
    margin-top: 15px;
  }

  .founders-title h1 {
    font-size: 2.5rem;
  }

  .main-layout-field6 {
    grid-template-columns: 1fr;
    height: auto;
    padding: 0 1rem;
  }

  .column-item1, .column-item2 {
    /* Use flex-direction: column to stack items vertically */
    flex-direction: column;
    /* Use align-items to horizontally center the image and text */
    align-items: center;
    margin: 2rem 0;
  }

  .column-item1 h2, .column-item2 h2 {
    color: white;
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 0;
    /* This ensures the text is always below the image */
    order: 2; 
  }

  .column-item1 img, .column-item2 img {
    /* This ensures the image is always above the text */
    order: 1;
    
    height: auto;
    width: 250px;
    border: 2px solid white;
    margin: 10px;
  }
}
