/*gallEy CSS-SECTION*/

/* ================= HERO SECTION ================= */
.infra-hero {
    width: 100%;
    height: 60vh;
    background-image: url("../images/infra1.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.infra-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.infra-hero-title {
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.infra-hero-subtitle {
    font-size: 18px;
}

/* ================= GALLERY SECTION ================= */
.infra-section {
    padding: 60px 20px;
}

.infra-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* ================= GALLERY ITEM ================= */
.infra-item {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(30px);
    opacity: 0;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.infra-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover Effects */
.infra-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.infra-item:hover img {
    transform: scale(1.07);
}

/* ================= SCROLL ANIMATION ================= */
.fade-up {
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .infra-hero {
        height: 45vh;
    }

    .infra-hero-title {
        font-size: 34px;
    }

    .infra-hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .infra-section {
        padding: 40px 15px;
    }

    .infra-hero-title {
        font-size: 28px;
    }
}