/* CSS Variables & Reset */
:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Left side (Amy's Dark Aesthetic) */
    --amy-accent: #c5a880;
    --amy-bg-glass: rgba(18, 18, 18, 0.75);
    --amy-text: #f3f3f3;
    --amy-text-muted: #a3a3a3;
    
    /* Right side (Dr. Meineke's Light Aesthetic) */
    --meineke-accent: #0f766e;
    --meineke-bg-glass: rgba(255, 255, 255, 0.8);
    --meineke-text: #1f2937;
    --meineke-text-muted: #4b5563;
    
    /* Animation speed & curve */
    --transition-speed: 0.8s;
    --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #0d0e12;
    color: #ffffff;
}

/* Header Capsule */
.header-capsule {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 2rem;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: max-content;
    max-width: 90%;
    pointer-events: auto;
}

.header-capsule h1 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.header-capsule p {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.15rem;
    letter-spacing: 0.5px;
}

/* Footer Capsule */
.footer-capsule {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-capsule p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links .footer-link {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links .footer-link:hover {
    color: var(--amy-accent);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* Main Split Screen Container */
.split-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Individual Split Panel */
.split {
    flex: 0 0 50%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.split:nth-child(1), .split:nth-child(2) {
    padding-top: 4rem; /* Prevent overlap with header */
}

.split:nth-child(3), .split:nth-child(4) {
    padding-bottom: 4rem; /* Prevent overlap with footer */
}

.split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed) var(--transition-ease);
    z-index: 0;
}

/* Semi-transparent Overlays for panel shading */
.split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background-color var(--transition-speed) var(--transition-ease);
}

.left-split::after {
    background-color: rgba(15, 15, 18, 0.65);
}

.middle-split::after {
    background-color: rgba(20, 16, 12, 0.65);
}

.right-split::after {
    background-color: rgba(15, 23, 42, 0.25);
}

.fourth-split::after {
    background-color: rgba(11, 107, 113, 0.45);
}

.split-container:hover .split::after {
    background-color: rgba(10, 10, 12, 0.85); /* Dim inactive split */
}

.split-container .split:hover .split-bg {
    transform: scale(1.04); /* Zoom background slightly */
}

.split-container .left-split:hover::after {
    background-color: rgba(15, 15, 18, 0.35); /* Brighten hovered dark split */
}

.split-container .middle-split:hover::after {
    background-color: rgba(20, 16, 12, 0.35); /* Brighten hovered middle split */
}

.split-container .right-split:hover::after {
    background-color: rgba(15, 23, 42, 0.08); /* Brighten hovered light split */
}

.split-container .fourth-split:hover::after {
    background-color: rgba(11, 107, 113, 0.15); /* Brighten hovered fourth split */
}

/* Content Wrapper */
.split-content-wrapper {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 750px;
    padding: 0.5rem 0;
    opacity: 0.9;
    transform: translateY(0);
    transition: transform var(--transition-speed) var(--transition-ease), opacity var(--transition-speed) var(--transition-ease);
}

.split:hover .split-content-wrapper {
    opacity: 1;
    transform: translateY(-8px);
}

/* Glassmorphism Cards */
.glass-card {
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.card-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.glass-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.card-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-weight: 350;
}

/* Card Specific Aesthetics */
.card-dark {
    background: var(--amy-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--amy-text);
}

.card-dark h2 {
    color: #ffffff;
}

.card-dark .card-category {
    color: var(--amy-accent);
}

.card-dark .card-description {
    color: var(--amy-text-muted);
}

.card-light {
    background: var(--meineke-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--meineke-text);
}

.card-light h2 {
    color: #111827;
}

.card-light .card-category {
    color: var(--meineke-accent);
}

.card-light .card-description {
    color: var(--meineke-text-muted);
}

/* Tags styles inside cards */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.card-tags span {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.card-dark .card-tags span {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-light .card-tags span {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.btn svg {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover svg {
    transform: translateX(5px);
}

/* Left Button style (Amy's) */
.btn-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: #121212;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Right Button style (Dr. Meineke's) */
.btn-secondary {
    background: transparent;
    color: #111827;
    border: 2px solid #111827;
}

.btn-secondary:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.2);
}

/* Modals styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background: #18191e;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 101;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-content {
    padding: 2.5rem;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.modal-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.modal-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.modal-content strong {
    color: #e5e7eb;
}

/* Desktop Grid Layout for Cards (Tags on Right) */
@media (min-width: 901px) {
    .split-content-wrapper .glass-card {
        display: grid;
        grid-template-columns: 1fr max-content;
        column-gap: 2.5rem;
    }
    
    .split-content-wrapper .card-category { grid-column: 1; grid-row: 1; }
    .split-content-wrapper h2 { grid-column: 1; grid-row: 2; }
    .split-content-wrapper .card-description { grid-column: 1; grid-row: 3; }
    .split-content-wrapper .btn { grid-column: 1; grid-row: 4; }
    
    .split-content-wrapper .card-tags {
        grid-column: 2;
        grid-row: 1 / span 4;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        margin-bottom: 0;
        gap: 0.5rem;
    }
    
    .split-content-wrapper .card-tags span {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ---------------------------------------------------- */
/* RESPONSIVENESS / MOBILE LAYOUT */
/* ---------------------------------------------------- */

@media (max-width: 900px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    
    .header-capsule {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    }
    
    .footer-capsule {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 2rem 1.5rem;
        box-shadow: none;
        background: #0d0e12;
    }
    
    .split-container {
        flex-direction: column;
        height: auto;
    }
    
    .split {
        width: 100%;
        min-height: 100vh;
        padding-top: 7rem;
        padding-bottom: 4rem;
        flex: none !important; /* Disable flex scaling on mobile */
    }
    
    .split-bg {
        transform: none !important;
    }
    
    .split-content-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .glass-card h2 {
        font-size: 1.75rem;
    }
    
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 380px;
    max-width: calc(100vw - 4rem);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cookie-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #a3a3a3;
    margin-bottom: 1.2rem;
}

.cookie-policy-link {
    background: none;
    border: none;
    color: var(--amy-accent);
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: inline;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-cookie {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cookie-accept {
    background: #ffffff;
    color: #121212;
    border: 1px solid #ffffff;
}

.btn-cookie-accept:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-cookie-decline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-decline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 1rem;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
    }
    
    .cookie-banner.show {
        transform: translateY(0);
    }
}
