/* --- Welcome Overlay --- */
#welcome-overlay {
    position: fixed;                /*Stays on top*/
    top: -3%;
    left: 0;
    width: 100%;
    height: 50vh;                   /*Quarter of the viewport height*/
    background-color: #693065; 
    display: flex;
    flex-direction: column;
    justify-content: center;        /*Vertically center content*/
    align-items: center;            /*Horizontally center content*/
    z-index: 1000;                  /*Ensure overlay is on top*/
    transform: translateY(-80%);    /*Start off-screen*/
    transition: transform 1s ease;  /*Smooth slide animation*/
}

/* Default overlay content state */
#welcome-overlay .overlay-content {
    margin-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* To display the overlay */
#welcome-overlay.show {
    transform: translateY(0);       /*Slide down into view*/
}

/* To reveal content */
#welcome-overlay.show .overlay-content {
    opacity: 1;
    pointer-events: auto;
}

/* To hide content */
#welcome-overlay .overlay-content.hidden-content {
    opacity: 0;
    pointer-events: none;
}

/* --- Logo Overlay --- */
#logo-overlay {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.7s ease;
    z-index: 1001;
    opacity: 0;
}

/* To make logo visible */
#logo-overlay.visible {
    opacity: 1;
}

/* To shrink logo */
#logo-overlay.shrink {
    top: 5.25%;
    left: 50%;
    transform: translate(-50%, -50%) scale (1);
}

/* To shrink img in logo overlay */
#logo-overlay.shrink img{
    max-width: 80px;
}

/* Image in logo overlay */
#logo-overlay img {
    max-width: 200px;
    height: auto;
    display: block;
    transition: all 1s ease;
}

/* --- Global Content Style --- */
.overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 10px;
    text-align: center;
}

/* Keeps logo in bounds */
.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    transition: all 1s ease;
}

/* --- Menu Button --- */
#menu-button {
    position: fixed;
    bottom: -10px;
    right: 50px;
    font-size: 25px;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

/* Start menu in hidden state */
.menu-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Background Overlay --- */
#background-overlay {
    position: static;                               /* Stays in place */
    width: 70%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    top: 60px;                                      /* space from top */
    left: 20px;                                     /* space from left */
    right: 20px;                                    /* space from right */
    bottom: 60px;                                   /* space from bottom */
    background-color: rgba(255, 255, 255, 0.411);
    border-radius: 25px;                            /* rounded corners */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);     /* subtle shadow */
    z-index: 500;                                   /* behind overlay and menu button but above background */
    pointer-events: auto;                           /* so it doesn’t block clicks */
}


/*Mobile adjustments*/
@media (max-width: 600px) {
    #welcome-overlay {
        height: 50vh;
        padding: 10px;
    }

    .logo {
        max-width: 90px;
    }

    .overlay-content h1 {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* --- Scroll view --- */
.scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

 
.cards {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

/* Image */
.photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Name */
.name {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #693065; 
}

/* Title */
.title {
    font-size: 1rem;
    margin: 0;
    color: #444;
    font-weight: 600;
}

/* Description */
.description {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}