:root {
    --primary-color: #ff3366;
    /* Rose Pink */
    --secondary-color: #ffd700;
    /* Gold */
    --bg-color: #1a0b12;
    /* Dark Romantic */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #fff0f5;
    --accent-glow: 0 0 15px rgba(255, 51, 102, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.audio-control:hover {
    transform: scale(1.1);
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: #0f0;
    /* Green terminal text, maybe change to pink? No, tech constraint says green/tech usually, but let's make it pink to fit theme */
    color: var(--primary-color);
    font-size: 1.2rem;
    white-space: pre-wrap;
    text-align: left;
    max-width: 80%;
}

/* Main Content */
.hidden {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.visible {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2e1420 0%, #000 100%);
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
}

/* Section Styling */
.section {
    padding: 80px 20px;
    min-height: 80vh;
    /* Usually sections take up most of view */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Timeline */
.timeline-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
}

.timeline-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.timeline-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--accent-glow);
}

.timeline-item .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.timeline-message {
    margin-top: 30px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.5s;
}

.timeline-message.visible {
    opacity: 1;
}

/* Profile */
.profile-cards {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.profile-cards .card {
    width: 300px;
    text-align: center;
}

.avatar-placeholder {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stats {
    margin-top: 20px;
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.gallery-item {
    height: 250px;
    background-color: #333;
    /* Placeholder color */
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--accent-glow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Letter */
.letter-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-container {
    max-width: 800px;
    width: 90%;
    min-height: 400px;
    position: relative;
}

.handwritten-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.letter-body {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Finale */
.finale-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.glow-button {
    padding: 20px 40px;
    font-size: 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--primary-color);
}

.glow-button:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 30px var(--primary-color);
}

/* Ending Screen */
.ending-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(60, 20, 30, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: bgPulse 5s infinite alternate;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Question Container */
.question-container {
    text-align: center;
    z-index: 10002;
}

.btn-group {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Make sure the No button can move */
#no-btn {
    transition: all 0.2s ease;
}

@keyframes bgPulse {
    0% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 110% 110%;
    }
}

.ending-screen.hidden {
    display: none;
}

.final-message-container {
    text-align: center;
}

.animate-pop {
    animation: popUp 0.5s ease-out;
    font-size: 3rem;
    color: var(--primary-color);
}

.animate-fade {
    animation: fadeIn 2s ease-in;
}

.heart-pulse {
    font-size: 5rem;
    margin-top: 20px;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color);
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px var(--secondary-color);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes popUp {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-container {
        gap: 10px;
    }

    .timeline-item {
        width: 100px;
        padding: 10px;
    }

    .profile-cards {
        flex-direction: column;
        align-items: center;
    }
}