hero {
    background: radial-gradient(120% 120% at 50% -30%,
            var(--medium-turquoise) 0%,
            var(--medium-off-white) 75%,
            var(--very-light-green)100%);
    background-size: cover;
    background-position: center;
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.mindrooms-hero.create-mindroom {
    background-image: linear-gradient(rgba(0, 0, 0, 0.558), rgba(0, 0, 0, 0.558)), url(../../assets/images/host.jpg);
    min-height: 400px;
}

a.hero-btn-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
}

/* Hero Carousel */
.hero-carousel {
    background-size: cover;
    background-position: center;
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    height: 45rem;
}

.mindrooms-hero .hero-title {
    color: white;
    text-align: center;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide positioning */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
    position: relative;
}

/* Slide content animations */
.hero-content {
    margin: auto;
    padding: 3.75rem 11rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    position: relative;
    width: 100%;
    height: 100%;
}

.home-hero-content .hero-subtitle {
    text-align: left;
}

/* Animate text elements */
.carousel-slide.active .hero-text h1 {
    animation: slideInFromLeft 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s both;
}

.carousel-slide.active .hero-text p {
    animation: slideInFromLeft 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s both;
}

.carousel-slide.active .hero-text .hero-btn {
    animation: slideInFromLeft 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s both;
}

.carousel-slide.active .hero-content img {
    animation: slideInFromRight 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s both;
}

/* Keyframe animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 100;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}



.carousel-arrow-left {
    left: 6rem;
}

.carousel-arrow-right {
    right: 6rem;
}

.arrow-icon {
    display: block;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.3s ease;
}



/* Rest of hero styles */
.hero-content .hero-text {
    width: 30%;
}

.hero-text .hero-centered {
    text-align: center;
}

.hero-content.home-hero-content {
    text-align: left;
}

.hero-content.home-hero-content .hero-title {
    text-align: left;
}

.hero-content .hero-text p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 50%;
    margin: 0 0 4rem;
}

.hero-content .hero-text h1 {
    font-size: 2.5rem;
    margin: 0 0 4rem;
    /* text-align: left; */
}

.hero-content .hero-text .hero-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--white);
    background-color: var(--orange);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-content .hero-text .hero-btn:hover {
    background-color: #e69500;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content .hero-text .hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}



.hero-content .hero-text .hero-btn:hover::after {
    left: 100%;
}

.hero-content img {
    width: 40rem;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-content img:hover {
    transform: scale(1.05);
}

.hero-title,
.hero-subtitle {
    color: var(--dark-gray)
}

.arrow-icon {
    color: var(--dark-gray)
}

/* Mindrooms specific hero */
.mindrooms-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.558), rgba(0, 0, 0, 0.558)),
        url('../../assets/images/pageheader.jpg');
    color: var(--white);
    padding: 3rem;
    animation: fadeIn 1s ease;
}

.floatingAction {
    position: fixed;
    bottom: 116px;
    right: -86px;
    z-index: 9999;
    transform: rotate(-90deg);
}

.floatingAction .hero-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--white);
    background-color: var(--orange);
    border: none;
    border-radius: 2rem 0rem;
    cursor: pointer;
    width: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 1350px breakpoint - image above, text below */
@media (max-width: 1350px) {
    .hero-carousel {
        height: 54rem;
    }

    .hero-content {
        flex-direction: column;
        /* Change from row to column */
        gap: 40px;
        padding: 3.75rem 6rem;
        /* Reduce padding */
    }

    .hero-content .hero-text {
        width: 100%;
        /* Full width for text */
        margin: 0;
        text-align: center;
        order: 2;
        /* Make text come after image */
    }

    .hero-content img {
        width: 60%;
        /* Reduce image size */
        margin: 0 auto;
        order: 1;
        /* Make image come before text */
    }

    .hero-content .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .hero-content .hero-text p {
        margin: auto;
        margin-bottom: 2rem;
        max-width: 70%;
        /* Center and limit width */
    }

    .carousel-arrow-left {
        left: 3rem;
    }

    .carousel-arrow-right {
        right: 3rem;
    }

    .hero-content.home-hero-content {
        text-align: center;
    }

    .hero-content.home-hero-content .hero-title {
        text-align: center;
    }

    .home-hero-content .hero-subtitle {
        text-align: center;
    }
}

/* 1000px breakpoint */
@media (max-width: 1000px) {
    .hero-carousel {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding: 3.75rem 4rem;
    }

    .hero-content img {
        width: 80%;
    }

    .hero-content .hero-text h1 {
        font-size: 2rem;
    }

    .carousel-arrow {
        font-size: 2rem;
        width: 3rem;
        height: 3rem;
    }

    .carousel-arrow-left {
        left: 2rem;
    }

    .carousel-arrow-right {
        right: 2rem;
    }

    hero .hero-content {
        padding: 3.75rem 2rem;
    }

    hero img {
        width: 80%;
    }
}

/* 768px breakpoint */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }

    .carousel-arrow {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
    }

    .carousel-arrow-left {
        left: 1rem;
    }

    .carousel-arrow-right {
        right: 1rem;
    }

    .hero-content .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-content .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        /* Full width on mobile */
    }

    .hero-content .hero-text .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .floatingAction {
        position: fixed;
        bottom: 116px;
        right: -60px;
        z-index: 9999;
        transform: rotate(-90deg);
    }

    .floatingAction .hero-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.8rem;
        color: var(--white);
        background-color: var(--orange);
        border: none;
        border-radius: 1.2rem 0rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

}

/* Optional: For very large screens */
@media (min-width: 1351px) {

    /* Keep the row layout for large screens */
    .hero-content {
        flex-direction: row;
    }
}