html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

nav {
    background-color: #176B45;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid #ddb034;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ddb034;
}

.hero {
    text-align: center;
    padding: 130px 20px;
    background-color: #f2f2f2;

    background-image: linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.10)),
        url("images/hero-wood.jpg");
    background-size: cover;
    background-position: center 35%;

    border-bottom: 5px solid #176B45;
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 10px;
    color: white;
}

.hero h2 {
    font-size: 26px;
    margin-top: 0;
    color: white;
    font-weight: 600;
}

.hero p {
    font-size: 18px;
    color: white;
    font-weight: 500;
    margin-top: 50px;
}

.hero-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 25px;
    background-color: #176B45;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: #ddb034;
}

.services {
    text-align: center;
    padding: 50px 20px;
}

.services h2 {
    font-size: 32px;
}

.services p {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    padding: 45px 50px;
    margin: -45px auto;
    max-width: 500px;

    font-weight: bold;
    font-size: 20px;
    color: white;
}

.services p:nth-of-type(odd) {
    background-image: url("images/brush-green.png");
}

.services p:nth-of-type(even) {
    background-image: url("images/brush-mustard.png");
}

.projects {
    text-align: center;
    padding: 50px 20px;
    background-color: #f2f2f2;
}

.projects h2 {
    font-size: 36px;
    color: #176B45;
    margin-bottom: 10px;
}

.projects > p {
    color: #666;
    font-size: 17px;
    margin-bottom: 40px;
}

.projects h3 {
    color: #2b2b2b;
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
}

.contact {
    text-align: center;
    padding: 50px 20px;
}

.contact h2 {
    font-size: 32px;
}

.phone-button {
    display: inline-block;
    background-color: #176B45;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.phone-button:hover {
    background-color: #ddb034;
}

footer {
    background-color: #2b2b2b;
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 4px solid #176B45;
}

.before-after {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;

    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.before-after img {
    width: 350px;
    height: 260px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.before-after p {
    font-weight: bold;
    font-size: 18px;
    color: white;
    margin: 0 auto 10px auto;

    background-color: #514e4e;
    padding: 6px 15px;
    border-radius: 8px;
    width: fit-content;
}

.before-after img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.80);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 85%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.photo-group {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.photos {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.photos img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Όταν υπάρχουν 2 φωτογραφίες στην ίδια πλευρά */
.photos img:first-child:nth-last-child(2),
.photos img:first-child:nth-last-child(2) ~ img {
    width: calc(50% - 5px);
}

.techniques-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.techniques-gallery img {
    width: 250px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.techniques-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.80);
}

@media (max-width: 600px) {

    nav {
        text-align: center;
        padding: 15px 5px;
    }

    nav a {
        display: inline-block;
        margin: 5px 8px;
        font-size: 14px;
    }

    .hero {
        padding: 60px 15px;
    }

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

    .hero h2 {
        font-size: 22px;
    }

    .before-after img {
        width: 75%;
    }

    .before-after div {
        text-align: center;
    }

    .before-after {
        flex-direction: column;
        align-items: center;
    }
}

.services h2,
.projects h2,
.contact h2 {
    color: #176B45;
}

.projects > h2:not(:first-child) {
    margin-top: 80px;
    margin-bottom: 30px;
}

.contact a:not(.phone-button) {
    color: #176B45;
    text-decoration: none;
    font-weight: bold;
}

.contact a:not(.phone-button):hover {
    color: #ddb034;
}

.facebook-button {
    display: inline-block;
    background-color: #1877F2;
    color: white !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

#pagination {
    text-align: center;
    margin-top: 30px;
}

#pagination button {
    background-color: #176B45;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#pagination button:hover {
    background-color: #ddb034;
}

#pagination button.active {
    background-color: #2b2b2b;
}

#pagination button:disabled {
    background-color: #b5b5b5;
    cursor: not-allowed;
    opacity: 0.6;
}

.viber-button {
    display: inline-block;
    background-color: #7360F2;
    color: white !important;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-left: 10px;
}

.viber-button:hover {
    background-color: #5b4bc4;
}

.map {
    max-width: 800px;
    margin: 30px auto 0;
}