﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}
/* Hover efektlerini yeniden yapılandıralım */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    position: relative;
}

    .container.fade-in {
        opacity: 1;
    }

    .container:hover .half {
        transition: filter 0.4s ease, opacity 0.4s ease;
    }

/* Her iki taraf için hover efekti */
.half:hover {
    z-index: 2;
}

/* Blur diğer yarıya uygulansın */
.container:hover .half {
    filter: blur(3px) brightness(0.5);
    opacity: 0.6;
}

/* Hover edilen taraf temiz kalsın */
.container .half:hover {
    filter: none !important;
    opacity: 1 !important;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Dil Seçimi */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

    .language-switcher a {
        background: rgba(5, 18, 41, 0.6);
        border: 1px solid #3a82f7;
        color: white;
        margin-left: 10px;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.3s;
    }

        .language-switcher a:hover {
            background: #3a82f7;
        }

/* Ana Container */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .container.fade-in {
        opacity: 1;
    }

/* Sol ve Sağ bölümler */
.half {
    flex: 1;
    color: white;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Arka plan resimleri */
.left {
    background: linear-gradient(rgba(5, 18, 41, 0.75), rgba(5, 18, 41, 0.75)), url('/content/resim/endustriyel.jpg') center center / cover no-repeat;
}

.right {
    background: linear-gradient(rgba(5, 18, 41, 0.75), rgba(5, 18, 41, 0.75)), url('/content/resim/evsel.jpg') center center / cover no-repeat;
}

/* Görseller */
.device-img {
    max-width: 220px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #3a82f7;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

    .button:hover {
        background-color: #3a82f7;
    }

/* Mobil */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .half {
        height: 50vh;
    }

    .device-img {
        max-width: 150px;
    }

    .button {
        font-size: 16px;
        padding: 10px 20px;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }
}
/* Siyah blur overlay */
.container:hover .half::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* yarı saydam siyah */
    backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

/* Hover yapılan kısımda overlay olmasın */
.container .half:hover::after {
    content: none;
}
