/* Красивый анимированный фон для Hero секции */

.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Основной градиент */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.9) 0%,
            rgba(118, 75, 162, 0.8) 25%,
            rgba(255, 154, 158, 0.7) 50%,
            rgba(250, 208, 196, 0.6) 75%,
            rgba(248, 177, 149, 0.8) 100%);
    animation: gradientShift 10s ease-in-out infinite alternate;
}

/* Анимация градиента */
@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.9) 0%,
                rgba(118, 75, 162, 0.8) 25%,
                rgba(255, 154, 158, 0.7) 50%,
                rgba(250, 208, 196, 0.6) 75%,
                rgba(248, 177, 149, 0.8) 100%);
    }

    50% {
        background: linear-gradient(135deg,
                rgba(248, 177, 149, 0.8) 0%,
                rgba(255, 154, 158, 0.7) 25%,
                rgba(102, 126, 234, 0.9) 50%,
                rgba(118, 75, 162, 0.8) 75%,
                rgba(250, 208, 196, 0.6) 100%);
    }

    100% {
        background: linear-gradient(135deg,
                rgba(250, 208, 196, 0.6) 0%,
                rgba(248, 177, 149, 0.8) 25%,
                rgba(118, 75, 162, 0.8) 50%,
                rgba(255, 154, 158, 0.7) 75%,
                rgba(102, 126, 234, 0.9) 100%);
    }
}

/* Контейнер для анимированных фигур */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Базовые стили для фигур */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Анимированные фигуры */
.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    background: linear-gradient(45deg, rgba(255, 159, 243, 0.3), rgba(74, 194, 154, 0.3));
    animation: float1 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -100px;
    background: linear-gradient(45deg, rgba(255, 206, 84, 0.3), rgba(255, 119, 85, 0.3));
    animation: float2 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 5%;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.3), rgba(255, 159, 243, 0.3));
    animation: float3 30s ease-in-out infinite;
}

.hero-shape-4 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    right: 10%;
    background: linear-gradient(45deg, rgba(74, 194, 154, 0.3), rgba(108, 99, 255, 0.3));
    animation: float4 35s ease-in-out infinite reverse;
}

/* Анимации плавания фигур */
@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(100px, -50px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(50px, 100px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-50px, 50px) rotate(270deg) scale(1.05);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-80px, 60px) rotate(120deg) scale(1.15);
    }

    66% {
        transform: translate(40px, -40px) rotate(240deg) scale(0.85);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    20% {
        transform: translate(60px, -80px) rotate(72deg) scale(1.2);
    }

    40% {
        transform: translate(-40px, -60px) rotate(144deg) scale(0.8);
    }

    60% {
        transform: translate(80px, 40px) rotate(216deg) scale(1.1);
    }

    80% {
        transform: translate(-60px, 80px) rotate(288deg) scale(0.9);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-60px, -80px) rotate(-90deg) scale(1.1);
    }

    50% {
        transform: translate(40px, -40px) rotate(-180deg) scale(0.95);
    }

    75% {
        transform: translate(80px, 60px) rotate(-270deg) scale(1.05);
    }
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-shape-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        left: -100px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
        right: -75px;
    }

    .hero-shape-3 {
        width: 100px;
        height: 100px;
    }

    .hero-shape-4 {
        width: 180px;
        height: 180px;
        bottom: -90px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
    }

    .hero-shape-1 {
        width: 150px;
        height: 150px;
        top: -75px;
        left: -75px;
    }

    .hero-shape-2 {
        width: 120px;
        height: 120px;
        right: -60px;
    }

    .hero-shape-3 {
        width: 80px;
        height: 80px;
    }

    .hero-shape-4 {
        width: 140px;
        height: 140px;
        bottom: -70px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-shape-1 {
        width: 100px;
        height: 100px;
        top: -50px;
        left: -50px;
    }

    .hero-shape-2 {
        width: 80px;
        height: 80px;
        right: -40px;
    }

    .hero-shape-3 {
        width: 60px;
        height: 60px;
    }

    .hero-shape-4 {
        width: 100px;
        height: 100px;
        bottom: -50px;
    }
}

/* Стили для контента поверх фона */
.hero-section .relative.z-10 {
    position: relative;
    z-index: 10;
}

/* Улучшенная типографика на цветном фоне */
.hero-section h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Улучшенные стили для форм */
.hero-section .bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Эффекты для кнопок табов */
.hero-section .bg-blue-600 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-section .bg-blue-600:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

/* Дополнительные анимации при загрузке */
.hero-section {
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse эффект для привлечения внимания */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.hero-section .bg-blue-600 {
    animation: pulse 3s ease-in-out infinite;
}

.hero-section .bg-blue-600:hover {
    animation: none;
}