/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    width: 100%;
    height: 58px;

    background: #050505;

    display: flex;
    align-items: center;

    color: #ffffff;

    position: relative;
    z-index: 1000;
}


/* =========================================
   TOPBAR CONTAINER
========================================= */

.topbar-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
   LEFT SECTION
========================================= */

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* =========================================
   SOCIAL REVEAL
========================================= */

.social-reveal {
    height: 38px;
    width: 38px;

    position: relative;

    display: flex;
    align-items: center;

    transition:
        width 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    overflow: hidden;

    border-radius: 25px;

    background: #111111;

    border: 1px solid rgba(255, 255, 255, 0.12);
}


/* Expand social box */

.social-reveal:hover {
    width: 270px;
}


/* =========================================
   SOCIAL TRIGGER
========================================= */

.social-trigger {
    min-width: 38px;
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1a1a1a;

    color: #ffffff;

    font-size: 14px;

    position: relative;

    z-index: 5;

    flex-shrink: 0;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.social-reveal:hover .social-trigger {
    background: #1a1a1a;
    transform: none;
}


/* =========================================
   SOCIAL ICON CONTAINER
========================================= */

.social-icons {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-left: 9px;

    white-space: nowrap;
}


/* =========================================
   SOCIAL ICON
========================================= */

.social-item {
    width: 31px;
    height: 31px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: #ffffff;

    font-size: 13px;

    opacity: 0;

    transform: translateX(-18px);

    pointer-events: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.45s ease,
        opacity 0.35s ease;
}


/* =========================================
   SEQUENTIAL SOCIAL REVEAL
========================================= */

.social-reveal:hover .social-item {
    opacity: 1;

    transform: translateX(0);

    pointer-events: auto;
}


/* Delay for each icon */

.social-reveal:hover .social-item:nth-child(1) {
    transition-delay: 0.08s;
}

.social-reveal:hover .social-item:nth-child(2) {
    transition-delay: 0.14s;
}

.social-reveal:hover .social-item:nth-child(3) {
    transition-delay: 0.20s;
}

.social-reveal:hover .social-item:nth-child(4) {
    transition-delay: 0.26s;
}

.social-reveal:hover .social-item:nth-child(5) {
    transition-delay: 0.32s;
}


/* =========================================
   SOCIAL ICON HOVER
========================================= */

.social-item:hover {
    background: #ED1C24;

    color: #ffffff;

    transform: translateY(-2px) scale(1.08);
}


/* =========================================
   PHONE PILL
========================================= */

.phone-pill {
    height: 38px;

    padding: 0 15px 0 5px;

    display: flex;
    align-items: center;

    gap: 9px;

    background: #111111;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 30px;

    color: #ffffff;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


.phone-pill:hover {
    background: #171717;

    border-color: #ED1C24;

    transform: translateY(-1px);
}


/* Phone Icon */

.phone-icon {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #ED1C24;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
}


/* Phone Number */

.phone-number {
    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.2px;
}


/* =========================================
   RIGHT SECTION
========================================= */

.topbar-right {
    display: flex;
    align-items: center;

    gap: 9px;
}


/* =========================================
   TOPBAR BUTTON
========================================= */

.topbar-button {
    height: 38px;

    padding: 0 15px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.topbar-button i {
    font-size: 12px;
}


/* =========================================
   DASHBOARD BUTTON
========================================= */

.dashboard-btn {
    background: #111111;

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #ffffff;
}


.dashboard-btn:hover {
    background: #ffffff;

    color: #000000;

    transform: translateY(-1px);
}


/* =========================================
   COMPARE BUTTON
========================================= */

.compare-btn {
    background: #ED1C24;

    color: #ffffff;

    border: 1px solid #ED1C24;
}


.compare-btn:hover {
    background: #ED1C24;

    border-color: #ED1C24;

    transform: translateY(-1px);
}


/* =========================================
   MAIN CONTENT - TEMPORARY
========================================= */

main {
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .topbar {
        height: auto;

        min-height: 58px;
    }

    .topbar-container {
        padding: 10px 15px;

        gap: 10px;
    }

    .phone-number {
        display: none;
    }

    .phone-pill {
        width: 38px;

        padding: 0;

        justify-content: center;
    }

    .topbar-button span {
        display: none;
    }

    .topbar-button {
        width: 38px;

        padding: 0;
    }

    .social-reveal:hover {
        width: 240px;
    }

}


@media (max-width: 480px) {

    .topbar-container {
        padding: 9px 10px;
    }

    .topbar-left {
        gap: 7px;
    }

    .topbar-right {
        gap: 5px;
    }

    .social-reveal:hover {
        width: 215px;
    }

    .social-icons {
        gap: 3px;

        margin-left: 5px;
    }

    .social-item {
        width: 28px;
        height: 28px;
    }

}


/* ===================================Menu Bar Start ========================================= */

.main-navbar {
    position: sticky;
    top: 0;

    width: 100%;
    height: 78px;

    z-index: 999;

    background: rgba(46, 46, 46, 0.96);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}


/* =========================================
   SCROLLED NAVBAR
========================================= */

.main-navbar.navbar-scrolled {
    background: rgba(55, 55, 55, 0.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25);
}


/* =========================================
   NAVBAR CONTAINER
========================================= */

.navbar-container {
    width: 100%;
    max-width: 1400px;

    height: 100%;

    margin: 0 auto;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
   LOGO
========================================= */

.navbar-logo {
    display: flex;
    align-items: center;

    height: 100%;

    flex-shrink: 0;
}


.navbar-logo img {
    display: block;

    width: auto;
    max-width: 155px;
    max-height: 48px;

    object-fit: contain;

    animation: medlifyLogoGlow 2.8s ease-in-out infinite;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

@keyframes medlifyLogoGlow {

    0%,
    100% {
        filter:
            drop-shadow(0 0 2px rgba(255, 107, 0, 0.25))
            drop-shadow(0 0 5px rgba(255, 107, 0, 0.10));
    }

    50% {
        filter:
            drop-shadow(0 0 5px #ED1C24)
            drop-shadow(0 0 14px rgba(255, 107, 0, 0.40))
            drop-shadow(0 0 25px rgba(255, 107, 0, 0.18));
    }
}

.navbar-logo:hover img {
    transform: scale(1.04);

    filter:
        drop-shadow(0 0 7px #ED1C24)
        drop-shadow(0 0 18px #ED1C24);
}


.navbar-logo:hover img {
    transform: scale(1.04);

    opacity: 0.9;
}


/* =========================================
   DESKTOP MENU
========================================= */

.desktop-menu {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 3px;
}


/* =========================================
   NAV LINK
========================================= */

.nav-link {
    position: relative;

    height: 100%;

    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.3s ease;
}


/* =========================================
   NAV HOVER UNDERLINE
========================================= */

.nav-link::after {
    content: "";

    position: absolute;

    left: 13px;
    right: 13px;

    bottom: 13px;

    height: 2px;

    border-radius: 10px;

    background: #ED1C24;

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


.nav-link:hover::after {
    transform: scaleX(1);
}


/* =========================================
   NAV TEXT
========================================= */

.nav-link > span:last-child {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}


.nav-link:hover {
    color: #ffffff;
}


.nav-link:hover > span:last-child {
    transform: translateY(2px);
}


/* =========================================
   HOVER ICON
   Icon appears ABOVE menu text
========================================= */

.nav-icon {
    position: absolute;

    top: 8px;
    left: 50%;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ED1C24;

    font-size: 15px;

    opacity: 0;

    transform:
        translate(-50%, -8px)
        scale(0.5);

    transition:
        opacity 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


.nav-link:hover .nav-icon {
    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-toggle {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    cursor: pointer;
}


.mobile-menu-toggle span {
    width: 20px;
    height: 2px;

    border-radius: 5px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hamburger → X */

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 12px;
    right: 12px;

    padding: 10px;

    background: rgba(25, 25, 25, 0.96);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    opacity: 0;

    transform: translateY(-10px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Open Mobile Menu */

.mobile-menu.open {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


/* Mobile Links */

.mobile-menu a {
    min-height: 48px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    gap: 13px;

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}


.mobile-menu a i {
    width: 20px;

    color: #ED1C24;

    font-size: 13px;

    text-align: center;
}


.mobile-menu a:hover {
    background: rgba(255, 107, 0, 0.10);

    color: #ffffff;

    padding-left: 20px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1150px) {

    .navbar-container {
        padding: 0 20px;
    }

    .nav-link {
        padding: 0 9px;

        font-size: 12px;
    }

    .nav-link::after {
        left: 9px;
        right: 9px;
    }

    .navbar-logo img {
        max-width: 135px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .main-navbar {
        height: 68px;
    }

    .navbar-container {
        padding: 0 16px;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-logo img {
        max-width: 140px;
        max-height: 44px;
    }

    .mobile-menu {
        display: block;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .main-navbar {
        height: 64px;
    }

    .navbar-container {
        padding: 0 12px;
    }

    .navbar-logo img {
        max-width: 125px;
    }

    .mobile-menu {
        left: 8px;
        right: 8px;
    }
}

/* ========================================= Menubar end========================================= */

/* =========================================================
   MEDLIFY FOOTER
========================================================= */

.medlify-footer {

    position: relative;

    width: 100%;

    background: #f51c24;

    color: #000000;

    padding: 62px 0 0;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.footer-container {

    width: min(1100px, calc(100% - 80px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        170px
        290px
        160px
        180px
        50px;

    column-gap: 25px;

    align-items: start;
}


/* =========================================================
   IMAGE
========================================================= */

.footer-image {

    width: 140px;

    height: 190px;

    border-radius: 7px;

    overflow: hidden;

    display: flex;

    align-items: flex-end;

    justify-content: center;
}


.footer-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center bottom;
}


/* =========================================================
   MESSAGE
========================================================= */

.footer-message {

    padding: 0;

    margin: 0;
}


.footer-message p {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 19px;

    line-height: 1.42;

    font-weight: 400;

    color: #000000;
}


.footer-emoji {

    display: block;

    margin-top: 5px;

    font-size: 17px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.footer-nav {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 27px;

    margin: 0;

    padding: 0;
}


.footer-nav a {

    color: #000000;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 18px;

    line-height: 1;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.footer-nav a:hover {

    transform: translateX(4px);

    opacity: 0.65;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.footer-social {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    gap: 22px;
}


.footer-social a {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #000000;

    text-decoration: none;

    font-size: 20px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.footer-social a:hover {

    transform: scale(1.15);

    opacity: 0.65;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.footer-description {

    width: min(1100px, calc(100% - 80px));

    margin: 32px auto 0;

    color: #000000;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    line-height: 1.45;

    font-weight: 400;
}


/* =========================================================
   BOTTOM LINE
========================================================= */

.footer-bottom {

    position: relative;

    width: min(1100px, calc(100% - 80px));

    margin: 18px auto 0;

    padding: 12px 0 16px;

    border-top: 1px solid rgba(0, 0, 0, 0.35);

    text-align: center;

    color: rgba(0, 0, 0, 0.8);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
}


/* =========================================================
   SCROLL UP BUTTON
========================================================= */

.footer-scroll-btn {

    position: absolute;

    right: 45px;

    bottom: 14px;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    border: 2px solid #000000;

    background: transparent;

    color: #000000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease;
}


.footer-scroll-btn.visible {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.footer-scroll-btn:hover {

    background: #000000;

    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .medlify-footer {

        padding-top: 50px;
    }


    .footer-container {

        width: calc(100% - 50px);

        grid-template-columns:
            130px
            230px
            140px
            150px
            45px;

        column-gap: 18px;
    }


    .footer-image {

        width: 115px;

        height: 165px;
    }


    .footer-message p {

        font-size: 16px;
    }


    .footer-nav {

        gap: 20px;
    }


    .footer-nav a {

        font-size: 16px;
    }


    .footer-description {

        width: calc(100% - 50px);

        font-size: 11px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .medlify-footer {

        padding: 40px 12px 0;
    }


    .footer-container {

        width: 100%;

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        grid-template-rows:
            auto
            auto
            auto;

        column-gap: 20px;

        row-gap: 25px;

        align-items: start;
    }


    /* -----------------------------------------
       IMAGE
    ----------------------------------------- */

    .footer-image {

        grid-column: 1;

        grid-row: 1;

        width: 120px;

        height: 155px;

        margin-left: 5px;
    }


    /* -----------------------------------------
       MESSAGE
    ----------------------------------------- */

    .footer-message {

        grid-column: 2;

        grid-row: 1;

        padding: 0;

        margin: 0;
    }


    .footer-message p {

        font-size: 14px;

        line-height: 1.38;
    }


    .footer-emoji {

        font-size: 15px;

        margin-top: 5px;
    }


    /* -----------------------------------------
       FIRST NAV
    ----------------------------------------- */

    .footer-nav:nth-of-type(1) {

        grid-column: 1;

        grid-row: 2;

        gap: 17px;

        padding-left: 5px;
    }


    /* -----------------------------------------
       SECOND NAV
    ----------------------------------------- */

    .footer-nav:nth-of-type(2) {

        grid-column: 2;

        grid-row: 2;

        gap: 17px;

        padding-left: 5px;
    }


    .footer-nav a {

        font-size: 14px;

        line-height: 1.1;
    }


    /* -----------------------------------------
       SOCIAL
    ----------------------------------------- */

    .footer-social {

        grid-column: 1 / 3;

        grid-row: 3;

        width: 100%;

        flex-direction: row;

        justify-content: center;

        align-items: center;

        gap: 25px;

        padding: 0;

        margin-top: 0;
    }


    .footer-social a {

        width: 30px;

        height: 30px;

        font-size: 19px;
    }


    /* -----------------------------------------
       DESCRIPTION
    ----------------------------------------- */

    .footer-description {

        width: 100%;

        margin: 5px auto 0;

        padding: 0 3px;

        font-size: 9px;

        line-height: 1.4;

        text-align: left;
    }


    /* -----------------------------------------
       BOTTOM
    ----------------------------------------- */

    .footer-bottom {

        width: 100%;

        margin-top: 15px;

        padding: 10px 0 55px;

        font-size: 8px;
    }


    /* -----------------------------------------
       SCROLL BUTTON
    ----------------------------------------- */

    .footer-scroll-btn {

        right: 10px;

        bottom: 42px;

        width: 40px;

        height: 40px;

        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .medlify-footer {

        padding-left: 10px;

        padding-right: 10px;
    }


    .footer-container {

        column-gap: 15px;
    }


    .footer-image {

        width: 105px;

        height: 140px;
    }


    .footer-message p {

        font-size: 13px;
    }


    .footer-nav a {

        font-size: 13px;
    }


    .footer-social {

        gap: 22px;
    }


    .footer-description {

        font-size: 12px;

        line-height: 1.4;
    }

}


/* =========================================================
   MEDLIFY 3D RED CUSTOM SCROLLBAR
========================================================= */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {

    width: 13px;

}


/* Scrollbar Track */

::-webkit-scrollbar-track {

    background: #111111;

    border-left: 1px solid #2a2a2a;

}


/* Scrollbar Thumb */

::-webkit-scrollbar-thumb {

    background: linear-gradient(
        90deg,
        #7a0000 0%,
        #ff1f2a 25%,
        #ff4a52 50%,
        #d9000b 75%,
        #780000 100%
    );

    border-radius: 20px;

    border: 2px solid #111111;

    box-shadow:
        inset 2px 0 2px rgba(255,255,255,0.35),
        inset -2px 0 3px rgba(0,0,0,0.55),
        0 0 6px rgba(255,0,0,0.45);

}


/* Hover */

::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(
        90deg,
        #990000 0%,
        #ff1a25 20%,
        #ff6268 50%,
        #e6000d 80%,
        #870000 100%
    );

    box-shadow:
        inset 2px 0 3px rgba(255,255,255,0.45),
        inset -3px 0 4px rgba(0,0,0,0.65),
        0 0 10px rgba(255,0,0,0.7);

}


/* Click / Drag */

::-webkit-scrollbar-thumb:active {

    background: linear-gradient(
        90deg,
        #650000,
        #d4000a,
        #ff252f,
        #b50008,
        #650000
    );

}


/* =========================================================
   FIREFOX
========================================================= */

html {

    scrollbar-width: thin;

    scrollbar-color:
        #ed1c24
        #111111;

}