/**
 * Engel Asset Management — Responsive Hero
 * Mobile: index-9 / Bexon layout | Desktop: digital-agency full-screen slider
 */

:root {
    --ea-hero-primary: #B80909;
    --ea-hero-primary-hover: #960707;
    --ea-hero-dark: #0c1e21;
    --ea-hero-dark-deep: #060a10;
}

/* ─── Mobile Hero (Bexon / index-9 style) ─── */
.ea-hero-mobile {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ea-hero-dark);
}

.ea-hero-mobile__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(165deg, #0d1520 0%, var(--ea-hero-dark) 42%, var(--ea-hero-dark-deep) 100%);
}

.ea-hero-mobile__bg-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.18;
    mix-blend-mode: luminosity;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.ea-hero-mobile__bg-photo.is-fading {
    opacity: 0.04;
}

.ea-hero-mobile__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.045;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    animation: eaGridDrift 18s linear infinite;
}

.ea-hero-mobile__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 3;
}

.ea-hero-mobile__glow--1 {
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(184, 9, 9, 0.42) 0%, transparent 68%);
    animation: eaGlowPulse 5s ease-in-out infinite alternate;
}

.ea-hero-mobile__glow--2 {
    width: min(55vw, 240px);
    height: min(55vw, 240px);
    bottom: 12%;
    right: -8%;
    background: radial-gradient(circle, rgba(184, 9, 9, 0.22) 0%, transparent 70%);
    animation: eaGlowPulse 6.5s ease-in-out infinite alternate-reverse;
}

.ea-hero-mobile__shape {
    position: absolute;
    z-index: 4;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0.55;
}

.ea-hero-mobile__shape--1 {
    width: 280px;
    height: 280px;
    max-width: 72vw;
    top: 8%;
    left: -18%;
    background: radial-gradient(circle, rgba(184, 9, 9, 0.5) 0%, transparent 72%);
    animation: eaShapeFloat1 7s ease-in-out infinite alternate;
}

.ea-hero-mobile__shape--2 {
    width: 260px;
    height: 260px;
    max-width: 68vw;
    bottom: 6%;
    right: -14%;
    background: radial-gradient(circle, rgba(120, 20, 20, 0.45) 0%, transparent 70%);
    animation: eaShapeFloat2 7s ease-in-out infinite alternate-reverse;
}

.ea-hero-mobile__stage {
    position: relative;
    z-index: 5;
    min-height: calc(100svh - 24px);
    min-height: calc(100vh - 24px);
}

.ea-hero-mobile__inner {
    position: relative;
    padding: 148px 15px 64px;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ea-hero-mobile__title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(2.65rem, 11.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
    max-width: 100%;
}

.ea-hero-mobile__title .ea-hero-mobile__accent {
    color: var(--ea-hero-primary);
}

.ea-hero-mobile__title .ea-hero-toggle {
    display: inline-flex;
    vertical-align: middle;
    width: 100px;
    height: 48px;
    border-radius: 100px;
    border: 8px solid var(--ea-hero-primary);
    position: relative;
    margin: 0 2px 4px;
    top: 4px;
    flex-shrink: 0;
}

.ea-hero-mobile__title .ea-hero-toggle::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ea-hero-primary);
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

.ea-hero-mobile__desc-area {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
}

.ea-hero-mobile__subtitle {
    flex: 0 0 120px;
    width: 120px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    padding-top: 15px;
    position: relative;
}

.ea-hero-mobile__subtitle::before,
.ea-hero-mobile__subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.ea-hero-mobile__subtitle::after {
    width: 32px;
    height: 3px;
    top: -1px;
    background: var(--ea-hero-primary);
}

.ea-hero-mobile__content {
    flex: 1;
    min-width: 0;
}

.ea-hero-mobile__text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0;
}

.ea-hero-mobile__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 25px;
    padding: 6px 6px 6px 22px;
    background: var(--ea-hero-primary);
    border-radius: 100px;
    color: #fff;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ea-hero-mobile__cta:hover {
    background: var(--ea-hero-primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

.ea-hero-mobile__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 14px;
    border-radius: 50%;
    background: #0a1018;
    font-size: 1rem;
}

.ea-hero-mobile__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ea-hero-mobile__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}

.ea-hero-mobile__dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--ea-hero-primary);
}

/* Content entry / exit animations */
.ea-anim-from-left,
.ea-anim-from-right {
    opacity: 0;
    will-change: transform, opacity;
}

.ea-anim-from-left {
    transform: translateX(-48px);
}

.ea-anim-from-right {
    transform: translateX(48px);
}

.ea-anim-from-left.ea-is-visible {
    animation: eaSlideFromLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ea-anim-from-right.ea-is-visible {
    animation: eaSlideFromRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ea-anim-from-right.ea-anim-delay-2.ea-is-visible {
    animation-delay: 0.15s;
}

.ea-anim-from-left.ea-is-exiting-left {
    animation: eaExitToLeft 0.38s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.ea-anim-from-right.ea-is-exiting-right {
    animation: eaExitToRight 0.38s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes eaSlideFromLeft {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes eaSlideFromRight {
    from { opacity: 0; transform: translateX(48px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes eaExitToLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-36px); }
}

@keyframes eaExitToRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(36px); }
}

@keyframes eaGlowPulse {
    0%   { opacity: 0.65; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

@keyframes eaShapeFloat1 {
    0%   { transform: translateY(0) translateX(0); }
    100% { transform: translateY(90px) translateX(30px); }
}

@keyframes eaShapeFloat2 {
    0%   { transform: translateY(90px) translateX(0); }
    100% { transform: translateY(0) translateX(-24px); }
}

@keyframes eaGridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 42px 42px; }
}

@media (min-width: 576px) {
    .ea-hero-mobile {
        margin: 0 12px;
        border-radius: 12px;
    }
    .ea-hero-mobile__inner {
        padding: 150px 20px 68px;
    }
    .ea-hero-mobile__desc-area {
        gap: 30px;
        margin-top: 40px;
    }
    .ea-hero-mobile__subtitle {
        flex: 0 0 135px;
        width: 135px;
    }
}

/* ─── Desktop Hero (digital-agency slider) ─── */
.ea-hero-desktop {
    margin-top: -1px;
}

.ea-hero-desktop .swiper-slide .card {
    min-height: 100vh;
    min-height: 100svh;
}

.ea-hero-desktop .ea-hero-slide-content {
    min-height: 100vh;
    min-height: 100svh;
}

.ea-hero-desktop .display-4 {
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: -0.02em;
}

.ea-hero-desktop .ea-hero-badge {
    backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
    .ea-hero-desktop { display: none !important; }
}

@media (min-width: 992px) {
    .ea-hero-mobile { display: none !important; }
}
