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

body {
    font-family: 'Agdasima', Arial, sans-serif;
    background-color: #19152e; /* Dark background */
    color: #fff;
    overflow: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: yellow;
    background-color: #181529;
    transition: opacity 1s ease;
    animation: loading-screen-fade-out 3s ease forwards;
    animation-delay: 3s;
    z-index: 2;
}

#site-name {
    font-size: 3rem;
    animation: fade-out 3s ease forwards;
    animation-delay: 3s;
}

#logo {
    width: 400px;
    height: auto;
    opacity: 1;
    margin-top: 20px;
    animation: logo-shrink-spin 3s ease forwards;
    animation-delay: 0.5s;
}


/* Main Content */
#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    z-index: 3;
    position: relative;
    width: 100%;
    overflow-y: auto;
}


.glow-effect {
    position: fixed;
    left: 51%; /* Center horizontally */
    top: 50vh; /* Center vertically for testing */
    height: 2px; /* Thin line */
    width: 0px;
    background-color: #D73C70; /* Default color */
    filter: blur(1px); /* Slight blur for glow */
    transform-origin: left center; /* Only grow to the right */
    display: block; /* Ensure visibility */
    z-index: 4; /* Position above background */
    transition: width 3s ease-in-out; /* Smooth ease-in-out transition */

}


/* Full-Screen Background Image */
.image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Place behind other content */
}

.home-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vw;
    height: auto;
    min-height: 90vh;
    transform: translate(-50%, -50%);
}

/* Content Container (Overlay) */
.content-container {
    position: absolute;
    top: 80%;
    left: 37%;
    transform: translate(-20%, -50%);
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 32px;
    width: 20%; /* Adjust width to fit inside the view */
    z-index: 4;
}

.content-container-link {
    z-index: 4;
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the whole container is clickable */
}

.cairds-logo {
    padding: 10px;
    border-radius: 50px;
    width: 60%;
    margin-left: auto; /* Aligns the logo to the right */
}

/* Default to desktop image */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}


/* Media query for mobile devices */
@media (max-width: 768px) {

    .glow-effect {
        display: none !important;
    }


    #logo {
        width: 300px; /* Resize main logo for mobile */
        height: auto;
    }

    .desktop-image {
        display: none;
    }

   
    .mobile-image {
        display: block;
        width: 100vw;
        top: 55%;
    }

    .content-container {
        left: 23%;
        font-size: 20px;
        width: 30%; /* Adjust width to fit inside the view */
    }

    .cairds-logo {
        width: 80%; /* Increase logo size for mobile */
        padding: 1px;
    }

    .glow-effect {
        height: 1px;
    }
}



/* Keyframes for animations */
@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes logo-shrink-spin {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(0.33) rotate(360deg); }
}

@keyframes loading-screen-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


