* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* Отключаем стандартный скролл */
    font-family: 'Poiret One', cursive;
    color: #fff;
    background-color: #000;
}

body {
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    height: 100vh;
    position: relative;
    perspective: 1000px;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 0;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.7);
    transition: all 0.4s ease;
    z-index: -1;
    transform: scale(1.05);
}

.visible .background {
    transform: scale(1);
}

.content {
    z-index: 5;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.05s;
}

.visible .content {
    opacity: 1;
    transform: translateY(0);
}

/* Затемняющий слой */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

h1 {
    font-family: 'Marck Script', cursive;
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    margin: 0 20px;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    z-index: 10;
}

#forever {
    font-size: 5rem;
    background: linear-gradient(to right, #fff, #ffc0cb, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.scroll-hint {
    font-family: 'Poiret One', cursive;
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.7;
    animation: bounce 2s ease infinite;
    position: relative;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Навигационные точки */
.pagination {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    #forever {
        font-size: 3rem;
    }
    
    .pagination {
        right: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Стили для блоков времени */
#together, #married {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.2;
    margin: 10px 0;
}

#together div, #married div {
    min-height: 1.5em;
} 