body{
    height: 100vh;
}

.panel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.panel-content {
    position: relative;
    height: 100%;
}

.panel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.caption-box {
    font-family: "Walter Turncoat", cursive;
    position: absolute;
    top: 30%;
    left: -60%;
    transform: translate(60%, 60%);
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    font-size: 1.75rem;
    border-radius: 8px;
    opacity: 0;
    z-index: 2;
    padding: 5px;
    padding-left: 50px;
}

/* All bubbles start invisible, positioned absolutely using trig */
.speech-bubble {
    position: absolute;
    opacity: 0;
    background: white;
    color: black;
    padding: 1.5rem;
    border-radius: 15px;
    max-width: 30%;
    border: #222222 solid 1px;
    box-shadow: rgb(38, 57, 77) 0px -20px 30px -10px;
    font-family: "Walter Turncoat", cursive;
    z-index: 3;
    font-size: 1.5rem;
}

.bubble-1 {
    top: 8%; left: 7%; /* 140° */
}
.bubble-2 {
    top: 25%; right: 12%; /* 20° */
}
.bubble-3 {
    bottom: 30%; right: 5%; /* 315° */
}
.bubble-4 {
    top: 40%; left: 12%;
}
.bubble-5 {
    bottom: 20%;
    left: 30%;
}


.title-container{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #222222;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-content: center;
    color: dimgray;
}

.aardvark-title{
    display: flex;
    font-size: 5em;
    justify-content: center;
    align-content: center;
    font-family: "Poppins", sans-serif;
}

.fade-to-white {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.next-section {
    background: blue;
    color: black;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    position: relative;
    width: 100vw;
    height: 100vh;
}


.next-content {
    display: flex;
    width: 100%;
    height: auto;
}

.logo-container{
}

.aardvark-logo {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: fit-content;
    z-index: 1;
    margin-top: 18%;
    padding-left: clamp(50px, 5%, 150px);
    padding-right: clamp(25px, 50px, 51px);
    /*margin-left: clamp(50px, 5%, 200px);*/
}

.aardvark-logo h1{
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: clamp(70px, 5.5vw, 100px);
    text-align: left;
    width: 100%
}

.aardvark-logo h2{
    color: #F4FF41;
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 350;
    font-style: normal;
    font-size: clamp(30px, 2.5vw, 50px);
    margin-top: -40px;
    text-align: right;
    width: 100%
}

.tagline{
    width: 90vw;
    text-align: left;
    margin-bottom: 10%;
}

.tagline h3{
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
}

/* Video background styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire container */
    z-index: 0;
}
.nav-container{
    display: flex;
    margin: 0;
    align-content: flex-start;
    color: darkgray;
    z-index:2;
}

.spacer{
    margin-top: 5%;
}

/* Custom sidenav container */
.custom-sidenav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: clamp(110px, 8.75%, 130px);
    background-color: #59585f;
    display: flex;
    flex-direction: column;
    /*gap: 3px;*/
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    height: 100vh;
    z-index: 2;
}

/* Sidebar buttons */
.sidenav-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    /*padding: 10px 10px;*/
    color: #222222;
    background-color: #F4FF41;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s, color 0.2s;
    height: clamp(70px, 12%, 100px);
}

.sidenav-btn .hover-text{
    display: none;
}

.sidenav-btn.active {
    background-color: #222222;
    color: #F4FF41;
    border-left: 5px solid #00aaff;
}

.sidenav-btn:hover {
    background-color: #00aaff;
    color: white;
}

.sidenav-btn:hover .hover-text{
    display: inline;
    font-weight: 600;
}

.sidenav-btn:hover .default-text{
    display: none;
}

.sidenav-btn:hover i{
    display: none;
}

.sidenav-btn i{
    margin: 0;
    padding: 0;
    margin-bottom: 3px;
}

.sidenav-btn p{
    margin: 0;
    padding: 0;
}

.body-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 0;
    /*border: white solid 10px;*/
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.home{
    display: flex;
    flex-direction: column;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/*.why{*/
/*    display: flex;*/
/*    width: 100%;*/
/*    height: 100vh;*/
/*    background-color: #e0e0e1;*/
/*    padding-left: clamp(30px, 5%, 60px);*/
/*    padding-top: 3vh;*/
/*    padding-bottom: 3vh;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    gap: 30px;*/
/*    scroll-snap-align: start;*/
/*    scroll-snap-stop: always;*/
/*    border: black solid 8px;*/
/*}*/
.why{
    display: flex;
    background-color: white;
    height: 100vh;
    width: 100%;
    /*overflow: hidden;*/
}
.why img{
    object-fit: fill;
    width: 100%;
    height: 100%;
}

.why-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: white solid 2px;
    border-radius: 10px;
    height: 90vh;
    width: 30%;
    padding: clamp(8px, 20px, 25px)
}

.why-box h1{
    color: #001c45;
    font-size: clamp(2.25vw, 2.75vw, 3.25vw)
}

.values{
    border: #F4FF41 solid 2px;
    width: 100%;
    height: 100%;
}

.first-column{
    width: clamp(110px, 8.75%, 130px);
}

.button-container{
    /*position: relative;*/
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0%;
}

.button-container button{
    background-color: #001c45;
    color: white;
    width: 200px;
    height: 70px;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    font-weight: 400;
    margin-top: 75px;
    font-size: larger;
}

/* Styles for when animation is complete */
body.animation-complete {
    overflow: hidden; /* Prevent scrolling */
}

/* When animation completes, next-section becomes the main content */
body.animation-complete .next-section {
    position: fixed !important; /* Use !important to override any other positioning */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 9999 !important; /* Extremely high z-index */
    opacity: 1 !important;
    overflow: hidden;
}

/* Force the initial panel to be hidden */
body.animation-complete .panel:not(.next-section) {
    display: none !important;
}

/* Hide the fade-to-white and cold-open elements */
body.animation-complete .fade-to-white,
body.animation-complete .cold-open-wrapper {
    display: none !important;
}

/* Ensure content inside next-section can scroll if needed */
body.animation-complete .next-content {
    height: 100vh;
    /*max-height: 100vh; !* Limit height to viewport *!*/
    position: relative;
    z-index: 10000; /* Even higher z-index for content */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow: hidden
}

body.animation-complete .next-content .aardvark-logo{
    visibility: visible;
}

/* Make sure the actual content container allows scrolling */
body.animation-complete .next-section .body-container,
body.animation-complete .next-section .w3-padding-large,
body.animation-complete .w3-content {
    height: 500vh !important;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll !important;
}

/* Additional fix for potential GSAP issues */
body.animation-complete .panel {
    position: static !important; /* Override any GSAP pinning */
}

@font-face {
    font-family: 'Komika-Slick';
    src: url('komika.slick.ttf') format('truetype');
    /* Optional descriptors: */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Komikaze';
    src: url('komikaze.ttf') format('truetype');
    /* Optional descriptors: */
    font-weight: normal;
    font-style: normal;
}

