html {
    overflow: hidden;
}

body {
    overflow-y: scroll;
    scrollbar-width: none;
    height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

.back-video {
    position: absolute;
    bottom: 0rem;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.back-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
    .back-video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .back-video {
        width: auto;
        height: 100%;
    }
}

h1 {
    letter-spacing: 5px;
    font-size: 25px;
    margin: 0;
    text-align: center;
    color: white;
    font-family: "Playfair Display";
}

.head {
    letter-spacing: 10px;
    font-size: 120px;
    text-align: center;
    color: rgb(241, 237, 237);
    text-shadow: 5px 2px 2px rgb(12, 12, 12);
    font-weight: 600;
    font-family: "Corinthia";
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.title h2 {
    color: white;
    margin: 70px;
}

.navbar {
    width: 113.1rem;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px;
    z-index: 2;
}

.navbar a {
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    height: 20px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.navbar a:hover::after {
    width: 100%;
    left: 0;
}

.navbar .title h2 {
    color: white;
    margin-right: auto;
    font-size: 40px;
    font-family: "Corinthia", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    letter-spacing: 4px;
}

.front {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-left: -9rem;
    align-items: center;
}

.nav-links a {
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    height: auto;
    margin: 0 10px;
    position: relative;
    line-height: 20px; 
    font-family: "Gelasio", serif;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 5px; 
    left: 0;
    width: 0;
    height: 3px;
    background-color: burlywood;
    transition: 0.3s;
    transform: translateY(50%); 
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: darkgoldenrod;
}

.register a {
    padding: 12px 30px;
    color: white;
    text-decoration: none; 
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: -15rem;
    position: relative; 
    font-family: "Gelasio", serif;
}

.register a::after {
    content: none; 
}

.register a:hover {
    background-color: darkgoldenrod;
    text-decoration: none; 
}

.register a:focus {
    outline: none;
}

.description {
    text-align: center;
    margin-top: -35px;
    padding: 20px;
    font-size: 18px;
    color: white;
    font-family: "Playfair Display", serif;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description i {
    font-style: italic;
}

#next-section {
    background-color: beige;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px;
    height: 90vh;
}

#next-section h2 {
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 20px;
    margin-top: 60px;
    font-family: "Playfair Display", serif;
}

#next-section p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Playfair Display", serif;
}

.image-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;  
    width: 100%;
    max-width: 1800px; 
    margin-top: 5px;  
}

.amenity-image {
    width: 32%;  
    height: 400px;  
    object-fit: cover;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;  
}

.amenity-image:hover {
    transform: scale(1.05);  
}

.amenities-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: solid white 1px;
    letter-spacing: 3px;
    margin-top: 40px;
    background-color: goldenrod;
    font-family: "Gelasio", serif;
}

.amenities-btn:hover {
    background-color: goldenrod;
}

#next-section3 {
    position: relative;
    height: 100vh;
    background-image: url('bgsection3.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10%;
    overflow: hidden;
}

#next-section3 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#next-section3 .content-box {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

#next-section3 .content-box h2 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: black;
    font-family: "Corinthia", serif;
}

#next-section3 .content-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
    font-family: "Gelasio", serif;
}

.book-now-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: white;
    background-color: darkgoldenrod;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    letter-spacing: 2px;
}

.book-now-btn:hover {
    background-color: goldenrod;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInLoad 1.5s ease forwards;
}

@keyframes fadeInLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.navbar {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar:not(.visible) {
    transform: translateY(-100%);
}

