/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Preloader Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(15px); /* Ensures blur effect */
    transition: opacity 1.5s ease-in-out;
}

/* Ensure no overflow or layout shifting affects the preloader */
html, body {
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
}

/* Preloader Text */    
.preloader-content {
    position: relative;
    width: 100%;
    text-align: center;
    height: 200px;
}

.preloader-content p {
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
}

.preloader-heading {
    top: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInOut 3s ease-in-out forwards;
}

.preloader-description {
    top: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInOut 3s ease-in-out forwards;
    animation-delay: 4s;
}

.preloader-final {
    top: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInOut 3s ease-in-out forwards;
    animation-delay: 8s;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Hide Preloader when Faded Out */
.hidden { display: none; }
.fade-out { opacity: 0; transition: opacity 1.0s ease-in-out; }


/* Landing Page Layout */
.landing-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #FF2138;
}

.left-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 60px;
    color: white;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.tagline {
    font-size: 60px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.details {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    color: rgb(0, 0, 0);
}

.details .highlight {
    font-weight: 900;
    color: #000000;
    font-size: 30px;
    transform: skew(-10deg);
    display: inline-block;
}

.contact {
    margin-top: 20px;
    text-align: left;
}

.contact p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-links .pyza-handle {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.right-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.element.visible {
    opacity: 1;
    transform: translateY(0);
}




@media screen and (min-width: 1440px) {
    .landing-page {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        padding: 0;
    }

    .left-section {
        width: 50%;
        padding: 60px 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .tagline {
        font-size: 4vw;
        line-height: 1.2;
    }

    .details {
        font-size: 2vw;
        margin-top: 20px;
    }

    .details .highlight {
        font-size: 2vw;
    }

    .contact {
        margin-top: 30px;
    }

    .contact p {
        font-size: 1.5vw;
    }

    .social-links a img {
        width: 2.5vw;
        max-width: 50px;
    }

    .social-links .pyza-handle {
        font-size: 1.5vw;
    }

    .right-section {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Prevents background from showing */
    }

    /* Fixes image coverage issue */
    .right-section img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: right; /* Ensures the right part of the image is fully displayed */
    }
}


/* Mobile View Adjustments */
@media (max-width: 768px) {
    /* Preloader Mobile Centering */
    .preloader-content {
        display: flex;
        padding:20px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh; /* Ensure full height */
        text-align: center;
    }

    .preloader-content p {
        font-size: 24px; /* Adjust font size for mobile */
        max-width: 80%;
    }

    /* Adjust Landing Page Layout */
    .landing-page {
        flex-direction: column-reverse; /* Stack elements vertically */
        height: auto;
        width:100%;
    }

    /* Right Section - Image */
    .right-section {
        width: 100%;
        height: 45vh; /* Covers top portion dynamically */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .right-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Left Section - Content */
    .left-section {
        width: 100%;
        height: 55vh; /* Remaining portion of the screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        background-color: #FF2138; /* Ensure background is consistent */
        margin-bottom: 40px;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 130px; /* Adjust logo size for mobile */
        margin-bottom: 10px;
    }

    .tagline {
        font-size: 42px; /* Adjust size for readability */
        font-weight: bold;
        line-height: 1.2;
        margin-bottom: 10px;
        color: white;
    }

    .details {
        font-size: 22px;
        margin-bottom: 25px;
        color: white;
    }

    .details .highlight {
        font-weight: bold;
        color: black;
    }

    .contact {
        margin-top: 10px;
        text-align: center;
    }

    .social-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .social-links a img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: white;
        padding: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .social-links a img:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .social-links .pyza-handle {
        font-size: 16px;
        font-weight: bold;
        color: white;
    }
}

