body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    overflow-x: hidden;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #4a90e2;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #4a90e2;
}

.tooltip {
    opacity: 0;
    transform: translateY(10px);

    background-color: var(--tooltip-bg-color); /* variable here */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--tooltip-shadow); /* adjustable shadow */
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 2.5rem;
    max-width: 200px;
    text-align: center;
    z-index: 10;

    color: var(--text-color); /* optional to adapt text color on theme */
}

.nav-item:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.form-section {
    background-color: #fff;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.gender-options {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.gender-options input {
    margin-right: 0.5rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357bd8;
}
.closeBtn{
    display: none;
    position: relative;
    right: 2%;
    top: 1%;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: #ffffff;
        flex-direction: column;
        padding-top: 5rem;
        gap: 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    } */
 .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--card-color); /* <-- use variable here */
    flex-direction: column;
    padding-top: 5rem;
    /* gap: 2rem; */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    color: var(--text-color);
  }
    .nav-links.show {
        right: 0;
    }

    .nav-item {
        align-items: flex-start;
        padding-left: 1.5rem;
    }

   

    .nav-item:hover .tooltip {
         opacity: 1;
    transform: translateY(0);
    }
    .closeBtn {
        display: block;
        font-size: 1.5rem;
        color: #4a90e2;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    nav {
    display: flex;
    justify-content: safe;
}
 
}

 .closeBtn:active {
       transform: scale(0.95);
    }