/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Секции параллакса */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
  
}

#section1 {
    justify-content: right;
}

#section2 {
    justify-content: left;
}

#section3 {
    justify-content: right;
}       

#section4 {
    justify-content: left;
}



/* Фоновые изображения */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    opacity: 0; /* По умолчанию невидимы */
    transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1); /* Очень плавный переход */
}

/* Активный фон */
.parallax-bg.active {
    opacity: 1; /* Активный фон видим */
}

/* Контент поверх фона */
.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 600px;
    padding: 0 20px;
    float: right;
}

/* Текст с эффектом параллакса */
.parallax-text {
    
    padding: 40px;
    border-radius: 15px;
    
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Очень плавная анимация */
}

.parallax-text h2 {
    
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.parallax-text p {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Эффект затемнения для лучшей читаемости */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .parallax-text h2 {
        font-size: 2rem;
    }
    
    .parallax-text p {
        font-size: 1.2rem;
    }
    
    .parallax-text {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .parallax-text h2 {
        font-size: 1.5rem;
    }
    
    .parallax-text p {
        font-size: 1rem;
    }
    
    .parallax-text {
        padding: 20px 15px;
    }
}

/* ========================================
   ИКОНКИ КОНТАКТОВ
   ======================================== */

.contact-icons {
    position: fixed;
    top: 80%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.contact-icon svg {
    width: 48px;
    height: 48px;
}

/* Telegram иконка */
.telegram-icon {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    animation: pulse-telegram 2s ease-in-out infinite;
}

.telegram-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    animation: none; /* Останавливаем мерцание при наведении */
}

/* Телефон иконка */
.phone-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    animation: pulse-phone 2.5s ease-in-out infinite;
}

.phone-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: none; /* Останавливаем мерцание при наведении */
}

/* Анимация мерцания для Telegram */
@keyframes pulse-telegram {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(0, 136, 204, 0);
    }
}

/* Анимация мерцания для телефона */
@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* Адаптивность для иконок */
@media (max-width: 768px) {
    .contact-icons {
        right: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .contact-icons {
        right: 10px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
}