/* style.css */

/* Basic resets and full-page layout */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Keeps the view contained for the effect */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1d; /* Deep fallback color */
    font-family: 'IM Fell DW Pica SC', serif; /* A strong, historic, crafted font */
}

/* Container for perfect centering */
.freedom-container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Styling the single H1 "spoon" */
h1 {
    font-size: 25vw; /* Giant text, responsive to viewport width */
    margin: 0;
    padding: 0;
    color: #f4e9cd; /* A warm, cream color like old parchment or gold */
    text-transform: lowercase;
    letter-spacing: -1vw; /* Tight spacing for a powerful, singular visual */
    font-weight: 400;
    line-height: 1;
    user-select: none; /* Prevents selection for a cleaner presentation */

    /* Subtly animated glow, suggesting agency and hope */
    text-shadow: 0 0 20px rgba(244, 233, 205, 0.5),
                 0 0 40px rgba(212, 175, 55, 0.3);

    /* Animation on load: Fades and floats into position */
    opacity: 0;
    transform: translateZ(100px) translateY(10vh);
    animation: freedomRise 3.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    will-change: transform, opacity;
}

/* Background image settings */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('cui.webp'); /* The custom-generated image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1; /* Places it behind the text */
    filter: brightness(0.7); /* Deepens the image for text contrast */
}

/* Animation keyframes for the "freedomRise" effect */
@keyframes freedomRise {
    0% {
        opacity: 0;
        transform: translateZ(100px) translateY(10vh) scale(0.9);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateY(0) scale(1);
    }
}