/* Reset and base styles for the nav wrapper */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- ELLIFO CIRCULAR NAVIGATION (CENTER TOP) ---------- */
/* This is the ONLY navigation component you need — copy this entire block */
.ellifo-circular-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    /* ❗ IMPORTANT */
    justify-content: center;
}

.nav-flex>* {
    flex-shrink: 0;
}

/* Logo / Home button */
.nav-logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    transition: all 0.2s;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.nav-logo i {
    font-size: 1.3rem;
    color: #1e40af;
}

.nav-logo:hover {
    background-color: #eef2ff;
}

/* Common nav link style */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.2s ease;
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #eef2ff;
    color: #1e40af;
}

/* Products Dropdown Wrapper */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-trigger {
    background-color: #eef2ff;
    color: #1e40af;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border-radius: 1.2rem;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    min-width: 180px;
    z-index: 110;
    backdrop-filter: blur(4px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: 0.15s;
}

.dropdown-menu a:first-child {
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
}

.dropdown-menu a:last-child {
    border-bottom-left-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: #1e40af;
}

/* CTA button inside nav */
.nav-cta {
    background-color: #1e40af;
    color: white;
    padding: 0.45rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.25rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-cta:hover {
    background-color: #1e3a8a;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 680px) {
    .ellifo-circular-nav {
        padding: 0.4rem 0.9rem;
        top: 12px;
        width: auto;
        max-width: 92vw;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .nav-logo {
        font-size: 1.1rem;
        padding: 0.3rem 0.7rem;
    }

    .dropdown-trigger {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .nav-cta {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
    }

    .dropdown-menu {
        min-width: 150px;
    }
}

/* Optional: hide Home text on very small screens but keep logo */
@media (max-width: 480px) {
    .hide-on-mobile {
        display: none;
    }
}