/* Extracted common styles from index.html and signin.html */

/* Gilroy webfont (hosted via CDNFonts) */
@font-face {
    font-family: "Gilroy";
    src: url("https://fonts.cdnfonts.com/s/16219/Gilroy-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("https://fonts.cdnfonts.com/s/16219/Gilroy-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("https://fonts.cdnfonts.com/s/16219/Gilroy-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("https://fonts.cdnfonts.com/s/16219/Gilroy-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("https://fonts.cdnfonts.com/s/16219/Gilroy-Heavy.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Base font size: increase overall scale */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Laptop tuning (1366-1536px): slightly reduce visual scale to avoid zoomed look */
@media (min-width: 1280px) and (max-width: 1536px) {
    html {
        font-size: 15px;
    }

    .hero-full {
        min-height: calc(92vh - var(--topbar-height));
    }

    .about-service-bg {
        min-height: 920px;
        background-size: 115% auto;
        background-position: center 185px;
    }
}

/* Narrow laptop fine-tuning (1280-1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .about-service-bg {
        min-height: 860px;
        background-size: 122% auto;
        background-position: center 215px;
    }
}

/* hero gradient utility */
.hero-gradient {
    background: linear-gradient(to bottom right, #FFFFFF 0%, #E0F2FE 100%);
}

/* Make hero fill available viewport height beneath the sticky header */
:root {
    --topbar-height: 5rem;
    /* matches header h-20 */
    --color-primary: #18A4F5;
    --color-secondary: #F3C72C;
    --color-tertiary: #140A9A;
    --color-neutral: #333333;
}

/* Make anchored section headings account for the sticky header so they are not hidden when navigated-to */
[id] {
    scroll-margin-top: var(--topbar-height);
}

/* Main header: transparent at top, becomes solid + shadow on scroll */
.main-header {
    background-color: transparent;
    border-bottom: none;
    transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.main-header.scrolled {
    background-color: transparent;
    border-bottom: none;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
    -webkit-backdrop-filter: saturate(150%) blur(8px);
    backdrop-filter: saturate(150%) blur(8px);
}

.mobile-menu-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-menu-panel.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    transition: color 180ms ease, padding-left 180ms ease, background-color 180ms ease;
}

.mobile-nav-link:hover {
    color: #18A4F5;
    padding-left: 0.5rem;
    background-color: rgba(24, 164, 245, 0.05);
}

.mobile-nav-link--cta {
    margin-top: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: #18A4F5;
    color: #fff;
    text-align: center;
}

.mobile-nav-link--cta:hover {
    color: #fff;
    background: #0d95e8;
    padding-left: 0.25rem;
}

.hero-full {
    min-height: auto;
    display: block;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-full {
        min-height: calc(100vh - var(--topbar-height));
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
    }
}


/* Box shadows for cards */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Button corner radius */
.btn-radius {
    border-radius: 14px !important;
}

/* Brand logo sizing */
.brand-logo {
    display: block;
    width: 160px;
    height: auto;
}

footer .brand-logo {
    width: 150px;
}

/* Floating animation for hero images - gentle bob + sway to mimic floating on water */
.floating {
    will-change: transform;
    transform-origin: center center;
    animation-name: floatY;
    animation-timing-function: cubic-bezier(.25, .46, .45, .94);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-duration: 6s;
}

.floating--slow {
    animation-duration: 8s;
}

.floating--fast {
    animation-duration: 5.2s;
    animation-delay: 0.12s;
}

.floating--sway {
    animation-name: floatSway;
}

@keyframes floatY {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(0, -8px, 0) rotate(-0.6deg);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    75% {
        transform: translate3d(0, 6px, 0) rotate(0.6deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

@keyframes floatSway {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(6px, -5px, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    75% {
        transform: translate3d(-6px, 5px, 0) rotate(1deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

/* ─── Hero title word-reveal animation (Metronic "Ship Amazing" style) ─── */
@keyframes hero-word-reveal {
    from {
        transform: translateY(115%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-word-clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* Ensure the clip doesn't cut descenders */
    padding-bottom: 0.05em;
    margin-bottom: -0.05em;
}

.hero-word {
    display: inline-block;
    animation: hero-word-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {

    .hero-gradient,
    .hero-gradient::before,
    .floating,
    .floating--slow,
    .floating--fast,
    .floating--sway {
        animation: none !important;
        transform: none !important;
    }

    .hero-word {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .about-card,
    .about-card::after,
    .value-item,
    .value-media,
    .value-media img,
    .value-text h2,
    .how-step,
    .how-step-number,
    .how-step-line,
    .mobile-menu-panel,
    .mobile-nav-link {
        transition: none !important;
    }
}

/* About section interactivity */
.about-service-bg {
    background-image: url("../images/graphic/background_service.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 80px;
    min-height: 1060px;
    width: 100%;
}

@media (max-width: 1023px) {
    .about-service-bg {
        min-height: 780px;
        background-size: cover;
        background-position: center 265px;
    }
}

@media (max-width: 639px) {
    .about-service-bg {
        min-height: 980px;
        background-size: 150% auto;
        background-position: bottom center;
    }
}

.about-card {
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.about-card::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #18A4F5 0%, #140A9A 100%);
    transition: transform 260ms ease;
}

.about-card:hover,
.about-card.is-active {
    transform: translateY(-6px);
    border-color: rgba(24, 164, 245, 0.2);
    background-color: rgba(24, 164, 245, 0.03);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.about-card:hover::after,
.about-card.is-active::after {
    transform: scaleX(1);
}

.about-card__icon {
    transition: transform 260ms ease, background-color 260ms ease;
}

.about-card:hover .about-card__icon,
.about-card.is-active .about-card__icon {
    transform: rotate(-8deg) scale(1.06);
}

.about-card h3 {
    transition: color 220ms ease;
}

.about-card:hover h3,
.about-card.is-active h3 {
    color: #18A4F5;
}

/* Our value section reveal and media/text motion */
.our-value-section {
    padding: 110px 0;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.our-value-container {
    display: grid;
    gap: 50px;
}

.our-value-heading {
    text-align: center;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.our-value-heading h2 {
    margin: 0;
    color: #18A4F5;
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
}

.our-value-heading p {
    margin: 0;
    width: min(636px, 100%);
    color: #161C2D;
    font-size: 18px;
    line-height: 30px;
}

.our-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: none;
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.22, 1, .36, 1);
}

.motion-enhanced .value-item {
    opacity: 0;
    transform: translateY(24px);
}

.motion-enhanced .value-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.value-media {
    position: relative;
    height: 192.67px;
    border-radius: 10px;
    overflow: hidden;
    background: #EEF2FF;
    transition: transform 360ms ease, box-shadow 360ms ease;
}

.value-media img {
    transition: transform 700ms cubic-bezier(.2, .65, .2, 1);
}

.value-text h2,
.value-text p {
    transition: transform 300ms ease, color 220ms ease;
}

.value-text {
    display: grid;
    gap: 10px;
    padding: 0 20px 20px;
}

.value-text h3 {
    margin: 0;
    color: #18A4F5;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
}

.value-text p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 22.75px;
}

.value-item:hover .value-media {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.value-item:hover .value-media img {
    transform: scale(1.04);
}

.value-item:hover .value-text h2,
.value-item:hover .value-text h3 {
    transform: translateX(4px);
    color: #0d95e8;
}

.value-item:hover .value-text p {
    transform: translateX(4px);
}

@media (max-width: 1279px) {
    .our-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .our-value-section {
        padding: 72px 0;
    }

    .our-value-container {
        gap: 36px;
    }

    .our-value-heading h2 {
        font-size: 30px;
    }

    .our-value-heading p {
        font-size: 16px;
        line-height: 26px;
    }

    .our-value-grid {
        grid-template-columns: 1fr;
    }

    .value-text h3 {
        font-size: 20px;
        line-height: 26px;
    }
}

/* How it works hover highlight */
.how-step {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    padding: 0.45rem 0.65rem 0.65rem 0.5rem;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.how-step-number {
    transition: transform 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.how-step-content h3,
.how-step-content p {
    transition: color 220ms ease;
}

.how-step:hover,
.how-step.is-active {
    transform: translateX(4px);
}

.how-step:hover .how-step-number,
.how-step.is-active .how-step-number {
    transform: scale(1.07);
    box-shadow: 0 0 0 5px rgba(24, 164, 245, 0.18);
}

.how-step:hover .how-step-content h3,
.how-step.is-active .how-step-content h3 {
    color: #18A4F5;
}

/* Signin page specific styles (was inline in signin.html)
   Scoped with a class so it doesn't affect landing page visuals */
.signin-body {
    min-height: 100vh;
    font-family: "Gilroy", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(241, 246, 255, 0.25), rgba(241, 246, 255, 0.25)),
        url("../images/graphic/bg_signin_1.png") center center / cover no-repeat fixed;
}

.signin-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.signin-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.signin-card {
    width: min(100%, 500px);
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 4px -4px rgba(12, 12, 13, 0.05),
        0 16px 16px -8px rgba(12, 12, 13, 0.1);
}

.signin-card__content {
    padding: 30px 40px 40px;
}

.signin-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
}

.signin-headline {
    margin-bottom: 15px;
}

.signin-headline h1 {
    margin: 0 0 5px;
    color: #18A4F5;
    font-size: 22px;
    font-weight: 800;
    line-height: 22px;
    letter-spacing: 0.0455em;
    text-transform: uppercase;
}

.signin-headline p {
    margin: 0;
    color: #656565;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.signin-form {
    display: grid;
    gap: 20px;
}

.signin-field {
    display: grid;
    gap: 7px;
}

.signin-field label {
    color: #121212;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.signin-field input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    color: #121212;
    font-size: 14px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signin-field input::placeholder {
    color: #949494;
}

.signin-field input:focus {
    border-color: #18A4F5;
    box-shadow: 0 0 0 3px rgba(24, 164, 245, 0.14);
}

.signin-password-wrap {
    position: relative;
}

.signin-password-wrap input {
    padding-right: 42px;
}

.signin-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #949494;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.signin-password-toggle:hover {
    color: #475569;
}

.signin-remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signin-remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid #DBDBDB;
    border-radius: 5px;
    accent-color: #18A4F5;
}

.signin-remember label {
    color: #121212;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.signin-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #18A4F5;
    color: #ffffff;
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 16px 21px;
    cursor: pointer;
    transition: background-color 180ms ease, transform 140ms ease;
}

.signin-submit:hover {
    background: #0d95e8;
    transform: translateY(-1px);
}

.signin-submit:focus-visible,
.signin-password-toggle:focus-visible,
.signin-back-link:focus-visible {
    outline: 2px solid #18A4F5;
    outline-offset: 2px;
}

.signin-request {
    margin: 0;
    text-align: center;
    color: #121212;
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.signin-request a {
    color: #18A4F5;
    font-weight: 600;
    text-decoration: none;
}

.signin-request a:hover {
    text-decoration: underline;
}

.signin-card__footer {
    height: 59px;
    background: rgba(221, 230, 255, 0.4);
    border-top: 1px solid #EBEDF8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

.signin-back-link:hover {
    color: #475569;
}

/* Hover-triggered subtle zoom-out (shrink) for CTA buttons */
.hover-zoomout {
    transform-origin: center center;
    transition: transform 140ms cubic-bezier(.4, 0, .2, 1);
}

.hover-zoomout:hover {
    /* slight zoom out / shrink on hover */
    transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {

    .hover-zoomout,
    .hover-zoomout:hover {
        transition: none !important;
        transform: none !important;
    }

    .signin-submit,
    .signin-submit:hover {
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .signin-overlay {
        padding: 16px;
    }

    .signin-card__content {
        padding: 24px 20px 30px;
    }

    .signin-logo {
        width: 168px;
        margin-bottom: 30px;
    }
}

/* Short-viewport adjustment (≥1024px wide, ≤820px tall):
   Reduce spacing and mockup size so the scroll indicator doesn't overlap the mockup */
@media (min-width: 1024px) and (max-height: 820px) {
    .hero-cta-wrap {
        margin-bottom: 1.5rem !important;
    }
    .hero-mockup {
        margin-top: 0.75rem !important;
    }
    .hero-mockup-bar {
        height: 2.25rem !important;
    }
    .hero-mockup-content {
        padding: 0.75rem !important;
    }
    .hero-mockup-content > div {
        gap: 0.5rem;
    }
}


/* ─── Per-section 100vh layout (desktop lg+) ──────────────────────── */
@media (min-width: 1024px) {
    /* About section fills one screen */
    .about-section {
        min-height: calc(100vh - var(--topbar-height));
    }

    /* Our Value: 100vh + replace fixed 110px padding with clamp */
    .our-value-section {
        min-height: calc(100vh - var(--topbar-height));
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(2rem, 5.5vh, 7rem) 0;
    }

    /* How It Works: 100vh with flex centering */
    .how-it-works-section {
        min-height: calc(100vh - var(--topbar-height));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Contact: 100vh with flex centering */
    #contact {
        min-height: calc(100vh - var(--topbar-height));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* About section background image – constrain so it doesn't push section beyond 100vh */
.about-bg-wrap {
    overflow: hidden;
    max-height: clamp(170px, 33vh, 380px);
    flex-shrink: 0;
}

.about-bg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ─── Short-viewport compact tweaks (desktop, ≤720px tall) ─────────── */
@media (min-width: 1024px) and (max-height: 720px) {
    /* How It Works: cap main mockup image height */
    .hiw-mockup-wrap .hiw-main-img {
        max-height: clamp(200px, 42vh, 340px);
        width: auto;
        margin: 0 auto;
    }

    /* Our Value: shrink card image heights */
    .value-media {
        height: clamp(110px, 22vh, 155px);
    }

    /* Our Value: tighten grid/container gaps */
    .our-value-container {
        gap: 20px;
    }

    .our-value-heading {
        gap: 8px;
    }

    .our-value-heading p {
        font-size: 16px;
        line-height: 26px;
    }

    /* Scroll indicator: shrink mouse icon */
    .mouse-cursor {
        width: 22px;
        height: 34px;
    }
}