/* Ensure the body and html take up the full screen without scrollbar */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black; /* Static black background */
    overflow: hidden; /* Prevent scrolling */
}

/* Flexbox to center the logo and button vertically and horizontally */
.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    width: 100%; /* Full width */
    text-align: center;
    position: relative; /* Needed to position background image correctly */
}

/* Wrapper to contain the logo and shimmer effect */
.shimmer-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Styling for the logo */
.logo {
    max-width: 100%;
    height: auto;
    z-index: 1;
}

/* Create the shimmer effect using a pseudo-element */
.shimmer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%; /* Start far off the left side */
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    animation: shimmer 6s infinite;
    animation-timing-function: ease-in-out;
    transform: skewX(-20deg);
}

/* Background image container - move it up towards the top */
.background-image {
    position: absolute;
    width: 500px; /* Image width */
    height: 500px; /* Image height */
    top: 0%; /* Adjust this value to control how far from the top the images are */
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

/* Fade-in class */
.fade-in {
    opacity: 1;
}


/* Button container */
.button-container {
    margin-top: 50px; /* Space between logo and button */
    position: relative;
    z-index: 1; /* Keep button above the background */
}

/* Stylish button */
.contact-button {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: white;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
    background-color: white;
    color: black;
}

/* Mobile Optimizations */
@media only screen and (max-width: 768px) {
    /* Adjust logo size */
    .logo {
        max-width: 100%;
    }

    /* Adjust button size */
    .contact-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    /* Adjust spacing for mobile */
    .button-container {
        margin-top: 70px;
    }

    /* Scale down background image for smaller screens */
    .background-image {
        width: 300px;
        height: 300px;
        top: 0%; /* Adjust for smaller screens */
    }
}
