:root {
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --accent-blue: #bccdd8;
    --text-dark: #606c8a;
    --font-display: 'Carattere', cursive;
    --font-body: 'Lora', serif;
}

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


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.hidden {
    display: none !important;
}

.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

.text-accent {
    color: var(--text-dark);
}

/* Using dark text for better contrast usually, but header requested colors */
.text-dark {
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.block {
    display: block;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-10>*+* {
    margin-top: 2.5rem;
}

.space-y-12>*+* {
    margin-top: 3rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.list-disc {
    list-style-type: disc;
}

.bg-light {
    background-color: var(--bg-light);
}

.underline {
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}


/* Text Sizes */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

.text-4xl {
    font-size: 2.5rem;
}

/* Password Overlay */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 400px;
}

.password-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
}

.submit-btn {
    background-color: var(--text-dark);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: background 0.3s;
    border-radius: 4px;
}

.submit-btn:hover {
    background-color: #4a546d;
}

.error-msg {
    color: #e74c3c;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5em;
    /* reserve space */
}

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    width: 50%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--accent-blue);
    /* Fallback */
}

/* Image container to ensure full coverage */
.image-container {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.right-panel {
    width: 50%;
    margin-left: 50%;
    /* Push right to avoid overlap with fixed left */
    background-color: var(--bg-white);
    min-height: 100vh;
}

/* Interactive Elements */
.scroll-indicator {
    cursor: pointer;
    margin-top: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
    color: inherit;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #aabcc9;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        height: 60vh;
        /* Image takes top portion on mobile */
        position: relative;
        /* Not fixed on mobile */
        top: auto;
        left: auto;
    }

    .right-panel {
        width: 100%;
        margin-left: 0;
        min-height: auto;
    }

    .hero-text.min-h-screen {
        min-height: 60vh;
        /* Reduced height on mobile since image is above */
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.75rem;
    }

    .password-container {
        padding: 2rem 1.5rem;
    }
}