﻿.hero-scroll-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to right, #f6f0f0, #e0f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.scrolling-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.scrolling-track {
    display: flex;
    animation: scrollImages 80s linear infinite;
}

.scroll-item {
    position: relative;
    min-width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
}

    .scroll-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.7);
        transition: transform 0.5s ease;
    }

    .scroll-item:hover img {
        transform: scale(1.05);
    }

.caption {
    position: absolute;
    bottom: 10%;
    left: 10%;
    color: #fff;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4);
    padding: 15px 25px;
    border-radius: 12px;
    max-width: 60%;
}

    .caption h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .caption p {
        font-size: 1.1rem;
    }

/* Scroll animation */
@keyframes scrollImages {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
}

/* Overlay Heading Section */
.hero-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #1a237e;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 50px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    max-width: 85%;
}

    .hero-heading h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .hero-heading p {
        font-size: 1.25rem;
        margin-bottom: 1.2rem;
    }

.hero-btn {
    background-color: #00796b;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.4s;
}

    .hero-btn:hover {
        background-color: #004d40;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .caption {
        left: 5%;
        bottom: 8%;
        padding: 10px 15px;
        max-width: 90%;
    }

        .caption h2 {
            font-size: 1.5rem;
        }

        .caption p {
            font-size: 1rem;
        }

    .hero-heading {
        padding: 20px 25px;
    }

        .hero-heading h1 {
            font-size: 2rem;
        }

        .hero-heading p {
            font-size: 1rem;
        }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
