.hero {
    position: relative;
    min-height: 620px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(7, 22, 38, 0.62),
            rgba(7, 22, 38, 0.72)
        ),
        url('/assets/images/comprehensive-network-installation-services.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--white);

    padding: 150px 0 100px;

    text-align: center;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 20px;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4);
}
.about,
.gallery,
.faq {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hours-card {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
}

.hours-card h3 {
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(293px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 180px;
    cursor: pointer;
    transition: transform 0.3s;
    background: #e9eef4;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rotated-image {
    transform: rotate(90deg);
    transform-origin: center center;
    display: block;
    max-width: 100%;
    height: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    gap: 40px;
    align-items: start;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 20px;
    color: var(--primary);
    margin-right: 15px;
    width: 20px;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox.open {
    display: block;
}

.lightbox-content {
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#caption {
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: 0;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: var(--white);
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    background: transparent;
    border: 0;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero {
        min-height: 560px;

        padding: 120px 20px 70px;

        background-position: center center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .about-content {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item {
        height: 120px;
    }

    .lightbox-content {
        width: 95%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}
