@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

body {
    color: #260037;
    font-family: "Merriweather", serif;
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .section.active {
    display: block;
    opacity: 1;
  }
  

/* Navbar Styling */
.navbar {
    width: 100%;
    margin: auto;
    padding: 0.8rem 1.5rem; /* Reduced padding for smaller navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.85); /* Background with opacity */
    font-family: "Ubuntu", sans-serif;
    box-shadow: 0 4px 10px rgba(101, 5, 116, 0.4);
}

/* Logo Styling */
.logo {
    font-size: 1.5em; /* Smaller font size */
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.logo img {
    width: 50px; /* Reduced image size */
    margin-right: 10px;
}

/* New wrapper to center navbar links */
.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* Navigation Items */
.nav_items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Slightly reduced spacing */
}

.nav_items li {
    list-style: none;
}

.nav_items li a {
    text-decoration: none;
    font-size: 14px; /* Smaller font */
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav_items li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #64009e;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav_items li a:not(.join-us-button):hover::after {
    width: 100%;
}

/* "Join Us" Button Styling */
.join-us-button {
    background-color: #4B1D50;
    color: white;
    font-weight: bold;
    font-size: 14px; /* Slightly smaller font */
    border-radius: 20px;
    padding: 8px 12px; /* Smaller padding */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
}

.join-us-button:hover {
    background-color: #3A1640;
}

/* Ensure "Join Us" is aligned to the right */
.navbar .join-us-button {
    margin-left: auto;
}

/* Mobile Menu */
.nav_menu {
    display: none;
}

/* Responsive Fix */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav_items {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .join-us-button {
        margin-top: 1rem;
    }
}
