body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    padding-top: 0px; /* Same as navbar height */
}

.navbar {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2;
    background: linear-gradient(to bottom, 
        rgb(237, 141, 199) 0%,
        rgba(237, 141, 199, 0.5) 80%,
        rgba(237, 141, 199, 0) 100%);
   
    /* background: linear-gradient(to bottom, 
        rgba(254, 93, 159, 1) 0%,
        rgba(254, 93, 159, 0.7) 90%,
        rgba(254, 93, 159, 0) 100%); */
    height: 80px; /* Added 'px' unit */
    padding: 0 0.5rem;
    position: fixed; /* Changed back to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none; /* Remove shadow */
}

/* Remove or comment out this conflicting rule */
main, section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.logo h1 {
    color: #fff;
    /* color: #Fe5d9f; */
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    /* Add or remove these to create a bubble effect around the navbar */
    /* backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.2); */
}

.logo a:hover h1 {
    /* background-color: rgba(189, 224, 254, 0.3); */
    color: #ff009d;
    transition: all 0.3s;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    /* color: #Fe5d9f; */
    text-decoration: none;
    transition: all 0.3s;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    /* backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5); */
}

/* .nav-links a.active {
    /* background-color: rgba(255, 255, 255, 0.8); */
    /* text-decoration: none; */
    /* color: #ff0000; */
/* }  */

.nav-links a:hover {
    /* background-color: rgba(189, 224, 254, 0.3); */
    color: #ff009d;
}

/* Mobile navigation styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 32px;
    height: 3px;
    background-color: #fff;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(237, 141, 199, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        margin: 0;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Animation for hamburger menu */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
