@charset "UTF-8";

/*
 * =========================================================
 * Название проекта: Артем
 * Файл: style.css
 * Автор: Артем https://xn--80akjenwo.xn--p1acf/
 * Дата создания: 05.08.2025
 * Последнее обновление: 20.08.2025
 * Версия: V-03
 * 
 * Описание:
 * Основные стили для проекта Артем.
 * Содержит настройки оформления всех стилевых компонентов.
 * 
 * Copyright © 2025 Артем. Все права защищены.
 * =========================================================
 */

/* --- Переменные --- */
:root {
    --color-bg: #0a0a1a;
    --color-bg-light: #1a1a2e;
    --color-text: #e0e0e0;
    --color-primary: #4a90e2;
    --color-accent: #e94560;
    --gradient-1: linear-gradient(45deg, #6e45e2, #88d3ce);
    --gradient-2: linear-gradient(45deg, #ff007f, #ff7d29);
    --font-main: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition-speed: 0.3s;
}

/* --- Базовые стили и сброс --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Класс для блокировки прокрутки, когда меню открыто */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    overflow: hidden;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}

/* --- Анимация при скролле --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Оверлей для мобильного меню --- */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.page-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- Хедер --- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: background-color var(--transition-speed);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color var(--transition-speed);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-in-out;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Бургер (по умолчанию скрыт) --- */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.burger__line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all var(--transition-speed) ease-in-out;
}

/* --- Секция Hero --- */
.hero__container {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: calc(100vh - 80px);
}

.hero__left, .hero__right {
    flex: 1;
}

.hero__photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.hero__photo-effect {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero__photo-effect--1 {
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--color-primary);
    animation: rotate 20s linear infinite;
}

.hero__photo-effect--2 {
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 2px dashed var(--color-accent);
    animation: rotate-reverse 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    height: 150px;
}

.cursor {
    display: inline-block;
    background-color: var(--color-primary);
    width: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Секция About --- */
.about {
    background-color: var(--color-bg-light);
}

.about__container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about__left, .about__right {
    flex: 1;
}

.about__text p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s, transform 0.5s;
}

.animate-on-scroll.is-visible .about__text p {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.is-visible .about__text p:nth-child(1) { transition-delay: 0.2s; }
.animate-on-scroll.is-visible .about__text p:nth-child(2) { transition-delay: 0.3s; }
.animate-on-scroll.is-visible .about__text p:nth-child(3) { transition-delay: 0.4s; }
.animate-on-scroll.is-visible .about__text p:nth-child(4) { transition-delay: 0.5s; }
.animate-on-scroll.is-visible .about__text p:nth-child(5) { transition-delay: 0.6s; }
.animate-on-scroll.is-visible .about__text p:nth-child(6) { transition-delay: 0.7s; }

.about__photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.about__photo-effect {
    position: absolute;
    z-index: 1;
    border-radius: 20px;
    transition: transform 0.5s ease-in-out;
}

.about__photo-effect--1 {
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-1);
    transform: rotate(-5deg);
}

.about__photo-effect--2 {
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--color-primary);
    transform: rotate(5deg);
}

.about__photo-wrapper:hover .about__photo-effect--1 {
    transform: rotate(-8deg) scale(1.05);
}
.about__photo-wrapper:hover .about__photo-effect--2 {
    transform: rotate(8deg) scale(1.05);
}

/* --- Секция Contacts --- */
.contacts__container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contacts__left, .contacts__right {
    flex: 1;
}

.contacts__left .section__title, .contacts__right .section__title {
    text-align: left;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.contacts__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 70px;
}

.btn-contact {
    display: block;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 10px;
    background-size: 300% 100%;
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 1;
    background-image: var(--gradient-2);
    cursor: pointer;
}

.btn-contact:hover {
    background-position: 100% 0;
    color: #fff;
    transform: translateY(-5px);
}

/* --- Подвал --- */
.footer {
    background-color: var(--color-bg-light);
    padding: 30px 0;
    text-align: center;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: #aaa;
}

.footer__socials {
    display: flex;
    gap: 20px;
}

.footer__social-link i {
    color: #aaa;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer__social-link:hover i {
    color: var(--color-primary);
    transform: scale(1.2);
}

/* --- Кнопка To-Top --- */
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    z-index: 100;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background-color: var(--color-accent);
}

/* --- Модальное окно --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    padding: 20px;
    box-sizing: border-box;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.modal__content {
    position: relative;
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    z-index: 2001;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
}

.modal.is-open .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__title {
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary);
}

/* --- Форма --- */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.form__input, .form__select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form__input:focus, .form__select:focus {
    outline: none;
    box-shadow: 0 0 10px var(--color-primary);
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.form__checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.form__button {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.form__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 700;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .section__title { font-size: 2rem; }
    .hero__container, .about__container, .contacts__container { flex-direction: column; }
    .about__container { flex-direction: column-reverse; }
    .hero__right { text-align: center; }
    .typing-container { font-size: 2rem; height: 120px; }
    .contacts__right { padding-top: 0; }
    .contacts__left, .contacts__right { width: 100%; }
    .footer__container { flex-direction: column; gap: 15px; }
}

/* --- Мобильное меню --- */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    /* Показываем бургер */
    .burger {
        display: block;
        position: relative;
        z-index: 1002;
    }

    /* Основной контейнер навигации */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1001;
        
        /* Полупрозрачный фон */
        background-color: rgba(26, 26, 46, 0.6);
        backdrop-filter: blur(10px);
        
        /* Центрирование содержимого */
        display: flex;
        justify-content: center;
        align-items: center;
        
        /* Скрытие по умолчанию */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        
        /* Блокировка прокрутки фона */
        overflow: hidden;
    }

    /* Активное состояние меню */
    .nav.is-active {
        transform: translateX(0);
    }
    
    /* Список ссылок в мобильном меню */
    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* Стили ссылок в мобильном меню */
    .nav__link {
        font-size: 1.8rem;
        font-weight: 700;
        display: block;
        padding: 15px 20px;
        color: var(--color-text);
        text-decoration: none;
        transition: color 0.3s ease;
        border-radius: 10px;
    }

    .nav__link:hover {
        color: var(--color-primary);
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Убираем подчеркивание на мобильных */
    .nav__link::after {
        display: none;
    }
    
    /* Анимация бургера в крестик */
    .burger.is-active .burger__line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.is-active .burger__line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.is-active .burger__line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Остальные мобильные стили */
    .hero__photo-wrapper, .about__photo-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .typing-container { 
        font-size: 1.5rem; 
        height: 100px; 
    }
    
    .modal {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .modal__content {
        padding: 25px 20px;
        max-width: none;
        width: 100%;
        max-height: calc(100vh - 40px);
        margin-top: 20px;
    }
}


/* Иконки в футере на десктопе */
@media (min-width: 993px) {
    .footer__container {
        padding-right: 90px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .modal__content {
        padding: 20px 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .modal__title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .form__input, .form__select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form__button {
        padding: 12px;
        font-size: 1rem;
    }
}
