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

@font-face {
    font-family: 'Blank River';
    src: url(font/Blank-River.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --overlay-opacity: .3;
    --background-blur: 3px;
    --enable-animations: 1;
    --animation-duration: 1s;
    --carousel-transition-duration: 1s;
    --shimmer-duration: 3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Playfair Display', serif; */
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    color: white;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    backdrop-filter: blur(var(--background-blur));
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 1s both fadeIn;
}

/* When using image background */
body[data-background-type="image"] .video-background {
    background-size: cover;
    background-position: center;
    filter: blur(var(--background-blur));
}

.content {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.title {
    font-family: 'Haefunz', Arial, sans-serif;
    font-size: 7rem;
    font-weight: 400;
    letter-spacing: 0.0em;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 1s both fadeInUp,
               calc(var(--enable-animations) * var(--shimmer-duration)) ease-in-out infinite shimmer;
}

.subtitle {
    font-family: 'Haefunz', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 1.5s both fadeInUp;
}

.buttons {
    display: flex;
    gap: 2rem;
}

.button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    min-width: 250px;
    min-height: 90px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 1.1s both fadeIn;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.3);
}

.gumroad-invert {
    filter: invert(1);
    max-height: 22px;
    transition: all 0.3s ease;
}

.button:hover .gumroad-invert {
    filter: invert(0);
}

.jinxxy {
    font-family: 'Blank River', Arial, sans-serif;
    font-size: 2.5rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 30px rgba(255, 255, 255, 0.3),
                     0 0 40px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.1);
    }
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--carousel-transition-duration) ease-in-out;
    mix-blend-mode: normal;
}

.carousel-slide.active {
    opacity: 1;
}

/* Hide video when using carousel */
body[data-background-type="carousel"] video {
    display: none;
}

/* Hide carousel when using video or single image */
body[data-background-type="video"] .carousel-container,
body[data-background-type="image"] .carousel-container {
    display: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 2s both fadeIn;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-link:hover {
    color: white;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

.logo-container {
    margin-bottom: 3rem;
    animation: calc(var(--enable-animations) * var(--animation-duration)) ease-out 1s both fadeInUp;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 25vh;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}