* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: Georgia, serif;
}

.slideshow {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}


@keyframes kenburns {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.slide {
    animation: kenburns 12s linear infinite;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -2;
}

.content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.save-the-date {
    font-size: 2.4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.date {
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.names {
    font-size: 3rem;
    font-style: italic;
    margin-bottom: 18px;
}

.details {
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0.85;
    max-width: 340px;
    line-height: 1.6;
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: textIn 1.2s ease forwards;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.3s;
}

@keyframes textIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-names {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.loader-line {
    width: 80px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    animation: loadingLine 1.5s ease-in-out infinite;
}

@keyframes loadingLine {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

@media (max-width: 768px) {
    .save-the-date {
        font-size: 1.6rem;
    }

    .names {
        font-size: 2.2rem;
    }

    .details {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .overlay {
        background: rgba(0, 0, 0, 0.55);
    }
}


.cursor {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out;
    z-index: 10000;
}

/* Ascunde pe mobil */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
}

body {
    cursor: none;
}