* {
    margin: 0;
    padding: 0;
    outline: 0;
    scroll-behavior: smooth;
}

*, ::after, ::before {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Prata';
    src: url('fonts/Prata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Antarctic';
    src: url('fonts/Antarctic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caravan';
    src: url('fonts/Caravan.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    max-width: 100%;
    min-width: 320px;
    background-color: #fdfaf2;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Prata', serif;
    overflow-x: hidden;
}


.container {
    max-width: 1110px;
    margin: 0 auto;
    padding: 60px 6px;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    opacity: 0.2;
    background-image: repeating-radial-gradient(circle at 0 0, rgba(0,0,0,.2) 0px, transparent 2px);
    background-size: 4px 4px;
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }
.animate-on-scroll.delay-500 { transition-delay: 0.5s; }
.animate-on-scroll.delay-600 { transition-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-10px); }
}

@keyframes floatReverse {
    0%, 100% { transform: rotate(-50deg) translateY(0); }
    50% { transform: rotate(-50deg) translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.wedding-hero__vetka { animation: float 6s ease-in-out infinite; }
.wedding-hero__vetka-second { animation: floatReverse 7s ease-in-out infinite; }
.wedding-hero__ampersand { animation: pulse 4s ease-in-out infinite; }

@media (max-width: 600px) {
    .container {
        padding-top: 30px;
    }
}
