/* =========================================================
   DOCTATECH
   HERO SECTION
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    background: var(--color-white);
}

.hero__container {
    width: min(1200px, calc(100% - 48px));
    height: calc(100svh - 76px);
    min-height: 500px;

    margin: 0 auto;
    padding: 30px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 0.88fr)
        minmax(500px, 1.12fr);

    align-items: center;

    gap: 42px;
}


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

.hero__content {
    position: relative;
    z-index: 10;
}

.hero__eyebrow {
    margin: 0 0 18px;

    color: var(--color-primary);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__title {
    max-width: 600px;
    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(50px, 5vw, 74px);
    font-weight: 600;

    line-height: 0.97;
    letter-spacing: -0.065em;

    color: var(--color-text);
}

.hero__title span {
    display: block;

    color: var(--color-primary);
}

.hero__description {
    max-width: 500px;

    margin: 26px 0 0;

    color: var(--color-text-muted);

    font-size: 16px;
    line-height: 1.7;
}

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

    gap: 12px;

    margin-top: 30px;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 49px;

    padding: 0 19px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 650;

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 280ms ease;
}

.hero__button:hover {
    transform: translateY(-3px);
}

.hero__button--primary {
    background: var(--color-primary);
    color: var(--color-white);

    box-shadow:
        0 8px 20px rgba(74, 0, 75, 0.10);
}

.hero__button--primary span {
    color: var(--color-accent);

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__button--primary:hover {
    background: #5d075e;

    box-shadow:
        0 12px 26px rgba(74, 0, 75, 0.16);
}

.hero__button--primary:hover span {
    transform: translate(3px, -3px);
}

.hero__button--secondary {
    background: var(--color-white);
    color: var(--color-text);

    border: 1px solid var(--color-border);
}

.hero__button--secondary:hover {
    color: var(--color-primary);

    border-color: var(--color-primary);
}


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

.hero__visual {
    position: relative;

    width: 100%;
    min-height: 510px;

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

.hero__visual-glow {
    position: absolute;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(74, 0, 75, 0.13) 0%,
            rgba(255, 198, 0, 0.08) 40%,
            transparent 70%
        );

    animation:
        heroGlowPulse
        8s
        ease-in-out
        infinite;

    pointer-events: none;
}


/* =========================================================
   CENTRAL DIGITAL WORKSPACE
   ========================================================= */

.hero__visual-card {
    position: relative;
    z-index: 2;

    width: min(100%, 450px);

    transform: rotate(-2deg);

    filter:
        drop-shadow(
            0 28px 34px rgba(0, 0, 0, 0.15)
        );

    animation:
        heroDashboardFloat
        7s
        ease-in-out
        infinite;

    will-change: transform;
}

.hero__visual-window {
    overflow: hidden;

    background: #111;

    border: 7px solid #111;
    border-radius: 17px;
}

.hero__visual-window-bar {
    height: 32px;

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 0 12px;

    background: #242424;
}

.hero__visual-window-bar span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #777;
}

.hero__visual-dashboard {
    display: grid;

    grid-template-columns: 24% 1fr;

    min-height: 285px;

    background: #f5f5f7;
}

.hero__visual-dashboard aside {
    padding: 18px 14px;

    background: var(--color-primary);
}

.hero__visual-logo {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    background: var(--color-accent);
    color: var(--color-primary);

    border-radius: 7px;

    font-family: var(--font-display);
    font-weight: 700;
}

.hero__visual-dashboard aside span {
    display: block;

    width: 75%;
    height: 6px;

    margin-bottom: 14px;

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.25);
}

.hero__visual-dashboard aside span:first-of-type {
    background: var(--color-accent);
}

.hero__visual-main {
    padding: 25px;
}

.hero__visual-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.hero__visual-heading small {
    display: block;

    margin-bottom: 4px;

    color: var(--color-primary);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero__visual-heading strong {
    font-family: var(--font-display);

    font-size: 18px;
    font-weight: 600;
}

.hero__visual-avatar {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: var(--color-accent);

    animation:
        heroAvatarPulse
        4s
        ease-in-out
        infinite;
}

.hero__visual-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 9px;
}

.hero__visual-stats div {
    padding: 14px 10px;

    background: var(--color-white);

    border: 1px solid #e5e5e5;
    border-radius: 7px;
}

.hero__visual-stats small {
    display: block;

    margin-bottom: 6px;

    color: var(--color-text-muted);

    font-size: 8px;
}

.hero__visual-stats strong {
    font-family: var(--font-display);

    font-size: 17px;
}

.hero__visual-chart {
    height: 85px;

    margin-top: 12px;
    padding: 16px;

    overflow: hidden;

    background: var(--color-white);

    border: 1px solid #e5e5e5;
    border-radius: 7px;
}

.hero__chart-line {
    width: 90%;
    height: 7px;

    margin-bottom: 12px;

    border-radius: 4px;

    background: #e2e2e2;
}

.hero__chart-line:nth-child(1) {
    width: 60%;

    background: var(--color-primary);
}

.hero__chart-line:nth-child(2) {
    width: 85%;
}

.hero__chart-line:nth-child(3) {
    width: 72%;
}

.hero__chart-line:nth-child(4) {
    width: 48%;
}


/* =========================================================
   SERVICE CALLOUTS
   ========================================================= */

.hero__service {
    position: absolute;
    z-index: 6;

    width: 205px;
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 13px;

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

    border: 1px solid var(--color-border);
    border-radius: 10px;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.09);

    transition:
        box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 220ms ease;

    will-change: transform;
}


/*
   The floating animation is applied to the inner movement
   using a wrapper-like transform strategy through animation.
   Hover uses a separate visual response without fighting
   the animation.
*/

.hero__service:hover {
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.13);

    border-color:
        rgba(74, 0, 75, 0.24);
}


/* =========================================================
   SERVICE ICON
   ========================================================= */

.hero__service-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: var(--color-primary);
    color: var(--color-accent);

    border-radius: 8px;

    font-size: 14px;
    line-height: 1;

    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__service:hover .hero__service-icon {
    transform:
        scale(1.07)
        translateY(-1px);
}

.hero__service-icon i {
    display: block;

    line-height: 1;

    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__service:hover .hero__service-icon i {
    transform: scale(1.08);
}

.hero__service--web .hero__service-icon,
.hero__service--print .hero__service-icon {
    background: var(--color-accent);
    color: var(--color-primary);
}


/* =========================================================
   SERVICE TEXT
   ========================================================= */

.hero__service strong {
    display: block;

    font-family: var(--font-display);

    font-size: 12px;
    font-weight: 650;

    line-height: 1.2;

    color: var(--color-text);
}

.hero__service small {
    display: block;

    margin-top: 4px;

    color: var(--color-text-muted);

    font-size: 9px;
    line-height: 1.35;
}


/* =========================================================
   CONNECTOR LINES
   ========================================================= */

.hero__service::after {
    content: "";

    position: absolute;

    width: 28px;
    height: 1px;

    background: var(--color-primary);

    opacity: 0.65;
}

.hero__service::before {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--color-accent);
}


/* =========================================================
   EDUCATIONAL SOFTWARE
   ========================================================= */

.hero__service--software {
    top: 8%;
    left: 7%;

    animation:
        heroServiceFloatOne
        6s
        ease-in-out
        infinite;
}

.hero__service--software::after {
    right: -28px;
    bottom: -10px;

    transform: rotate(48deg);
}

.hero__service--software::before {
    right: -31px;
    bottom: -13px;
}


/* =========================================================
   WEB DEVELOPMENT
   ========================================================= */

.hero__service--web {
    top: 8%;
    right: 4%;

    animation:
        heroServiceFloatTwo
        6.8s
        ease-in-out
        infinite;
}

.hero__service--web::after {
    width: 58px;
    height: 2px;

    left: -53px;
    bottom: -16px;

    background: var(--color-accent);

    opacity: 1;

    transform: rotate(18deg);
    transform-origin: right center;
}

.hero__service--web::before {
    width: 7px;
    height: 7px;

    left: -57px;
    bottom: -20px;

    background: var(--color-accent);
}


/* =========================================================
   GRAPHIC DESIGN
   ========================================================= */

.hero__service--design {
    top: 42%;
    right: -1%;

    animation:
        heroServiceFloatThree
        7.4s
        ease-in-out
        infinite;
}

.hero__service--design::after {
    width: 30px;

    left: -28px;
    top: 50%;

    transform: translateY(-50%);
}

.hero__service--design::before {
    left: -31px;
    top: calc(50% - 3px);
}


/* =========================================================
   PRINTING
   ========================================================= */

.hero__service--print {
    bottom: 10%;
    right: 0;

    animation:
        heroServiceFloatFour
        6.5s
        ease-in-out
        infinite;
}

.hero__service--print::after {
    left: -28px;
    top: -10px;

    transform: rotate(38deg);
}

.hero__service--print::before {
    left: -31px;
    top: -13px;
}


/* =========================================================
   ONLINE SERVICES
   ========================================================= */

.hero__service--digital {
    bottom: 5%;
    left: 12%;

    animation:
        heroServiceFloatFive
        7.2s
        ease-in-out
        infinite;
}

.hero__service--digital::after {
    right: -28px;
    top: -10px;

    transform: rotate(-40deg);
}

.hero__service--digital::before {
    right: -31px;
    top: -13px;
}


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

@keyframes heroDashboardFloat {

    0%,
    100% {
        transform:
            rotate(-2deg)
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            rotate(-2deg)
            translate3d(0, -7px, 0);
    }

}


@keyframes heroGlowPulse {

    0%,
    100% {
        opacity: 0.72;

        transform:
            scale(1);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.055);
    }

}


@keyframes heroAvatarPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


@keyframes heroServiceFloatOne {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -6px, 0);
    }

}


@keyframes heroServiceFloatTwo {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }

}


@keyframes heroServiceFloatThree {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -5px, 0);
    }

}


@keyframes heroServiceFloatFour {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 6px, 0);
    }

}


@keyframes heroServiceFloatFive {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -5px, 0);
    }

}


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

@media (max-width: 600px) {

    .hero {
        overflow: hidden;
    }

    .hero__container {
        width: min(100% - 32px, 1200px);

        height: auto;
        min-height: 0;

        margin: 0 auto;

        padding: 88px 0 42px;

        display: flex;
        flex-direction: column;

        gap: 32px;

        align-items: stretch;
    }


    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .hero__content {
        width: 100%;
        max-width: none;
    }

    .hero__eyebrow {
        margin-bottom: 15px;

        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .hero__title {
        max-width: 100%;

        font-size: clamp(44px, 13vw, 60px);

        line-height: 0.94;
        letter-spacing: -0.06em;
    }

    .hero__description {
        max-width: 100%;

        margin-top: 21px;

        font-size: 15px;
        line-height: 1.65;
    }


    /* -----------------------------------------------------
       BUTTONS
       ----------------------------------------------------- */

    .hero__actions {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-top: 25px;
    }

    .hero__button {
        width: 100%;

        min-height: 48px;

        padding: 0 18px;

        font-size: 13px;
    }


    /* -----------------------------------------------------
       HERO VISUAL
       ----------------------------------------------------- */

    .hero__visual {
        width: 100%;

        height: auto;
        min-height: 0;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        align-items: start;

        gap: 10px;

        position: relative;
    }


    /* -----------------------------------------------------
       GLOW
       ----------------------------------------------------- */

    .hero__visual-glow {
        width: 300px;
        height: 300px;

        top: 50px;
        left: 50%;

        transform: translateX(-50%);
    }


    /* -----------------------------------------------------
       DASHBOARD
       ----------------------------------------------------- */

    .hero__visual-card {
        grid-column: 1 / -1;

        width: min(100%, 390px);

        margin: 0 auto 8px;

        filter:
            drop-shadow(
                0 18px 24px rgba(0, 0, 0, 0.13)
            );
    }

    .hero__visual-window {
        border-width: 5px;
        border-radius: 13px;
    }

    .hero__visual-window-bar {
        height: 24px;

        padding: 0 9px;

        gap: 5px;
    }

    .hero__visual-window-bar span {
        width: 6px;
        height: 6px;
    }

    .hero__visual-dashboard {
        grid-template-columns: 22% 1fr;

        min-height: 220px;
    }

    .hero__visual-dashboard aside {
        padding: 13px 10px;
    }

    .hero__visual-logo {
        width: 27px;
        height: 27px;

        margin-bottom: 20px;

        border-radius: 6px;

        font-size: 14px;
    }

    .hero__visual-dashboard aside span {
        height: 5px;

        margin-bottom: 10px;
    }

    .hero__visual-main {
        padding: 16px;
    }

    .hero__visual-heading {
        margin-bottom: 14px;
    }

    .hero__visual-heading small {
        font-size: 6px;
    }

    .hero__visual-heading strong {
        font-size: 14px;
    }

    .hero__visual-avatar {
        width: 22px;
        height: 22px;
    }

    .hero__visual-stats {
        gap: 6px;
    }

    .hero__visual-stats div {
        padding: 9px 7px;

        border-radius: 6px;
    }

    .hero__visual-stats small {
        margin-bottom: 4px;

        font-size: 6px;
    }

    .hero__visual-stats strong {
        font-size: 13px;
    }

    .hero__visual-chart {
        height: 62px;

        margin-top: 8px;
        padding: 10px;

        border-radius: 6px;
    }

    .hero__chart-line {
        height: 5px;

        margin-bottom: 8px;
    }


    /* -----------------------------------------------------
       SERVICE CARDS
       ----------------------------------------------------- */

    .hero__service {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        min-height: 64px;

        padding: 9px 10px;

        display: flex;

        gap: 9px;

        border-radius: 9px;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.07);

        animation: none;
    }

    .hero__service:hover {
        transform: translateY(-2px);
    }


    .hero__service-icon {
        width: 30px;
        height: 30px;

        border-radius: 7px;

        font-size: 11px;
    }


    .hero__service strong {
        font-size: 10px;
        line-height: 1.25;
    }

    .hero__service small {
        margin-top: 3px;

        font-size: 8px;
        line-height: 1.3;
    }


    /* -----------------------------------------------------
       CONNECTOR LINES
       ----------------------------------------------------- */

    .hero__service::before,
    .hero__service::after {
        display: none;
    }


    /* -----------------------------------------------------
       RESET DESKTOP POSITIONS
       ----------------------------------------------------- */

    .hero__service--software,
    .hero__service--web,
    .hero__service--design,
    .hero__service--print,
    .hero__service--digital {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }


    /* -----------------------------------------------------
       ONLINE SERVICES
       ----------------------------------------------------- */

    .hero__service--digital {
        grid-column: 1 / -1;

        width: calc(50% - 5px);

        justify-self: center;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero__visual-card,
    .hero__visual-glow,
    .hero__visual-avatar,
    .hero__service {
        animation: none;
    }

}