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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== PASSCODE PAGE ===== */
.passcode-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.passcode-container {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.passcode-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.passcode-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.birthday-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.input-group input {
    width: 80px;
    padding: 15px 10px;
    font-size: 1.5em;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.input-group:last-of-type input {
    width: 110px;
}

.separator {
    font-size: 2em;
    color: #666;
    margin-top: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.error-msg {
    color: #e74c3c;
    margin-top: 20px;
    font-weight: 600;
    display: none;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===== TIMELINE PAGE ===== */
.timeline-page {
    background-image: url('heart-wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 50px 20px;
    position: relative;
    overflow-x: hidden;
}

.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    opacity: 0.6;
    animation: floatUp 20s infinite ease-in;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.main-title {
    text-align: center;
    font-size: 3em;
    color: #e91e63;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-section {
    margin-bottom: 80px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-section.hidden {
    display: none;
}

.part-title {
    font-size: 2em;
    color: #e91e63;
    text-align: center;
    margin-bottom: 10px;
}

.part-subtitle {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.2em;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #e91e63, #f48fb1);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline-item.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 15px;
    padding-left: 45px;
    border-radius: 10px;
    margin-left: -15px;
}

.timeline-item.clickable:hover {
    transform: translateX(10px);
    background: rgba(233, 30, 99, 0.05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e91e63;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e91e63;
}

.timeline-date {
    font-size: 0.9em;
    color: #e91e63;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    font-size: 1.1em;
}

.next-part-link {
    text-align: center;
    margin-top: 40px;
}

.glow-link {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite;
}

.glow-link:hover {
    transform: scale(1.05);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(240, 147, 251, 0.6),
                    0 0 30px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(240, 147, 251, 0.8),
                    0 0 40px rgba(245, 87, 108, 0.6);
    }
}

.valentines-link {
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 50px;
}

.final-item .timeline-content h3 {
    display: inline-block;
}

/* ===== MEDIA VIEWER ===== */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-viewer.active {
    opacity: 1;
    pointer-events: all;
}

.back-arrow {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.media-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.media-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Hide volume controls on video */
.media-content video::-webkit-media-controls-volume-slider,
.media-content video::-webkit-media-controls-mute-button {
    display: none;
}

/* ===== HEART PAGE ===== */
.heart-page {
    background: linear-gradient(135deg, #ffeef8 0%, #ffe6f0 100%);
    min-height: 100vh;
    overflow: hidden;
}

.heart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.cute-heart {
    transition: transform 0.3s ease;
    text-align: center;
}

.heart-svg {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 10px 30px rgba(255, 105, 180, 0.4));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.heart-svg:hover {
    transform: scale(1.1);
}

.click-me-text {
    font-size: 2em;
    color: #e91e63;
    font-weight: 700;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-container.hidden {
    display: none;
}

.video-container video {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fade-to-black {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    z-index: 999;
}

.fade-to-black.active {
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
    }
    
    .part-title {
        font-size: 1.5em;
    }
    
    .timeline-section {
        padding: 20px;
    }
    
    .input-group input {
        width: 60px;
        font-size: 1.2em;
        padding: 10px 5px;
    }
    
    .input-group:last-of-type input {
        width: 90px;
    }
    
    .heart-svg {
        width: 200px;
        height: 200px;
    }
    
    .click-me-text {
        font-size: 1.5em;
    }
}

