/* css/style.css */

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

.preload * {
    transition: none !important;
    animation: none !important;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow: hidden; 
    color: #e0e0e0; 
    background-color: #121212; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Screen Management --- */
.initial-screen { 
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: absolute; 
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s; 
    z-index: 2; 
}
.initial-screen.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    display: flex !important; 
}
.initial-hidden { 
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important; 
}


/* Slideshow Container */
#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    overflow: hidden; 
    background-color: transparent; 
}

.slideshow-image { 
    position: absolute; 
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    filter: brightness(0.9); 
}
.slideshow-image.active { opacity: 0.5; }

.collage-image-0 { width: 35vw; height: 50vh; top: 10vh; left: 5vw; transform: rotate(-5deg); z-index: 3; }
.collage-image-1 { width: 30vw; height: 60vh; top: 25vh; left: 30vw; transform: rotate(3deg); z-index: 2; }
.collage-image-2 { width: 40vw; height: 45vh; top: 15vh; left: 55vw; transform: rotate(-2deg); z-index: 4; }
.collage-image-3 { width: 33vw; height: 55vh; top: 40vh; left: 10vw; transform: rotate(6deg); z-index: 1; }
.collage-image-4 { width: 38vw; height: 50vh; top: 35vh; left: 60vw; transform: rotate(-4deg); z-index: 2; }

#slideshow-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; 
    background-color: rgba(0,0,0,0); 
    transition: background-color 0.5s ease; 
    pointer-events: none; 
}

/* --- Unified Interaction Screen --- */
#interaction-screen { 
    z-index: 3; 
}
.interaction-content-wrapper {
    background-color: rgba(20, 20, 20, 0.8); 
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    max-width: 550px;
    width: 90%;
    position: relative; 
    overflow: hidden; 
}

.interaction-stage {
    width: 100%;
    opacity: 0;
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: inherit; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    transition: opacity 0.4s ease-out; 
}
.interaction-stage:not(.visible) {
    opacity: 0;
    pointer-events: none; 
}
.interaction-stage.visible {
    opacity: 1;
    pointer-events: auto;
    position: relative; 
}


#initial-actions-stage h1 { 
    font-size: 2.4em;
    font-weight: 300;
    margin-bottom: 10px;
    color: #f0f0f0; 
}
#initial-actions-stage p { 
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

#theme-selection-stage h2 { 
    color: #fff; margin-bottom: 10px; font-weight: 600; font-size: 1.7em; 
}
#theme-selection-stage p { 
    color:#bdbdbd; margin-bottom:25px; font-weight: 300; font-size: 1em; 
}

.action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px; 
    margin-left: auto;
    margin-right: auto;
}
/* Specific container for original theme buttons */
.action-buttons-container.theme-selection-buttons {
    gap: 12px; /* Slightly less gap for these buttons */
}


.interaction-button { /* For "New Here" / "Sign In" */
    padding: 14px 25px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 50px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}
.interaction-button.primary { 
    background-color: #007BFF; 
    color: white;
    border-color: #007BFF;
}
.interaction-button.secondary { 
    background-color: transparent;
    border-color: #7CB9E8; 
    color: #7CB9E8;       
}
.interaction-button:hover {
    transform: translateY(-2px);
}
.interaction-button.primary:hover {
    background-color: #0069D9;
    border-color: #0069D9;
}
.interaction-button.secondary:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #A9CCE3;
    border-color: #A9CCE3;
}

/* Original .theme-button styling (for Men/Women/Others selection) */
.theme-button {
    background-color: rgba(255, 255, 255, 0.08); /* More subtle background */
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.25); /* More visible border */
    padding: 15px 25px;
    font-size: 1em; 
    font-weight: 500; 
    cursor: pointer;
    border-radius: 8px; /* Original less rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%; /* Make them full width within their container */
}
.theme-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}


.back-button {
    background: none;
    border: none;
    color: #888; 
    font-size: 0.95em;
    font-weight: 500;
    margin-top: 30px; 
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.back-button:hover { 
    color: #fff; 
    background-color: rgba(255,255,255,0.05);
}


/* --- Main Content Screen (index.html intro) --- */
#main-content-screen { z-index: 2; } 
.content-overlay { background-color: rgba(10, 10, 10, 0.7); padding: 50px; border-radius: 15px; max-width: 650px; width: 90%; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.content-overlay > * { opacity: 0; transform: translateY(15px); animation: fadeInSlideUp 0.5s ease-out forwards; }
.content-overlay header { animation-delay: 0.3s; }
.content-overlay main { animation-delay: 0.4s; }
.content-overlay footer { animation-delay: 0.5s; }
#site-title { font-size: 2.5em; margin-bottom: 0.6em; font-weight: 300; letter-spacing: 1.5px; }
#intro-text { font-size: 1.1em; margin-bottom: 2em; font-weight: 400; color: #c5c5c5; }
#continue-journey-button { 
    color: white; border: none; padding: 18px 40px; font-size: 1.1em; font-weight: 600; border-radius: 50px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    background-color: #007BFF; 
}
#continue-journey-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); background-color: #0069D9; } 
#continue-journey-button:active { transform: translateY(-1px); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
footer { margin-top: 40px; font-size: 0.85em; font-weight: 300; color: #aaa; }
footer p { margin-bottom: 8px; }
footer a.footer-link { text-decoration: none; transition: color 0.3s ease; }
footer a.footer-link:hover { text-decoration: underline; }

/* --- Safety & Privacy Modal --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); 
    display: flex; justify-content: center; align-items: center;
    z-index: 100; 
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.modal-overlay.visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-content {
    background-color: #1e1e1e; 
    padding: 30px 35px; border-radius: 10px;
    max-width: 600px; width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: relative; 
    max-height: 85vh; 
    display: flex; flex-direction: column;
}
.modal-overlay.visible .modal-content { transform: scale(1) translateY(0); opacity: 1; }
.modal-content h2 { font-weight: 400; margin-bottom: 20px; font-size: 1.8em; text-align: center; }
.modal-scrollable-content { overflow-y: auto; margin-bottom: 25px; padding-right: 10px; }
.modal-scrollable-content h3 { font-weight: 600; font-size: 1.1em; margin-top: 15px; margin-bottom: 8px; }
.modal-scrollable-content p, .modal-scrollable-content ul { margin-bottom: 12px; font-size: 0.95em; line-height: 1.6; color: #b5b5b5;}
.modal-scrollable-content ul { list-style-position: inside; padding-left: 5px; }
.modal-scrollable-content li { margin-bottom: 5px; }
.close-modal-button {
    position: absolute; top: 10px; right: 15px; font-size: 2em; color: #777;
    background: none; border: none; cursor: pointer; transition: color 0.2s ease;
    padding: 5px; line-height: 1;
}
.close-modal-button:hover { color: #fff; }
.modal-action-button { 
    padding: 12px 30px; font-size: 1em; font-weight: 600; border-radius: 30px;
    cursor: pointer; border: none; transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; 
    align-self: center;
    background-color: #007BFF; 
    color: white;
}
.modal-action-button:hover { transform: translateY(-2px); background-color: #0069D9; }


@keyframes fadeInSlideUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive adjustments */
@media (min-width: 600px) { 
    .action-buttons-container:not(.theme-selection-buttons) { /* Only apply row to initial actions */
         flex-direction: row; 
         justify-content: center; 
    }
    .interaction-button { min-width: 180px; } 
    .theme-selection-buttons .theme-button { /* Ensure theme buttons stack if needed or adjust min-width */
        min-width: auto; /* Allow them to be full width in their column */
    }
}
@media (max-width: 768px) {
    .collage-image-0 { width: 40vw; height: 45vh; top: 8vh; left: 3vw; }
    .collage-image-1 { width: 35vw; height: 55vh; top: 20vh; left: 28vw; }
    .collage-image-2 { width: 45vw; height: 40vh; top: 12vh; left: 50vw; }
    .collage-image-3 { width: 38vw; height: 50vh; top: 38vh; left: 8vw; }
    .collage-image-4 { width: 42vw; height: 48vh; top: 32vh; left: 55vw; }

    #initial-actions-stage h1, #site-title { font-size: 2.1em; }
    #initial-actions-stage p, #intro-text { font-size: 1em; }
    .interaction-button, #continue-journey-button { padding: 14px 28px; font-size: 0.95em; }
    .interaction-content-wrapper, .content-overlay { padding: 35px; }
    #theme-selection-stage h2, .modal-content h2 { font-size: 1.6em; }
    #theme-selection-stage p { font-size: 1em; }
    .modal-content { padding: 25px 30px; }
}
@media (max-width: 480px) {
    .collage-image-0 { width: 60vw; height: 30vh; top: 5vh; left: 5vw; }
    .collage-image-1 { width: 55vw; height: 35vh; top: 12vh; left: 38vw; z-index: 3;}
    .collage-image-2 { width: 65vw; height: 30vh; top: 28vh; left: 8vw; }
    .collage-image-3 { width: 58vw; height: 33vh; top: 42vh; left: 30vw; z-index: 4;}
    .collage-image-4 { width: 62vw; height: 28vh; top: 55vh; left: 3vw; }

    .action-buttons-container { flex-direction: column; } 
    .interaction-button { width: 100%; } /* Ensure all buttons are full width on smallest screens */


    #initial-actions-stage h1, #site-title { font-size: 1.9em; }
    #initial-actions-stage p, #intro-text { font-size: 0.95em; }
    .interaction-button, #continue-journey-button { padding: 12px 25px; font-size: 0.9em; }
    .interaction-content-wrapper, .content-overlay { padding: 25px 20px; }
    #theme-selection-stage h2, .modal-content h2 { font-size: 1.5em; }
    #theme-selection-stage p { font-size: 0.9em; }
    .modal-content { padding: 20px; }
    .modal-scrollable-content p, .modal-scrollable-content ul { font-size: 0.9em; }
}
