/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 100%;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #f8fafc;
    color: #0f172a;

    overflow-x: hidden;
}

body,
main,
footer {
    margin-left: 0;
    margin-right: 0;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    max-width: none;

    height: 92px;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.header-container {
    width: calc(100% - 40px);
    max-width: 1440px;

    height: 100%;

    margin: 0 auto;

    padding: 8px 0;

    display: flex;
    align-items: center;

    min-width: 0;
}


/* =========================================
   LOGO
========================================= */

.logo-link {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}

.logo {
    height: 77px;

    width: auto;
    max-width: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================
   NAVIGATION
========================================= */

.navigation {
    display: flex;
    align-items: center;

    flex: 0 1 650px;

    min-width: 0;

    margin-left: 30px;
    margin-right: 32px;

    justify-content: space-between;

    gap: 4px;
}

.nav-button {
    position: relative;

    padding: 10px 12px;

    text-decoration: none;

    color: #334155;

    font-size: 15px;
    font-weight: 500;

    border-radius: 8px;

    white-space: nowrap;

    min-width: 0;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-button:hover {
    color: #0f766e;

    background: #f0fdfa;
}

.nav-button.active {
    color: #0f766e;

    font-weight: 600;
}

.nav-button.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;

    bottom: 3px;

    height: 2px;

    background: #0f766e;

    border-radius: 999px;
}


/* =========================================
   REGISTER / LOGIN
========================================= */

.auth-buttons {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-shrink: 0;
}

.register-button,
.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;

    padding: 10px 15px;

    border-radius: 8px;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.register-button {
    color: #0f766e;

    background: #ffffff;

    border: 1px solid #0f766e;
}

.register-button:hover {
    background: #f0fdfa;
}

.login-button {
    color: #ffffff;

    background: #0f766e;

    border: 1px solid #0f766e;
}

.login-button:hover {
    background: #115e59;

    border-color: #115e59;
}


/* =========================================
   SOCIAL MEDIA
========================================= */

.social-buttons {
    display: flex;
    align-items: center;

    margin-left: 14px;

    gap: 11px;

    flex-shrink: 0;
}

.social-button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8da1bd;

    text-decoration: none;

    border: 1px solid #8da1bd;

    border-radius: 50%;

    background: #ffffff;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.social-button:hover {
    color: #0f766e;

    border-color: #0f766e;

    background: #f8fffe;

    transform: translateY(-1px);
}


/* =========================================
   SOCIAL SVG ICONS
========================================= */

.social-button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-button {
    display: none;

    margin-left: auto;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #0f172a;

    font-family: 'Poppins', sans-serif;

    font-size: 26px;

    cursor: pointer;

    flex-shrink: 0;
}

.mobile-menu-button:hover {
    background: #f1f5f9;
}


/* =========================================
   HERO
========================================= */

.hero {
    width: 100%;
    max-width: none;

    min-height: calc(100vh - 92px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 20px;

    margin: 0;

    background:
        radial-gradient(
            circle at 48% 40%,
            #ecfeff 0%,
            #f8fafc 45%,
            #f8fafc 100%
        );
}

.hero-content {
    width: 100%;
    max-width: 900px;

    text-align: center;

    transform: translateX(-25px);
}

.hero h1 {
    margin-bottom: 20px;

    font-size: clamp(52px, 7vw, 88px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -3px;

    color: #0f172a;
}

.hero h1 span {
    color: #0f766e;
}

.hero p {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    font-size: 20px;

    line-height: 1.7;

    font-weight: 400;

    color: #64748b;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    position: relative;

    width: 100%;
    max-width: none;

    min-height: 580px;

    margin: 0;
    padding: 0;

    background: #202c3d;

    color: #ffffff;

    overflow: hidden;

    display: block;
}

.footer-container {
    position: relative;

    z-index: 2;

    width: calc(100% - 40px);
    max-width: 1500px;

    min-height: 580px;

    margin: 0 auto;

    padding: 72px 35px 34px;

    display: grid;

    grid-template-columns: 0.92fr 1.08fr;

    column-gap: 90px;

    row-gap: 40px;
}


/* =========================================
   FOOTER BACKGROUND LINES
========================================= */

.footer-background-lines {
    position: absolute;

    z-index: 1;

    width: 850px;
    height: 850px;

    right: -100px;
    bottom: -470px;

    border-radius: 48% 52% 45% 55%;

    background:
        repeating-radial-gradient(
            ellipse at center,
            transparent 0,
            transparent 9px,
            rgba(148, 163, 184, 0.16) 10px,
            transparent 11px
        );

    transform:
        rotate(-12deg)
        scaleX(1.3);

    pointer-events: none;
}

.footer-background-lines::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    left: -470px;
    top: -520px;

    border-radius: 50%;

    background:
        repeating-radial-gradient(
            ellipse at center,
            transparent 0,
            transparent 9px,
            rgba(148, 163, 184, 0.14) 10px,
            transparent 11px
        );

    transform:
        rotate(20deg)
        scaleX(1.4);
}


/* =========================================
   FOOTER BRAND
========================================= */

.footer-brand {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-top: 20px;

    padding-left: 5px;
}

.footer-logo {
    width: 180px;
    height: auto;

    object-fit: contain;

    display: block;

    margin-bottom: 28px;
}

.footer-title {
    margin-bottom: 22px;

    font-size: 34px;

    line-height: 1.25;

    font-weight: 600;

    letter-spacing: -0.8px;

    color: #ffffff;
}

.footer-motto {
    max-width: 560px;

    font-size: 18px;

    line-height: 1.8;

    font-weight: 400;

    color: #e2e8f0;
}

.footer-partnership {
    max-width: 560px;

    margin-top: 34px;

    font-size: 15px;

    line-height: 1.7;

    font-weight: 400;

    color: #94a3b8;
}

.footer-partnership strong {
    color: #dbe4ee;

    font-weight: 500;
}


/* =========================================
   FOOTER INFORMATION
========================================= */

.footer-information {
    padding-left: 5px;
}

.footer-information h2 {
    margin-bottom: 58px;

    font-size: 46px;

    line-height: 1.1;

    font-weight: 400;

    letter-spacing: -1.5px;

    color: #ffffff;
}


/* =========================================
   FOOTER INFORMATION ITEMS
========================================= */

.footer-info-item {
    display: flex;

    align-items: flex-start;

    gap: 28px;

    margin-bottom: 38px;

    color: #f8fafc;
}

.footer-info-item:last-child {
    margin-bottom: 0;
}


/* =========================================
   FOOTER ICONS
========================================= */

.footer-icon {
    width: 42px;
    min-width: 42px;

    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;
}

.footer-icon svg {
    width: 31px;
    height: 31px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   FOOTER TEXT
========================================= */

.footer-info-item a {
    color: #f8fafc;

    text-decoration: none;

    font-size: 20px;

    line-height: 1.65;

    font-weight: 400;

    transition:
        color 0.2s ease;
}

.footer-info-item a:hover {
    color: #5eead4;
}

.footer-info-item p {
    margin: 0;

    font-size: 20px;

    line-height: 1.65;

    font-weight: 400;

    color: #f8fafc;
}


/* =========================================
   FOOTER EMAIL
========================================= */

.footer-email {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-email span {
    font-size: 20px;

    line-height: 1.5;

    font-weight: 400;

    color: #f8fafc;
}

.footer-email a {
    margin-top: 1px;
}


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    grid-column: 1 / -1;

    width: 100%;

    margin-top: 12px;

    padding-top: 8px;

    padding-bottom: 8px;
}

.footer-bottom-line {
    width: 88%;

    height: 1px;

    background: rgba(255, 255, 255, 0.35);

    margin: 0 auto 26px;
}

.footer-bottom-content {
    width: 88%;

    min-height: 60px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.footer-copyright {
    font-family: 'Poppins', sans-serif;

    font-size: 15px;

    font-weight: 400;

    color: rgba(255, 255, 255, 0.72);
}

.footer-social {
    display: flex;

    align-items: center;

    gap: 22px;
}

.footer-social a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.72);

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover {
    color: #5eead4;

    transform: translateY(-2px);
}

.footer-social svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

    display: block;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1150px) {

    .footer-logo {
        width: 155px;
        margin-bottom: 24px;
    }

    .header-container {
        width: calc(100% - 28px);
    }

    .logo {
        height: 70px;
    }

    .navigation {
        flex: 1 1 auto;

        margin-left: 20px;
        margin-right: 18px;

        gap: 2px;
    }

    .nav-button {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 14px;
    }

    .auth-buttons {
        gap: 5px;
    }

    .register-button,
    .login-button {
        padding: 9px 11px;

        min-width: 76px;

        font-size: 13px;
    }

    .social-buttons {
        margin-left: 8px;

        gap: 8px;
    }

    .social-button {
        width: 38px;
        height: 38px;
    }

    .social-button svg {
        width: 17px;
        height: 17px;
    }

    .hero-content {
        transform: none;
    }

    .footer-container {
        width: calc(100% - 40px);

        padding-left: 25px;
        padding-right: 25px;

        grid-template-columns: 1fr 1fr;

        column-gap: 50px;
    }

    .footer-title {
        font-size: 30px;
    }

    .footer-information h2 {
        font-size: 40px;
    }

    .footer-bottom-line,
    .footer-bottom-content {
        width: 90%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 950px) {

    .header {
        height: 80px;
    }

    .header-container {
        width: calc(100% - 32px);

        padding: 6px 0;
    }

    .logo {
        height: 67px;
    }

    .navigation,
    .auth-buttons,
    .social-buttons {
        display: none;
    }

    .mobile-menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .navigation.mobile-open {
        position: absolute;

        top: 80px;

        left: 0;
        right: 0;

        width: 100%;
        max-width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        margin: 0;

        padding: 12px 16px 16px;

        background: #ffffff;

        border-bottom: 1px solid #e2e8f0;

        box-shadow:
            0 10px 25px rgba(15, 23, 42, 0.08);
    }

    .navigation.mobile-open .nav-button {
        width: 100%;

        padding: 12px 14px;

        font-size: 15px;
    }

    .navigation.mobile-open .nav-button.active::after {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: calc(100vh - 80px);

        padding: 60px 20px;
    }

    .hero h1 {
        font-size: clamp(48px, 13vw, 68px);

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 17px;
    }


    /* FOOTER */

    .footer {
        min-height: auto;
    }

    .footer-container {
        width: calc(100% - 40px);

        min-height: auto;

        grid-template-columns: 1fr;

        gap: 65px;

        padding: 65px 0 35px;
    }

    .footer-brand {
        padding-top: 0;
        padding-left: 0;
    }

    .footer-title {
        font-size: 30px;
    }

    .footer-motto {
        max-width: 650px;

        font-size: 18px;
    }

    .footer-partnership {
        max-width: 650px;
    }

    .footer-information {
        padding-left: 0;
    }

    .footer-information h2 {
        margin-bottom: 40px;

        font-size: 40px;
    }

    .footer-info-item {
        gap: 22px;

        margin-bottom: 30px;
    }

    .footer-info-item a,
    .footer-info-item p,
    .footer-email span {
        font-size: 18px;
    }

    .footer-background-lines {
        width: 700px;
        height: 700px;

        right: -300px;
        bottom: -400px;
    }


    /* FOOTER BOTTOM */

    .footer-bottom {
        margin-top: 0;

        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-bottom-line {
        width: 90%;

        margin-bottom: 20px;
    }

    .footer-bottom-content {
        width: 90%;

        min-height: 58px;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .header {
        height: 72px;
    }

    .header-container {
        width: calc(100% - 24px);

        padding: 5px 0;
    }

    .logo {
        height: 61px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;

        font-size: 24px;
    }

    .navigation.mobile-open {
        top: 72px;

        padding-left: 12px;
        padding-right: 12px;
    }


    /* HERO */

    .hero {
        min-height: calc(100vh - 72px);

        padding: 50px 18px;
    }

    .hero h1 {
        font-size: 46px;

        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }


    /* FOOTER */

    .footer-container {
        width: calc(100% - 32px);

        padding: 55px 0 25px;

        gap: 55px;
    }

    .footer-title {
        font-size: 26px;

        letter-spacing: -0.5px;
    }

    .footer-motto {
        font-size: 16px;

        line-height: 1.75;
    }

    .footer-partnership {
        margin-top: 28px;

        font-size: 14px;

        line-height: 1.7;
    }

    .footer-information h2 {
        margin-bottom: 35px;

        font-size: 34px;

        letter-spacing: -1px;
    }

    .footer-info-item {
        gap: 16px;

        margin-bottom: 27px;
    }

    .footer-icon {
        width: 34px;
        min-width: 34px;

        height: 34px;
    }

    .footer-icon svg {
        width: 27px;
        height: 27px;
    }

    .footer-info-item a,
    .footer-info-item p,
    .footer-email span {
        font-size: 15px;

        line-height: 1.6;
    }

    .footer-background-lines {
        width: 600px;
        height: 600px;

        right: -330px;
        bottom: -320px;
    }


    /* FOOTER BOTTOM */

    .footer-bottom {
        margin-top: 0;

        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-bottom-line {
        width: 90%;

        margin-bottom: 16px;
    }

    .footer-bottom-content {
        width: 90%;

        min-height: 54px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer-social {
        gap: 8px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    .footer-social svg {
        width: 19px;
        height: 19px;
    }
}
/* ============================================================
   LOGOUT BUTTON
   ============================================================ */

.logout-button {
    min-width: 82px;
    height: 42px;

    padding: 10px 15px;

    border: 1px solid #0f766e;
    border-radius: 8px;

    background: #ffffff;
    color: #0f766e;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;

    line-height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.logout-button:hover {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}

.logout-button:active {
    transform: translateY(1px);
}

.logout-button:disabled {
    opacity: 0.65;
    cursor: wait;
}


/* ============================================================
   MOBILE LOGOUT BUTTON
   ============================================================ */

@media (max-width: 950px) {

    .logout-button {
        min-width: 78px;
        height: 40px;
        padding: 9px 13px;
        font-size: 13px;
    }

}


/* ============================================================
   LOGGED-IN DASHBOARD BUTTON
   ============================================================ */
.auth-buttons.logged-in {
    min-width: 171px;
}
.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 171px;
    min-width: 171px;
    height: 42px;
    padding: 10px 15px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    box-sizing: border-box;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.dashboard-button:hover {
    background: #115e59;
    border-color: #115e59;
}
.dashboard-button:active {
    transform: translateY(1px);
}
