/* --------------------------------------
   hero.css
   Home page Hero Section (Fullscreen)
---------------------------------------- */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 144px 24px 24px;
    box-sizing: border-box;
    scroll-snap-align: start;
    overflow: visible;
}

/* Content container */
.hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 24px;
    position: relative;
    z-index: 2;
}

/* Title */
.hero__title {
    max-width: 864px;
    font-size: clamp(28px, 3vw, 40px);
    font-family: var(--a-font-mono);
    font-weight: var(--a-font-weight-regular);
    line-height: 56px;
    color: var(--a-color-beige-900);
    margin-bottom: clamp(48px, 7.2vw, 104px);
}

.hero__underscore {
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Decorative element in background */
.hero__decoration {
    position: absolute;
    top: -630px;
    right: -510px;
    width: 1281px;
    height: 1281px;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.hero__decoration svg {
    width: 100%;
    height: 100%;
}

/* Features container */
.hero__features {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    height: clamp(180px, 15vw, 216px);
}

/* Individual feature card wrapper */
.feature {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Feature icon */
.feature__icon {
    height: 112px;
    margin-bottom: 8px;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature:hover .feature__icon {
    transform: scale(1.08) rotate(2deg);
}

.feature__icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover .feature__icon svg {
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.2));
}

/* Feature card */
.feature__card {
    width: 100%;
    border-radius: 32px;
    padding: 16px 24px;
    display: flex;
    align-items: flex-end;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature:hover .feature__card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Feature card color modifiers */
.feature__card--blue {
    background-color: var(--a-color-blue-400);
}

.feature__card--green {
    background-color: var(--a-color-green-400);
}

.feature__card--yellow {
    background-color: var(--a-color-yellow-400);
}

.feature__card--orange {
    background-color: var(--a-color-orange-400);
}

.feature__label {
    font-family: var(--a-font-mono);
    font-size: 24px;
    font-weight: var(--a-font-weight-bold);
    line-height: 32px;
    text-align: left;
}

.feature__label span {
    display: block;
}

.feature__label--blue {
    color: #0F2F42;
}

.feature__label--green {
    color: #05291B;
}

.feature__label--yellow {
    color: #3F1F09;
}

.feature__label--orange {
    color: #440806;
}

/* Hide services-specific content in hero section */
.feature__description {
    display: none;
}

.feature__list {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero__decoration {
        width: 960px;
        height: 960px;
        right: -500px;
        top: -120px;
        opacity: 1;
    }

    .hero__title {
        max-width: 640px;
    }
}

@media (max-width: 991px) {
    .hero {
        height: 100vh;
        padding: 120px 16px 16px;
    }

    .hero__content {
        padding-top: 60px;
        padding-bottom: 16px;
    }

    .hero__decoration {
        width: 720px;
        height: 720px;
        right: -400px;
        top: -100px;
        opacity: 0.22;
    }

    .hero__title {
        max-width: 100%;
        margin-bottom: clamp(40px, 6vw, 72px);
    }

    .hero__features {
        gap: 12px;
        flex-wrap: wrap;
        height: auto;
    }

    .feature {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        height: 200px;
    }

    .feature__icon {
        margin-bottom: 8px;
    }

    .feature__icon svg {
        width: 88px;
        height: 88px;
    }

    .feature__card {
        padding: 16px 20px;
        min-height: 76px;
    }

    .feature__label {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 120px 12px 12px;
    }

    .hero__content {
        padding-top: 40px;
        padding-bottom: 12px;
    }

    .hero__title {
        margin-bottom: 32px;
    }

    .hero__decoration {
        width: 600px;
        height: 600px;
        right: -300px;
        top: -80px;
        opacity: 0.2;
    }

    .hero__features {
        flex-wrap: wrap;
        gap: 12px;
        height: auto;
    }

    .feature {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        height: 180px;
    }

    .feature__icon {
        margin-bottom: 8px;
    }

    .feature__icon svg {
        width: 72px;
        height: 72px;
    }

    .feature__card {
        padding: 12px 16px;
        min-height: 64px;
    }

    .feature__label {
        font-size: 14px;
    }
}

/* ====================================================
   Desktop Optimizations for High-Resolution Displays
   ==================================================== */

/* 1280px - Standard Desktop */
@media (min-width: 1280px) {
    .hero {
        padding: 32px;
    }

    .hero__content {
        padding-top: 292px;
    }
}

/* 1440px - Large Desktop */
@media (min-width: 1440px) {
    .hero {
        padding: 40px;
    }

    .hero__content {
        padding-top: 200px;
    }

    .hero__title {
        max-width: 960px;
    }
}

/* 1920px - Full HD */
@media (min-width: 1920px) {
    .hero {
        padding: 48px;
    }

    .hero__content {
        padding-top: 280px;
    }

    .hero__title {
        max-width: 1200px;
    }

    .hero__decoration {
        width: 1440px;
        height: 1440px;
        top: -700px;
        right: -600px;
    }
}

/* 2560px - 2K Display */
@media (min-width: 2560px) {
    .hero {
        padding: 64px;
    }

    .hero__content {
        padding-top: 320px;
    }

    .hero__title {
        max-width: 1400px;
        font-size: 56px;
        line-height: 72px;
    }

    .hero__decoration {
        width: 1800px;
        height: 1800px;
        top: -850px;
        right: -750px;
    }
}

/* 3840px - 4K UHD */
@media (min-width: 3840px) {
    .hero {
        padding: 80px;
    }

    .hero__content {
        padding-top: 400px;
    }

    .hero__title {
        max-width: 1920px;
        font-size: 72px;
        line-height: 96px;
    }

    .hero__decoration {
        width: 2400px;
        height: 2400px;
        top: -1100px;
        right: -1000px;
    }

    .hero__features {
        height: 280px;
    }

    .feature__icon {
        height: 160px;
    }

    .feature__icon svg {
        width: 160px;
        height: 160px;
    }
}