/* index.css */
/* Styles defined for the desktop or the bigger screen devices */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Header Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    background-image: linear-gradient(90deg, #005085fb, #00508550, #005085);
    background-color: transparent;
    z-index: 1;
}

/* Стили для логотипа и девиза */
.logo-img {
    width: 60px; /* Размер логотипа */
    height: auto;
    margin-bottom: 8px; /* Отступ между логотипом и девизом */
}

.logo {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали (если нужно) */
    height: 100%; /* Контейнер должен занимать полную высоту */
    margin-left: 2%; /* Небольшой отступ слева */
}

/* Слоган в две строки */
.slogan-wrapper {
    position: absolute; /* Абсолютное позиционирование */
    top: 50%; /* Центрирование по вертикали */
    transform: translateY(-50%); /* Точное центрирование */
    text-align: center; /* Центрирование текста */
    width: auto; /* Ширина по содержимому */
}

.slogan-lines {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование строк */
    margin-left: 100px;
    gap: 2px; /* Отступ между строками */
}

.slogan-line {
    font-size: 1rem;
    color: #d0e6ff;
    font-style: italic;
    margin: 0;
}

.menu {
    padding: 0 5rem;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 25px;
}

.cross-icon {
    display: none;
}

.menu .menu-list {
    display: flex;
    list-style: none;
}

.menu-list .menu-list-items {
    padding: 0.5rem 1rem;
}

@media screen and (min-width: 856px) and (max-width: 1024px) {
    .menu-list .menu-list-items {
        padding: 0.5rem 0.3rem;
    }
}

/* Компенсация для якорных ссылок */
section[id], footer[id] {
    scroll-margin-top: 70px;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Main Hero Section Styles */
.hero {
    background-image: url('./images/fon.jpg'); /* Путь к изображению */
    background-size: cover; /* Изображение занимает всю секцию */
    background-position: center; /* Центрирование изображения */
    background-repeat: no-repeat; /* Отключить повторение */
    min-height: 100vh; /* Минимальная высота секции — весь экран */
    position: relative; /* Для позиционирования псевдоэлемента (затемнение) */
    display: flex;
    align-items: center; /* Вертикальное центрирование контента */
    justify-content: center; /* Горизонтальное центрирование контента */
    padding: 2rem; /* Отступы вокруг контента */
}

.hero .intro {
    text-align: center;
    margin: 0 5rem;
}

.hero .intro-buttons {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
	gap: 80px;
}

/* Стили для секции 'Обо мне' */
.about {
    position: relative;
    background-image: url('./images/about_fon.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0; /* Добавляем отступы для текста */
    overflow: hidden; /* Убираем возможные переполнения */
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px; /* Высота размытого слоя */
    pointer-events: none; /* Делаем слои невидимыми для взаимодействия */
}

.about::before {
    top: 0;
    background: linear-gradient(to bottom, #fff, transparent); /* Размытие сверху */
}

.about::after {
    bottom: 0;
    background: linear-gradient(to top, #fff, transparent); /* Размытие снизу */
}

.about .about-text {
    width: 90%;
    max-width: 1200px; /* Ограничиваем максимальную ширину текста */
    margin: 0 2rem; /* Центрируем текст */
    color: #fff; /* Белый цвет текста */
    padding: 5rem 1rem; /* Добавляем отступы для текста */
    position: relative; /* Устанавливаем позиционирование */
    z-index: 1; /* Убедимся, что текст находится поверх псевдоэлементов */
    text-align: left; /* Сдвигаем текст влево */
}

.about .my-heading {
    font-size: 2.5rem; /* Увеличиваем размер заголовка */
    margin-bottom: 1rem; /* Добавляем отступ после заголовка */
}

.about p {
    font-size: calc(0.8vw + 12px);
}

/* Опциональный медиазапрос для адаптивности */
@media (max-width: 768px) {
    #about {
        background-attachment: scroll; /* Скроллинг фона на мобильных устройствах */
    }
}

/* Portfolio section styles - ОБНОВЛЕННЫЕ СТИЛИ */
.portfolio {
    margin: 4.8rem 0;
    padding: 0 5rem;
}

.my-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 20px;
}

.my-row .my-col {
    text-align: center;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.port-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #000;
    background: none;
    padding: 0;
}

.port-card .image {
    width: 100%;
    height: 100%;
}

.port-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.port-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.port-card:hover .image img {
    transform: scale(1.05);
}

.greet-heading, .small-para {
    transition: all 0.3s ease;
    cursor: pointer;
}

.greet-heading {
    font-size: calc(0.8vw + 10px);
    margin: 0;
    padding: 5px 6px;
    border-radius: 5px;
    text-align: center;
    color: #363D73;
}

.small-para {
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    line-height: 1.4;
    color: #363D73;
    font-size: calc(0.6vw + 8px);
}

.greet-heading:hover, .small-para:hover {
    background-color: rgba(54, 61, 115, 0.1);
    transform: translateY(-2px);
}

.greet-heading:active, .small-para:active {
    transform: translateY(0);
}

/* Стили для ссылок заголовка и текста */
.greet-heading-link, .small-para-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.greet-heading-link:hover .greet-heading,
.small-para-link:hover .small-para {
    background-color: rgba(54, 61, 115, 0.1);
    transform: translateY(-2px);
}

.greet-heading-link:active .greet-heading,
.small-para-link:active .small-para {
    transform: translateY(0);
}

/* Сохраняем стили для текста внутри ссылок */
.greet-heading-link .greet-heading,
.small-para-link .small-para {
    transition: all 0.3s ease;
    margin: 0;
    padding: 5px 10px;
    border-radius: 5px;
}

.greet-heading-link .greet-heading {
    font-size: 1.3rem;
}

.small-para-link .small-para {
    line-height: 1.4;
    font-size: 1.2rem;
    padding: 10px;
}

/* Адаптация для мобильных устройств */
@media screen and (max-width: 768px) {
    .greet-heading-link .greet-heading {
        font-size: 1.1rem;
    }
    
    .small-para-link .small-para {
        font-size: 0.8rem;
    }
}

/* Services section styles */
.services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 4.8rem 0;
    padding: 0 5rem;
}

.my-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Устанавливаем ширину */
    height: 400px; /* Устанавливаем высоту */
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
     /* Устанавливаем фоновое изображение */
    background-size: cover; /* Растягивает изображение, сохраняя пропорции */
    background-position: center; /* Центрирует изображение */
    
}

.my-services {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Устанавливаем ширину */
    height: 300px; /* Устанавливаем высоту */
    border-radius: 20px;
    background-image: linear-gradient(#64d9e9, #6de5f5, #48a5bd);
    padding: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
 }



.my-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon {
    height: 15%;
    width: 15%;
    border-radius: 50%;
    background-color: #376386;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    font-size: 150%;
    color: #fff;
}

/* Contact section styles */
.contact {
    padding: 0 5rem;
	scroll-margin-top: 70px; /* Учитывает высоту фиксированного меню */
	margin-bottom: 2rem; /* Дополнительный отступ */ 
} 

.contact-content {
    display: flex;
    margin: 3rem 1;
    justify-content: space-between;
}

.contact-form-container {
    width: 45%;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-controls {
    width: 80%;
    padding: 10px 0;
    margin: 1.67rem 0;
}

.contact-form .form-btn {
    width: 83%;
}

.contact-details {
    width: 45%;
}

.form-group {
    display: flex;
    flex-direction: column; /* Располагаем элементы вертикально */
    margin-bottom: 5px; /* Расстояние между группами */
}


#form-status {
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

label {
    margin-bottom: 0px; /* Создаем небольшое пространство между лейблом и полем */
}

/* Контейнер для иконки и текста */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между иконкой и текстом */
    margin-bottom: 5px;
}

/* Стили для иконок */
.icon-style {
    font-size: 1.5rem;
    color: #02606d !important; /* Принудительный цвет иконок */
    vertical-align: middle;
}

/* Стили для заголовков контактов */
.contact-heading {
    margin: 0;
    font-size: 1rem;
    color: #000000; /* Цвет текста */
    white-space: nowrap; /* Запрет переноса текста */
}

.details {
    margin-bottom: 40px; /* Установим расстояние между блоками */
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: #fff;
    padding: 0.5rem;
}

.footer-list-items {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    margin: 1rem 1rem 0 1rem;
    border-radius: 50%;
    background-color: #53b6c8;
}

.footer-links {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu {
    padding: 0 5rem;
}

.footer-menu .footer-menu-list {
    display: flex;
    list-style: none;
}

/* utility classes */

.my-heading {
    font-size: 2.5rem;
    margin: 0;
}

.sub-heading {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    font-weight: lighter;
}

.links:hover {
    border-bottom: 2px solid #f9fafa;
}

.links {
    border-bottom: 2px solid transparent;
    transition: all 0.25s;
    padding: 5px;
    text-decoration: none;
    color: #fff;
}

/* Стили для кнопок */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 1px;
    border: none;
    font-weight: 500;
    color: white;
    font-size: 16px;
    background: linear-gradient(135deg, #0099b4, #006172);
    background-size: 400% 400%;
    transition: all 0.25s ease;
    animation: gradientMove 5s ease infinite;
    box-shadow: 0 4px 8px rgba(0, 133, 117, 0.2);
    transition: all 0.3s ease;
}

/* Анимация движения градиента */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.heading-span {
    font-weight: bolder;
}

.text-center {
    text-align: center;
}

.white-text {
    color: #fff;
}

.blue-text {
    color: #363D73;
}

/* Responsive CSS */
@media screen and (min-width: 576px) and (max-width: 855px) {
    .hamburger {
        display: block;
        padding: 0 3rem;
    }

    .menu {
        position: absolute;
        right: 0;
        padding: 0 3rem;
        top: 75px;
        background-image: linear-gradient(180deg, #74D7BB, #53C8B6, #35A99C);
        display: none;
        transition: all 0.25s;
    }

    .menu .menu-list {
        flex-direction: column;
    }

    .portfolio {
        padding: 0;
    }

    .about {
        flex-direction: column;
    }

    .about .about-text {
        padding: 2rem;
    }

    .about .about-image img {
        padding: 2rem;
    }

    .services {
        padding: 0;
    }

    .my-row {
        gap: 10px;
    }

    .greet-heading {
        font-size: 1rem;
    }

    .my-heading {
        font-size: 2.3rem;
        margin: 0;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-heading {
        font-size: 1rem;
    }

    .icon-style {
        font-size: 1rem;
    }
    
    
    .port-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 280px) and (max-width: 576px) {
    .hero {
        justify-content: center;
        color: #fff;
        background-image: radial-gradient(circle, rgb(15 14 14 / 30%),
          rgb(102 96 96 / 40%), rgb(163 160 160 / 16%)), url('./Images/heroImg3.avif');
    }

    .sub-heading {
        color: #002c3a;
    }

    .hero .intro-buttons {
        gap: 20px;
    }

    .slogan-wrapper {
        display: none;
    }

    .btn {
        padding: 10px 30px;
    }

    .menu {
        position: absolute;
        right: 0;
        padding: 0 2rem;
        top: 75px;
        background-image: linear-gradient(180deg, #3592a9, #53adc8, #74c0d7);
        display: none;
        transition: all 0.25s;
    }

    .menu .menu-list {
        flex-direction: column;
    }

    .hamburger {
        display: block;
        padding: 0 2rem;
    }

    .portfolio {
        padding: 0;
    }

    .about {
        flex-direction: column;
    }

    .about .about-text {
        width: 90%;
        padding: 1rem;
    }

    .about .about-image img {
        width: 90%;
        padding: 1rem;
    }

    .services {
        padding: 0;
    }

    .my-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        margin: 2rem 0;
        gap: 1rem;
    }

    .my-row .my-col {
        text-align: center;
        width: 100%;
    }

    .contact {
        padding: 0;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .contact-form-container {
        width: 80%;
    }

    .contact-form .form-controls {
        width: 100%;
    }

    .contact-form .form-btn {
        width: 100%;
    }

    .contact-details {
        width: 80%;
    }

    .footer-menu {
        padding: 0 2rem;
    }

    .footer-list-items {
        margin: 0;
    }
    
    /* Адаптация карточек портфолио для мобильных */
    .port-card {
        max-width: 280px;
    }
    
    .greet-heading {
        font-size: 1.1rem;
    }
    
    .small-para {
        font-size: 1rem;
    }
}