/* ============================================================================
   HERO SECTION CSS for dubrovin.kz (#hero)
   Главная секция с приветствием и призывом к действию
   ============================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* Декоративный фон */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    text-align: center;
}

.hero__text {
    order: 2;
}

.hero__image {
    order: 1;
    display: flex;
    justify-content: center;
}

/* Текстовое содержимое */
.hero__name {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.hero__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Действия */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.btn--full {
    width: 100%;
    max-width: 200px;
}

/* Аватар */
.hero__avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: 
        0 0 0 4px var(--primary),
        0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition);
}

.hero__avatar:hover {
    transform: scale(1.05);
}

/* Анимация */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero__avatar {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__text.animate {
    animation: fadeInUp 0.8s ease-out;
}

.hero__image.animate {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Адаптивность */
/* Адаптивность */
@media (max-width: 639px) {
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-xl));
        padding-bottom: var(--spacing-lg);
    }
}

@media (min-width: 640px) {
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
    }
    
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero__avatar {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: var(--spacing-3xl);
    }
    
    .hero__text {
        order: 1;
    }
    
    .hero__image {
        order: 2;
        justify-content: flex-end;
    }
    
    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero__actions {
        justify-content: flex-start;
    }
    
    .hero__avatar {
        width: 300px;
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .hero__name {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .hero__title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .hero__avatar {
        width: 350px;
        height: 350px;
    }
}

/* Темная тема */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .hero::before {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
}

/* Отключение анимации при настройках системы */
@media (prefers-reduced-motion: reduce) {
    .hero__text.animate,
    .hero__image.animate {
        animation: none;
    }
    
    .hero__avatar {
        animation: none;
    }
    
    .hero__avatar:hover {
        transform: none;
    }
}
