:root {
    --color-primary-dark: #0C172C;
    --color-light: #F8F9FA;
    --color-primary-light: #4A90E2;
    --color-primary: #2C74B3;
    --color-white: #FFFFFF;
    
    --font-logo: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed; /* prevent bounce and scroll */
}

body {
    background-color: var(--color-primary-dark); /* Fallback */
    font-family: var(--font-body);
}

/* --- Split Background --- */
.bg-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50vw;
    z-index: 1;
}

.panel-left {
    left: 0;
    background-color: var(--color-primary-dark);
    /* Subtle gradient to emulate lighting from center */
    background: linear-gradient(90deg, #0A1325 0%, #0C172C 100%);
}

.panel-right {
    right: 0;
    background-color: var(--color-light);
    background: 
        radial-gradient(circle at 100% 100%, rgba(74, 144, 226, 0.15) 0%, transparent 60%),
        linear-gradient(-90deg, #E2E8F0 0%, #F8F9FA 100%);
}

/* --- Geometric Chevrons --- */
.chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

/* Build a chevron shape using borders */
.chevron-left {
    left: -200px;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-right: 2px solid var(--color-primary-light);
    border-top: 2px solid var(--color-primary-light);
    border-radius: 4px;
}

.chevron-left::before {
    content: '';
    position: absolute;
    top: 20px; bottom: 20px; left: 20px; right: 20px;
    border-right: 25px solid rgba(74, 144, 226, 0.15); /* Keeping low opacity for subtle effect */
    border-top: 25px solid rgba(74, 144, 226, 0.15);
    border-radius: 2px;
}

.chevron-right {
    position: absolute;
    right: -350px;
    top: 30%;
    width: 65vh;
    height: 65vh;
    transform: translateY(-50%) rotate(45deg);
    border-left: 70px solid rgba(74, 144, 226, 0.25); /* Primary Light with more presence */
    border-bottom: 70px solid rgba(74, 144, 226, 0.25);
    pointer-events: none;
    z-index: 2;
}

.chevron-right::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 100px;
    width: 100%;
    height: 100%;
    border-left: 35px solid rgba(44, 116, 179, 0.35); /* Primary with more presence */
    border-bottom: 35px solid rgba(44, 116, 179, 0.35);
}

/* --- Main Layout Wrapper --- */
.main-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.header {
    width: 100%;
    background-color: rgba(12, 23, 44, 0.95); /* Deep primary dark bar spanning fully */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    /* padding: 1vh 0 0.5vh 0; */
}

/* --- Header SVG Extension Divider --- */
.header-divider {
    position: relative;
    width: 100%;
    z-index: 10;
    line-height: 0;
    transform: rotate(180deg);
    margin-top: -1px;
}

.curve-svg {
    position: relative;
    display: block;
    width: 100%;
    height: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 28px;
    letter-spacing: 2px;
}

.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary-light); }

/* --- Center Content --- */
.content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2vh 0;
}

/* --- Showcase Box --- */
.showcase-box {
    width: 45vw;
    max-width: 700px;
    height: 55vh;
    min-height: 320px;
    display: flex;
    border: 3px solid var(--color-primary-light);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 
                inset 0 0 0 1px rgba(255,255,255,0.2);
    background-color: #000;
    margin-bottom: 4vh;
    overflow: hidden;
}

.image-slice {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.before-panel {
    background-image: url('assets/before-after/before.jpg');
    border-right: 1px solid rgba(0,0,0,0.5);
}

.after-panel {
    background-image: url('assets/before-after/after.jpg');
    border-left: 1px solid rgba(74, 144, 226, 0.4);
}

.image-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    color: var(--color-white);
    backdrop-filter: blur(4px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.text-primary-label {
    color: var(--color-primary-light);
}

/* --- Typography Section --- */
.typography-section {
    text-align: center;
    margin-bottom: 3vh;
    mix-blend-mode: normal;
    color: var(--color-white);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
}

/* Make text overlay adapt to split BG nicely using a drop shadow for legibility over the cream right side */
.hero-title, .hero-subtitle {
    /* Split color: white on the left (primary-dark BG), primary-dark on the right (light BG) */
    /* We use 50vw fixed gradient relative to the viewport to ensure perfect split alignment */
    background: linear-gradient(90deg, 
        var(--color-white) calc(50vw - (100% / 2 * 0.8)), 
        var(--color-white) 50%, 
        var(--color-primary-dark) 50%,
        var(--color-primary-dark) 100%);
    background-size: 100vw; /* This is the key: set the gradient size to the viewport width */
    background-attachment: fixed; /* Keep it fixed to the viewport */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5vh;
    text-shadow: none;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-shadow: none;
    white-space: nowrap;
}

/* --- CTA Section --- */
.cta-section {
    margin-bottom: 2vh;
}

.btn-cta {
    background: linear-gradient(135deg, #60A5FA 0%, #2C74B3 100%);
    border: 2px solid #93C5FD; /* Lighter border */
    border-radius: 50px;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: #FFF;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2),
                inset 0 2px 10px rgba(255,255,255,0.4),
                0 0 20px rgba(74, 144, 226, 0.4);
    transition: all 0.3s;
}

.btn-cta:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3),
                inset 0 2px 10px rgba(255,255,255,0.6),
                0 0 30px rgba(74, 144, 226, 0.6);
}

/* --- Footer Note --- */
.footer-note {
    display: flex;
    width: 100%;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-left {
    flex: 1;
    text-align: right;
    padding-right: 15px;
    color: var(--color-white);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.footer-right {
    flex: 1;
    text-align: left;
    padding-left: 15px;
    color: var(--color-primary);
    text-shadow: none;
}

/* --- Corner Accent Shape --- */
.corner-accent-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40vw;
    height: 40vw;
    z-index: 2;
    pointer-events: none;
    /* Using solid theme colors for more impact as seen in reference */
    background: linear-gradient(135deg, 
        transparent 55%, 
        var(--color-primary-light) 55%, 
        var(--color-primary-light) 70%, 
        var(--color-primary) 72%, 
        var(--color-primary) 100%
    );
    opacity: 0.8;
}

@media (min-width: 1200px) {
    .corner-accent-right {
        width: 250px;
        height: 250px;
    }
}
@media (max-width: 768px) {
    .chevron-left {
        transform: translate(-50%, -50%) rotate(45deg) scale(0.6);
        left: -120px;
    }
    
    .chevron-right {
        transform: translateY(-50%) rotate(45deg) scale(0.6);
        right: -320px;
    }

    .corner-accent-right {
        width: 30vw;
        height: 30vw;
    }
    
    .showcase-box {
        width: 80vw;
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        white-space: normal;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        white-space: normal;
        padding: 0 15px;
        line-height: 1.4;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .footer-note {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-left {
        text-align: center;
        padding-right: 0;
    }
    
    .footer-right {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-divider {
        display: none;
    }
    
    .logo-icon {
        height: 45px;
    }
}
