@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

:root {
  --color-bg: #000;
  --color-text: #DBCFC3;
  --color-border: #aaa;
  --color-button-bg: #eae6e0;
  --color-button-bg-hover: #dcd2c4;
  --color-button-text: #362619;
  --font-one: 'Poppins', sans-serif;
  --font-two: "Montserrat", sans-serif;
}

body, html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  margin: 0;
  overflow-x: hidden;

  
}

.body-container {
  animation: fadeInBody 1s ease-in forwards;
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

*, html {
    scroll-behavior: smooth !important;
}

.header {
  display: flex;
  align-items: flex-start;
  min-height: clamp(50px, 5vw, 200px);
  z-index: 99;
}

.logo {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: clamp(30px, 3vw, 150px);
  width: auto;
}

/* =============================
   Navigation Bar
============================= */
.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(1rem, 1.3vw, 3rem) clamp(1rem, 1.3vw, 4rem);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-text);
  z-index: 100;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 1.5rem;
  width: 2.3rem; /* outer circle width */
  height: 2.3rem; /* outer circle height */
  padding: 0.5rem; /* more padding = bars are smaller and farther from border */
  background: none;
  border: 1.8px solid var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  z-index: 200;
}

.hamburger .bar {
  width: 100%;
  height: 1.5px;
  margin: 2px 0;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active .top-bar {
  transform: rotate(45deg) translateY(4px) translateX(4px);
}

.hamburger.active .middle-bar {
  opacity: 0;
}

.hamburger.active .bottom-bar {
  transform: rotate(-45deg) translateY(-4px) translateX(4px);
}

.nav-menu {
  position: fixed;
  right: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 10px 0rem;
  z-index: 10;

  animation: kenBurnsZoomOut 10s ease-out forwards;
  transform-origin: center;
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 0 clamp(1rem, 3vw, 6rem);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(1.5rem, 2vw, 3rem);
  width: clamp(0.01rem, 0.15vw, 0.1rem);
  background-color: var(--color-text);
}

.nav-menu a:last-child::after {
  content: none;
}

.nav-menu a:hover {
  color: var(--color-border);
}

a {
  text-decoration: none; 
  color: inherit;         
}

.section {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  color: var(--color-text);
  border-top: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  border-bottom: clamp(2px, 0.2vw, 4px) solid var(--color-border);
}

.page-break {
  position: relative;
  overflow: hidden;
  height: 50vh;
}

.background-video {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  /*z-index: -1;*/
  transform: translateX(-50%);
  object-fit: cover;
  object-position: bottom center;
}

.page-break-one .content,
.page-break-two .content,
.page-break-three .content {
  position: relative;
  z-index: 1;
  color: white; 
}

/* Base Grid Layouts */
.section-four,
.section-five {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-size: cover;
  background-position: center;
}

.section-five {
  border-top: 0;
}

.section-one,
.section-two,
.section-three {
  background-size: cover;
  background-position: center;
}

/* Panel Styling */
.section-four .left-panel,
.section-four .right-panel,
.section-five .left-panel,
.section-five .right-panel,
.section-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: clamp(1.5rem, 4vw, 6rem);
  min-width: 42vw;
}

.section-five .right-panel {
  border-left: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  z-index: 10;
}

.section-four .left-panel {
  background: rgb(0, 0, 0);
  border-right: clamp(2px, 0.2vw, 4px) solid var(--color-border);
}

.section-four .right-panel {
  background-image: url(../images/homepagebg4.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-one .right-panel {
  align-items: center;
}

.section-one {
  background-image: url(../images/homepagebg2.jpg);
}

.section-two {
  background-image: url(../images/homepagebg3.jpg);
}

.section-three {
  background-image: url(../images/homepagebg5.jpg);
}

/* Section Title */
h1 {
  font-family: var(--font-one);
  font-weight: 700;
  font-style: normal;        
  border-bottom: clamp(0.5px, 0.15vw, 5px) solid var(--color-border);
  padding-bottom: 3rem;
  text-align: left;
  font-size: clamp(2rem, 3vw, 6.5rem);
  line-height: clamp(2.5rem, 4vw, 8.5rem);
}

h2 {
  font-family: var(--font-one);    
  font-size: clamp(1rem, 1vw, 4.5rem);
  font-weight: 300;
  font-style: normal;
}

p {
  font-family: var(--font-two);
  font-size: clamp(1rem, 1.1vw, 2.8rem);
  text-align: left;
  margin-bottom: 30px;
  line-height: 1.3;
}

.section-one h1,
.section-one p {
  width: 100%;
}

.section-five h1,
.section-five p {
  width: 60%;
}

.section-title {
  grid-column: span 2;
  padding-bottom: 0;
  position: relative;
}

.section-one,
.section-two,
.section-three {
  padding: clamp(3rem, 5vw, 14rem) 3rem;
  height: fit-content;
  position: relative;
}

.column-wrapper {
  height: fit-content;
  overflow: hidden;
}

.column-flow {
  height: auto;
  column-count: 2;
  column-gap: 6rem;
  padding: 0 clamp(4rem, 5vw, 12rem);
}

.section-one .column-wrapper {
  width: auto;
}

.section-one .column-title {
  max-width: 100%;
  box-sizing: border-box;
}

.section-one .column-flow {
  display: flex;
  flex-direction: row;
  column-count: auto;
}

.section-one-text {
  max-width: 50%;
}

.section-one-img {
  width: 100%;
}

.section-one-img img {
  max-height: 60vh;
  margin-right: 6rem;
  height: auto;
  object-fit: contain;
}

.column-title {
  margin-top: 0;
  padding: 0 clamp(4rem, 5vw, 12rem);   
}

.column-flow p {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    width: 100%; 
    box-sizing: border-box;
    margin-top: auto;
}

.column-flow img {
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.homepage-image-two {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}


/* Image Responsiveness */


/* Button Styling */
.button-container {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 99;
}

button {
  width: clamp(13rem, 18vw, 42rem);
  height: clamp(3.8rem, 5.5vw, 12.5rem);
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  border: none;
  cursor: pointer;
  font-family: var(--font-one);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 8rem);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}



.right-arrow {
  width: clamp(1rem, 2vw, 2.5rem);    
  height: auto; 
  stroke: var(--color-button-text);
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease, stroke 0.3s ease;
  cursor: pointer;
  padding-left: 1rem;
}

.right-arrow path {
  stroke: var(--color-button-text);
}

.button-container :hover {
  color: var(--color-text);
  background-color: var(--color-button-text);
}

.button-container:hover .right-arrow path {
  stroke: var(--color-text);
}

.footer {
  background-color: var(--color-bg);
  padding: clamp(1rem, 2vw, 3rem);
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
}

.footer-logo {
  height: clamp(30px, 3vw, 150px);
  width: auto;
  display: block;
}

#transition-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.297); /* optional dimming */
  opacity: 0;
  pointer-events: none;
  z-index: 9999; /* make sure it's on top */
  transition: backdrop-filter 1.5s ease, opacity 1.5s ease, background 1.5s ease;
}

#transition-overlay.overlay-fade {
  opacity: 1;
  backdrop-filter: blur(30px);
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.section.bg-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.section-five.bg-fade::before {
  background-image: url(../images/homepagebg1.jpg); 
}

.section.bg-fade.fade-background::before {
  opacity: 0;
}

.content-fade {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 3s ease-in-out;
}

.content-fade.fade-out {
  opacity: 0;
}


/* Responsive Media Queries using Bootstrap breakpoints */
@media (max-width: 1024px) {
  .nav-menu {
    position: absolute;
    top: 4rem;
    right: 15rem;
    transform: translateX(50%);
    background: rgba(54, 38, 25, 0.34); /* semi-transparent glass */
    backdrop-filter: blur(8px); /* frosted glass effect */
    border: 1px solid var(--color-text);
    padding: 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    width: 250px;
    max-width: 300px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    animation: none;
  }

  /* Show the menu when open */
  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    position: relative;
    display: inline-block; /* ensures the element wraps the text content */
    text-align: center;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
  }

  .nav-menu a::after {
    position: relative;
    justify-items: center;
    align-items: center;
    text-align: center;
    content: "";
    display: inline-block;
    margin-top: 1.5rem;
    width: 2rem;
    height: 1.5px;
    background-color: var(--color-text);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .section {
    min-height: 50vh;
  }

  .section-one {
    height: auto;
    padding: clamp(3rem, 7vw, 14rem) 3rem;
  }

  .section-two, 
  .section-three {
    height: fit-content;
    padding: clamp(3rem, 7vw, 14rem) 3rem;
  }

  .section-one .column-wrapper {
    height: auto;
    min-width: auto;
    width: 100%;
  }

  .section-one-text {
    max-width: 45%;
  } 

  .column-wrapper {
    height: auto;
  }

  .column-title {
    padding: 0;
  }

  .column-flow {
    padding: 0;
  }

  .column-flow p {
    padding: 0;
  }

  .page-break {
    height: 30vh;
  }
 
}

@media (max-width: 768px) {
  .section {
    min-height: auto;
    padding: 0;
  }

  .section-one,
  .section-four,
  .section-five {
    grid-template-columns: 1fr;
    padding: 0 3rem;
  }

  .section-one {
    height: auto;
    padding: clamp(3rem, 7vw, 14rem) 3rem;
    overflow-x: hidden;
  }

  .section-one .column-title {
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-one .column-flow {
    display: flex;
    flex-direction: column;
    column-count: auto;
    height: auto;
    margin-bottom: auto;
    max-width: fit-content;
  }

  .section-one-text {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .section-one-img {
    height: 50vh;
  }

  .section-one-img img {
    position: absolute;
    left: 0;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-right: 0; 
    padding: 0;  
    margin-bottom: auto;
    object-fit: cover;
    border-top: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  }


.section-two,
.section-three {
    display: block;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: row;

    height: auto;
}

.column-wrapper::-webkit-scrollbar {
  display: none;
}

  .column-wrapper {   
    height: auto;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 0 1rem;
    overflow-x: hidden;
    position: relative;

    overflow-x: auto;
    overflow-y: hidden; /* IMPORTANT */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 0; /* Forces new stacking context */
    will-change: scroll-position; /* Hints better scroll handling */
    contain: layout style; /* Helps isolate */
  }

.column-title {
  position: relative;
  width: 80%;
  padding: 1rem 1.5rem;
  z-index: 10;
  margin-bottom: 1rem;
}

.column-flow {
  column-width: 300px;
  height: 60vh;
  column-count: 3;
  column-gap: 0;
  margin-bottom: 3rem;
  padding-right: 1rem;
  padding: 0rem 1.5rem; /*follow column-title*/

  display: block;
  width: fit-content;
  max-width: 100%;
}

.column-flow p{
  break-inside: avoid;
  margin-bottom: 2rem;
}

.section-two .column-flow p,
.section-three .column-flow p {
  padding-right: 4rem;
} 

.homepage-image-two {
  display: none;
}



  .section-four,
  .section-five {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .section-five {
    position: relative;
  }

  .section-four .left-panel {
    padding: 2rem 2rem;
    align-items: flex-start !important;
    background: var(--color-bg);
    border-right: 0;
    border-bottom: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  }

  .section-four .right-panel {
    background-image: url('../images/homepagebg4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 30vh;
  }
  
  .section-five.bg-fade::before {
    position: relative;
    background-image: url(../images/homepagebg1.jpg); 
    height: 50vh;
    background-position: left;
  }

  .section-five .left-panel {
    padding: 0%;
  }

  .section-five .right-panel {
    order: -1;
    padding: 0 2rem;
    height: 50vh;
    border-left: 0;
    border-bottom: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  }

  .section-title {
    grid-column: span 1;
  }


  h1 {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-menu {
    position: absolute;
    top: 4rem;
    right: 13rem;
    transform: translateX(50%);
    background: rgba(54, 38, 25, 0.34); /* semi-transparent glass */
    backdrop-filter: blur(8px); /* frosted glass effect */
    border: 1px solid var(--color-text);
    padding: 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    width: 250px;
    max-width: 300px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    animation: none;
  }

  /* Show the menu when open */
  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    position: relative;
    display: inline-block; /* ensures the element wraps the text content */
    text-align: center;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
  }

  .nav-menu a::after {
    position: relative;
    justify-items: center;
    align-items: center;
    text-align: center;
    content: "";
    display: inline-block;
    margin-top: 1.5rem;
    width: 2rem;
    height: 1.5px;
    background-color: var(--color-text);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .section-one {
    padding: 0;
  }

  .section-one .right-panel img {
    display: none;
  }

  .section-one .right-panel {
    background-image: url(../images/Dickinsonia\ Barb.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 30vh; 
    width: 100%;
    border-top: clamp(2px, 0.2vw, 4px) solid var(--color-border);
  }


.section-five h1,
.section-five p {
  width: unset;
}
}
