* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)), url('image/hotel.jpg');
    background-size: cover;
    font-family: sans-serif;
}

nav {
    width: 100%;
    height: 100px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    letter-spacing: 2px;
    position: relative;
    top: 50px;
    left: 20px;
}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    position: relative;
}

.menu a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-bottom: 2px solid indianred;
    transition: 0.4s linear;
}

.menu a:hover:before {
    width: 90%;
}

.register a {
    text-decoration: none;
    color: white;
    background: indianred;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
    right: 30px;
}

.register a:hover {
    background: transparent;
    border: 1px solid indianred;
    transition: 0.4s;
}

.header-text {
    max-width: 650px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.header-text span {
    letter-spacing: 5px;
    font-style: italic;
}

.header-text h1 {
    font-size: 3.5em;
}

.header-text a {
    text-decoration: none;
    background: indianred;
    color: white;
    padding: 10px 20px;
    letter-spacing: 5px;
}

.header-text a:hover {
    background: transparent;
    border: 1px solid indianred;
    transition: 0.4s;
}

/* Media Queries for Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .menu {
        flex-direction: column;
        text-align: center;
    }

    .menu a {
        width: 100%;
        box-sizing: border-box;
    }

    .register {
        display: none;
    }
}

/* Add this CSS for the mobile menu button */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
}

/* Adjust existing CSS */
@media only screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        border-bottom: 1px solid white;
    }

    .register {
        display: none;
    }

    .mobile-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 2;
    }

    /* Add transition for smoother appearance */
    .menu, .menu a {
        transition: 0.5s;
    }
}
