* {
    box-sizing: border-box;
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease;
    background: black;
}


body {
    font-family: Questrial, Helvetica, sans-serif;
    font-size: 1.2rem;
    text-align: justify;
}

@keyframes fadeIn {
    from {
        background-color: black;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.non-draggable {
    -webkit-user-drag: none;
    user-select: none;
}

header {
    width: 100%;
    background: rgba(244, 242, 239, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: visible;
}

.top {
    height: 6rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.top a {
    color: #b33a32;
    text-decoration: none;
    font-weight: 700;
}

.top a:hover {
    text-decoration: underline;
}

.small-logo {
    position: absolute;
    left: calc(50% - 18rem);
    width: 5rem;
}

.small-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.account {
    position: absolute;
    right: calc(50% - 18rem);
    width: 6rem;
    height: 2.5rem;
    border-radius: 2rem;
    background: rgba(55, 55, 55, 0.85);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

nav {
    height: 3rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 1000;
    overflow: visible;

}

nav ul {
    height: 100%;
    width: 54rem;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:4rem;
}

nav li {
    margin: 0;
    padding: 0;
}

nav a {
    color: #4b4b4b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #000000;
    font-weight: 600;
}

nav a:hover::after {
    width: 100%;
}


.nav-hover-current {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.url, .url:visited, .url:active {
    color: blue;
}

main {
    width: 100%;
    background: white;
    padding-top: 12rem;
}

.page {
    width: 100%;
    padding-top: 4rem;
}

.home-box {
    padding-top:2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.picture {
    position: relative;
    width: 50rem;
    max-width: 90%;
    margin: 0 auto;
}

.logo {
    position: relative;
    width: 50rem;
    max-width: 90%;

}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-img{
    display: block;
    width: 100%;
    height: 20rem;
    object-fit: cover;
    margin: 0;
}

#intro-box {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30rem;
    max-width: 80%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    line-height: 2;
    font-size: 1.25rem;
}

#intro-box-video{
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    width: 85%;
    line-height: 1.2;
    font-size: 1rem;
    z-index: 2;
    font-weight:600;
    font-size: 3.75rem;
    color: white;
}

.text-box{
    padding-top:1.5rem;
    width:45rem;
    text-align: justify;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1rem;
}

.custom-text-box{
    width: fit-content;
    margin: 0 auto;
    text-align: left;
    transform: translateX(-18rem);
    font-size: 1.875rem;
}

footer {
    min-height: 16rem;
    margin-top: 1rem;
    background: black;
    color: white;
    position: relative;
    font-size: 0.8rem;
}

.social {
    width: 25rem;
    position: absolute;
    left: 50%;
    top: 3rem;
    transform: translateX(-50%);
}

.social-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem; 
}

.social-line i {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 1.3rem;
}

.social-line span,.social-line i,.social-line a,.social-line a:visited{
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


.copyright {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

.copyright p {
    margin: 0.8rem;
}

.copyright a{
    text-decoration: none;
    color: white;
}

h1{
    text-align: center;
    font-size: 1.75rem;
}

h2{
    text-align: center; 
    font-size: 1.375rem;
}

.sub{
    text-align: center; 
    font-size: 1.5rem;
    padding-top: 3rem;
}

.small-line {
    width: 30px;
    height: 3px;
    background: #333;
    margin: 20px auto;
    margin-top: 1px;
}

.content{
    padding-top: 5rem;
    justify-self: center;
}


/* dropdown menu for classes */

.dropdown {
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: -0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    min-width: 14rem;
    margin: 0;
    padding: 0.6rem 0;
    visibility: hidden;
    flex-direction: column;
    gap: 0;
    list-style: none;
    background: rgba(255, 255, 255);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.dropdown-menu.show-dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    color: #4b4b4b;
    text-align: center;
    white-space: nowrap;
    transition: color 0.5s ease;
}

.dropdown-menu a:hover {
    color: #000000;
}

.dropdown-menu a::after {
    display: none;
}

.menu-button {
    display: none;
}

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

.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    pointer-events: none;
    user-select: none;

}

.home-button{
    display: block;
    width: fit-content;
    margin: 4rem auto 0;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: #e8ddcc;
    color: black;
    text-decoration: none;
    font-family: inherit;
    transition: 0.3s ease;
    font-size: 1rem;
}

.home-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.link-video{
    font-size: 1rem;
    color: #b33a32;
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 768px) {

    body{
        font-size: 0.9rem;
    }

    .top {
        height: 1rem;
        padding-top: 2.5rem;
    }

    .top p {
        font-size: 0.72rem;
    }


    .small-logo {
        left: 1rem;
        width: 3rem;
    }

    .logo{
        position:relative;
        width: 40rem;
        padding-bottom:3rem;
    }

    .account {
        right: 1rem;
        width: 4rem;
        height: 2.4rem;
    }

    nav {
        height: auto;
        padding: 1rem 0;
    }

    nav ul {
        width: 94%;
        justify-content: center;
        flex-wrap: wrap;
        
    }

    nav a {
        font-size: 0.75rem;
    }

    .page {
        padding-top: 3rem;
    }

    .picture {
        width: 94%;
        max-width: none;
    }

    #intro-box {
        width: 80%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #intro-box-video{
        top: 40%; 
        font-size: 2.25rem;
    }

    .background-video{
        object-position: 55% center;
    }


    .text-box{
        padding-top:1.5rem;
        width: 85%;
        text-align: justify;
        margin: 0 auto;
        line-height: 1.8;
        font-size: 1rem;
    }

    .custom-text-box {
        transform: translateX(-6rem);
    }

    main{
        padding-top: 7rem;
        padding-bottom: 2rem;
    }


    h1{
        font-size: 1.375rem;
    }

    h2, .sub{
        font-size: 1.2rem;
    }

    h3{
        font-size: 1.05rem;
    }

    h4{
        font-size: 0.95rem;
    }

    footer {
        margin-top: 2rem;
    }

    .social {
        width: 80%;
    }

    .dropdown{
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-menu {
        min-width: 12rem;
    }

    .dropdown-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    

    .account {
        display: none;
    }

    .menu-button {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 100%;
        transform: translateY(-50%);
        padding: 0;
        border: none;
        background: transparent;
        color: black;
        -webkit-tap-highlight-color: transparent;
        border: none;
        background: transparent;
        outline: none;
        font-size: 1.4rem;
        cursor: pointer;
        z-index: 1002;
        transition: transform 0.25s ease;
    }

    .menu-button:focus, .menu-button:active {
        outline: none;
        box-shadow: none;
    }

    .menu-button.rotate {
        transform: translateY(-50%) rotate(-90deg);
    }

    nav {
        position: static;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 1.5rem 0;
        background: rgba(255, 255, 255);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        z-index: 1000;
    }

    nav .nav-links.show-menu {
        display: flex;
        animation: menuFade 0.5s ease;

    }

    @keyframes menuFade {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    nav .nav-links > li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .small-logo img {
        width: 130%;
    }

    .custom-img{
        margin-top:-2rem;
    }
}