:root {
    --text-color: #ffffff;
    --bg-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Hide scrollbars during cinematic */
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background image handling */
#visual-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(110%) brightness(50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 5s linear;
    transform: scale(1.1);
}

#bg-image.active {
    opacity: 1;
    transform: scale(1.0); /* Ken Burns effect */
}

#bg-image.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Vignette / Film Grain */
#vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

/* Text Container */
#text-container {
    position: relative;
    z-index: 3;
    width: 80%;
    max-width: 900px;
    text-align: center;
}

#quote-line {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.02em;
    min-height: 2em; /* Prevent vertical jumping */
}

/* Words span for animation */
.word {
    opacity: 0;
    display: inline-block;
    margin-right: 0.25em;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

/* Tribute Screen */
#tribute-screen {
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    pointer-events: none;
}

#tribute-screen.active {
    opacity: 1;
    pointer-events: all;
}

#apple-logo {
    width: 80px;
    margin-bottom: 2rem;
    filter: invert(1);
}

#tribute-screen h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.steve-tribute {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.steve-tribute span {
    font-size: 1.2rem;
    color: #999;
}

.think-different {
    margin-top: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(90deg, #A2B6DF, #E6BACD, #E2B2A3, #E1D29B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 2s ease-in, transform 2s ease-out;
}

#tribute-screen.active .think-different {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.5s;
}

/* Audio & Start Button */
#audio-track {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0; /* Keep it invisible, but functional */
    pointer-events: none; 
}

#start-btn {
    position: absolute;
    z-index: 5;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#start-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

#start-btn.hidden {
    opacity: 0;
    pointer-events: none;
}
