/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: auto; /* Allows scrolling */
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Sections */
.section {
    flex: 1;
    background-size: cover; /* Ensures images stretch */
    background-position: center;
    position: relative;
    transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
    opacity: 0.8; /* More visible images */
}

/* Fade-in effect on hover */
.section:hover {
    filter: brightness(1);
    opacity: 1;
}

#section1 {
    background-image: url('image1.jpg'); /* Replace with actual image */
}

#section2 {
    background-image: url('image2.jpg'); /* Replace with actual image */
}

/* Separator */
.separator {
    height: 5px;
    background-color: rgb(40,116,252);
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 5;
}

/* Section links */
.section a {
    text-decoration: none;
    color: white;
    display: block;
    height: 100%;
}

/* Overlay boxes */
.overlay {
    position: absolute;
    background-color: rgba(40,116,252, 0.7);
    border-radius: 1px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 1s ease-in-out;
    opacity: 1;
    min-width: 200px;
    max-width: fit-content;
    min-height: 110px;
}

/* Equal distance from corners */
.overlay.left {
    top: 5%;
    text-align: left;
    align-items: flex-start;
    animation: slideInLeft 1s ease-in-out forwards;
}

.overlay.right {
    bottom: 5%;
    right: 0%;
    text-align: right;
    align-items: flex-end;
    animation: slideInRight 1s ease-in-out forwards;
}

/* Title Styling */
h2 {
    font-size: 2em;
    margin: 0;
}

/* Subtitle */
.subtitle {
    font-size: 0.9em;
    opacity: 0.9;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Motto */
.motto {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin: 0px;
}

/* SOFTERA logo */
.logo {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    font-family: "Merriweather Sans", sans-serif;
    z-index: 10;
}

/* Keyframe Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ✨ Mobile Optimization */
@media (max-width: 768px) {
    /* Hide the logo */
    .logo {
        display: none;
    }

    /* Hide the separator */
    .separator {
        display: none; /* Removes the horizontal separator */
    }

    /* Reduce text sizes */
    h2 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.8em;
    }

    .motto {
        font-size: 0.7em;
    }

    /* Ensure full background coverage */
    .section {
        background-size: cover;
        background-position: center;
    }

    /* Align top image to the right */
    #section2 {
        background-position: right center;
    }

    /* Align bottom image to the left */
    #section1 {
        background-position: left center;
    }
}
