/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comfortaa', cursive;
    color: #333;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('momdad.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

.header-content {
    max-width: 900px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-out;
}

.header-title {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    margin-bottom: 40px;
}

/* ИСПРАВЛЕННАЯ СТРЕЛОЧКА - теперь работает! */
.scroll-down {
    display: inline-block;
    margin-top: 40px;
    animation: bounce 2s infinite;
    text-decoration: none;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== MAIN ===== */
.main {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Разделенный фон */
.main::before,
.main::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.main::before {
    left: 0;
    background-image: url('kazan_fullhd.jpg');
    filter: brightness(0.8) contrast(1.1);
}

.main::after {
    right: 0;
    background-image: url('dima_me.jpg');
    filter: brightness(0.8) contrast(1.1);
}

/* Оверлей для лучшей читаемости */
.main::before,
.main::after {
    position: absolute;
}

/* Контейнер для контента */
.content-wrapper {
    padding-left: 100px;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    margin-left: 0;
}

.main-title {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    font-family: 'Caveat', cursive;
    border-left: 5px solid #FFD700;
    padding-left: 20px;
}

/* Список воспоминаний */
.memories-list {
    list-style: none;
    padding: 0;
    counter-reset: memory-counter;
}

.memory-item {
    display: block;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding: 15px 0 15px 70px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.memory-item:hover {
    transform: translateX(15px);
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #FFD700;
}

/* Нумерация для списка */
.memory-item::before {
    content: counter(memory-counter);
    counter-increment: memory-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF6B6B;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: 
        linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: white;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Контейнер для картинки */
.footer-image-container {
    position: relative;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.footer-image-container:hover {
    transform: scale(1.02);
}

.footer-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: bold;
}

.footer-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.congratulations {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.congrats-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    color: #e3f2fd;
}

.heart {
    text-align: center;
    font-size: 4rem;
    margin-top: 30px;
    animation: heartbeat 1.5s infinite;
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #90caf9;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Кнопка "Наверх" */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Анимация для элементов списка */
.memory-item {
    animation: slideIn 0.8s ease-out forwards;
    opacity: 0;
}

.memory-item:nth-child(1) { animation-delay: 0.1s; }
.memory-item:nth-child(2) { animation-delay: 0.3s; }
.memory-item:nth-child(3) { animation-delay: 0.5s; }
.memory-item:nth-child(4) { animation-delay: 0.7s; }
.memory-item:nth-child(5) { animation-delay: 0.9s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .header-title {
        font-size: 3rem;
    }
    
    .header-subtitle {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding-left: 50px;
        padding-right: 50px;
        margin: 0 auto;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .memory-item {
        font-size: 1.5rem;
        padding-left: 60px;
    }
    
    .footer-image {
        height: 350px;
    }
    
    .image-overlay {
        font-size: 2rem;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .main::before,
    .main::after {
        width: 100%;
    }
    
    .main::after {
        display: none;
    }
    
    .main::before {
        width: 100%;
    }
    
    .content-wrapper {
        padding: 40px 20px;
        margin: 0;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .main-title {
        font-size: 2rem;
        padding-left: 15px;
    }
    
    .memory-item {
        font-size: 1.3rem;
        padding: 12px 0 12px 50px;
        margin-bottom: 15px;
    }
    
    .memory-item::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        left: 10px;
    }
    
    .footer-title {
        font-size: 2.5rem;
    }
    
    .congrats-text {
        font-size: 1.1rem;
    }
    
    .congratulations {
        padding: 25px;
    }
    
    .footer-image {
        height: 300px;
    }
    
    .image-overlay {
        font-size: 1.8rem;
        padding: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .scroll-down {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .memory-item {
        font-size: 1.1rem;
        padding-left: 45px;
    }
    
    .footer-title {
        font-size: 2rem;
    }
    
    .footer-image {
        height: 250px;
    }
    
    .image-overlay {
        font-size: 1.5rem;
        padding: 10px;
    }
}