.hero-section {
    display: flex;
    justify-content: center;
    height: 130vh;
    background: linear-gradient(135deg, #f8f4ff 0%, #e8e0ff 25%, #f0f0f0 75%, #ffffff 100%);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

@media (min-width: 1550px) {
    .hero-section {
        justify-content: center;
    }

    .hero-container {
        width: 80% !important;
    }
}

@media (min-height: 890px) {
    .hero-section {
        height: 100vh;
    }
}

@media (min-height: 740px) and (max-width: 480px) {
    .hero-section {
        height: 100vh;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 100%;
    position: relative;
}

header {
    text-align: center;
}

.hero-title {
    font-size: 3em;
}

.hero-title span {
    color: #993ab3;
}

h4 {
    font-size: 1.5em;
    color: #2e2e2e;
    margin-top: 10px;
    font-weight: 300;
}

img {
    width: 50%;
    height: auto;
}

.hero-video {
    width: 50%;
    height: auto;
}

.autoTilt {
    animation: autoTiltAnimation linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
    transform: perspective(1000px) rotateX(45deg);
    transform-style: preserve-3d;
}

@keyframes autoTiltAnimation {
    from {
        transform: perspective(1000px) rotateX(45deg) scale(1);
    }
    to {
        transform: perspective(1000px) rotateX(0deg) scale(1.2);
    }
}

.autoHide {
    animation: autoHideAnimation linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
    opacity: 1;
}

@keyframes autoHideAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Disable animations when animation-timeline is not supported (Safari) */
@supports not (animation-timeline: scroll()) {
    .autoTilt {
        animation: none !important;
        transform: perspective(1000px) rotateX(0deg) scale(1) !important;
    }

    .autoHide {
        animation: none !important;
        opacity: 1 !important;
    }

    .industry-badges.spa,
    .industry-badges.schools,
    .industry-badges.clinics,
    .industry-badges.catering {
        animation: none !important;
    }
}

.industry-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px 15px;
    border: rgba(216, 143, 255, 0.5) 3px solid;
    box-shadow: #4f4f4f 0px 0px 1px;
    color: #5900d9;
    border-radius: 50px;
    position: absolute;
    width: 20%;
    height: 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* SPA & WELLNESS ANIMATION */
.industry-badges.spa {
    animation: spaBadgeMove linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
}

@keyframes spaBadgeMove {
    from {
        bottom: 30%;
        left: 3%;
        top: auto;
    }
    to {
        bottom: 35%;
        left: 3%;
        top: auto;
    }
}

/* SCHOOLS ANIMATION */
.industry-badges.schools {
    animation: schoolsBadgeMove linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
}

@keyframes schoolsBadgeMove {
    from {
        bottom: 20%;
        left: 5%;
        top: auto;
    }
    to {
        bottom: 25%;
        left: 5%;
        top: auto;
    }
}

/* PRIVATE CLINICS ANIMATION */
.industry-badges.clinics {
    animation: clinicsBadgeMove linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
}

@keyframes clinicsBadgeMove {
    from {
        bottom: 30%;
        right: 3%;
        top: auto;
    }
    to {
        bottom: 35%;
        right: 3%;
        top: auto;
    }
}

/* CATERING ANIMATION */
.industry-badges.catering {
    animation: cateringBadgeMove linear both;
    animation-timeline: scroll(root);
    animation-range: 0% 20vh;
}

@keyframes cateringBadgeMove {
    from {
        bottom: 20%;
        right: 5%;
        top: auto;
    }
    to {
        bottom: 25%;
        right: 5%;
        top: auto;
    }
}

/* Initial positioning */
.industry-badges.spa {
    bottom: 30%;
    left: 3%;
}

.industry-badges.schools {
    bottom: 20%;
    left: 5%;
}

.industry-badges.clinics {
    bottom: 30%;
    right: 3%;
}

.industry-badges.catering {
    bottom: 20%;
    right: 5%;
}

/* MOBILE RESPONSIVE - NO ANIMATIONS */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    /* Disable ALL animations on mobile */
    .autoTilt {
        animation: none !important;
        transform: none !important; /* Remove 3D tilt */
    }

    .autoHide {
        animation: none !important;
        opacity: 1 !important; /* Keep header visible */
    }

    .hero-industry-badges-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 20px;
        justify-items: center;
        margin-top: 30px;
    }

    .industry-badges.spa,
    .industry-badges.schools,
    .industry-badges.clinics,
    .industry-badges.catering {
        animation: none !important; /* Disable badge animations */
    }

    .industry-badges.spa {
        position: relative;
        left: 0%;
        bottom: 0%;
        grid-row: 1;
        grid-column: 1;
    }
    .industry-badges.schools {
        position: relative;
        left: 0%;
        bottom: 0%;
        right: 0%;
        bottom: 0%;
        grid-row: 1;
        grid-column: 2;
    }
    .industry-badges.clinics {
        position: relative;
        right: 0%;
        bottom: 0%;
        grid-row: 2;
        grid-column: 1;
    }
    .industry-badges.catering {
        position: relative;
        right: 0%;
        bottom: 0%;
        grid-row: 2;
        grid-column: 2;
    }

    /* Mobile badge positioning - 2x2 grid at bottom */
    .industry-badges {
        padding: 6px 12px;
        font-size: 14px;
        width: 200px;
        height: 55px;
    }

    h1 {
        font-size: 2.2em;
    }

    h4 {
        font-size: 1.2em;
        margin-top: 15px;
    }

    video {
        width: 85%;
        margin: 20px 0;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    h4 {
        font-size: 1.1em;
        margin-top: 10px;
    }

    video {
        width: 100%;
        height: auto;
    }

    .hero-container {
        width: 100%;
        padding: 20px;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-industry-badges-grid {
        width: 100%;
        justify-items: center;
    }
    .industry-badges {
        padding: 6px 12px;
        font-size: 14px;
        width: 85%;
        height: 45px;
    }

    h1 {
        font-size: 1.8em;
    }

    h4 {
        font-size: 1em;
    }

    video {
        width: 90%;
    }
}
