.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-item.active {
    opacity: 1;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: #FFFFFF;
    max-width: 800px;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.about-section,
.gallery-section,
.contact-section {
    background-color: #FFFFFF;
}

.about-section .intro-text {
    font-style: italic;
    color: var(--color-accent-red);
    font-size: 1.1em;
    margin-bottom: 25px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.services-section {
    background-color: var(--color-bg-light);
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 0 1 calc(25% - 30px);
    max-width: calc(25% - 30px);
    transition: transform 0.3s;
    min-height: 250px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 3em;
    color: var(--color-accent-red);
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.service-item p {
    font-size: 0.9em;
    color: #666;
}

.guarantee-text {
    margin-top: 50px;
    font-weight: 600;
    color: var(--color-accent-lime);
    font-size: 1.1em;
}

.gallery-section .intro-text {
    font-style: italic;
    color: var(--color-text-dark);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-more {
    position: relative;
    text-align: center;
    margin-top: 25px;
    z-index: 50;
}

.gallery-more-link {
    position: relative;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-accent-red);
    padding-bottom: 3px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-more-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--color-accent-lime);
    transition: width 0.25s ease;
}

.gallery-more-link:hover {
    transform: translateY(-2px);
}

.gallery-more-link:hover::after {
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--color-accent-lime);
    text-decoration: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2001;
}

.prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

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

.caption-text {
    margin-top: 15px;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.contact-details {
    margin: 40px auto 0 auto;
    max-width: 500px;
    text-align: left;
    color: var(--color-text-dark);
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--color-accent-lime);
    font-size: 1.2em;
    width: 30px;
    filter: drop-shadow(0 0 6px rgba(157, 182, 57, 0.35));
}

.contact-details a {
    color: var(--color-accent-red);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--color-accent-lime);
}

.social-links {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--color-accent-red);
    font-size: 2.5em;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-accent-lime);
    transform: scale(1.1);
}

.footer-note {
    font-style: italic;
    color: #999;
    font-size: 0.9em;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%;
        max-width: 350px;
        height: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em !important;
    }

    .hero-content p {
        font-size: 1em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .contact-email-link {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}
}