:root {
    /* Updated to a dark theme palette to blend with the black background image */
    --bg-color: #000000;       /* Pitch black to match image */
    --card-bg: #121212;        /* Dark charcoal for the content side */
    --text-color: #e0e0e0;     /* Soft off-white for high readability without glare */
    --accent-color: #cc0000;   /* Vibrant crimson red for contrast and traditional accent */
    --muted-text: #8a8a8a;     /* Muted gray for secondary elements */
}

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

body {
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
}

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

.left-column {
    flex: 1;
    height: 100%;
    background-color: var(--bg-color); /* Matches the image's black background */
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-column {
    flex: 1.2;
    padding: 10% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: var(--card-bg); /* Distinct dark background for text readability */
    border-left: 1px solid #222222; /* Subtle divider separating columns */
}

.header-text {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Adds depth on dark backgrounds */
}

.quote-box {
    width: 100%;
    min-height: 150px;
}

#quote {
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-color);
    transition: opacity 0.15s ease-in-out;
}

#quote-btn {
    margin-top: 40px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

#quote-btn:hover {
    background-color: #ff1a1a; /* Brighter red on hover for feedback */
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.4);
}

#quote-btn:active {
    transform: scale(0.98);
}

.footer-text {
    width: 100%;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted-text);
    margin-top: 18px;
    margin-bottom: 0;
    line-height: 1.4;
    text-decoration: none;
}

.footer-text:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

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

    .left-column {
        width: 100%;
        height: 40vh;
    }

    .right-column {
        width: 100%;
        height: 60vh;
        padding: 40px 24px;
        justify-content: flex-start;
        border-left: none;
        border-top: 1px solid #222222; /* Changes divider to horizontal for mobile */
    }
    
    #quote-btn {
        width: 100%;
        margin-top: 24px; /* Instead of auto */
        margin-bottom: 32px; /* Add space from bottom */
        position: relative;
        bottom: auto;
    }

    .footer-text {
        font-size: 0.98rem;
        margin-bottom: 12px;
        margin-top: 18px;
    }
}