:root {
    --primary-bg: #000000;
    --secondary-bg: #1a1a1a;
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.25);
    --hover-color: #d4af37;
}

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

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Mobile browser UI için düzeltme - Safari, Chrome, Firefox */
    height: -webkit-fill-available;
    height: fill-available;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    /* Mobile browser UI için düzeltme */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: fill-available;
    /* Touch cihazlarda scroll önleme */
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: background-color 0.5s ease;
}

.split-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem; /* Padding azaltıldı */
    border-left: 1px solid var(--border-color);
    transition: flex 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
}

.split-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.split-section:first-child {
    border-left: none;
}

#detailing {
    background-image: url('detailing-bg.jpg');
}

#rental {
    background-image: url('rental-bg.jpg');
}

#service {
    background-image: url('service-bg.jpg');
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.icon svg,
.icon i {
    width: 80px;
    height: 80px;
    font-size: 80px;
    stroke: var(--text-color);
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.split-section:hover .icon svg,
.split-section:hover .icon i {
    transform: scale(1.1);
    stroke: var(--hover-color);
    color: var(--hover-color);
}

h1 {
    font-size: 1.8rem; /* Yazı tipi boyutu küçültüldü */
    font-weight: 500;
}

p {
    font-size: 0.9rem; /* Yazı tipi boyutu küçültüldü */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.cta-button {
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--hover-color);
    color: var(--primary-bg);
    border-color: var(--hover-color);
}

/* Hover efekti için */
.container.hover-detailing .split-section:not(#detailing),
.container.hover-rental .split-section:not(#rental),
.container.hover-service .split-section:not(#service) {
    opacity: 0.6;
}

.container.hover-detailing #detailing,
.container.hover-rental #rental,
.container.hover-service #service {
    flex: 1.2;
}



.split-section:hover {
    flex: 1.1;
    transition: flex 0.4s ease-in-out;
}

.split-section:hover::before {
    background-color: rgba(0, 0, 0, 0.4);
}

.split-section:hover .icon svg {
    transform: scale(1.1);
    stroke: var(--hover-color);
}

.split-section:hover h1 {
    color: var(--hover-color);
}

/* Responsive Tasarım */
@media (max-width: 900px) {
    html {
        height: 100%;
        height: -webkit-fill-available;
        height: fill-available;
        overflow: hidden;
    }

    body {
        height: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        min-height: fill-available;
        overflow: hidden;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .container {
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .split-section {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.5rem;
        overflow: hidden;
    }

    .split-section:last-child {
        border-bottom: none;
    }

    .split-section:hover {
        flex: 1;
    }

    h1 {
        font-size: 1.2rem;
        margin: 0.3rem 0;
    }

    p {
        font-size: 0.7rem;
        max-width: 85%;
        line-height: 1.2;
        margin: 0.3rem 0;
    }

    .content {
        gap: 0.4rem;
        justify-content: center;
    }

    .icon svg,
    .icon i {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }

    .cta-button {
        padding: 7px 18px;
        font-size: 0.7rem;
    }
}

/* Extra small devices (iPhone SE, small Androids) */
@media (max-width: 400px) {
    .split-section {
        padding: 0.5rem 0.3rem;
    }

    h1 {
        font-size: 1rem;
    }

    p {
        font-size: 0.65rem;
    }

    .icon svg,
    .icon i {
        width: 35px;
        height: 35px;
        font-size: 35px;
    }

    .cta-button {
        padding: 6px 15px;
        font-size: 0.65rem;
    }
}
