/* =====================================================
   ЮБИЛЕЙНЫЙ БЛОК - 65 ЛЕТ ВК ЮГРА-САМОТЛОР
   ===================================================== */

.hero-anniversary {
    position: relative;
    min-height: 100vh; /* Changed from 170vh to be more flexible */
    height: auto; /* Allow content to define height */
    overflow: hidden;
    padding: 120px 0 60px 0; /* Adjusted padding */
    color: white;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #4a1e0f 100%);
    display: flex; /* Use flexbox for vertical centering */
    align-items: center; /* Center the card vertically */
}

/* The new card structure */
.anniversary-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(218, 165, 32, 0.05));
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    backdrop-filter: blur(10px);
    animation: wishesSlideUp 1.5s ease-out; /* Re-using existing animation */
}

/* Content sections inside the card */
.anniversary-content-left, .anniversary-content-right {
    position: relative;
    z-index: 10;
}

/* Анимированный фон */
.anniversary-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.anniversary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(218, 165, 32, 0.1) 0%,   /* золотой */
        rgba(255, 215, 0, 0.05) 25%,  /* золотой светлый */
        rgba(255, 140, 0, 0.1) 50%,   /* оранжевый */
        rgba(220, 20, 60, 0.05) 75%,  /* красный */
        rgba(139, 69, 19, 0.1) 100%   /* коричневый */
    );
    z-index: 2;
}

/* Частицы - будут управляться JavaScript */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles-container canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Юбилейная эмблема */
.anniversary-badge {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    border: 3px solid #DAA520;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(255, 215, 0, 0.1));
    backdrop-filter: blur(10px);
    animation: anniversaryGlow 3s ease-in-out infinite alternate;
}

.anniversary-number {
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-right: 0.5rem;
}

.anniversary-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #DAA520;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes anniversaryGlow {
    0% {
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 40px rgba(218, 165, 32, 0.6);
        transform: scale(1.05);
    }
}

/* Заголовки и текст */
.anniversary-title {
    font-size: 4rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: titleSlideIn 1.5s ease-out;
}

.anniversary-subtitle {
    font-size: 1.8rem;
    color: #DAA520;
    margin-bottom: 2rem;
    font-weight: 600;
    animation: subtitleFadeIn 2s ease-out 0.5s backwards;
}

.anniversary-message {
    margin-bottom: 2rem;
    animation: messageFadeIn 2s ease-out 1s backwards;
}

.anniversary-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Поздравление от директора */
.director-greeting {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(218, 165, 32, 0.1));
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #DAA520;
    backdrop-filter: blur(5px);
    margin-top: 2rem;
    animation: greetingSlideUp 2s ease-out 1.5s backwards;
}

.director-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

/* Фото директора (новые стили) */
.director-photo-frame {
    width: 85%; /* Adjusted width */
    max-width: 350px; /* Adjusted max-width */
    position: relative;
    background: linear-gradient(135deg, #DAA520, #FFD700, #DAA520);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: photoSlideIn 2s ease-out 1s backwards; /* Re-using animation */
}

/* Сохранение пропорций 3:4 */
.director-photo-frame::before {
    content: "";
    display: block;
    padding-top: 133.33%; /* 4 / 3 * 100% */
}

.director-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Декоративные элементы */
.photo-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.decoration-element {
    position: absolute;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 50%;
}

.decoration-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: -30px;
    animation: decorationSpin 8s linear infinite;
}

.decoration-2 {
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: -20px;
    animation: decorationSpin 12s linear infinite reverse;
}

/* Стили для пожеланий, взятые из .anniversary-wishes */
.wishes-main {
    margin-bottom: 1rem;
}

.wish-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), rgba(0, 0, 0, 0.2));
    border-radius: 15px;
    border-left: 4px solid #DAA520;
    animation: wishItemSlide 1.5s ease-out 1.2s backwards;
    position: relative;
}

.wish-item p {
    font-size: 1.1rem; /* Adjusted font size */
    line-height: 1.7;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

.wish-item strong {
    color: #FFD700;
    font-weight: 700;
}

.final-wish {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.05));
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
}

.director-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #DAA520;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.wishes-signature {
    text-align: center;
    animation: signatureFade 2s ease-out 1.5s backwards;
}

.signature-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.signature-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
}

/* Анимации (сохранены) */
@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes greetingSlideUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes photoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes decorationSpin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes wishesSlideUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wishItemSlide {
    0% {
        opacity: 0;
        transform: translateX(50px); /* Changed from -50px */
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes signatureFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 991px) {
    .anniversary-card {
        padding: 2rem;
    }
    .anniversary-content-right {
        margin-top: 3rem; /* Add space on smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-anniversary {
        padding: 80px 0 40px 0;
    }
    .anniversary-card {
        padding: 1.5rem;
    }
    .anniversary-title {
        font-size: 2.5rem;
    }
    .anniversary-subtitle {
        font-size: 1.4rem;
    }
    .anniversary-badge {
        padding: 0.8rem 1.5rem;
    }
    .anniversary-number {
        font-size: 2rem;
    }
    .anniversary-text {
        font-size: 1.2rem;
    }
    .director-greeting {
        padding: 1.5rem;
    }
    .director-photo-frame {
        width: 70%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .anniversary-title {
        font-size: 2rem;
    }
    .anniversary-subtitle {
        font-size: 1.2rem;
    }
    .anniversary-card {
        padding: 1rem;
    }
}

/* Эффекты для частиц (оставлены без изменений) */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.particle.gold {
    background: radial-gradient(circle, #FFD700, transparent);
}

.particle.orange {
    background: radial-gradient(circle, #FF8C00, transparent);
}

.particle.red {
    background: radial-gradient(circle, #DC143C, transparent);
}