@import './colors.css';
/*
History of Cloud Service Providers
ITC Project

Date:   11/18/2025

Filename: reset.css
*/

/* Main: stack sections vertically */
main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* All non-overview sections: two-column grid (card left, image right) */
main>section:not(.overview) {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
    align-items: stretch;
    animation: fade-slide 0.5s ease-out;
}

/* Overview: centered card similar to History */
section.overview {
    display: flex;
    justify-content: center;
    animation: fade-slide 0.5s ease-out;
}

/* Floating cards – consistent with pricing/history */
article.section-info {
    background-color: #0002;
    border-radius: 5px;
    overflow: hidden;

    margin: 10px auto;
    max-width: 900px;
    width: 100%;

    transition:
        transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

article.section-info h3 {
    text-align: center;
    padding: 10px;
    background-color: #0002;
    margin: 0;
    font-size: 1.3rem;
}

article.section-info p {
    padding: 15px 20px;
    margin: 0;
    text-indent: 2em;
}

/* Lists inside usage cards */
article.section-info ul {
    padding: 10px 40px 20px;
    margin: 0;
    list-style: disc;
}

article.section-info li {
    margin-bottom: 5px;
}

/* Card hover effect */
article.section-info:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow:
        0 0 10px 0 var(--shadow-color),
        0 6px 20px 0 var(--shadow-color);
}

/* Right-side images */
.right-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image scaling tuned to look neat next to cards */
.usage-image {
    width: 100%;
    max-width: 350px;
    height: auto;

    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;

    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.usage-image:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 10px 28px var(--shadow-color);
}

/* Animation */
@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: stack card + image on smaller screens */
@media (max-width: 900px) {
    main>section:not(.overview) {
        grid-template-columns: 1fr;
    }

    .right-column {
        order: 2;
        margin-top: 10px;
    }

    article.section-info {
        max-width: 100%;
    }
}