:root {
    --primary-color: #f7f7f7;
    --accent-color: #e4af87;
    --text-color: #ffffff;
    --placeholder-color: rgba(255, 255, 255, 0.7);
    --font-heading: "Poppins", sans-serif;
    --font-body: "Poppins", sans-serif;
}

/* Reset and global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: var(--font-body);
    color: var(--text-color);
    overflow: hidden;
    background: #000;
}

/* =========================
   LOADING SCREEN
   ========================= */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loading-background {
    position: absolute;
    inset: 0;
    background-image: url("images/blurbg.png");
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 1;
}

.loading-logo {
    position: fixed;
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    filter: brightness(0) invert(1);
    z-index: 10000;
}

.loading-gif {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 3;
}

/* =========================
   MAIN CONTAINER
   ========================= */
.coming-soon-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.background-visual {
    position: absolute;
    inset: 0;
    background-image: url("images/bgimage.png");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 70%
    );
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0; /* revealed by JS */
    transition: opacity 0.6s ease;
}

/* =========================
   LOGO SECTION
   ========================= */
.logo-section {
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* anim in via JS */
    z-index: 3;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

/* =========================
   HEADLINE SECTION
   ========================= */
.headline-section {
    position: fixed;
    top: 50%;
    left: 5vw;
    transform: translateY(-50%);
    text-align: left;
    opacity: 1;
    z-index: 3;
}

.headline-1,
.headline-2 {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: none;
    opacity: 0; /* GSAP controls */
}

.headline-1 {
    font-size: clamp(3.8rem, 10vw, 7.5rem);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 0.1em;
}

.headline-2 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    font-weight: 400;
}

/* =========================
   SUBSCRIPTION SECTION
   ========================= */
.subscription-section {
    position: fixed;
    bottom: 14vh;
    left: 5vw;
    text-align: left;
    opacity: 0; /* GSAP controls */
    z-index: 3;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.email-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group {
    width: 100%;
    max-width: 520px;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.18);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.email-form input[type="email"]::placeholder {
    color: var(--placeholder-color);
}

.email-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.3);
}

.submit-button {
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: #1e1e1e;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.submit-button:hover {
    background-color: #d9a06f;
    transform: translateY(-2px);
}

/* =========================
   FOOTER
   ========================= */
.footer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    opacity: 0; /* GSAP controls */
}

.copyright {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    width: 24px;
    height: 24px;
    color: var(--text-color);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .headline-section {
        left: 6vw;
    }

    .subscription-section {
        left: 6vw;
        bottom: 16vh;
    }

    .footer-section {
        padding: 16px 6vw;
    }

    .logo {
        width: 120px;
        height: 120px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .logo-section {
        top: 4vh;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .headline-section {
        top: 48%;
        left: 6vw;
    }

    .headline-1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .headline-2 {
        font-size: clamp(1.6rem, 7vw, 2.3rem);
    }

    .subscription-section {
        left: 6vw;
        right: 6vw;
        bottom: 20vh;
    }

    .email-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .input-group {
        max-width: 100%;
    }

    .submit-button {
        width: 190px;
        text-align: center;
    }

    .footer-section {
        padding: 14px 6vw;
        gap: 12px;
    }

    .copyright {
        font-size: 0.65rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .headline-section {
        left: 5vw;
    }

    .subscription-section {
        left: 5vw;
        right: 5vw;
        bottom: 18vh;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .email-form input[type="email"] {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    .submit-button {
        padding: 12px 26px;
        font-size: 0.9rem;
    }

    .footer-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 5vw;
    }

    .copyright {
        font-size: 0.6rem;
    }
}
