﻿.hero-section {
    height: 50vh;
    background-image: url(/Images/data-science-projects.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Make the section container relative for positioning overlay */
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.756); /* Semi-transparent black overlay */
        z-index: 1; /* Make sure the overlay is above the background but below content */
    }

.hero-text-div {
    position: relative;
    z-index: 2; /* Ensure the text stays on top of the overlay */
    color: white; /* Make the text readable on dark background */
    text-align: center; /* Center align text for smaller screens */
}

.about-h1 {
    font-size: 80px; /* Default font size for large screens */
    margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh; /* Adjust height for medium screens */
    }

    .about-h1 {
        font-size: 50px; /* Reduce font size for tablets */
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 30vh; /* Further adjust height for small screens */
    }

    .about-h1 {
        font-size: 35px; /* Further reduce font size for mobile */
        line-height: 1.2; /* Adjust line-height for better spacing */
    }
}


/* Our Projects section  */
.projects-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.project-img-main-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-div {
    width: 70%;
}

.project-img-div {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Adds rounded corners to the image container */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow around the image */
}

.project-image {
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out; /* Smooth zoom and filter effect */
    border-radius: 10px; /* Rounded corners for the image */
    max-height: 170px;
    object-fit: cover;
}

.project-img-div:hover .project-image {
    transform: scale(1.15); /* Zoom effect */
    filter: brightness(0.3); /* Darken the image slightly on hover */
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5); /* Dark background with opacity */
    color: white;
    padding: 20px 30px;
    border-radius: 10px; /* Rounded corners for the overlay */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease-in-out;
    text-align: center;
    transform: translate(-50%, -50%) scale(0.9); /* Slightly reduced size initially */
}

    .image-overlay i {
        font-size: 2.5rem;
        color: #fff;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.project-img-div:hover .image-overlay {
    opacity: 5;
    transform: translate(-50%, -50%) scale(1); /* Return to normal size on hover */
}

.preview-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.fas.fa-eye {
    font-size: 32px;
    margin-top: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.project-img-div:hover .fas.fa-eye {
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

/* Our Projects section End */
