/* 1. Core Layout & Fonts */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* Enable native smooth scrolling ONLY for non-desktop devices */
@media (max-width: 1024px) {
    html {
        scroll-behavior: smooth;
        /* Restore native momentum on iOS/Android */
        -webkit-overflow-scrolling: touch; 
    }
}

/* Ensure Lenis doesn't fight with CSS on Desktop */
@media (min-width: 1025px) {
    html.lenis {
        height: auto;
    }
    .lenis.lenis-smooth {
        scroll-behavior: auto !important;
    }
}

.state-container {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* --- Splash Screen Styles --- */
body.loading-active {
    overflow: hidden !important;
    height: 100vh !important;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Wrapper to center donut on image */
.splash-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#splash-image {
    filter: grayscale(calc(100% - var(--load-progress, 0%))) brightness(1.2);
    transition: filter 0.2s linear; /* Smooth micro-steps */
    max-width: 40vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* We don't need the .colored class anymore, but keeping it for safety */
#splash-image.colored {
    filter: grayscale(0%) brightness(1.2);
}

/* The Loader - Perfectly centered via absolute positioning */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #444;
    border-top: 8px solid #0EA63C;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    #splash-image { max-width: 55vw; max-height: 55vh; }
}

@media (max-width: 600px) {
    #splash-image { max-width: 75vw; max-height: 40vh; }
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.dashed-line,
#mobile-line-svg,
#tablet-line-svg {
    will-change: transform, opacity;
    transform: translateZ(0);
}

html.noscroll,
body.noscroll {
    overflow: hidden;
}

/* --- SCROLL TUTORIAL STYLES --- */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Higher than everything */
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: all; /* Captures clicks to prevent background interaction */
}

.tutorial-content {
    text-align: center;
    color: white;
}

.tutorial-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 30px;
}

.mouse-icon {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    position: relative;
}

.arrow-up {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    animation: nudgeUp 1.5s infinite ease-in-out;
}

@keyframes nudgeUp {
    0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); opacity: 0.2; }
    50% { transform: translateX(-50%) rotate(45deg) translate(-10px, -10px); opacity: 1; }
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 600px) {
    .tutorial-overlay {
        padding: 0; /* Reset overlay padding to prevent offset */
        left: 0;
        width: 100vw;
    }

    .tutorial-content {
        width: 90%;      /* Take up 90% of screen width */
        margin: 0 auto;  /* Force center horizontally */
        left: 0;
        right: 0;
    }

    .tutorial-text {
        font-size: 0.85rem; 
        letter-spacing: 1.5px; 
        line-height: 1.6;
        margin-top: 25px;
        padding: 0 5%;   /* Internal breathing room */
        display: block;
    }

    .mouse-icon {
        height: 40px; 
        width: 1px;   
        display: block;
        margin: 0 auto; /* Ensure the line is dead center */
    }

    .arrow-up {
        width: 8px;   
        height: 8px;
        border-width: 1.5px; 
        /* Ensure the absolute positioning centers correctly */
        left: 50%;
        transform: translateX(-50%) rotate(45deg); 
    }
}

/*background colors*/
body {
    margin: 0;
    /* We use 'linear-gradient' on the body to ensure zero gaps */
    background: linear-gradient(
        to bottom,
        #ffffff 0%,     /* TOP: Summit Group */
        #ffffff 20%,    /* Solid White for first 20% of page */
        
        #e4effe 35%,    /* High Peaks Group Starts */
        #e4effe 45%,    /* Solid Blue in the middle of that group */
        
        #f4ffe8 60%,    /* Mid-Range Group Starts */
        #f4ffe8 75%,    /* Solid Green stretching through the mid-bottom */
        
        #fbf0de 88%,    /* Base Group Starts (Una / Landing) */
        #fbf0de 100%    /* Solid Cream at the bottom */
    );
    background-attachment: scroll;
    background-repeat: no-repeat;
}

/* IMPORTANT: Ensure there are NO other backgrounds blocking the body */
#landing-page-container,
.top-content-wrapper,
.state-content-sections,
.state-container,
.footer,
.top-scroll-spacer {
    background-color: transparent !important;
}

/* Remove any potential gaps between sections */
.state-container {
    margin-bottom: 0 !important;
    padding-bottom: 80px !important; /* Use padding instead of margin for spacing */
}

/* Preserve your landing page image mask */
#landing-page-container::before {
    background-color: transparent !important;
    z-index: -1; 
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
}

body.noscroll {
    overflow: hidden;
}

.top-scroll-spacer {
    display: none;
    width: 100%;
}

@media (min-height: 1200px){
    .top-scroll-spacer {
        display: block;
        height: 5vh;
    }
}

@media (min-height: 1600px){
    .top-scroll-spacer {
        display: block;
        height: 10vh;
    }
}

@media (min-height: 2500px){
    .top-scroll-spacer {
        display: block;
        height: 15vh;
    }
}

.top-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
}

.state-content-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    flex-grow: 1;
    background-color: transparent;
}

.content-section-spacer {
    height: 10vh;
    width: 100%;
}

.dashed-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1693px;
    height: auto;
    z-index: 0;
}

#Line {
    stroke-dasharray: 20;
}

.dashed-line-center {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- NEW CSS FOR MOBILE SVG --- */

#mobile-line-svg {
    display: none;
    width: 100%;
    height: 100%;
}

@media (max-width: 500px) {
    .dashed-line .dashed-line-center {
        display: none;
    }

    #mobile-line-svg {
        display: block;
    }

    #mobile-line-path {
        stroke-dasharray: 15;
        stroke-dashoffset: 1;
    }

    #svg-tip-counter {
        transition: top 0.05s linear,
                    opacity 0.3s ease,
                    transform 0.1s linear;
    }
}

/*FOOTER*/
/* --- Simplified Footer Styles --- */

/* --- Main Footer Container --- */
.footer {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 3000px;
    height: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    z-index: 1;
    padding-bottom: 93.11%;
}

/*
  1. STYLING FOR THE COPYRIGHT CONTAINER
*/
.footer-copyright {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


/*
  2. STYLING FOR THE TEXT AND PREPARING FOR ANIMATION
*/
.footer-copyright p {
    margin: 0;
    color: black;
    font-size: 0.9em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    padding-bottom: 5px;
    cursor: default;
}


/*
  3. CREATING THE ANIMATED UNDERLINE
*/
.footer-copyright p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background-color: #333;
    width: 0;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-copyright p:hover::after {
    width: 100%;
}

/* --- Main Content (Text + Links) --- */
.footer-main-content {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 50%;
    max-width: 1100px;
    justify-content: space-around;
    text-align: left;
    color: #262626;
}

@media (max-width: 2000px) {
    .footer-main-content {
        top: 18%;
    }
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

.footer-column a i {
    margin-left: 8px;
    color: #555;
    transition: color 0.3s, transform 0.3s;
}

/*
  1. THE UNDERLINE'S DEFAULT STATE
*/
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 200%;
    background-color: #ffffff;
    background-image: linear-gradient(#262626, #262626);
    background-repeat: no-repeat;
    background-size: 40% 100%;
    transition: background-size 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}


@media (max-width: 768px) {

    .footer {
        height: auto;
        padding-top: 13rem;
        padding-bottom: 8rem;
        justify-content: flex-start;
    }

    .footer-main-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: column-reverse;
        align-items: flex-start;
        width: 85%;
        padding-left: 5%;
        gap: 20px;
    }

    .footer .layer-3,
    .footer .layer-4 {
        display: none;
    }

    .footer-column {
        text-align: left;
        width: 100%;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column h4::after {
        left: 0;
        transform: none;
        width: 120%;
    }

    .footer-column ul li {
        font-size: 0.8rem !important;
    }

    .footer-column ul {
        gap: 10px;
    }
}


/*
  2. THE UNDERLINE'S ACTIVE STATE (Triggered by JavaScript)
*/
.footer-column h4.is-active::after {
    background-size: 100% 100%;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column ul li {
    margin: 0;
    font-size: 1.2rem;
}

.footer-column a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #6f6f6f;
}

/* --- Background Image Layer Containers --- */
.parallax-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-layer img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Z-index Stacking Order --- */
.layer-1 { z-index: 1; }
.layer-2 { z-index: 2; }
.layer-3 { z-index: 3; }
.layer-4 { z-index: 4; }
.layer-5 { z-index: 5; }


/* --- Definitive Control Panel for Image Layers --- */

.layer-1 img {
    position: absolute;
    width: 100%;
    height: 46%;
    bottom: 60%;
    left: 0;
    object-fit: cover;
}

.layer-2 img {
    position: absolute;
    width: 100%;
    height: 80%;
    bottom: 23%;
    left: 0;
    object-fit: cover;
}

.layer-3 img {
    position: absolute;
    width: 100%;
    height: 67%;
    bottom: 15%;
    left: 0;
    object-fit: cover;
}

.layer-4 .figure-left,
.layer-4 .figure-right {
    position: absolute;
    width: 20%;
    height: auto;
    bottom: 15%;
    object-fit: contain;
}

.layer-4 .figure-left {
    left: 0;
}
.layer-4 .figure-right {
    right: 0;
}

.layer-5 img {
    position: absolute;
    width: 100%;
    height: 40%;
    bottom: 10%;
    left: 0;
    object-fit: cover;
}

/* --- General Responsive Tweaks --- */
@media (max-width: 768px) {
    .footer-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-height: 2500px) {
    .footer-main-content {
        margin-top: 0% !important;
    }
}

.top-scroll-spacer {
    height: 10vh;
}
/* 2. Landing Page & Header */
#landing-page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: white;
    isolation: isolate;
}

#landing-page-container::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 75%;
    z-index: -1;
    background-image: url('img/header.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mask-image: linear-gradient(to top, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 15vh;
    flex-shrink: 0;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.link-disabled {
    position: relative;
    display: inline-block;
}

.link-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #382F30;
    transform: rotate(-10deg);
    pointer-events: none;
    opacity: 0.6;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15%;
    min-height: 30px;
    position: relative;
    font-size: 0.9em;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #4a4a4a;
    left: 10%;
    right: 10%;
}

.top-bar p {
    margin: 0;
    color: black;
    font-size: 1.2em;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex-grow: 1;
}

.logo img {
    height: 130px;
    padding: 0 10px;
    padding-top: 10px;
}

.navbar .logo img {
    cursor: pointer;
}

.main-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 20px;
    flex: 1;
    align-items: center;
}

.nav-left {
    justify-content: space-evenly;
}

.nav-right {
    justify-content: space-evenly;
}

.main-nav a {
    text-decoration: none;
    color: black;
    font-weight: 150;
    font-size: 1.1em;
    padding: 20px;
    font-family: Helvetica, Arial, sans-serif;
    transition: color 0.3s ease-out;
}

.main-nav a:hover {
    color: #7d7d7d;
}

.main-nav a.active {
    color: #7d7d7d;
    pointer-events: none;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 1100;
}

.content-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: transparent;
    padding-top: 30vh;
    box-sizing: border-box;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -7%;
    gap: 10vw;
}

.overlay-image {
    width: 15vw;
    height: auto;
    max-width: 400px;
    min-width: 180px;
}

.content-area {
    position: relative;
}

/* --- NEW OVERLAY BUTTON STYLES WITH BOUNCE ANIMATION --- */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes stopBounce {
    to {
        transform: translateY(-4px);
    }
}

.overlay-button {
    padding-bottom: 10px;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 2000px) {
    .button-wrapper{
        bottom: 12% !important;
    }
}

@media (max-width: 1024px){
    .button-wrapper{
        bottom: 16% !important;
    }
}

.button-icon-svg {
    width: 28px;
    height: 28px;
    color: white;
    animation: bounce 1.8s infinite ease-in-out;
    transition: transform 0.3s ease-out;
}

.button-text {
    color: white;
    /* font-weight: 600; */
    font-size: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
    /* -webkit-text-stroke: 0.6px black; */
}

.overlay-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: white;
    width: 0;
    transition: width 0.4s ease-out;
}


.overlay-button:hover::after {
    width: 100%;
}

.button-wrapper {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.button-wrapper::before {
    content: '';
    position: absolute;
    inset: 0px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 30px;
    z-index: -1;
}
/* 3. States Section */
.state-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 1610px;
    margin: 0 auto 40px;
    padding: 2rem 5%;
    max-height: 740px;
    gap: 13rem;
}

@media (max-width: 1366px) and (min-width: 1025px) {
    .state-container {
        gap: 4rem;
        padding-left: 3%;
        padding-right: 3%;
    }

    .info-column h2 {
        font-size: 3rem;
        padding: 4rem 6rem 1rem 1rem;
    }

    .header-12 {
        padding: 4rem 10rem 1rem 1rem;
    }

    .info-column p {
        font-size: 1rem;
    }
}

.state-container--split.reverse {
    flex-direction: row-reverse;
}

.info-column {
    flex: 0 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 0 3rem 0;
    position: relative;
}

.h2-popup {
    position: absolute;
    top: 3.6rem;
    left: 8vw;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.h2-popup.visible {
    opacity: 1;
    transform: translateY(0);
}

.h2-popup span {
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
    top: 8px;
}

.h2-popup img {
    height: 50px;
    width: auto;
    filter: brightness(0.3);
}

/* Container for the clouds to sit in */
.cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows users to click buttons 'through' the clouds */
    z-index: 5;           /* Sits above the background but below the popup text */
    overflow: hidden;
}

.cloud-item {
    position: absolute;
    width: 80px;         /* Adjust based on your cloud image size */
    opacity: 1;
    /* filter: blur(2px); */
    animation: float-around 8s ease-in-out infinite alternate;
}

/* Individual Cloud Variations */
.cloud-1 { top: 10%; left: 5%; animation-duration: 15s; width: 150px; }
.cloud-2 { top: 25%; right: 10%; animation-duration: 8s; animation-delay: -2s; width: 100px;}
.cloud-3 { top: 10%; left: 1%; animation-duration: 9s; animation-delay: -4s; width: 120px;}
.cloud-4 { top: 65%; right: 5%; animation-duration: 14s; width: 200px; }
.cloud-5 { top: 15%; left: 40%; animation-duration: 11s; opacity: 0.4; }

/* Idle Floating Animation */
@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -15px) rotate(1deg);
    }
    100% {
        transform: translate(-15px, 10px) rotate(-1deg);
    }
}

/* Mobile Tweaks: Make clouds smaller */
@media (max-width: 600px) {
    .cloud-item { width: 120px; opacity: 1; }
    .cloud-1 {
        top: 11% !important;
    }
    .cloud-4 {
        top: 8% !important;
    }
    .cloud-3 {
        top: 3% !important;
    }
    .cloud-2 {
        top: 16% !important
    }
}

@media (min-width: 601px) and (max-width: 1024px){
    .cloud-2 {
        top: 15% !important;
    }
    .cloud-3 {
        top: 5% !important;
        left: 30% !important;
    }
}

.image-column {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

/* Update the selector to include the wrapper so both animate together */
.state-container .info-column .header-wrapper,
.state-container .info-column > p,
.state-container .info-column > .info-button {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease-out, filter 0.6s ease-out;
}

/* Final state */
.state-container.is-visible .info-column .header-wrapper,
.state-container.is-visible .info-column > p,
.state-container.is-visible .info-column > .info-button {
    opacity: 1;
    filter: blur(0px);
}

/* --- New Header Image & Alignment Logic --- */
.header-wrapper {
    display: flex;
    align-items: flex-end; /* Ensures both sit on the same bottom Y-level */
    gap: 15px;             /* Space between the text and the PNG */
    width: 100%;
}

.thin-content-image {
    height: 20px;          /* Adjust height as needed for your specific PNG */
    width: auto;
    margin-bottom: 32px;   /* Fine-tune this to match the text baseline exactly */
    display: block;
    margin-left: -12rem;
}

/* --- Hide Altitude Values without removing from DOM --- */
/* .altitude-value, 
.altitude-unit {
    opacity: 0 !important;
    pointer-events: none;  
    visibility: visible;
} */

/* Responsive adjustment for Mobile */
@media (max-width: 600px) {
    .header-wrapper {
        display: flex;
        flex-direction: column; /* Stacks the image under the text */
        align-items: flex-start;  /* Aligns both to the left edge */
        gap: 5px;               /* Space between the text and the image below it */
    }

    .info-column h2 {
        /* Resetting massive paddings for a cleaner stack */
        padding: 2.5rem 0 0 0 !important; 
        margin-bottom: 0;
        display: block;
    }

    .thin-content-image {
        height: 15px;           /* Adjust size as needed for the under-header look */
        width: auto;
        margin-left: 0;         /* Ensures it starts at the left edge */
        margin-bottom: 15px;    /* Space between the image and the paragraph (p) */
        display: block;
    }
}

@media (max-width: 1024px) and (min-width: 601px){
    .thin-content-image {
        margin-left: -3rem !important;
        height: 15px !important;
    }
}

.image-column img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transform: scale(1.1);
    transition: transform 0.4s ease-out;
}

.info-column h2 {
    font-size: 4rem;
    font-family: "Shadows Into Light Two", cursive;
    display: inline-block;
    color: black;
    border-radius: 8px;
    margin: -1rem 0 0 0;
    padding: 6rem 13rem 1rem 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 25% 50%;
}

.header-1 { background-image: url('img/lh bg.webp'); }
.header-2 { background-image: url('img/Kin bg.webp'); }
.header-3 { background-image: url('img/cha bg.webp'); }
.header-4 { background-image: url('img/Kul bg.webp'); }
.header-5 { background-image: url('img/Shm bg.webp'); }
.header-6 { background-image: url('img/Kang bg.webp'); }
.header-7 { background-image: url('img/Sir bg.webp'); }
.header-8 { background-image: url('img/Man bg.webp'); }
.header-9 { background-image: url('img/Sol bg.webp'); }
.header-10 { background-image: url('img/Bil bg.webp'); }
.header-11 { background-image: url('img/Hamir bg.webp'); }
.header-12 {
    background-image: url('img/Una bg.webp');
    padding: 6rem 20rem 1rem 1.5rem;
}

.info-column p {
    margin: 0 0 1.5rem 0;
    padding-left: 1.8rem;
    font-size: 1.1rem;
    max-width: 60ch;
}

.info-button {
    background-color: transparent;
    color: #0EA63C;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #0EA63C;
    margin-left: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-out;
}

.info-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0EA63C;
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
    z-index: -1;
}

.info-button:hover {
    color: white;
}

.info-button:hover::before {
    transform: translateX(0);
}

@media (min-width: 1025px) {
}

/* 4. UI Elements */
#scrollToBottomBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
}

#scrollToBottomBtn:hover {
    background-color: #555;
    transform: scale(1.1);
}

#scrollToBottomBtn.raised {
    bottom: calc(10vh + 25px);
}

#scrollToBottomBtn.is-hidden-by-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* 5. Responsive Layout Rules */
@media (max-width: 600px) {
    #landing-page-container {
        min-height: 90vh;
    }

    .dashed-line-center,
    #tablet-line-svg {
        display: none;
    }

    .top-content-wrapper {
        position: static;
        width: 100%;
    }

    .state-container {
        position: static;
        margin-bottom: 7rem;
        padding: 0;
        max-height: none;
    }

    header { height: auto; padding-bottom: 1rem; }

    .top-bar {
        flex-direction: column;
        padding: 1rem;
        gap: 10px;
        text-align: center;
        min-height: 10vh;
        box-sizing: border-box;
    }
    .top-bar::after { left: 5%; right: 5%; }

    .navbar {
        flex-wrap: wrap;
        padding: 0 1.5rem;
        min-height: 12vh;
        box-sizing: border-box;
        background: transparent;
    }

    .logo {
        order: -1;
    }

    .logo img { height: 80px; padding: 0; }

    .mobile-menu-button {
        display: block;
    }

    .button-text {
        font-size: 1rem;
        font-family: Arial, Helvetica, sans-serif;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 0;
        flex: none;
        padding: 0;
    }

    .navbar.nav-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1099;
        flex-wrap: nowrap;
        transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .navbar.nav-open .main-nav {
        display: flex;
    }

    .navbar.nav-open .main-nav li {
        opacity: 0;
        transform: translateY(-20px);
        animation: dropDownItem 0.5s ease-out forwards;
        width: 100%;
    }

    .navbar.nav-open .main-nav li:nth-child(1) { animation-delay: 0.1s; }
    .navbar.nav-open .main-nav li:nth-child(2) { animation-delay: 0.2s; }
    .navbar.nav-open .main-nav li:nth-child(3) { animation-delay: 0.3s; }
    .navbar.nav-open .main-nav li:nth-child(4) { animation-delay: 0.4s; }
    .navbar.nav-open .main-nav li:nth-child(5) { animation-delay: 0.5s; }
    .navbar.nav-open .main-nav li:nth-child(6) { animation-delay: 0.6s; }

    .navbar.nav-open .mobile-menu-button {
        position: absolute;
        top: 2rem;
        right: 1.5rem;
    }

    .navbar.nav-open .logo {
        display: none;
    }

    .navbar.nav-open a.active{
        pointer-events: none;
    }

    .main-nav a {
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        font-weight: bold;
        font-size: 1.2rem;
    }
    .main-nav a.active {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
    }

    .nav-left,
    .nav-right {
        width: 100%;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .state-container--split,
    .state-container--split.reverse {
        flex-direction: column-reverse;
    }

    .info-column,
    .image-column {
        max-width: 100%;
        flex-basis: auto;
        padding: 0;
    }

    .h2-popup {
        position: static;
        transform: none;
        opacity: 1;
        justify-content: center;
        width: 100%;
        margin: 0 0 0.5rem 0;
    }

    .image-column {
        height: 35vh;
        margin-bottom: -20vh;
        width: 100vw;
    }

    .image-column img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .info-column {
        min-height: 35vh;
        margin-left: -3vw;
        padding: 0 2rem 2rem 2rem;
        align-items: flex-start;
        text-align: left;
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .info-column h2 {
        font-size: 3rem;
        text-align: left;
        margin-top: 0;
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        border: none;
        border-radius: 0;
        background-size: cover;
        background-position: center center;
        padding: 2.5rem 1rem 1rem 0;
    }

    .info-column p { padding-left: 0; max-width: 90%; }
    .info-button { margin-left: 0; }

    .navbar.navbar--anchored {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        height: calc(60px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
        z-index: 1050;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        padding-bottom: env(safe-area-inset-bottom);
        animation: popUpFromBottom 0.5s ease-out;
        flex-wrap: nowrap;
        transform: translateZ(0);
    }

    .navbar.navbar--anchored .main-nav {
        display: none;
    }

    .navbar.navbar--anchored .logo,
    .navbar.navbar--anchored .mobile-menu-button {
        display: block;
    }

    .navbar.navbar--anchored .logo img {
        height: 10vh;
        max-height: 60px;
        padding: 0;
    }

    .navbar.navbar--anchored.nav-open {
        height: 100vh;
        top: 0;
        bottom: auto;
        flex-direction: column;
        justify-content: center;
    }

    .navbar.navbar--anchored.nav-open .logo {
        display: none;
    }

    .navbar.navbar--anchored.nav-open .mobile-menu-button {
        position: absolute;
        top: 2rem;
        right: 1.5rem;
    }

    .navbar.navbar--anchored.nav-open .main-nav {
        display: flex;
        width: 100%;
        margin: auto 0;
    }

    #scrollToBottomBtn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    .image-column img {
        margin: 0;
    }
    .content-area {
        /* Change from flex-start to center */
        align-items: center !important; 
        /* Reset the fixed top padding */
        padding-top: 0 !important; 
        /* Ensure it takes up the available space between header and bottom */
        height: 70vh; 
        display: flex;
        justify-content: center;
    }

    .overlay-content {
        /* This ensures the image stays centered within the content area */
        margin-top: -25vh; /* Optional: nudge slightly up to account for visual weight */
    }

    .overlay-image {
        width: 50vw; /* Make it slightly larger on mobile for better visibility */
    }
}

@media (max-width: 450px) {
    .navbar.nav-open .main-nav {
        padding: 0;
        padding-right: 5vw;
    }

    .image-column {
        overflow: hidden;
    }

    .image-column img {
        transform: scale(1.10);
    }
    .info-column p {
        font-size: 0.8rem;
    }
}

/* Final Tablet Layout (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1025px) {
    /* Hide scroll path elements */
    .dashed-line-center,
    #mobile-line-svg{
        display: none;
    }

    #tablet-line-svg {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .dashed-line {
        display: block !important;
    }


    /* Forcefully apply side-by-side layout to the specific containers */
    .state-container--split {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.5rem;
        padding: 1rem;
        min-height: 420px;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }

    /* Apply the reverse layout for relevant containers */
    .state-container--split.reverse {
        flex-direction: row-reverse !important;
    }

    /* Define column widths and reset mobile styles */
    .state-container--split .info-column,
    .state-container--split .image-column {
        flex: 1 1 50%;
        max-width: 50%;
        position: relative;
        margin: 0;
        padding: 0;
        min-height: unset;
    }

    .image-column img {
       width: 100%;
       height: auto;
       max-height: 400px;
       object-fit: contain;
       display: block;
    }

    /* Adjust the popup and text elements */
    .h2-popup {
        position: absolute;
        top: 0;
        left: 1rem;
        opacity: 1;
        transform: none;
    }

    .info-column h2 {
        font-size: 2.5rem;
        padding: 5rem 3rem 1rem 1rem;
        margin: 0;
    }

    .info-column p {
        font-size: 0.9rem;
        padding-left: 1rem;
    }

    .info-button {
        margin-left: 1rem;
    }

    .footer-main-content {
        width: 70%;
        top: 25%;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        font-size: 0.8rem;
    }

    .footer-column ul {
        gap: 10px;
    }

/* Move parallax layers down */
    .layer-3 img,
    .layer-4 .figure-left,
    .layer-4 .figure-right {
        bottom: -5%;
    }

    .layer-5 img {
        bottom: -10%;
    }

    .overlay-button {
        bottom: 35%;
    }

    /* Anchored Navbar for Tablets (Desktop Style) */
.navbar.navbar--anchored {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9vh;
    max-height: 70px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    animation: popUpFromBottom 0.5s ease-out;
}

/* Ensure the full navigation is visible */
.navbar.navbar--anchored .main-nav {
    display: flex;
    flex: 1;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.navbar.navbar--anchored .nav-left {
    justify-content: flex-end;
}

.navbar.navbar--anchored .nav-right {
    justify-content: flex-start;
}

/* Adjust nav link font size and padding */
.navbar.navbar--anchored .main-nav a {
    font-size: 0.9em;
    padding: 1rem;
}

/* Adjust logo size */
.navbar.navbar--anchored .logo img {
    height: 7vh;
    max-height: 55px;
    padding: 0 10px;
}

/* Hide the hamburger button in this state */
.navbar.navbar--anchored .mobile-menu-button {
    display: none;
}
}

/* 6. Animations */
@keyframes dropDownItem {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pull-down-bounce {
    0% {
        transform: translateY(0);
        animation-timing-function: ease-out;
    }
    50% {
        transform: translateY(35px);
        animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1.2);
    }
    100% {
        transform: translateY(0);
    }
}

.pull-down-bounce-animation {
    animation: pull-down-bounce 0.6s forwards;
}

@keyframes push-up-bounce {
    0% {
        transform: translateY(0);
        animation-timing-function: ease-out;
    }
    50% {
        transform: translateY(-35px);
        animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1.2);
    }
    100% {
        transform: translateY(0);
    }
}

.push-up-bounce-animation {
    animation: push-up-bounce 0.6s forwards;
}


@keyframes popUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. Desktop-Specific Styles & Anchored Navbar */
@media (min-width: 1025px) {
    .state-container-1 .image-column img {
    transform: translateY(0px);}
    .state-container-2 {
    margin-top: -60px;}

    .navbar.navbar--anchored {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 8vh;
        background: rgba(255, 255, 255, 0.60);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
        z-index: 1050;
        align-items: center;
        padding: 0;
        animation: popUpFromBottom 0.5s ease-out;
    }

    .navbar.navbar--anchored .main-nav {
        gap: 25px;
        flex: 1;
    }

    .navbar.navbar--anchored .nav-left {
        justify-content: flex-end;
    }

    .navbar.navbar--anchored .nav-right {
        justify-content: flex-start;
    }

    .navbar.navbar--anchored .logo img {
        height: 8vh;
        max-height: 65px;
    }

    .navbar.navbar--anchored .main-nav a {
        padding: 2rem;
        font-size: 1em;
    }
}