/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'San Francisco', Helvetica, Arial, sans-serif; /* Используем шрифт, похожий на Apple */
}

body {
    background-color: #2b2b2b;  /* Темный фон */
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;  /* Отключаем горизонтальный скролл */
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: rgba(31, 31, 31, 0.85);  /* Полупрозрачный фон */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);  /* Легкая тень */
}

.header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav ul li a:hover {
    color: #00b0ff;  /* Светлый синий акцент */
}

/* Главный баннер с видео */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);  /* Тёмный полупрозрачный слой сверху видео */
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Видео растягивается по всему экрану */
    z-index: -1;  /* Убираем видео на задний план */
}

.hero-content {
    max-width: 900px;  /* Ограничиваем максимальную ширину */
    padding: 20px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
}

.hero .btn {
    background-color: #00b0ff;  /* Светлый синий акцент */
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .btn:hover {
    background-color: #0091c4;  /* Темно-синий акцент при наведении */
    transform: scale(1.05);  /* Эффект масштабирования */
}

/* Футер */
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    text-decoration: none;
    color: #00b0ff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #0091c4;
}

.contacts {
    text-align: left;
}

.contacts p {
    margin: 5px 0;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}


/* Страница "Про мене" */
.about {
    padding: 80px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Это выравнивает элементы по центру по вертикали */
    gap: 50px;
    margin-top: 40px;
}

.about-photo {
    width: 30%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    width: 65%;
    text-align: left;
    color: #333;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about .btn {
    background-color: #00b0ff;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.about .btn:hover {
    background-color: #0091c4;
}


/* Страница "Послуги" */
.services {
    padding: 80px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.service-list {
    display: flex;
    gap: 50px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    width: 30%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

.service-item h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00b0ff;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}
/* Страница "Портфоліо" */
.portfolio {
    padding: 80px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.portfolio .container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00b0ff;
}

.portfolio-info p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.portfolio-info .btn {
    background-color: #00b0ff;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.portfolio-info .btn:hover {
    background-color: #0091c4;
}

/* Страница "Освіта" */
.education {
    padding: 80px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.education .container {
    max-width: 1200px;
    margin: 0 auto;
}

.education h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.timeline-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00b0ff;
    width: 100px;
    text-align: center;
}

.timeline-content {
    max-width: 600px;
    text-align: left;
}

.timeline-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

.timeline-content a {
    color: #00b0ff;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}
/* Контакты */
.contact {
    padding: 80px 20px;
    background: #111;
    text-align: center;
    color: white;
}

.contact .container {
    max-width: 600px;
    margin: 0 auto;
}

.contact h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.contact-details a {
    color: #00b0ff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-details a:hover {
    text-decoration: underline;
}

.messengers a {
    background-color: #00b0ff;  /* Светлый синий акцент */
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.messengers a:link{
    text-decoration: none;
}
.messengers a:hover {
    background-color: #0091c4;  /* Темно-синий акцент при наведении */
    transform: scale(1.05);  /* Эффект масштабирования */
}



/* Адаптивность */
@media (max-width: 768px) {
    .header nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
    }
}

/* Адаптация для мобильных устройств */

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.burger-menu div {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        background-color: rgba(31, 31, 31, 0.95);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .header nav ul.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    /* Анимация бургер-меню */
    .burger-menu {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        z-index: 99;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .burger-menu.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Размеры заголовков и кнопок */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        width: 50%;
    }

    .about-text {
        width: 100%;
    }

    .service-list {
        flex-direction: column;
        gap: 30px;
    }

    .service-item {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .timeline-year {
        font-size: 2rem;
        width: 100%;
    }

    .timeline-content {
        max-width: 100%;
    }

    .contact .container {
        width: 100%;
    }

    .messengers {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .btn {
        font-size: 0.8rem;
    }

    .about-photo {
        width: 70%;
    }
}
