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

body {
    background-color: #0b0c10;
    color: #c5c6c7;
    font-family: 'Lora', serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Cinematic Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 2s ease-in-out, visibility 2s;
}

.intro-content {
    animation: fadeIn 3s ease-in;
}

.intro-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.glow-btn {
    background: transparent;
    color: #66fcf1;
    border: 1px solid #66fcf1;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Lora', serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-btn:hover {
    background: #66fcf1;
    color: #0b0c10;
    box-shadow: 0 0 15px #66fcf1;
}

/* Main Flow */
main {
    display: none; /* hidden until intro goes away */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

.hero-background img.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) sepia(20%) brightness(40%);
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11,12,16,0.2) 0%, rgba(11,12,16,1) 100%);
}

/* Typewriter */
.typewriter-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    line-height: 1.5;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.cursor {
    animation: blink 1s step-end infinite;
}

/* Scroll Prompt */
.scroll-prompt {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 6s; /* approx time for typewriter */
}

.scroll-prompt span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #8c92ac;
    text-transform: uppercase;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #66fcf1;
    border-bottom: 2px solid #66fcf1;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #66fcf1;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(102, 252, 241, 0.2);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #0b0c10;
    border: 3px solid #66fcf1;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px #66fcf1;
    transition: background 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #66fcf1;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: rgba(31, 40, 51, 0.5);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid #66fcf1;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.timeline-item.left .timeline-content {
    border-left: none;
    border-right: 3px solid #66fcf1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c5c6c7;
    margin-bottom: 15px;
}

.timeline-content .date {
    display: inline-block;
    font-size: 0.9rem;
    color: #66fcf1;
    font-style: italic;
    letter-spacing: 1px;
}

/* Footer Section */
.ending-section {
    padding: 80px 20px;
    text-align: center;
    background: #0b0c10;
}

.ending-section p {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 30px;
}

.heart-pulse {
    font-size: 3rem;
    animation: heartPulse 1.5s infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-15px) rotate(45deg); }
    60% { transform: translateY(-7px) rotate(45deg); }
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0px;
        text-align: left;
    }
    
    .timeline-item.left {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-content {
        border-right: none;
        border-left: 3px solid #66fcf1;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }
}
