@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"); /* Added Inter from Google Fonts */

@font-face {
    font-family: "PPFrama-Black";
    src: url("PPFrama-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

html,
body {
    height: 100%;
}

body {
    background-color: black; /* Prevent flickering during fade-in */
    position: relative; /* Needed for absolute positioning of pseudo-elements */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push footer to bottom */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    text-align: center; /* Align all text center by default */
    overflow: hidden; /* Hide scrollbars if content temporarily exceeds viewport during load/animation */
}

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

/* Background image layer (bg.webp) */
body::before {
    content: "";
    position: fixed; /* Use fixed to cover the entire viewport regardless of scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("bg.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2; /* Place behind everything */
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

/* Filter image layer (filter.webp) */
body::after {
    content: "";
    position: fixed; /* Fixed to cover the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("filter.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 3; /* Place the filter above main content, but below clickable link */
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

#root,
#__next {
    isolation: isolate;
}

.main-content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allows it to take up available space */
    position: relative; /* Needed for z-index to work */
    z-index: 2; /* Ensure content is above filter */
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-top: 20px; /* Add top margin to header */
}

.footer {
    width: 100%;
    margin-bottom: 20px; /* Add bottom margin to footer */
    position: relative; /* Needed for z-index to work */
    z-index: 2; /* Ensure content is above filter */
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

.footer p a {
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 3vw, 20px); /* Make font size responsive */
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.05em; /* 5% letter-spacing */
    display: block; /* To center the text effectively within the link */
    text-align: center;
    position: relative; /* Needed for z-index to work */
    z-index: 4; /* Place above the filter overlay (which is z-index: 3) */
}

h1 {
    font-family: "PPFrama-Black", sans-serif;
    color: white;
    font-size: clamp(60px, 10vw, 120px); /* Make font size responsive */
    text-transform: uppercase;
}

.coming-soon-svg {
    max-width: 90%; /* Adjust as needed for responsiveness */
    height: auto; /* Allow SVG to scale proportionally */
    /* If the SVG needs to be white and its structure allows it, you might need to add: */
    /* fill: white; */
}
