/* #region Base */

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Regular.ttf') format('tff')
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Medium.ttf') format('tff')
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/Poppins-Bold.ttf') format('tff')
}

html {
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.25) transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.22);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,.4);
    }

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.text-brand-1 {
    color: var(--brand-1) !important;
}

.text-brand-2 {
    color: var(--brand-2) !important;
}

/* Prevent horizontal page movement on mobile / iOS Safari */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    position: relative;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

/* #endregion */

/* #region NavBar */

.navbar-wrapper {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 10px;
    background: var(--light-2);
    z-index: 1000;
    transition: all 0.4s ease;
    border-radius: 15px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
}

    .navbar-custom.scrolled {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }

.logo {
    height: 35px;
}

.nav-items {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

    .nav-items a {
        text-decoration: none;
        color: var(--dark-1);
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .nav-items a:hover {
            color: var(--brand-1);
        }

/* Buttons */
.btn-custom {
    border: none;
    padding: 8px 16px;
    margin-left: 6px;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Prevent button text wrapping on lg screens */
@media (min-width: 1200px) {
    .nav-right {
        gap: 4px;
    }

    .btn-custom {
        padding: 8px 12px;
        margin-left: 2px;
    }

    .btn-text {
        white-space: nowrap;
    }
}

/* ================= PROFILE DROPDOWN (DESKTOP) ================= */

.profile-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.profile-dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
}

.profile-main-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

    .profile-main-link:hover,
    .profile-main-link:focus {
        color: inherit;
        text-decoration: none;
    }

.profile-dropdown-toggle .dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.profile-dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light-2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
}

.profile-dropdown-wrapper.active .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark-1);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: rgba(0, 130, 206, 0.08);
        color: var(--brand-1);
        padding-left: 20px;
    }

    .dropdown-item i {
        font-size: 1.1rem;
    }

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0;
}

.dropdown-logout:hover {
    color: #d32f2f;
}

    .dropdown-logout:hover i {
        color: #d32f2f;
    }

/* ================= PROFILE DROPDOWN (MOBILE) ================= */

.profile-dropdown-wrapper-mobile {
    position: relative;
    display: inline-block;
}

.profile-dropdown-toggle-mobile {
    cursor: pointer;
    position: relative;
}

.profile-dropdown-menu-mobile {
    position: fixed;
    top: 62px;
    left: 15px;
    right: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.profile-dropdown-wrapper-mobile.active .profile-dropdown-menu-mobile {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.dropdown-item-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark-1);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
}

    .dropdown-item-mobile:last-child {
        border-bottom: none;
    }

    .dropdown-item-mobile:hover {
        background: rgba(0, 130, 206, 0.08);
        color: var(--brand-1);
        padding-left: 20px;
    }

    .dropdown-item-mobile i {
        font-size: 1rem;
        min-width: 20px;
    }

.dropdown-divider-mobile {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0;
}

.dropdown-logout-mobile:hover {
    color: #d32f2f;
}

    .dropdown-logout-mobile:hover i {
        color: #d32f2f;
    }

.btn-login {
    background: var(--light-1);
    color: var(--dark-1);
    border: 1px solid var(--brand-1);
}

    .btn-login:hover {
        background: var(--brand-1-hover);
        color: var(--light-1);
    }

.btn-cta {
    background: var(--brand-2);
    color: white;
}

    .btn-cta:hover {
        background: var(--brand-1);
    }

.menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-1);
}

/* ================= NAVBAR DROPDOWN ================= */

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .dropdown-trigger:hover {
        color: var(--brand-1);
    }

    .dropdown-trigger i {
        transition: transform 0.3s ease;
    }

/* dropdown panel that appears below navbar */
.navbar-dropdown-panel {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 900px;
    background: var(--light-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    padding: 10px 50px;
    transition: opacity 0.3s ease, max-height 0.3s ease, background 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

    .navbar-dropdown-panel.open {
        max-height: 200px;
        opacity: 1;
        pointer-events: auto;
    }

/* change background when navbar has scrolled class applied */
.navbar-wrapper.scrolled .navbar-dropdown-panel {
    background: var(--light-2);
    backdrop-filter: none;
}

/* ensure non-scrolled state explicitly resets if class toggles */
.navbar-wrapper:not(.scrolled) .navbar-dropdown-panel {
    background: var(--light-2);
}

.navbar-dropdown-panel .container {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.navbar-dropdown-panel a {
    color: var(--dark-2);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

    .navbar-dropdown-panel a:hover {
        color: var(--brand-1);
    }

.navbar-button {
    color: var(--dark-1);
    outline: none;
    border: solid 2px var(--dark-1);
    border-radius: 25px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    margin-left: 6px;
}

    .navbar-button:hover {
        background-color: var(--brand-2);
        color: var(--light-1);
        transform: scale(1.1);
    }

/* #endregion */

/* #region FullScreen Menu */
/* lock background scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 12px 40px 12px;
    overflow-y: auto;
    /* allow menu items to scroll if tall */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.996);
    transition: opacity 320ms cubic-bezier(0.2, 0.9, 0.21, 1), transform 320ms cubic-bezier(0.2, 0.9, 0.21, 1);
    will-change: transform, opacity;
}

    .fullscreen-menu.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

/* when close-btn is used inside the topbar keep it static */
.fullscreen-topbar .close-btn {
    position: static;
}

.fullscreen-menu-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: center;
    justify-content: center;
    /* center the buttons horizontally */
    flex-direction: column;
    /* stack vertically on small screens */
}

/* remove left margin that .btn-custom adds globally so buttons don't push off-screen */
.fullscreen-menu .btn-custom {
    margin-left: 0;
}

.fullscreen-menu .btn-login {
    border: 2px solid #fff;
    padding: 12px 28px;
    font-size: 1.1rem;
    color: #fff;
    background: transparent;
    border-radius: 30px;
    transition: background 0.3s ease, color 0.3s ease;
}

    .fullscreen-menu .btn-login:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.fullscreen-menu .btn-cta {
    padding: 12px 28px;
    font-size: 1.1rem;
    color: #111;
    background: #00c3ff;
    border-radius: 30px;
    transition: background 0.3s ease;
}

    .fullscreen-menu .btn-cta:hover {
        background: #0099cc;
    }

.menu-items {
    list-style: none;
    text-align: center;
    width: 100%;
    margin-top: 40px;
    padding-left: 0px;
}

    .menu-items li {
        margin: 15px 0;
    }

    .menu-items a {
        color: #fff;
        font-size: 1.25rem;
        font-weight: 600;
        text-decoration: none;
        padding: 10px 0;
        display: block;
        transition: color 0.3s ease;
    }

        .menu-items a:hover {
            color: #00c3ff;
        }

/* Topbar inside fullscreen menu (sticky) */
.fullscreen-topbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5px;
    box-sizing: border-box;
    z-index: 12;
    flex-wrap: wrap;
}

    .fullscreen-topbar .topbar-left {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

.btn-icon {
    height: 40px;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: var(--brand-2);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--light-1);
}

    .btn-icon:active,
    .btn-icon:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.12);
    }

.btn-login-icon {
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.btn-cta-icon {
    background: linear-gradient(90deg, #00c3ff, #00b0e6);
    color: #061017;
}

/* Mobile dropdown menu inside fullscreen menu */
.mobile-dropdown {
    position: relative;
    margin-top: 20px;
    text-align: center;
    /* ensure toggle/button is centered */
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 100%;
    justify-content: center;
    /* center content within toggle */
}

    .dropdown-toggle:hover {
        color: #00c3ff;
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

.mobile-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

/* submenu styling */
.dropdown-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-align: center;
    /* center submenu items */
}

.mobile-dropdown.open .dropdown-submenu {
    max-height: 500px;
}

.dropdown-submenu li {
    margin: 10px 0;
}

.dropdown-submenu a {
    color: #ccc;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

    .dropdown-submenu a:hover {
        color: #00c3ff;
    }

/* #endregion */

/* #region Top Wrapper */

.top-wrapper {
    background-color: var(--light-1);
    min-height: 100vh;
}

/* #endregion */

/* #region Footer */

.footer {
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    color: var(--light-1);
    padding: 70px 0 25px 0;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(0, 130, 206, 0.25), transparent 35%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%);
        pointer-events: none;
    }

    .footer .container {
        position: relative;
        z-index: 1;
    }

.footer-main {
    padding-bottom: 35px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo {
    height: 48px;
    width: auto;
    background: var(--light-1);
    padding: 6px 10px;
    border-radius: 12px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 22px;
    text-align: start;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .footer-socials a {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--light-1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        .footer-socials a:hover {
            background: var(--brand-1);
            transform: translateY(-3px);
            color: var(--light-1);
        }

.footer-column h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--light-1);
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h5::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 38px;
        height: 3px;
        border-radius: 50px;
        background: var(--brand-1);
    }

.footer-links,
.footer-contact-list,
.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a,
    .footer-contact-list a,
    .footer-legal a,
    .footer-legal button {
        color: rgba(255, 255, 255, 0.72);
        text-decoration: none;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

    .footer-legal button {
        background: none;
        border: none;
        outline: none;
        padding: 0;
    }

        .footer-links a:hover,
        .footer-contact-list a:hover,
        .footer-legal a:hover,
        .footer-legal button:hover {
            color: var(--light-1);
        }

    .footer-links a:hover {
        padding-left: 5px;
    }

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

    .footer-contact-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: rgba(255, 255, 255, 0.72);
        line-height: 1.6;
    }

    .footer-contact-list i {
        color: var(--brand-1);
        font-size: 1.1rem;
        margin-top: 3px;
        min-width: 18px;
    }

.footer-trust {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    margin: 10px 0 25px 0;
}

.footer-trust-items {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .footer-trust-items span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.07);
        padding: 8px 12px;
        border-radius: 12px;
    }

    .footer-trust-items i {
        color: var(--brand-1);
    }

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-1);
    color: var(--light-1);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .footer-cta:hover {
        background: var(--brand-1-hover);
        color: var(--light-1);
        transform: translateY(-2px);
    }

.footer-bottom {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

    .footer-bottom p {
        text-align: start;
    }

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

    .footer-legal a {
        font-size: 0.9rem;
    }

@media (max-width: 991px) {
    .footer {
        padding-top: 55px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-trust-items {
        justify-content: center;
    }

    .footer-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer {
        text-align: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list li {
        justify-content: center;
        text-align: start;
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 12px;
    }
}

/* #endregion */
