html {
    margin: 0;
    padding: 0;
}
/* Загальні стилі */
body {
    font-family: 'Montserrat', sans-serif;
    background: #0c0c0c;
    color: white;
    text-align: center;
    margin: 0;
    overflow-x: hidden;
}

h2 {
    font-size: 3rem;
}

/* Ефект світла */
.light-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(rgba(255, 200, 0, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.05s linear;
}
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Ефект світла навколо курсора */
body::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(rgba(255, 200, 0, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: 0.1s;
}
.header h1 {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-family: 'Pacifico', cursive;
    margin: 0;
    animation: glow 2.5s infinite alternate;
}
@keyframes glow {
    0% { text-shadow: 0 0 5px #ffcc00; }
    50% { text-shadow: 0 0 15px #ffcc00, 0 0 30px #ffcc00; }
    100% { text-shadow: 0 0 5px #ffcc00; }
}
.img_logo {
    width: 100px;
    height: auto;
    margin-right: 10px;
}
.header nav a {
    color: #ffcc00;
    margin: 0 15px;
    text-decoration: none;
    font-size: 25px;
    transition: color 0.3s;
}
.header nav a:hover {
    color: white;
}
.header .contact-btn {
    margin-right: 40px;
}
.contact-btn {
    background: #ffcc00;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}
.contact-btn:hover {
    background: white;
}

/* Банер */
.banner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #222, #000);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
}
.btn-banner {
    margin-top: 20px;
    padding: 20px 30px;
    font-size: 1.2rem;
    background: #ffcc00;
    border: none;
    cursor: pointer;
    color: black;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}
.btn-banner:hover {
    background: white;
    transform: scale(1.1);
}

/* Сервіси */
.services {
    padding: 50px 20px;
}
.service-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.service {
    background: #333;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}
.service:hover {
    transform: scale(1.1);
    background: #ffcc00;
    color: black;
}

/* Калькулятор */
.calculator {
    padding: 50px 20px;
    background: #111;
}
.calculator select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ffcc00;
    background: black;
    color: white;
    border-radius: 5px;
}


.service-info-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    /* background: #f9f9f9; */
    border: 2px solid #ffcc00;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.service-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.service-description {
    flex: 1;
}

.service-description h3 {
    margin: 0 0 10px;
    font-size: 25px;
}

.service-description p {
    margin: 0;
    font-size: 16px;
    color: white;
}


/* Портфоліо */
/* Портфоліо - вертикальне розташування */
.portfolio-gallery {
    display: flex;
    flex-direction: column; /* Вертикальний напрямок */
    align-items: center; /* Центруємо контент */
    gap: 30px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s;
}

/* Видиме при додаванні класу .visible */
.portfolio-gallery.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Окремий ітем */
.portfolio-item {
    position: relative;
    overflow: visible; /* Дозволяє блокам виходити за межі */
    width: 45%;
    max-width: 500px;
    opacity: 0;
    border-radius: 10px;
    cursor: pointer;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Ліві елементи (непарні) */
.portfolio-item:nth-child(odd) {
    margin-left: 200px;
    align-self: flex-start;
}

/* Праві елементи (парні) */
.portfolio-item:nth-child(even) {
    margin-right: 200px;
    align-self: flex-end;
}

/* Плавне з’явлення кожного ітема */
.portfolio-item.visible {
    opacity: 1 !important;
    transform: translateY(0);
}
/* Адаптація для мобільних: 1 стовпець */
@media (max-width: 768px) {
    .portfolio-item {
        width: 90%;
        align-self: center;
    }
}

/* Фото */
.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Ефект при наведенні */
.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Текстовий блок */
.portfolio-info {
    position: absolute;
    top: 50%;
    left: 105%; /* Трохи більше 100%, щоб був відступ */
    width: 250px;
    background: rgba(20, 20, 20, 0.85);
    color: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 204, 0, 0.5);
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    box-shadow: 0px 4px 15px rgba(255, 204, 0, 0.2);
    z-index: 10;
    pointer-events: none; /* Не блокує навігацію */
}

/* Видиме при наведенні */
.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Якщо `.portfolio-item` знаходиться біля правого краю - текст зміщується вліво */
.portfolio-item[data-position="right"] .portfolio-info {
    left: auto;
    right: 105%;
    transform: translateY(-50%) translateX(-10px);
}

/* Стилізація списку */
.portfolio-info h3 {
    margin-top: 0;
    font-size: 1.2em;
    text-align: center;
}

.portfolio-info ul {
    padding-left: 15px;
    list-style-type: "✔ ";
}

.portfolio-info ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Футер */
.contact {
    background: #111;
    text-align: center;
    padding: 40px;
    border-top: 2px solid #ffcc00;
    color: white;
}
.contact a {
    color: #ffcc00;
    text-decoration: none;
}
.contact a:hover {
    text-decoration: underline;
}


/* Контактна форма */
.contact-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: #0c0c0c;
}

.container {
    max-width: 400px;
    background: #222; /* Темний, але не чорний */
    border-radius: 20px;
    padding: 30px;
    border: none;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.heading {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    color: white;
}

.form {
    margin-top: 20px;
}
.phone-input {
    width: 100%;
    padding: 12px;
    border: none;
    background: #222;
    color: white;
    margin-top: 10px;
    border-radius: 8px;
}

.input {
    width: 93%;
    background: #333;
    border: none;
    padding: 12px;
    border-radius: 20px;
    margin-top: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0px -4px 8px rgba(0, 0, 0, 0.2);
}

.input:focus {
    outline: none;
    background: #3d3d3d;
    box-shadow: 0px 0px 8px rgba(255, 204, 0, 0.5);
}

.textarea {
    min-height: 100px;
    resize: none;
}

.login-button {
    display: block;
    width: 100%;
    font-weight: bold;
    background: linear-gradient(45deg, #ffcc00, #e6b800);
    color: black;
    padding: 14px;
    margin-top: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
    box-shadow: 0px 5px 10px rgba(255, 204, 0, 0.3);
    border: none;
}

.login-button:hover {
    background: linear-gradient(45deg, #ffd633, #ffcc00);
    transform: scale(1.03);
}

.login-button:active {
    transform: scale(0.97);
}

.about-section {
    padding: 60px 10%;
    background: #0c0c0c;
    color: white;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
/* Стилізація заголовка */
.about-title-box {
    display: flex;
    width: 27%;
    flex-direction: row;
    align-items: flex-end;
    background: #222;
    padding: 10px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 2.2rem;
    font-weight: bold;
}

.about-title-line {
    font-size: 3.2rem;
    color: white;
    display: block;
    writing-mode: sideways-lr;
}

.about-title-highlight {
    color: #ffcc00;
    line-height: 50px;
    font-size: 4rem;
}
.about-text-box {
    display: block;
    width: 50%;
}

.about-text {
    display: flex;
    justify-content: space-around;
    flex: 1;
    max-width: 50%;
}


.about-title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

.about-title span:nth-child(1) {
    color: white;
    display: block;
}

.about-title span:nth-child(2) {
    color: #ffcc00;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
}

.signature {
    font-size: 1.4rem;
    font-family: 'Pacifico', cursive;
    color: #ffcc00;
    margin-top: 20px;
}

.about-videos {
    flex: 1;
    display: flex;
    gap: 20px;
}

.video-item {
    width: 50%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(255, 204, 0, 0.3);
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
    }

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

    .video-item {
        width: 100%;
    }
}

.footer-block {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.footer-block1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-block2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-img {
    width: 40%;
}

#map-container {
    width: 100%;
    max-width: 700px; /* Оптимальна ширина */
    height: 350px; /* Не надто велика */
    /* margin: 30px auto; Центруємо */
    border-radius: 12px; /* Округлені кути */
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.1); /* Легка тінь */
    background: rgba(0, 0, 0, 0.3); /* Темний фон */
    padding: 10px;
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
    #map-container {
        max-width: 90%;
        height: 300px;
    }
}


.car-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car {
    width: 100%;
    position: relative;
    z-index: 2;
    left: -600px;
}

/* Ефект променя світла */
.headlight {
    position: absolute;
    width: 2600px;
    height: 55px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 10%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 100%);
    filter: blur(15px);
    opacity: 0.85;
    transform-origin: left;
}

.headlight-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.9;
    top: 66%;
    left: 0%;
    transform: translate(-50%, -50%);
    animation: glow1 1.5s infinite alternate;
    z-index: 2;
}

/* Анімація мерехтіння */
@keyframes glow1 {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Ліва фара */
.left-headlight {
    top: 64%;
    left: 0%;
    transform: rotate(2deg);
    animation: glow1 1.5s infinite alternate;
    z-index: 2;
}

/* Права фара */
.right-headlight {
    top: 64%;
    left: 0%;
    transform: rotate(2deg);
    animation: glow1 1.5s infinite alternate;
    z-index: 2;
}

/* ======= Модальне вікно ======= */
.modal {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

/* Показ модального вікна */
.modal.show {
    opacity: 1;
    visibility: visible;
    animation: fadeOut 3s forwards;
}

/* Анімація зникнення */
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}