@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); /* Importing Inter font */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Applying Inter font globally */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Video Background for DXDevelopments */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Make sure the video stays behind the content */
}

.background-video {
    position: absolute;
    top: 50%; /* Center the video vertically */
    left: 50%; /* Center the video horizontally */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* Align video to the center */
    z-index: -1;
    object-fit: cover; /* Ensures the video covers the entire section without stretching */
}

.side {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: flex 1.5s ease;
    border-right: 5px solid #ff5e14;
}

#maintenance {
    background-image: url('brown-thomas.png');
}

.side .content {
    color: white;
    text-align: center;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: scale(1);
    transition: transform 1.5s ease;
}

/* Black background with transparent color and increased padding for desktop */
.logo-container {
    background-color: rgba(20, 20, 20, 0.8); /* Black background with 80% opacity */
    padding: 30px 20px; /* Increased padding for desktop */
    border-radius: 8px; /* Rounded corners for a professional look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    display: flex;
    flex-direction: column; /* Stacks the logo and button vertically */
    justify-content: center;
    align-items: center;
    max-width: 300px; /* Limit the width of the container */
    width: 100%; /* Ensures the container doesn't exceed its content */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Animation on hover */
}

.logo-container:hover {
    transform: scale(1.05); /* Slight scale up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Increase shadow depth on hover */
}

.logo {
    max-width: 100%; /* Ensure the logo fits within the container */
    height: auto;
    margin-bottom: 10px; /* Reduced space between the logo and button */
}

.side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.7); /* Black overlay for developments */
    z-index: 1;
}

/* Darker orange for DXMaintenance overlay */
#maintenance::before {
    background-color: rgba(224, 85, 18, 0.6); /* Darker orange overlay for maintenance */
}

/* Uniform Button Styles for Both Sections */
.button {
    text-decoration: none;
    background-color: #ff5e14; /* Orange background for both buttons */
    color: #141414; /* Black text for both buttons */
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px; /* Reduced space between the button and the logo */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button Hover Effects */
.button:hover {
    transform: scale(1.05);
}

/* Larger Flex changes for smoother hover effect */
.side:hover {
    flex: 6.5; /* Increase size of the hovered section to 65% */
}

.side:not(:hover) {
    flex: 3.5; /* Shrink the non-hovered section to 35% */
}

.side {
    transition: flex 1.5s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: calc(var(--vh, 1vh) * 100); /* Adjust height dynamically based on viewport */
    }
    
    .side {
        height: calc(var(--vh, 1vh) * 50); /* Each div takes exactly half of the adjusted viewport height */
        border-right: none;
        border-bottom: 5px solid #ff5e14;
    }
    
    .logo-container {
        padding: 15px 12px; /* Adjusted padding for mobile */
        border-radius: 6px;
        max-width: 250px; /* Reduce the width on mobile */
    }
    
    .logo {
        max-width: 80%; /* Further reduce logo size on mobile */
    }

    .button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    /* Ensure the video is properly centered on mobile */
    .background-video {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}