* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, #16B1A9, #1A3C5A); /* Teal to navy blue gradient */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Overlay for the background image in the upper right corner */
.overlay-k {
    position: absolute;
    top: 0;
    right: 0; /* Position on the right */
    width: 100%; /* Restrict to the right half of the screen */
    height: 100%; /* Restrict to the upper half */
    background: url('bg.png') no-repeat top right; /* Position in the upper right corner */
    background-size: 60%;/* Adjust size to make it large but not overwhelming */
    opacity: 0.1; /* Keep it subtle */
    z-index: 1;
}

.container {
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* Ensure content takes full height */
}

/* Main Message */
.main-message {
    margin-bottom: 40px;
}

.main-message h1 {
    font-size: 2.0rem;
    font-weight: 700;
    color: #16B1A9; /* Teal */
    margin-bottom: 10px;
    line-height: 1.2; /* Ensures better readability and fit */
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 450px; /* Set a max-width for the logo to prevent it from being too large */
    width: 200%; /* Ensure it scales down if needed */
}

/* Contact Section */
.contact-section {
    margin-bottom: 40px;
    text-align: center; /* Ensure the entire section is centered */
}

.contact-section p {
    font-size: 1rem;
    margin: 5px 0;
    color: white;
}

.contact-section .highlight-name {
    font-size: 1.2rem; /* Slightly larger than the rest of the line */
    font-weight: 700; /* Bold to make it stand out */
}

/* Contact Details (Left Aligned within a centered block) */
.contact-details {
    display: inline-block; /* Keeps the content width tight for centering */
    text-align: left; /* Align the text to the left */
}

.contact-details p {
    margin: 5px 0;
}

.contact-section a {
    color: white;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

.contact-section .fas,
.contact-section .fab {
    margin-right: 8px;
    width: 20px; /* Ensures consistent spacing for icons */
    text-align: center; /* Aligns icons properly */
}

/* Footer */
footer {
    font-size: 0.8rem;
    color: #D3D3D3; /* Light gray */
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px; /* Reduce padding on smaller screens */
    }

    .main-message {
        margin-bottom: 30px; /* Reduce margin for better spacing */
    }

    .main-message h1 {
        font-size: 1.8rem; /* Smaller font size for tablets */
    }

    .logo-section {
        margin-bottom: 20px; /* Reduce margin for better spacing */
    }

    .logo {
        max-width: 200px; /* Slightly smaller logo for tablets */
    }

    .contact-section {
        margin-bottom: 30px; /* Reduce margin for better spacing */
    }

    .contact-section p {
        font-size: 0.9rem; /* Slightly smaller font size */
    }

    .contact-section .highlight-name {
        font-size: 1.1rem; /* Adjust for tablets */
    }

    .overlay-k {
        background-size: 50%; /* Adjust size for smaller screens */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px; /* Further reduce padding on mobile */
    }

    .main-message {
        margin-bottom: 20px; /* Further reduce margin */
    }

    .main-message h1 {
        font-size: 1.4rem; /* Even smaller font size for mobile */
    }

    .logo-section {
        margin-bottom: 15px; /* Further reduce margin */
    }

    .logo {
        max-width: 200px; /* Smaller logo for mobile */
    }

    .contact-section {
        margin-bottom: 20px; /* Further reduce margin */
    }

    .contact-section p {
        font-size: 0.85rem; /* Smaller font size for mobile */
    }

    .contact-section .highlight-name {
        font-size: 1rem; /* Adjust for mobile */
    }

    .contact-details p {
        font-size: 0.85rem; /* Ensure contact details are readable */
    }

    .contact-section .fas,
    .contact-section .fab {
        width: 18px; /* Slightly smaller icons for mobile */
    }

    .overlay-k {
        background-size: 40%; /* Further adjust for mobile */
        width: 40%; /* Reduce the width of the background image area */
        height: 40%; /* Reduce the height of the background image area */
    }

    footer {
        font-size: 0.7rem; /* Smaller footer text for mobile */
        padding: 0 10px; /* Add padding to prevent text from touching edges */
    }
}

/* Ensure no horizontal overflow on very small screens */
@media (max-width: 360px) {
    .main-message h1 {
        font-size: 1.2rem; /* Further reduce for very small screens */
    }

    .contact-section p {
        font-size: 0.8rem; /* Further reduce for very small screens */
    }

    .contact-section .highlight-name {
        font-size: 0.9rem; /* Adjust for very small screens */
    }

    .logo {
        max-width: 80px; /* Even smaller logo for very small screens */
    }
}