/* --- 1. Base Setup and Variables --- */

:root {
    --main-font: "Bahnschrift Light Condensed", 'Franklin Gothic Condensed', 'Arial Narrow', sans-serif;
    --dark-red: #8B0000; 
    --section-padding: 80px 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* Apply UPPERCASE to virtually all text */
    text-transform: uppercase;
    font-family: var(--main-font); 
}

body {
    line-height: 1.6;
    background-color: #000;
    color: var(--dark-red); 
}

/* Global element resets to ensure dark red color */
p, a, h1, h2, h3, h4, label {
    color: var(--dark-red);
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff0000;
}

/* --- 2. Typography & Styling --- */

/* **HEADER TITLE ADJUSTMENT: Only text element that is lowercase** */
.main-title {
    font-weight: 200; 
    font-size: clamp(3rem, 10vw, 8rem); 
    margin-bottom: 20px;
    letter-spacing: 5px;
    /* OVERRIDE: Set text back to lowercase for "la la la fashion!" */
    text-transform: lowercase; 
}

.slogan {
    font-weight: 400;
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 40px;
}

.slogan strong {
    color: var(--dark-red);
}

.section-title {
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 25px;
    letter-spacing: 3px;
}

p {
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* --- 3. Parallax Background Sections & Separator Lines --- */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-size: cover;
    background-position: center 50%;
    transition: background-position 0s;
    /* Sleek Section Separator Line */
    border-bottom: 1px solid var(--dark-red);
}

.content {
    padding: var(--section-padding);
    border-radius: 0;
    max-width: 1000px;
    width: 90%;
}

/* --- ZIG-ZAG LAYOUT IMPLEMENTATION --- */

/* LEFT OFFSET (Sections 1 and 3) */
#section-one, #section-three {
    justify-content: flex-start; 
    text-align: left;
}
.story-content {
    text-align: left;
}

/* RIGHT OFFSET (Header, Section 2, and Footer) */
.header, #section-two {
    justify-content: flex-end; 
    text-align: right; 
}

/* Header Specifics */
.header {
    background-color: #000;
    padding-top: 150px;
}
.header .content {
    align-self: flex-start; 
}

/* News Flash */
.news-flash {
    margin-top: 50px;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--dark-red);
    border-radius: 0; 
    animation: flash 2s infinite alternate ease-in-out;
    background-color: rgba(0, 0, 0, 0.4);
}
.news-flash a {
    color: var(--dark-red); 
    font-weight: bold;
    font-size: 1.1rem;
}
@keyframes flash {
    from { opacity: 0.2; border-color: rgba(139, 0, 0, 0.2); }
    to { opacity: 1; border-color: var(--dark-red); }
}

/* Section 2 Desktop Layout (RIGHT OFFSET) */
@media (min-width: 768px) {
    #section-two .portal-content {
        flex-direction: row-reverse; 
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    #section-two .portal-description {
        width: 60%;
        margin-left: 5%; 
        margin-right: 0;
        text-align: right;
    }

    /* Section 3 Desktop Layout (LEFT OFFSET) */
    #section-three .portal-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    #section-three .portal-description {
        width: 60%;
        margin-right: 5%;
        margin-left: 0;
        text-align: left;
    }
    /* Fix for vertical overlap on desktop */
    #section-three .magazine-button {
        margin-top: 0 !important;
    }
}

/* --- 4. Portal Button & Flash Effect (Spacing Fix) --- */

/* Specific spacing for the LEFT-ALIGNED button (Section 3) on mobile */
#section-three .magazine-button {
    margin-top: 20px; 
}

.flash-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent;
    color: var(--dark-red);
    border: 1px solid var(--dark-red);
    transition: 
        background-color 0.4s ease-in-out, 
        color 0.4s ease-in-out,
        border-color 0.4s ease-in-out,
        opacity 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.flash-button:hover {
    color: white; 
    background-color: var(--dark-red);
    border-color: transparent;
}

/* --- 5. Contact and Follow Section 4 FADE LOGIC --- */

.contact-follow-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 5%;
    text-align: center;
}
@media (min-width: 768px) {
    .contact-follow-content {
        flex-direction: row;
        justify-content: space-around;
        text-align: center;
    }
    .contact-box, .follow-box {
        width: 45%;
    }
}

/* 1. Form Transition Setup */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    /* Transition added for smooth opacity/transform and delayed height collapse */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, height 0.5s 0.2s, padding 0.5s 0.2s, margin 0.5s 0.2s; 
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0;
}

#contact-form.hidden {
    opacity: 0; 
    transform: translateY(20px); 
    height: 0; 
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border: 0;
    overflow: hidden;
}
#contact-form:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    padding: 20px;
    margin-top: 20px;
}


/* 2. Follow Us Fade Out */
.social-links-container {
    transition: opacity 0.5s ease-in-out;
}

.social-links-container.faded-out {
    opacity: 0;
    pointer-events: none; 
}

/* Form inputs must be readable */
#contact-form input, #contact-form textarea {
    padding: 10px;
    border: 1px solid var(--dark-red);
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 0;
    width: 100%;
}
.submit-button {
    margin-top: 15px;
    background-color: var(--dark-red);
    color: white;
    border-color: transparent;
}
.submit-button:hover {
    background-color: transparent;
    color: var(--dark-red);
    border-color: var(--dark-red);
}


/* --- 6. Footer (contactfooter) (RIGHT OFFSET) --- */

.footer {
    display: flex;
    justify-content: flex-end; 
    text-align: right;
    padding: 50px 5%;
    background-size: cover;
    background-position: center;
    color: var(--dark-red);
    background-color: #111;
}

.footer-content {
    padding: 0;
    border-radius: 0;
    max-width: 500px;
}
.footer-content p {
    color: var(--dark-red);
}
.footer-content a {
    color: var(--dark-red);
    font-weight: bold;
}
.rights-reserved {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--dark-red);
}