/* ===== Global styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

::-webkit-scrollbar {
    width: 0; /* Chrome, Edge, Safari */
}

html, body {
    overflow-x: clip;
}


/* ===== Header ===== */
header {
    padding: 10px;
    transition: background-color 0.5s ease-in;
    z-index: 10;
    position: sticky !important;
    top: 0;
}


/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    display: flex;
    gap: 10px;
}

.navbar li {
    list-style: none;
    padding: 10px;
}


/* ===== Collapsed Navbar ===== */
.collapsedNavbar {
    width: 70vw;
    height: 100dvh;
    border: 1px solid;
    position: fixed;
    right: 0;
    display: none;
    padding: 50px;
    background-color: hsl(0, 0%, 30%);
    transform: translateX(150%);
    transition: transform 0.5s ease-in-out;
}

.collapsedNavbar.shown {
    transform: translateX(0);
}

.collapsedNavbar li {
    list-style: none;
    margin-bottom: 30px;
}

.collapsedNavbar a {
    text-decoration: none;
    color: white;
    position: relative;
    font-family: 'PlayFair Display', sans-serif;
    font-size: 25px;
}

.collapsedNavbar a::before {
    content: '';
    height: 2px;
    width: 100%;
    font-family: 'PlayFair Display', sans-serif;
    position: absolute;
    top: -50%;
    left: -20px;
}

.collapsedNavbar ul {
    counter-reset: nav-counter; /* reset the counter */
}

.collapsedNavbar ul li {
    counter-increment: nav-counter; /* increment for each li */
}

.collapsedNavbar:not(.menuItems) ul li a::before {
    content: counter(nav-counter, decimal-leading-zero) " ";
    margin-left: -10px;
}

.collapsedNavbar .menuItems a::before {
    content: none !important;
    counter-increment: none !important;
}


/* ===== Navigation Links ===== */
.navLinks {
    border-radius: 20px;
    color: white;
}

.navLinks button {
    cursor: pointer;
}

.navLinks > * {
    transition: 0.1s ease-in;
    cursor: pointer;
}

.navLinks :nth-child(1) {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.navLinks :nth-child(4) {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.navLinkItem {
    background-color: transparent;
    border: none;
    position: relative;
    text-decoration: none;
    color: inherit;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.navLinkItem i {
    font-size: 12px;
}

.navLinkItem::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    transform: scale(0);
    transform-origin: center;
    border-radius: 10px;
    background-color: white;
    transition: transform 0.2s ease-in-out;
}

.navLinkItem.active::after,
.navLinkItem:hover::after {
    transform: scale(1);
}


/* ===== Dropdown Menus ===== */
.menuDropdown {
    width: 25%;
    height: auto;
    display: none;
    position: fixed;
    background-color: hsl(0, 0%, 30%);
    border: 1px solid white;
}

.menuDropdown.shown {
    display: block;
}

.menuDropdown i {
    color: red;
    margin-right: 5px;
}

.menuDropdown a {
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-family: 'PlayFair Display', sans-serif;
}

.menuDropdown ul {
    display: flex;
    flex-direction: column;
}

#menuDropdownBtn:hover.menuDropdown {
    display: block;
}

.collapsedMenuDropdown {
    overflow-y: clip;
    padding-top: 4px;
}

#collapsedMenuDropdownBtn {
    cursor: pointer;
}

.menuItems a{
    font-size: 18px;
}
.menuItems i{
    margin-right: 10px;
}
.menuItems {
    transform: translateY(-400px);
    max-height: 0;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    
}

.menuItems.shown {
    transform: translateY(0px);
    max-height: 100%;
    opacity: 1;
}


/* ===== Buttons ===== */
.bookBtn,
.reserveBtn,
.menuBtn {
    padding: 10px;
    border-radius: 10px;
    outline: none;
    border: none;
    background-color: red;
    color: white;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.menuBtn {
    width: 25%;
    text-align: center;
}

.bookBtn:hover,
.reserveBtn:hover,
.menuBtn:hover {
    background-color: hsl(0, 100%, 40%);
    transform: scale(1.05);
}


/* ===== Nav Toggle (Hamburger) ===== */
.navToggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: white;
    cursor: pointer;
    z-index: 10;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
}

.navToggle > * {
    z-index: inherit;
    border: 1px;
    width: 20px;
    height: 2px;
    display: inherit;
    background-color: white;
    transform-origin: center;
    transition: 0.4s ease-in-out;
}

.navToggle > :nth-child(2) {
    transform: translateX(3px);
}

.navToggle.clicked > :nth-child(1) {
    transform: translateY(8px) rotateZ(45deg);
}

.navToggle.clicked > :nth-child(2) {
    transform: translateX(100px);
    opacity: 0;
}

.navToggle.clicked > :nth-child(3) {
    transform: translateY(-6px) rotateZ(-45deg);
}


/* ===== Logo ===== */
.logoContainer {
    width: 80px;
    height: auto;
}

.logoContainer img {
    width: 100%;
    height: 100%;
}


/* ===== Background Slider ===== */
#Hero {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -77px;
    background-position: center;
    background-size: cover;
    transition: background-image 2s ease-in-out;
    border: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}


/* ===== Scroll Indicator ===== */
.scrollContainer {
    width: 50px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3vh;
    cursor: pointer;
}
/* ===== Main Content ===== */
#mainContent {
    display: flex;
    flex-wrap: wrap;
    padding-top: 75px;
}

#mainContent > :nth-child(1) { order: 1; }
#mainContent > :nth-child(2) { order: 2; }
#mainContent > :nth-child(3) {
    order: 3;
    align-items: flex-end;
    text-align: right;
}
#mainContent > :nth-child(4) { order: 4; }
#mainContent > :nth-child(5) {
    order: 5;
    height: 80vh;
}
#mainContent > :nth-child(6) { order: 6; }

.mainContentImage,
.mainContentText {
    width: 50%;
    height: 70vh;
}

.mainContentText {
    display: flex;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
}

.mainContentText > * {
    margin-bottom: 15px;
}

.mainContentText h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 3px;
}

.mainContentText h2 {
    font-family: 'Great Vibes', cursive;
    position: relative;
    font-weight: 300;
    letter-spacing: 3px;
}

.mainContentText p {
    font-family: 'Lato', sans-serif;
    width: 60%;
    letter-spacing: 3px;
}

.mainContentImage img {
    width: 100%;
    height: 100%;
}

.scrollContainer > * {
    font-size: 25px;
    animation: load 2s ease-in-out infinite;
}

.scrollContainer > :nth-child(1) { animation-delay: 0.2s; }
.scrollContainer > :nth-child(2) { animation-delay: 0.4s; }
.scrollContainer :nth-child(3) { animation-delay: 0.6s; }

@keyframes load {
    from { color: white; }
    to   { color: grey; }
}

.footer{
    display: flex;
    padding: 30px;
    background-color: hsl(0, 0%, 15%);
    border: 1px solid;
    justify-content: center;
    align-items: center;
}
.footer > :first-child img{
    width:150px;
}
.footerContent{
    gap: 10px;
    width: 25%;
    flex-direction: column;
    display: flex;
}
.footerContent a{
    font-family: 'Lato',sans-serif;
    text-decoration: none;
    color: white;
}
.footerContent h1 {
    font-family: 'Great Vibes',cursive;
    letter-spacing: 2px;
    color: white;
}
.footerContent i{
    margin-right: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .navLinks,
    .bookBtn {
        display: none !important;
    }
    .collapsedNavbar{
        display: flex;
    }
    .navToggle {
        display: flex !important;
    }

    .mainContentText,
    .mainContentImage {
        width: 100% !important;
        align-items: center !important;
    }

    .mainContentText {
        text-align: center !important;
        height: 50vh !important;
        padding-left: none !important;
        padding-right: none !important;
    }

    #mainContent > :nth-child(6) {
        height: 65vh !important;
    }

    .mainContentText p {
        width: 100% !important;
    }

    #mainContent > :nth-child(4) {
        order: 3 !important;
    }

    #mainContent > :nth-child(3) {
        order: 4 !important;
    }

    .menuBtn {
        width: 50% !important;
    }
    .footer{
        flex-direction: column;
        padding: 30px;
    }
    .footerContent{
        width: 100%;
        gap: 20px;
        margin-bottom: 20px;
        align-items: center;
    }
    #footerImageContainer{
        align-items: center;
    }
    
}


