/* Elegant Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(46, 204, 113, 0.95); /* Semi-transparent green */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    color: white;
    padding: 12px 20px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: rotate(5deg) scale(1.05);
    cursor: pointer;
}

/* Text Branding */
.name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.name h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f1f1f1;
    transition: color 0.3s, text-shadow 0.3s;
}

.name h1:hover {
    color: #ffdd57;
    cursor: pointer;
    text-shadow: 0px 0px 15px rgba(255, 0, 0, 0.7);
}

.name p {
    font-size: 1rem;
    font-weight: 300;
    margin-top: 6px;
    color: #f4f4f4;
    opacity: 0.95;
    transition: color 0.3s, text-shadow 0.3s;
}

.name:hover p {
    color: #ffdd57;
    text-shadow: 0px 0px 15px rgba(255, 0, 0, 0.6);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: white;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding-left: 20px;
}
@media (max-width: 1440px) and (min-width: 768px) {
    .logo img {
        height: 50px;
    }

    .name h1 {
        font-size: 1.6rem;
    }

    .name p {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    header {
        padding: 10px 16px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .modal-content {
        width: 90%;
        max-width: 350px;
    }
}


/* Responsive Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        right: 20px;
        background: rgba(46, 204, 113, 0.95);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
        width: 180px;
        animation: dropdown 0.3s ease forwards;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        justify-content: flex-start;
    }
    header nav ul {
        flex-direction: column;
        background-color: #00bfa5;
        /* Matching vibrant green for mobile menu */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
    }

    header nav.active ul {
        display: flex;
    }

    header .menu-toggle {
        display: block;
    }
}

@keyframes dropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.custom-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10001;
}


/* Navigation menu styling */
/* Navigation menu styling */
#tooltip {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* Positioned relative to the header */
    justify-content: center;
    vertical-align: middle;
    top: 63px;
    /* Adjust according to header height */
    right: 0;
    width: 160px;
    height: 485px;
    /* Full viewport height minus header height */
    background-color: #2ecc71;
    /* Background color for visibility */
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    /* Ensure menu is on top */
    transition: display 0.3s ease-in-out;
    /* Smooth transition */
    margin-top: 40px;
    background-color: rgb(117, 112, 112);
}

#tooltip li {
    display: flex;
    /* Ensure list items are block-level */
    flex-direction: column;
    /* Remove default margin */
}

#tooltip a {
    color: rgb(233, 241, 237);
    text-decoration: none;
    padding: 12px;
    /* Padding around the link */
    display: flex;
    /* Align icon and text horizontally */
    align-items: center;
    /* Vertically align icon and text */
}

#tooltip a i {
    margin-right: 8px;
    /* Space between icon and text */
    font-size: 16px;
    /* Adjust icon size */
}

/* Hover effect for links */
#tooltip a:hover {
    background-color: #0d552b;
    /* Darker green */
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Modal (Dialog Box) CSS */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content p {
    margin-bottom: 20px;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.cta-button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #27ae60;
}
