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

body,
html {
    height: 100%;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    overflow: auto;
    /* Prevent scrolling for the single page view */
    background-color: #0d0d0d;
    /* Fallback color */
    color: #ffffff;
}

/* Background Image & Overlay */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Adding a slow zoom effect for dynamism */
    animation: slowZoom 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 100%);
}

/* Header & Logo */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.logo-container {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

.logo {
    height: 80px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 5;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.content-wrapper {
    padding: 3rem 4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f8f8f8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    z-index: 5;
}

/* Animations */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Intro Animation */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through */
    animation: introSequence 3s ease-in-out forwards;
}

.intro-logo {
    width: 385px;
    /* Increased size 1.5x */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@keyframes introSequence {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3s {
    animation-delay: 3s;
}

.delay-3-5s {
    animation-delay: 3.5s;
}

.delay-4s {
    animation-delay: 4s;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }

    .logo {
        height: 50px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
        width: 90%;
        backdrop-filter: blur(8px);
        /* Reduce blur slightly for performance on mobile */
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
        display: flex;
        justify-content: center;
        /* Center logo on very small screens if preferred, or keep left. User asked for Top Left, so I will clear this line to keep it left, or maybe better to keep it strictly left but smaller padding. */
        justify-content: flex-start;
    }

    .logo {
        height: 40px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .content-wrapper {
        padding: 1.5rem 1rem;
        width: 95%;
        margin-top: -20px;
        /* Slight visual adjustment */
    }

    .footer {
        padding: 1rem;
        font-size: 0.7rem;
    }
}

/* Height-based media query for landscape phones */
@media (max-height: 600px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 35px;
    }

    .main-content {
        padding-top: 60px;
        /* Make space for header */
        padding-bottom: 40px;
        /* Make space for footer */
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}