/* Загальні стилі */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}
h1, h2, h3 {
    color: #0056b3;
}
h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* Навігація */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    padding: 0 1rem;
}
.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}
.nav-links a:hover {
    color: #007bff;
}
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Головний екран */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    background: url('img/background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}
.hero-text {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}
.hero-text h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    margin-bottom: 1rem;
}
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
    font-weight: bold;
}
.cta-button:hover {
    background-color: #0056b3;
}

/* Секції */
section {
    padding: 4rem 2rem;
    text-align: center;
}
#services {
    background-color: #fff;
}
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.service-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.service-card img.service-icon {
    display: block; 
    width: 100%;
    max-width: 250px;
    height: auto; 
    margin-bottom: 15px; 
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}

/* СТИЛІ ДЛЯ ПОРТФОЛІО НА ГОЛОВНІЙ */
#portfolio {
    background-color: #f4f4f4;
}
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.portfolio-preview {
    width: 320px;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
}
.portfolio-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-preview:hover img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 86, 179, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

/* Секція з картою та контактами */
#location {
    background-color: #fff;
}
.location-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-info, #map {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
#map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#about {
    background-color: #f4f4f4;
    max-width: 800px;
    margin: 0 auto;
}

/* Секція відгуків */
#reviews {
    background-color: #fff;
}
.reviews-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Кнопка "Нагору" */
#toTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}
#toTopBtn:hover {
    background-color: #0056b3;
}

/* СТИЛІ ДЛЯ ОКРЕМИХ СТОРІНОК РОБІТ */
.work-page-main {
    padding: 100px 2rem 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.work-page-main h1 {
    text-align: center;
    margin-bottom: 2rem;
}
.work-description {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.work-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.work-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.back-to-portfolio-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}
.back-to-portfolio-btn:hover {
    background-color: #0056b3;
}


/* Адаптивність для мобільних пристроїв */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 65px;
        background-color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        opacity: 0;
        padding: 1.5rem;
    }
    .burger {
        display: block;
    }
    .nav-active {
        transform: translateX(0%);
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
/* --- СТИЛІ ДЛЯ БЛОКУ "ЗАКЛИК ДО ДІЇ" --- */
.cta-block {
    background-color: #e9f2ff; /* Світло-синій фон */
    border-left: 5px solid #0056b3; /* Синя лінія зліва */
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    border-radius: 8px;
}

.cta-block h3 {
    margin-top: 0;
}

.cta-phone-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #28a745; /* Зелений колір для кнопки дзвінка */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.cta-phone-button:hover {
    background-color: #218838; /* Темніший зелений при наведенні */
}
/* --- РОЗШИРЕНІ СТИЛІ ДЛЯ ФУТЕРА --- */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
}

.footer-content .footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1rem 0;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content a {
    color: #00aaff; /* Яскраво-синій для посилання */
    text-decoration: none;
    font-weight: bold;
}

.footer-content a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}