/* ============================================================
   KRAXELBANDE – Hero Section (index page only)
   ============================================================ */

.hero {
    --hero-bg: #ffffff;
    --hero-navy: #33365f;
    --hero-blue: #5988b9;
    --hero-green: #a4bd1e;

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--hero-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-photo-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-photo-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-center-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-top-waves {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 35%;
    z-index: 3;
    pointer-events: none;
}

.hero-bottom-waves {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 42%;
    z-index: 4;
    pointer-events: none;
}

.hero-content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    padding-left: 2%;
    margin-top: -6vh;
}

.hero-title {
    font-size: clamp(2.8rem, 4.2vw, 4.4rem);
    font-weight: 800;
    color: var(--hero-navy);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 600;
    color: var(--hero-blue);
    line-height: 1.4;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-btn {
    display: inline-block;
    background: var(--hero-green);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(164, 189, 30, 0.3);
}

.hero-btn:hover {
    background: #8e9e17;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(164, 189, 30, 0.4);
}

/* Hero Blobs */
.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    animation: blobAppear 1.5s ease-out forwards;
}

.blob-green {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(164, 189, 30, 0.35) 0%, rgba(164, 189, 30, 0) 70%);
    top: 8%;
    left: -5%;
    animation: blobAppear 1.5s ease-out 0.3s forwards, blobDrift1 18s ease-in-out infinite 1.8s;
}

.blob-blue {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(89, 136, 185, 0.3) 0%, rgba(89, 136, 185, 0) 70%);
    top: 40%;
    left: 15%;
    animation: blobAppear 1.5s ease-out 0.6s forwards, blobDrift2 22s ease-in-out infinite 2.1s;
}

.blob-navy {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(51, 54, 95, 0.2) 0%, rgba(51, 54, 95, 0) 70%);
    top: 65%;
    left: 5%;
    animation: blobAppear 1.5s ease-out 0.9s forwards, blobDrift3 20s ease-in-out infinite 2.4s;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 12s ease-in-out infinite;
}

.p1 {
    width: 10px;
    height: 10px;
    background: var(--hero-green);
    top: 75%;
    left: 12%;
    animation-delay: 0s;
    animation-duration: 11s;
}

.p2 {
    width: 7px;
    height: 7px;
    background: var(--hero-blue);
    top: 80%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.p3 {
    width: 12px;
    height: 12px;
    background: var(--hero-green);
    top: 70%;
    left: 8%;
    animation-delay: 4s;
    animation-duration: 13s;
}

.p4 {
    width: 6px;
    height: 6px;
    background: var(--hero-blue);
    top: 85%;
    left: 22%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.p5 {
    width: 8px;
    height: 8px;
    background: var(--hero-navy);
    top: 60%;
    left: 18%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.p6 {
    width: 5px;
    height: 5px;
    background: var(--hero-green);
    top: 90%;
    left: 5%;
    animation-delay: 5s;
    animation-duration: 12s;
}

.p7 {
    width: 9px;
    height: 9px;
    background: var(--hero-blue);
    top: 50%;
    left: 3%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.p8 {
    width: 7px;
    height: 7px;
    background: var(--hero-green);
    top: 65%;
    left: 35%;
    animation-delay: 7s;
    animation-duration: 11s;
}

/* Hero Animations */
.hero-continuous-anim {
    display: inline-block;
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-anim-fade,
.hero-anim-slide-left,
.hero-anim-slide-down,
.hero-anim-slide-up,
[class*="hero-anim-delay-"] {
    animation-fill-mode: forwards;
}

.hero-anim-fade {
    animation: heroFadeIn 1.5s ease-out;
}

.hero-anim-slide-left {
    opacity: 0;
    animation: heroSlideLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-anim-slide-down {
    opacity: 0;
    animation: heroSlideDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.hero-anim-slide-up {
    opacity: 0;
    animation: heroSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.hero-anim-delay-1 {
    opacity: 0;
    animation: heroContentUp 0.8s ease-out 0.6s forwards;
}

.hero-anim-delay-2 {
    opacity: 0;
    animation: heroContentUp 0.8s ease-out 0.8s forwards;
}

.hero-anim-delay-3 {
    opacity: 0;
    animation: heroContentUp 0.8s ease-out 1.0s forwards;
}

.delay-4 {
    animation-delay: 1.2s !important;
}

.delay-5 {
    animation-delay: 1.4s !important;
}

.delay-6 {
    animation-delay: 1.6s !important;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroSlideLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes heroSlideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes heroSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes heroContentUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes heroFloat {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes decorSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blobAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blobDrift1 {

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

    25% {
        transform: translate(30px, 20px) scale(1.08);
    }

    50% {
        transform: translate(-15px, 40px) scale(0.95);
    }

    75% {
        transform: translate(20px, -10px) scale(1.05);
    }
}

@keyframes blobDrift2 {

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

    33% {
        transform: translate(-25px, -30px) scale(1.1);
    }

    66% {
        transform: translate(35px, 15px) scale(0.92);
    }
}

@keyframes blobDrift3 {

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

    50% {
        transform: translate(25px, -20px) scale(1.12);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    10% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translateY(-120px) scale(0.8);
    }

    90% {
        opacity: 0.1;
        transform: translateY(-220px) scale(0.4);
    }

    100% {
        opacity: 0;
        transform: translateY(-250px) scale(0);
    }
}

/* Mobile Hero */
@media (max-width: 992px) {

    .hero-center-mask,
    .hero-top-waves,
    .hero-bottom-waves,
    .hero-blobs {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding-top: calc(var(--header-height) + 20px);
        background: #fff;
        min-height: auto;
        padding-bottom: 0;
    }

    .hero-photo-layer {
        position: relative;
        width: 100%;
        height: 350px;
        order: 2;
        margin-top: 30px;
        clip-path: ellipse(150% 100% at 50% 100%);
    }

    .hero-photo-layer img {
        object-position: center 30%;
    }

    .hero-content-layer {
        order: 1;
        padding-inline: 6%;
        padding-top: 0;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 0;
        margin-inline: auto;
        margin-top: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        margin-inline: auto;
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    }

    .hero-btn {
        font-size: 1rem;
        padding: 14px 32px;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .hero-continuous-anim {
        animation: none;
    }
}