/* Loading Animation Styles */
:root{
    --color-brown:#4e3127; /* Dark Brown */
    --color-orange:#fe7f00; /* Vibrant Orange */
    --color-cream:#ffddb1; /* Cream */
    --color-dark-cream:#FFB85C; /* Dark Cream */
    --color-deep-brown: #3a221c; /* Deep Brown */
    --color-light-tan: #f9e7cf; /* Light Tan */
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

canvas#three-canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2; /* Make sure it's behind other content */
    background: none;
}

#loadHeader{
    margin:0;
    background-color: none;
    color: var(--color-cream);
    position: fixed;
    width: 100vw;
    z-index: 1000;
    padding-top: 10px;
    max-height: fit-content;
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    margin: 0 4rem;
    gap: 2rem;
}

nav, .logoload {
    position:relative;
    z-index: 1001;
}

nav .logoload .imagem{
    height: 80px; 
}

/* Hero Section Styles */
#hero-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-direction: row;
    min-height: 500vh;
    background-color: var(--color-brown);
    color: var(--color-cream);

    .hero-words{
        margin: 0;
        padding: 0;
        top:0;
        padding-bottom: 10px;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        flex-direction: row;
        position: fixed; 
        box-sizing: border-box;
        height: 100vh;
        width: 100vw;
    }

    .div-words{
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        flex-direction: column;
        position:fixed;
        width: 100vw;
        bottom: 1vh;
        padding-left: 20px;

        h1{
            margin: 0;
            color: var(--color-cream);
            opacity: 1;
            text-shadow: 0px 0px 4px var(--color-deep-brown);
            max-height: 25vh;
        }
    }

    .div-words2{
        margin: 0;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        position: fixed; /* Fix the h1 to the top */
        bottom:1vh;
        width: fit-content;
        animation: anim-load 3s infinite ease-in-out;
        padding-right: 1vw;

        .hero-subheader{
            margin: 0;
            padding: 10px 20px;
            color: var(--color-cream);
            opacity: 1;
            color: var(--color-orange);
            white-space: nowrap;
        }
    }
}

@keyframes anim-load {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}

.hero-section h1 {
    position: relative; /* Fix the h1 to the top */
    z-index: 1; /* Ensure it's above other elements */
    margin: 0;
    padding: 0 0 0 10px;
    color: var(--color-cream);
    opacity: 1;
    text-shadow: 0px 0px 4px var(--color-deep-brown);
}

h1 {
    font: 12rem "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
}

p {
    font: 1.5rem "Montserrat", serif;
    font-weight: 700;
    font-style: italic;
}

/*MEdia queries for different widths */
@media only screen and (max-width: 1150px) {
    h1{
        font-size: 8rem;
        transition: all 0.3s;
    }

    h2{
        font-size: 1rem;
        transition: all 0.3s;
    }

    p{
        font-size: 1rem;
        transition: all 0.3s;
    }

    .logoload .imagem{
        height: 80%;
        width: auto;
    }
}

@media only screen and (max-width: 800px){
    h1{
        font-size: 3.5rem;
        transition: all 0.3s;
    }

    h2{
        font-size: 0.8rem;
        transition: all 0.3s;
    }

    p{
        font-size: 0.8rem;
        transition: all 0.3s;
    }

    .logoload .imagem{
        height: 60%;
        width: auto;
    }
}

@media only screen and (max-width: 768px) and (max-height: 900px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p{
        font-size: 0.8rem;
        transition: all 0.3s;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logoload .imagem{
        height: 50%;
        width: auto;
    }
}

@media only screen and (max-width: 500px) {
    .div-words2 {
        margin: 0;
        padding: 0;
        left: 50%; /* Center horizontally relative to the nav */
        transform: translateX(-50%);
        width: fit-content;
        height: 25%;
        top: 0;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
    }
}

