:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --player-bg: rgba(255, 255, 255, 0.03);
    --player-hover: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

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

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
}

/* ══════ FULL SCREEN IMAGE ══════ */
.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    animation: slowZoom 120s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* Removed overlay and noise filters */
.player-container {
    position: absolute;
    bottom: 4rem;
    right: 2.5rem;
    width: 200px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.player-container:hover {
    background: var(--player-hover);
}

.track-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.track-title {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.track-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ══════ MOBILE RESPONSIVENESS ══════ */
@media (max-width: 768px) {
    .hero-image {
        object-fit: contain; 
    }
    
    .player-container {
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 320px;
        bottom: 5rem;
    }
}

/* Removed noise effect */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ══════ MODAL / ENTRY STEPS ══════ */
.entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* Let the eyes bleed through */
    backdrop-filter: blur(15px); /* Heavy blur for glassmorphism */
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease, visibility 1.5s;
}

.entry-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Pure Glassmorphic Container */
.step-container, .completion-box, .page-container {
    max-width: 500px;
    width: 90%;
    padding: 3rem 2.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03); /* Extremely subtle white tint */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Delicate white border */
    border-radius: 16px; /* Soft corners */
    backdrop-filter: blur(25px); /* Extra blur for the box itself */
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); /* Soft shadow for depth */
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    animation: fadeIn 0.8s ease forwards;
    position: relative;
    z-index: 5;
}

.step-container.active {
    display: flex;
}

/* Page containers for Privacy, Terms, Contact */
.page-container {
    display: flex;
    max-width: 700px;
    margin: 5% auto; /* Centers it vertically/horizontally */
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title, .page-title, .completion-box h2 {
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.step-text, .page-content, .completion-box p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-content {
    text-align: left;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 0.8rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Custom Checkbox for Glassmorphism */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    min-width: 24px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(0,0,0,0.3);
}

.checkbox-container input:checked ~ .checkmark {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.checkmark::after {
    content: "✓";
    color: #fff;
    font-size: 16px;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}

.checkbox-container a:hover {
    opacity: 0.7;
}

/* ══════ FOOTER NAV ══════ */
.footer-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 2rem;
}

.footer-nav a, .back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-style: italic;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-nav a:hover, .back-link:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ══════ LYRICS OVERLAY ══════ */
.lyrics-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    pointer-events: none;
    transition: opacity 2s ease;
}

.lyrics-container.hidden {
    opacity: 0;
}

.lyric-angel {
    font-size: 4rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 4s ease; /* Very slow, ethereal fade */
}

.lyric-angel.visible {
    opacity: 1;
    transform: translateY(0);
}

.lyric-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 4s ease 2s; /* Delayed fade in */
}

.lyric-sub.visible {
    opacity: 1;
}

.lyric-love {
    margin-top: 3.5rem;
    font-size: 3.5rem;
    font-weight: 300;
    font-style: italic;
    min-height: 4rem;
    transition: opacity 2s ease;
}

.lyric-love.fade-out {
    opacity: 0;
}

.love-line {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transition: color 3s ease, opacity 3s ease, transform 3s ease;
}

.love-line.active::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

.love-line.fading-red {
    color: #cc0000; /* Deep crimson red */
    text-shadow: 0 0 25px rgba(204, 0, 0, 0.9);
    opacity: 0;
    transform: scale(0.95) translateY(-20px); /* Floats up slightly as it fades */
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ══════ COMPLETION SCREEN ══════ */
.completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 2s ease, visibility 2s;
}

.completion-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.completion-box {
    display: flex; /* Override none from default */
}

/* Emergency Contact Specific */
.emergency-btn {
    display: block;
    width: max-content;
    margin: 2rem auto 0;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    text-decoration: none;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); border-color: rgba(255,255,255,0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 255, 255, 0.3); border-color: rgba(255,255,255,0.8); }
}

/* Custom Scrollbar for pages */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}
