/* --- Variables & Reset --- */
:root {
    --bg-black: #000000;
    --bg-grey: #252525;
    --brand-red: #c1272d;
    --text-dark: #000000;
    --text-light: #ffffff;
}

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

body,
html {
    width: 100%;
    height: 100%;
    /* Allow scrolling on very small screens so content doesn't break or overlap */
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-black);
    font-family: 'Montserrat', sans-serif;
}

/* Outer black frame */
.screen-wrapper {
    width: 100vw;
    min-height: 100vh;
    /* Changed from fixed height to min-height so it can stretch on small phones */
    padding: 40px;
    /* Equal black frame margins */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner grey area with user BG png */
.main-content {
    width: 100%;
    min-height: calc(100vh - 80px);
    /* 40px top + 40px bottom padding */
    background-color: var(--bg-grey);
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
    padding: 20px;
}

/* --- Video Background --- */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Dim the video slightly to ensure text is readable */
    opacity: 0.6;
}

/* Parallax Group Layout */
.parallax-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    /* Responsive gap */
    z-index: 10;
    position: relative;
    /* Keeps it strictly above the video */
    width: 100%;
}

.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* --- Logo Box --- */
.logo-layer {
    margin-bottom: 2vh;
}

.logo-fallback {
    background-color: var(--bg-black);
    border: 0px solid var(--brand-red);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;

    width: 100%;
    /* ---------------------------------------------------- */
    /* CHANGE THIS VALUE BELOW TO RESIZE THE LOGO CONTAINER */
    /* ---------------------------------------------------- */
    max-width: 750px;
}

.logo-img {
    width: 100%;
    /* The image automatically fills the container max-width above */
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* CSS Fallback if image is missing */
.fallback-battal {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--brand-red);
    letter-spacing: -2px;
    line-height: 1;
}

.fallback-ent {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(0.5rem, 1vw, 0.9rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 6px;
    text-align: right;
    margin-top: 5px;
}

/* --- Mixed Text Lines --- */
.text-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 5px;
}

.plain-text {
    opacity: 0;
    color: var(--text-light);
    background-color: var(--bg-black);
    padding: 6px 15px;
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    -webkit-text-stroke: 1px var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: revealText 0.3s ease-out 0.6s forwards;
    /* Fades in slightly before the red strips */
    text-align: center;
}

/* --- Expanding Text Strips --- */
.red-strip {
    position: relative;
    padding: 6px 25px;
    display: inline-block;
    z-index: 1;
}

.red-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--brand-red);
    animation: expandBackground 0.8s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    z-index: -1;
}

.strip-text {
    opacity: 0;
    color: var(--text-dark);
    font-weight: 900;
    /* Increased base size and max size */
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    /* Added text stroke to make it appear even bolder than 900 weight */
    -webkit-text-stroke: 1px var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: normal;
    /* Allows wrapping on tiny phone screens */
    text-align: center;
    animation: revealText 0.3s ease-out 0.8s forwards;
    display: block;
}

.delay-strip::before {
    animation-delay: 0.4s;
}

.delay-text {
    animation-delay: 1.2s;
}

@keyframes expandBackground {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes revealText {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* --- Button --- */
.button-layer {
    margin-top: 3vh;
}

.contact-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 3px solid var(--brand-red);
    background-color: #151515;
    color: var(--text-light);
    font-weight: 900;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--brand-red);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(204, 37, 37, 0.4);
}

/* --- Footer Text --- */
.footer-text {
    position: absolute;
    bottom: 14px;
    left: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 100;
    transition: color 0.3s ease;
}

.footer-text:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Press Kit --- */
.press-kit-container {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.press-kit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    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);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.press-kit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.press-kit-btn:hover::before {
    left: 100%;
}

.press-kit-btn:hover {
    background: rgba(193, 39, 45, 0.15);
    border-color: rgba(193, 39, 45, 0.5);
    box-shadow: 0 0 20px rgba(193, 39, 45, 0.3), inset 0 0 10px rgba(193, 39, 45, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Social Icons --- */
.social-icons {
    position: absolute;
    bottom: 10px;
    /* Align vertically inside the 40px frame */
    right: 40px;
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    /* Responsive gap */
    z-index: 100;
}

.social-icons a {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    /* Responsive size */
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--text-light);
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .parallax-group {
        gap: 1.5vh;
        /* Reduced gap between elements */
    }

    .text-line {
        row-gap: 6px;
        column-gap: 6px;
        /* Tighter line spacing for wrapped text */
    }

    .screen-wrapper {
        padding: 20px 20px 105px 20px;
        /* Thicker bottom margin on mobile to cleanly stack the footer elements */
    }

    .main-content {
        min-height: calc(100vh - 125px);
        /* 20px top + 105px bottom padding */
        padding: 15px;
    }

    .red-strip {
        padding: 4px 10px;
    }

    .plain-text {
        padding: 4px 10px;
    }

    .strip-text,
    .plain-text {
        font-size: clamp(1rem, 4.5vw, 1.3rem);
        line-height: 1.1;
        /* Tighter line height for mobile */
    }

    .footer-text {
        top: auto;
        bottom: 8px;
        /* Restored to the bottom border */
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.6rem;
        width: 100%;
        text-align: center;
    }

    .press-kit-container {
        bottom: 32px;
        /* Stacked safely above the footer text */
    }

    .social-icons {
        bottom: 74px;
        /* Stacked safely above the press kit */
        right: 50%;
        gap: 20px;
        transform: translateX(50%);
        /* Centered perfectly */
    }

    .logo-fallback {
        max-width: 90%;
        /* Prevent logo from ever touching screen edges on mobile */
    }
}

/* --- Fake Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Smooth cinematic slide-up animation */
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.loading-icon {
    width: 150px;
    /* Adjust size as needed */
    height: auto;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Slides the entire black background and icon up out of view */
.slide-up {
    transform: translateY(-100%);
}