:root {
    --color-bg: #000000;
    --color-white: #ffffff;
    --color-text: #b8b8b8;
    --color-accent: #d4af37; /* Warm Gold */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body, html {
    width: 100%; height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-white);
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Left Section: Content */
.content-panel {
    width: 45%;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3vh 4vw; /* Fluid padding based on viewport size */
    z-index: 2;
    border-right: 1px solid rgba(255,255,255,0.05);
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.language-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    transition: all 0.3s ease;
}

.language-dropdown-wrapper:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.language-dropdown-wrapper i {
    font-size: 0.8rem;
}

.language-dropdown-wrapper select {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
}

.language-dropdown-wrapper select option {
    background: #0d0d0d;
    color: var(--color-white);
}

/* Main Content Area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vh 0;
}

.brand-header {
    margin-bottom: 2vh;
}

.brand-logo {
    max-width: min(280px, 80%);
    height: auto;
    mix-blend-mode: screen;
}

.fallback-logo {
    font-family: var(--font-heading);
    font-size: min(3rem, 6vw);
    letter-spacing: 12px;
    font-weight: 400;
    margin-left: 12px;
}

.divider {
    width: 35px;
    height: 1px;
    background-color: var(--color-accent);
    margin-bottom: 2vh;
}

.messaging-panel h2 {
    font-size: min(0.85rem, 2.5vw);
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 0.8vh;
}

.messaging-panel h3 {
    font-family: var(--font-heading);
    font-size: min(3rem, 7vh);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5vh;
}

.messaging-panel p {
    font-size: min(0.9rem, 2vh);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 3vh;
    max-width: 95%;
}

/* Form Wrapper */
.subscription-panel {
    max-width: 380px;
    width: 100%;
}

.input-row {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.6rem;
    transition: border-color 0.4s ease;
}

.input-row:focus-within {
    border-color: var(--color-accent);
}

.input-row input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
}

.input-row input::placeholder {
    color: rgba(255,255,255,0.35);
}

.input-row button {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.input-row button:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

/* Footer Section */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2vh;
}

.social-links a {
    color: var(--color-text);
    font-size: 1.15rem;
    margin-right: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
}

/* Right Section: Image */
.image-panel {
    width: 55%;
    background-image: url('assets/mockup.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.image-vignette {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 20%);
}

/* Seam Split Overlay (Perfect center alignment on split) */
.center-split-overlay {
    position: absolute;
    top: 50%;
    left: 45%; /* Match left panel width */
    transform: translate(-50%, -50%);
    z-index: 10;
}

.wave-circle {
    position: relative;
    width: min(150px, 15vw); /* Responsive scale to avoid overlapping issues at zoom */
    height: min(150px, 15vw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.wave-circle::before, .wave-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    animation: ripple 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.wave-circle::after {
    animation-delay: 1.5s;
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes ripple {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

.mockup-icon {
    max-width: min(90px, 60%);
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    mix-blend-mode: screen;
}

/* Preloader Styling */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #050505;
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1.2s ease, visibility 1.2s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    max-width: 100px;
    height: auto;
    mix-blend-mode: screen;
    animation: fadePulse 2s infinite alternate ease-in-out;
}

.loader-bar {
    width: 120px;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    animation: loadProgress 2.5s infinite ease-in-out;
}

@keyframes fadePulse {
    0% { opacity: 0.4; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

@keyframes loadProgress {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.fallback-icon { font-size: 4rem; color: #fff; z-index: 2; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(15px); animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.75s; }

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

/* Mobile & Zoom Breakpoints */
/* Lowering breakpoint to 800px to ensure laptops at 150% zoom retain split view beautifully instead of snapping to giant mobile stacked view */
@media screen and (max-width: 800px) {
    body, html {
        overflow-y: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .content-panel {
        width: 100%;
        min-height: 100vh;
        padding: 3rem 2rem;
        background: transparent;
        position: relative;
        z-index: 2;
        border-right: none;
        order: 2;
    }

    .image-panel {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 0;
    }

    .image-vignette {
        background: rgba(0, 0, 0, 0.85); /* Faded transparent black overlay over the background image */
    }

    .center-split-overlay {
        display: none;
    }

    header {
        position: relative;
        z-index: 10;
        justify-content: center;
        margin-bottom: 2rem;
    }

    main {
        position: relative;
        z-index: 10;
        align-items: center;
        text-align: center;
        padding-top: 1rem;
    }

    .divider {
        margin: 0 auto 2.5rem auto;
    }

    .messaging-panel p {
        margin: 0 auto 3.5rem auto;
    }

    .fallback-logo {
        font-size: 2.8rem;
        letter-spacing: 10px;
    }

    .messaging-panel h3 {
        font-size: 2.5rem;
    }

    .subscription-panel {
        max-width: 100%;
    }

    footer {
        position: relative;
        z-index: 10;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 4rem;
        margin-top: 2rem;
        border-top: none;
    }

    .social-links a {
        margin: 0 1rem;
    }
}

/* RTL Support */
html[dir="rtl"] .content-panel {
    text-align: right;
}

html[dir="rtl"] header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fallback-logo {
    margin-left: 0;
    margin-right: 16px;
}

html[dir="rtl"] .divider {
    margin-right: 0;
}

html[dir="rtl"] .input-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .input-row input {
    text-align: right;
}

html[dir="rtl"] .input-row button {
    flex-direction: row-reverse;
}

html[dir="rtl"] .input-row button i {
    transform: rotate(180deg);
}

@media screen and (max-width: 800px) {
    html[dir="rtl"] .content-panel {
        text-align: center;
    }
    html[dir="rtl"] .input-row input {
        text-align: center;
    }
}
