/* about.css */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: url('../images/aboutbackgroung.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Moving Images Section */
.moving-images {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin: 2rem 0;
}

.image-track {
    display: inline-block;
    white-space: nowrap;
    animation: moveImages 40s linear infinite; /* Slower movement */
}

.moving-images img {
    width: 250px; /* Larger image size */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 1rem; /* Space between images */
    display: inline-block;
}

@keyframes moveImages {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* About Section */
.about {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    text-align: justify;
    animation: fadeInParagraph 1.5s ease-in-out;
}

@keyframes fadeInParagraph {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        padding: 1rem;
    }

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

    .about-content p {
        font-size: 1rem;
    }

    .moving-images img {
        width: 200px; /* Smaller image size for mobile */
    }
}