/* Стили для анимации сакуры - только для hero секции */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas фон */
.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

/* Статичный градиентный фон (fallback) */
.hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #387ca1 0%, #E3F2FD 100%);
    z-index: 0;
}

/* Слоган наверху секции */
.top-slogan {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.top-slogan p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Основной контент героической секции */
.hero-content {
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.4em;
    background: linear-gradient(45deg, #ffffff, #e0f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta .btn {
    background: rgba(128, 128, 128, 0.1);
    color: rgb(255 255 255 / 40%) !important;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.7s ease;
    text-decoration: none;
    display: inline-block;
    text-shadow: none;
    letter-spacing: 0.2em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta .btn:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Кнопка управления анимацией */
.color-control-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(50, 200, 100, 0.15), rgba(100, 250, 150, 0.15));
    border: 1px solid rgba(50, 200, 100, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.color-control-btn:hover {
    background: linear-gradient(135deg, rgba(50, 200, 100, 0.25), rgba(100, 250, 150, 0.25));
    border-color: rgba(50, 200, 100, 0.4);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(50, 200, 100, 0.15);
}

.color-control-btn.active {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 150, 50, 0.2));
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.7);
    animation: pulse-slow 4s ease-in-out infinite;
}

.color-control-btn.active:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 150, 50, 0.3));
    border-color: rgba(255, 100, 100, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse-slow {
    0% { box-shadow: 0 0 0 0 rgba(255, 100, 100, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(255, 100, 100, 0.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 100, 100, 0); }
}

/* Кнопка управления частицами */
.particles-control-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(50, 200, 100, 0.15), rgba(100, 250, 150, 0.15));
    border: 1px solid rgba(50, 200, 100, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.particles-control-btn:hover {
    background: linear-gradient(135deg, rgba(50, 200, 100, 0.25), rgba(100, 250, 150, 0.25));
    border-color: rgba(50, 200, 100, 0.4);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(50, 200, 100, 0.15);
}

.particles-control-btn.active {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 150, 50, 0.2));
    border-color: rgba(255, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.7);
    animation: pulse-slow 4s ease-in-out infinite;
}

.particles-control-btn.active:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 150, 50, 0.3));
    border-color: rgba(255, 100, 100, 0.5);
    color: rgba(255, 255, 255, 0.9);
}




/* Адаптивность для hero секции */
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .top-slogan {
        top: 30px;
        padding: 12px 20px;
        max-width: 85%;
    }

    .top-slogan p {
        font-size: 13px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-cta .btn {
        padding: 16px 35px;
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }

    .color-control-btn {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 11px;
    }

    .particles-control-btn {
        top: 70px;
        right: 15px;
        padding: 10px 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .top-slogan {
        top: 90px;
        padding: 8px 15px;
        max-width: 90%;
    }
    
    .top-slogan p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .hero-cta .btn {
        padding: 12px 25px;
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }
    
    .color-control-btn {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 20px;
    }

    .particles-control-btn {
        top: 65px;
        right: 12px;
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 20px;
    }
    
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .top-slogan {
        top: 20px;
        padding: 6px 12px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
         .color-control-btn {
         top: 8px;
         right: 8px;
         padding: 6px 10px;
         font-size: 9px;
     }

         .particles-control-btn {
         top: 55px;
         right: 8px;
         padding: 6px 10px;
         font-size: 9px;
     }

     .hero-cta .btn {
         padding: 14px 30px;
         font-size: 1.3rem;
         letter-spacing: 0.08em;
     }
 } 