/* Nav bar start */
/* General Header and Navbar */
header {
    background-color: #1abc9c;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo h1 {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}
.nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}
.nav-links li a:hover {
    background-color: #16a085;
    border-radius: 5px;
}
.login-btn {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.login-btn:hover {
    background-color: #3498db;
}
.menu-icon {
    display: none;
    cursor: pointer;
    order: -1;
    width: 25px;
    height: 20px;
    position: relative;
    margin-right: 12px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger lines */
.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Position the three lines */
.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
    width: 70%;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

/* Hover effect */
.menu-icon:hover span:nth-child(2) {
    width: 100%;
}

/* Animation for menu icon when menu is shown */
.menu-icon.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-icon.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .menu-icon {
        display: block;
        margin-right: 10px;
    }

    .logo {
        order: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1abc9c;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .login-btn {
        order: 1;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin-bottom: 15px;
    }
}

/* Show Menu when clicked */
.nav-links.show { display: flex; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.modal-content {
    background-color: white;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
@media (max-width: 600px) {
    .modal-content { width: 90%; max-width: 300px; }
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover { color: black; }

/* Form and Button Styling */
input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
}
.btn:hover { background-color: #0056b3; }
.otp-info {
    color: #555;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}
.modal.show { display: flex; }

/* Nav bar end */