/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Enriqueta:wght@400;500;600;700&display=swap');
/* Import Tropikal font */
@font-face {
    font-family: 'Tropikal';
    src: url('fonts/Tropikal.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Kepler';
    src: url('fonts/Kepler.otf') format('opentype'); /* Update file name if needed */
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Enriqueta';
    src: url('/fonts/Enriqueta-Regular.woff2') format('woff2'),
         url('/fonts/Enriqueta-Regular.woff') format('woff'),
         url('/fonts/Enriqueta-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Enriqueta';
    src: url('/fonts/Enriqueta-Bold.woff2') format('woff2'),
         url('/fonts/Enriqueta-Bold.woff') format('woff'),
         url('/fonts/Enriqueta-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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

:root {
  --dark-green: #093C34;
  --teal: #447C74;
  --light-cream: #F3E2C4;
}

/* Full height for body and html */
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Marcellus', serif;
    scroll-behavior: smooth;
}
.fade-in-element {
    opacity: 0; /* Make it invisible initially */
    transform: translateY(20px); /* Start slightly below the normal position */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition for fade and movement */
  }
  
  .fade-in-element.visible {
    opacity: 1; /* Make it visible when the class is added */
    transform: translateY(0); /* Move to the normal position */
  }
/* Default state - initially the body is invisible */
body {
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Duration of the fade-in effect */
    background-color: #d3d3d3; /* Light gray background */
    color: #333; /* Dark text color for better readability */
  }
  
  /* When the 'loaded' class is added, the opacity will be set to 1 */
  body.loaded {
    opacity: 1;
  }
  

/* Hero Section Layout */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Overlay */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

/* Tropikal font for main title */
.tropikal-font {
    font-family: 'Tropikal', serif;
    font-size: 6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.4s;
    text-shadow:
        4px 4px 15px rgba(0, 0, 0, 0.85),
        2px 2px 10px rgba(0, 0, 0, 0.7),
        0 0 5px rgba(0, 0, 0, 0.5);
}

:root {
    --dark-green: #093C34;
    --teal: #447C74;
    --light-cream: #F3E2C4;
}

.subpage-overlay {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
}

.subpage-title {
  font-family: 'Tropikal', serif;
  font-size: 7vw !important;
  font-weight: thin;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 5px;

}


.subpage-subtext {
  font-size: 1 rem;
  letter-spacing: 1px;
  margin-top: rem;
}

.subtext {
    display: block;
    font-family: 'Marcellus', serif;
    font-size: 1.4rem;
    text-transform: none;
    color: white;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
    text-shadow:
        3px 3px 12px rgba(0, 0, 0, 0.85),
        1px 1px 6px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-family: 'Marcellus', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    color: white;
    margin-top: 0.1rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 2.2s;
    text-shadow:
        4px 4px 20px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.85),
        0 0 6px rgba(0, 0, 0, 0.8);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 11vh;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* Navbar background on scroll */
.navbar.scrolled {
    background-color: var(--light-cream);
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--dark-green);
}

/* Logo Styling */
.logo a {
    display: inline-block; /* Ensures the anchor behaves like a block element */
}

.logo img {
    width: 35px; /* Adjust as needed */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1); /* Slight zoom effect */
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #222222;
}
.navbar.blurred {
    background-color: rgba(255, 255, 255, 0.05); /* subtle light tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    box-shadow: none;
  }
  
  .navbar.blurred .logo,
  .navbar.blurred .nav-links a {
    color: white;
  }
  .navbar.at-top {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  
  .navbar.at-top .logo,
  .navbar.at-top .nav-links a {
    color: white;
  }
  
/* Mobile Menu Button */
.menu-btn {
    font-size: 2rem;
    color: var(--light-cream);
    cursor: pointer;
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    background-color: #0a2f3d;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
  }
  .section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0a2f3d;
  }
  .section-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
    margin: 0 auto;
  }
  /* Title */
  #roots .section-content {
    justify-content: flex-start;
    padding-left: 5%;
  }
  /* Left Indent */
  #philosophy .section-content {
    justify-content: flex-start;
    padding-left: 10%;
  }
  /* Center */
  #name .section-content {
    justify-content: center;
    text-align: center;
  }
  /* Using same layout as philosophy for craft */
  #craft .section-content {
    justify-content: flex-start;
    padding-left: 10%;
  }
  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: transform 0.3s ease-out;
  }
  .text-content {
    flex: 0 1 50%;
    z-index: 3;
    position: relative;
  }
  .image-content {
    flex: 0 1 40%;
    z-index: 3;
    position: relative;
  }
  .image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover; /* Ensures images maintain aspect ratio while filling container */
    max-height: 400px; /* Sets a consistent maximum height */
  }
  h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 3s ease, transform 3s ease;
    letter-spacing: 2px;
    font-weight: 400;
  }
  p {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
  }
  .section.active h1,
  .section.active p {
    opacity: 1;
    transform: translateY(0);
  }
  @media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #093C34;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: fadein 0.3s ease-in-out;
    }

    .nav-links a,
    .nav-links button.about-toggle {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: none;
        text-align: left;
        width: 100%;
    }

    .dropdown-content {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
    }

    .dropdown-content.show {
        display: flex;
    }
}
.navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.blurred {
  background-color: rgba(255, 255, 255, 0.5); /* Adjust opacity as needed */
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background-color: var(--light-cream);
  color: var(--dark-green);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: #093C34;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}