html, body {
    margin: 0;
    font-family: 'Cinzel', serif;
    scroll-behavior: smooth;
    font-weight: 400;
    font-size: 16px !important;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
    padding: 0;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400 !important;
    letter-spacing: 1rem;
}

section {
    height: 100vh;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    width: 100%;
    color: #fff;
    background-color: #000;
}

section.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

section.fixedbg {
    background-attachment: fixed;
    position: relative;
}

section.fixedbg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.text-shadow {
    text-shadow: 0 0 4px rgba(0, 0, 0, .5);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black url("/assets/img/bg-login-63441166.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

#preloader > div {
    background: rgba(0, 0, 0, .8);
    padding: 2rem 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo a, #nav a {
    font-size: .9rem;
    letter-spacing: .5rem;
}

.logo .img {
    width: 64px;
    height: 60px;
    position: relative;
}

.logo .img img {
    max-width: none;
    position: absolute;
    width: 58px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 996px) {
    .logo .img {
        width: 45px;
        height: 42px;
    }

    .logo .img img {
        width: 44px;
    }

    .logo a {
        font-size: .75rem;
        letter-spacing: .25rem;
    }
    #nav a {
        font-size: 1.25rem;
        letter-spacing: 0.25rem;
    }
}

.underline-link {
    position: relative;
}

.underline-link:after {
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
    width: 0;
}

.underline-link:hover:after, .underline-link.active:after {
    width: 100%;
    left: 0;
}

#nav a.underline-link:hover:after, #nav a.underline-link.active:after {
    width: calc(100% - 8px);
    left: 0;
}

#nav-container {
    background: rgba(0, 0, 0, 1);
    max-width: 100%;
    overflow: hidden;
}

#nav-toggle,
#nav-toggle-label {
    display: none;
}

#nav {
    display: flex;
    transition: all .25s ease-in-out;
}

@media (max-width: 996px) {
    #nav-toggle-label {
        display: block;
        z-index: 1001;
    }

    #nav {
        display: flex !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
    }

    #nav-toggle:checked + #nav {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    #nav-toggle-label {
        display: block;
        position: relative;
        z-index: 1001;
        color: white;
    }

    #nav a {
        padding: 1rem;
        text-align: center;
        width: 100%;
        display: block;
        color: white;
    }

    #nav a::after {
        display: none !important;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    transition: all .25s ease-in-out;
}

.modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 1px;
    width: 70%;
    background-color: #000;
}

.close {
    position: absolute;
    top: -50px;
    right: -60px;
    padding: 10px;
    cursor: pointer;
    color: #FFF;
    font-size: 80px;
}

@media (max-width: 996px) {
    .close {
        right: calc(50% - 40px);
        top: -100px;
    }

    .modal-content {
        width: 100%;
    }
}

.text-shadow {
    text-shadow: 0px 0px 4px rgba(0, 0, 0, .5);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    cursor: pointer;
}

.video-container::after,
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-container::after {
    background: repeating-linear-gradient(
            rgba(255, 255, 255, 0.05) 0 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 2px
    );
}

.video-container::before {
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
}

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

.cta {
    position: absolute;
    bottom: -33px;
    left: 50%;
    transform: translate(-50%, 30px);
    font-size: 1.75rem;
    opacity: 0;
    padding-top: 15px;
    line-height: 2rem;
    transition: all .25s ease-in-out;
}

.cta.open {
    animation: slideAndFadeIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideAndFadeIn {
    0% {
        transform: translate(-50%, 30px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0px);
        opacity: 1;
    }
}

.cta::after {
    content: "";
    display: block;
    background: #FFF;
    width: 2px;
    height: 15px;
    margin: 0 auto 30px;
    transition: transform .25s ease-in-out;
}

.cta:hover::after {
    transform: translateY(-2px);
}

#ring {
    display: none;
}

#ring.open {
    display: inline-block;
}

.lds-ring {
    position: relative;
    width: 40px;
    height: 40px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 4px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

@keyframes lds-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#nav-container a { color: white !important; }

textarea,
input[type="password"],
input[type="text"],
input[type="email"] {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Desktop Navbar spacing fix */
#nav {
    display: flex;
    gap: 2rem; /* Adjust this value as needed for spacing */
    align-items: center;
}

@media (max-width: 996px) {
    /* Mobile Navbar responsive fix */
    #nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease-in-out;
    }

    #nav-toggle-label {
        display: block;
        position: relative;
        z-index: 10000;
    }

    #nav-toggle:checked ~ #nav {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    #nav a {
        padding: 1rem;
        font-size: 1.5rem;
        color: white;
        display: block;
        text-align: center;
    }

    .logo .img img {
        width: 40px !important;
        height: auto;
    }

    .logo a {
        font-size: 0.9rem !important;
        letter-spacing: 0.25rem !important;
    }
}

/* Desktop adjustments */
@media(min-width: 997px) {
    #nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Mobile Menu Toggle Fix */
#nav-toggle:checked + #nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

button:hover {
    cursor: pointer;
}

#nav-overlay {
    pointer-events: auto;
}

#nav-overlay a {
    pointer-events: auto;
}

#nav-overlay.opacity-0 {
    pointer-events: none;
}

#nav a {
    position: relative;
    z-index: 1001; /* Ensure links are on top */
    cursor: pointer; /* Ensure pointer cursor */
}

#nav {
    pointer-events: auto; /* Allow clicks on links */
}

#nav-toggle:checked ~ #nav {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interactions */
    transition: opacity 0.6s ease-in-out;
}

#preloader.hidden::after {
    display: none !important; /* Ensures Firefox removes lingering elements */
}

/* Fullscreen Intro Video */
#intro-video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000; /* Ensure it's on top */
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Ensure the intro video stays centered properly */
#intro-video {
    position: absolute;
    top: 46%; /* Slightly adjust to move it up */
    left: 50%;
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */

    width: 100vw;
    height: 100vh; /* Ensures full-screen height */

    object-fit: cover; /* Prevents distortion */
    object-position: center center; /* Keeps the important part centered */
}

#skip-video {
    font-family: 'Cinzel', serif;
    color: white;
    position: fixed; /* Fixed to ensure visibility */
    bottom: 5%; /* Adjusted for different devices */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10001; /* Ensures it's above other elements */
}

/* Hover effect */
#skip-video:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #skip-video {
        bottom: 3%; /* Ensures visibility on smaller screens */
        font-size: 1rem; /* Slightly smaller text */
        padding: 8px 16px;
    }
}

