@import "styles.css";

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

.photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;

    /* 9s total cycle time (3 images * 3s exposure) */
    animation: crossfade-animation 12s infinite;
}

 /*🔑 Timing the Fade-In/Out for each image*/
.photo-1 {
    animation-delay: 0s;
}

.photo-2 {
    animation-delay: 4s; /* 33.33% of the 9s cycle */
}

.photo-3 {
    animation-delay: 8s; /* 66.66% of the 9s cycle */
}

/* 🔑 Corrected Keyframe Definition */
@keyframes crossfade-animation {
    /* Image 1 slot is 0% to 33.33% */

    0% { opacity: 0; }     /* Start invisible */

    /* Fade In (0% to 10% is the fade in time) */
    25% { opacity: 1; }

    /* Hold (10% to 27% is the hold time) */
    37% { opacity: 1; }

    /* Fade Out (27% to 33% is the fade out time) */
    50% { opacity: 0; }

    /* Stay Hidden (33% to 100%) */
    100% { opacity: 0; }
}

.crossfade-photos-container img {
    width: 100%;
}

.home-page-service-type-section {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.home-page-service-type-section div {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    flex: 1;
    justify-content: space-evenly;
}

.home-page-service-type-section h3 {
    /*background-color: yellow;*/
    border-radius: 0.75rem;
    border: 1px solid #5f5f5f;
    background: linear-gradient(to right, #ffffff, #CfCfCf);
    padding: 0.25rem;
    color: #5f5f5f;
}

.workshop-photos-section {
    height: 100%;
    width: 100%;
}

.about-us {
    display: none;
}

@media (min-width: 768px) {
    .workshop-photos-section {
        width: 50%;
    }
    .middle-section-part-2 {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        background-color: whitesmoke;
    }

    .home-page-service-type-section {
        display: none;
    }

    .about-us {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        font-style: italic;
        font-weight: 500;
        color: #5f5f5f;
        overflow-y: scroll;
        flex: 1;
    }

    .about-us p {
        font-size: 1.2rem;
    }

    .quotation {
        height: 1rem;
        width: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .middle-section-part-2 {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        background-color: whitesmoke;
    }

    .home-page-service-type-section {
        display: none;
    }

    .about-us {
        gap: 1rem;
        padding: 2rem;
    }

    .about-us p {
        font-size: 1.4rem;
    }

    .about-us strong {
        color: #3f3f3f;
    }

    .quotation {
        height: 1rem;
        width: 1rem;
        margin-bottom: 0.5rem;
    }
}