﻿.hero-scroll-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: white;
}

.scrolling-container {
    position: fixed;
    top: 80px; /* adjust to match header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    z-index: -1;
}

.scrolling-track {
    display: flex;
    animation: scrollLeft 40s linear infinite; /* slower animation */
}

.scroll-item {
    flex: 0 0 100%;
    position: relative;
}

    .scroll-item img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        filter: brightness(70%);
    }

.caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

    .caption h2 {
        font-size: 2.5rem;
        margin: 0;
    }

    .caption p {
        font-size: 1.2rem;
    }
.hero-heading {
    position: relative;
    z-index: 1;
    margin-top: 30vh;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

    .hero-heading h1 {
        font-size: 2rem; /* Increased size */
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 20px;
        animation: fadeInDown 1.2s ease-out;
    }

    .hero-heading p {
        font-size: 1.6rem; /* Bigger subtitle */
        font-weight: 500;
        max-width: 700px;
        margin: 0 auto 20px;
        line-height: 1.4;
        animation: fadeInUp 1.2s ease-out;
    }

.hero-btn {
    font-size: 1.2rem;
    padding: 14px 28px;
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .hero-btn:hover {
        background: #ff9900;
        transform: scale(1.05);
    }

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

    .hero-btn:hover {
        background: #1e7e34;
    }

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
    /* 5 images */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
