/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #742080;
    color: white;
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logo Styles */
.navbar .logo h1 {
    margin: 0 2px;
    font-weight: 200;
    font-variant: small-caps;
    font-size: 40px;
}

.navbar .logo a {
    color: white;
    text-decoration: none;
}

/* Remove any hover effects */
.navbar .logo a:hover {
    color: white;
}

/* Navigation Links */
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 24px;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 30px; /* Distance from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust vertical alignment */
    z-index: 2000; /* Ensure it's above other elements */
}

.menu-icon {
    display: block;
    width: 30px; /* Width should match menu-toggle width */
    height: 3px; /* Thickness of the lines */
    background: white;
    margin: 6px 0; /* Spacing between lines */
    transition: all 0.3s;
    position: relative;
}

/* First line */
.menu-icon:nth-child(1) {
    transform: translateY(0); /* Position as is */
}

/* Second line (middle line) */
.menu-icon:nth-child(2) {
    transform: translateY(0); /* Position as is */
}

/* Third line */
.menu-icon:nth-child(3) {
    transform: translateY(0); /* Position as is */
}

/* Active Menu Styles */
.menu-toggle.active .menu-icon:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg); /* Rotate first line to form the X */
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0; /* Hide the middle line */
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg); /* Rotate third line to form the X */
}
