html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #fff;
    position: relative;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#backgroundVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Navbar Styles */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7); /* Increased opacity */
    padding: 0.5em 2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    margin: 20px auto;
    width: 80%;
    max-width: 1200px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #0A0;
}

.menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1rem;
}

.menu-button-container {
    display: none;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #ffffff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0;
    transform: rotate(-405deg);
}

.container {
    text-align: center;
    margin: 140px auto 20px auto; /* Adjust margin-top for space between navbar and container */
    width: 90%;
    max-width: 1200px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15); /* Increased opacity */
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#greeting {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

#quotes {
    font-size: 18px;
    margin-bottom: 40px;
    color: #ffefba;
}

.sections {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.section-heading {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.section-card {
    background-color: rgba(0, 0, 0, 0.7); /* Increased opacity */
    text-align: center;
    margin: 20px;
    width: 180px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.song-image, .genre-image, .trending-image {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
}

.song-image:hover, .genre-image:hover, .trending-image:hover {
    transform: scale(1.05);
}

.song-title, .genre-title, .trending-title {
    font-size: 16px;
    margin: 8px 0;
    color: #ffefba;
}

.song-artist, .trending-artist {
    font-size: 12px;
    color: #ffefba;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    color: #282c34;
    background-color: #ffefba;
    border: 2px solid #ffefba;
    border-radius: 50px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.button:hover {
    background-color: #282c34;
    color: #ffefba;
}

/* Hover Effect */
.hover-effect {
    color: #ffefba;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.hover-effect::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #ffefba;
    position: absolute;
    left: 0;
    bottom: -2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hover-effect:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.7); /* Increased opacity */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .menu-button-container {
        display: flex;
    }
    .menu {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.7);
        flex-direction: column;
        align-items: center;
        width: 100%;
        transition: height 0.3s ease-in-out;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
    }
    #menu-toggle:checked ~ .menu li {
        height: auto;
        padding: 10px 0;
    }
    .menu > li {
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid #3f51b5;
    }
    .container {
        width: 95%;
        padding: 20px;
        margin-top: 160px;
    }
    .section-card {
        width: 100%;
        margin: 10px 0;
    }
    .top-nav {
        padding: 0.5em 1em;
    }
    .logo {
        margin-right: 20px; /* Add space between logo and menu button */
    }
}
