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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

.container {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.half {
    position: relative;
    width: 50%;
    cursor: pointer;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.half:hover {
    transform: scale(1.05);
}

.half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
    transition: filter 0.5s ease;
}

.half:hover img {
    filter: brightness(85%);
}

/* Stylish buttons */
.text-overlay {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.text-overlay h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #062a5e, #0c3e92);
    border-radius: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.text-overlay h2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #083f85, #0f50ad);
}

/* Centered Content */
.centered-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    pointer-events: none;
}

.centered-content h1 {
    font-size: 36px;
    color:#062a5e;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px #fff;
}

.centered-content p {
    font-size: 18px;
    color:#062a5e;
    font-weight: 300;
    margin-top: 0;
    text-shadow: 2px 2px 6px #fff;
}

.logo {
    width: 180px;
    margin-bottom: 170px;
}

/* Background sections */
.left {
    background-color: #1f1f1f;
}

.right {
    background-color: #333333;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .half {
        width: 100%;
        height: 50vh;
    }

    .text-overlay h2 {
        font-size: 20px;
    }

    .centered-content h1 {
        font-size: 28px;
    }

    .centered-content p {
        font-size: 16px;
    }

    .logo {
        width: 104px;
    }
}
