@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Etna';
    src: url('assets/Etna-Sans-serif.otf') format('Etna');
    font-style: normal;
}

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

.navbar {
    background: white;
    color: #AB6886;
    display: flex;
    justify-content: space-between;
    min-height: 90px;    
    align-items: center;
    width: 90%; 
    max-width: 1600px;
    margin: 20px auto;
    padding: 5px 30px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 13px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
    display: block;
}

.nav-collapse {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    list-style: none;
    display: flex;
    padding-left: 40px;
    margin: 0;
}

.nav-links li {
    margin-right: 25px;
}

.nav-links li a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: transparent; 
    transition: background 0.3s ease-in-out;
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
    background: #AB6886; 
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.navbar .verify-btn {
    background: transparent;         
    color: #AB6886;                  
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #AB6886;       
    transition: all 0.3s ease-in-out;
    margin-right: 10px;               
    white-space: nowrap;
}

.navbar .verify-btn:hover {
    background: #AB6886;             
    color: white;
}

.navbar .login-btn {
    background: #AB6886;
    color: white;
    padding: 5px 25px;
    border-radius: 20px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: 2px solid #AB6886;
}

.login-btn:hover {
    background: white;
    color: #914567;
    border: 2px solid #AB6886;
}

/* --- Mobile Menu Fixes --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar { width: 30px; height: 3px; background-color: #AB6886; border-radius: 3px; transition: all 0.3s ease-in-out; }

@media (max-width: 900px) {
    .navbar {
        width: 95%; /* Safe width for mobile */
        padding: 10px 20px;
    }

    .menu-toggle { display: flex; }
    
    .nav-collapse {
        flex-direction: column;
        position: absolute;
        text-align: center;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 0 0 13px 13px;
        box-shadow: 0px 10px 15px rgba(0,0,0,0.1);
        
        /* FIX: Smooth Animation Properties */
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }

    /* Toggled active state for smooth dropdown */
    .nav-collapse.active { 
        max-height: 600px; /* Needs to be larger than content height */
        padding: 20px 0; 
        overflow-y: auto; 
    }
    
    .nav-links { flex-direction: column; padding: 0; }
    .nav-links li { margin: 15px 0; }
    .nav-buttons { flex-direction: column; gap: 15px; padding-bottom: 20px; }
    .navbar .verify-btn { margin-right: 0; }
}

/* Turns the hamburger into an 'X' when active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .navbar .verify-btn, 
    .navbar .login-btn {
        width: 80%;
        margin: 0 auto;
        text-align: center;
        display: block; 
    }
}