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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #2c3e50;
    --text-light: rgba(255, 255, 255, 0.95);
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-light: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.split-left,
.split-right {
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.split-left {
    background-image: url('/steel/public/mainpage_steel.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.split-right {
    background-image: url('/steel/public/mainpage_passivehouse.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.split-button {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    outline: none;
}

.split-button:focus-visible {
    outline: 3px solid var(--text-light);
    outline-offset: -3px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.split-button:hover .image-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.split-button:active {
    transform: scale(0.99);
}

.split-left:hover {
    transform: scale(1.02);
}

.split-right:hover {
    transform: scale(1.02);
}

.button-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

.split-left .button-content {
    padding-right: 15%;
}

.split-right .button-content {
    padding-left: 15%;
}

.button-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-light);
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.split-button:hover .button-text {
    letter-spacing: 5px;
    transform: translateY(-2px);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Prevent overlap on smaller screens */
@media (max-width: 1200px) {
    .split-left .button-content {
        padding-right: 20%;
    }
    
    .split-right .button-content {
        padding-left: 20%;
    }
    
    .brand-name {
        font-size: clamp(1.8rem, 4.5vw, 3.5rem);
        letter-spacing: 8px;
    }
}

.center-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 0 2rem;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 10px;
    color: var(--secondary-color);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.2);
    line-height: 1.2;
    position: relative;
    margin: 0;
}

.brand-name::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
}

/* Vertical divider line */
.split-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    z-index: 5;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .button-text {
        letter-spacing: 3px;
    }
    
    .brand-name {
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .split-left,
    .split-right {
        background-attachment: scroll;
    }
    
    .button-content {
        padding: 1.5rem;
    }
    
    .split-left .button-content {
        padding-right: 25%;
    }
    
    .split-right .button-content {
        padding-left: 25%;
    }
    
    .button-text {
        letter-spacing: 2px;
        font-size: clamp(1.4rem, 7vw, 2.2rem);
    }
    
    .brand-name {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 4px;
    }
    
    .split-left:hover,
    .split-right:hover {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .split-left .button-content {
        padding-right: 30%;
    }
    
    .split-right .button-content {
        padding-left: 30%;
    }
    
    .button-text {
        letter-spacing: 1px;
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .brand-name {
        font-size: clamp(1.2rem, 6vw, 2rem);
        letter-spacing: 2px;
    }
    
    .button-content {
        padding: 1rem;
    }
    
    .center-text {
        max-width: 90%;
        padding: 0 1rem;
    }
}

/* Loading optimization */
.split-left,
.split-right {
    background-color: #e8e8e8;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .button-text,
    .brand-name {
        text-shadow: 0 0 0 transparent, 0 0 0 transparent;
        color: var(--secondary-color);
    }
    
    .image-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

