@font-face {
    font-family: 'Elms Sans';
    src: local('Elms Sans'), local('ElmsSans-Regular');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-dark: #1F2630;
    --brand-green: #4CE3E2;
    --brand-teal-dark: #251C55;
    --brand-teal-light: #26BDC3;
    --brand-cream: #F1EADD;
    
    --f-heading: 'Elms Sans', sans-serif;
    --f-body: 'Lexend', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--f-body);
    background-color: var(--brand-cream);
    color: var(--brand-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    color: var(--brand-dark);
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(31, 38, 48, 0.08);
}

.btn-primary {
    display: inline-block;
    background-color: var(--brand-green);
    color: var(--brand-dark);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 227, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 227, 226, 0.4);
    background-color: #3bc5c4;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(241, 234, 221, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 28, 85, 0.08);
}

.nav-logo a {
    display: block;
    text-decoration: none;
    border: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item-dropdown {
    position: relative;
    padding: 10px 0;
    cursor: pointer;
}

.public-link {
    font-weight: 500;
    color: var(--brand-teal-dark);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-link:hover {
    color: var(--brand-teal-light);
}

.public-link-login {
    margin-left: 15px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(37, 28, 85, 0.1);
    border: 1px solid rgba(37, 28, 85, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    padding: 15px;
    min-width: 280px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.drop-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.drop-item:hover {
    background: rgba(76, 227, 226, 0.1);
}

.drop-icon {
    background: rgba(37, 28, 85, 0.05);
    color: var(--brand-teal-dark);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drop-content h4 {
    font-family: var(--f-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--brand-teal-dark);
}

.drop-content p {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.4;
}

.mega-menu {
    width: max-content;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mega-col h5 {
    font-family: var(--f-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-teal-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-weight: 500;
}

.mega-link:hover {
    color: var(--brand-teal-light);
}

.mega-link svg {
    color: rgba(37, 28, 85, 0.4);
    transition: color 0.2s;
}

.mega-link:hover svg {
    color: var(--brand-teal-light);
}

.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 28, 85, 0.08);
    color: var(--brand-teal-dark);
    border: 1px solid rgba(37, 28, 85, 0.15);
    padding: 10px 22px;
    border-radius: 14px;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(37, 28, 85, 0.12);
    border-color: rgba(37, 28, 85, 0.25);
}

.user-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(37, 28, 85, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}

.user-menu-container:hover .user-dropdown,
.user-menu-container:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(76, 227, 226, 0.15);
    color: var(--brand-teal-dark);
    transform: translateX(3px);
}

.dropdown-item.logout {
    color: #dc3545;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 8px;
    border-radius: 4px 4px 12px 12px;
}

.dropdown-item.logout:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #c82333;
}

main {
    margin-top: 75px;
    min-height: calc(100vh - 75px);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--brand-teal-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: translateY(-5px);
    background-color: #128C7E;
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--brand-cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow-y: auto;
        overflow-x: hidden;
        gap: 15px;
        margin: 0;
    }

    .nav-links.is-open,
    .nav-links.active {
        left: 0;
    }

    .nav-item-dropdown {
        width: 100%;
        padding: 0;
    }

    .public-link {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(37, 28, 85, 0.05);
    }
   
    .dropdown-menu,
    .mega-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 15px 0 15px 15px !important;
        display: none !important;
        margin: 0 !important;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown:focus-within .dropdown-menu,
    .nav-item-dropdown:active .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
    }

    .drop-item {
        width: 100%;
        padding: 0;
        display: flex;
        align-items: flex-start;
        gap: 15px;
        background: transparent !important;
    }
    
    .drop-icon {
        display: flex;
        min-width: 40px;
    }
    
    .drop-content {
        width: 100%;
    }

    .mega-col {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }

    .mega-link {
        padding: 8px 0;
    }

    .public-link-login {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .user-btn span {
        display: inline;
    }
    
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float-btn svg {
        width: 30px !important;
        height: 30px !important;
    }
}