/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #2d3436;
    --light-color: #f7f7f7;
    --dark-color: #2d3436;
    --transition: all 0.5s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Panel Styles */
.panel {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 3rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    transform: translateY(30px);
    opacity: 0;
    /* Remove the CSS transition to let GSAP handle it */
}

/* Remove the CSS-based active state animation since GSAP will handle it */
/* .panel.active .content {
    transform: translateY(0);
    opacity: 1;
} */

/* Panel-specific styles */
#intro {
    background-image: url('/assets/bg_1.jpg');
}

#curiosity {
    background-image: url('/assets/bg_2.jpg');
}

#hopes {
    background-image: url('/assets/bg_3.jpg');
}

#imagination {
    background-image: url('/assets/bg_4.jpg');
}

#promises {
    background-image: url('/assets/bg_5.jpg');
}

#yes-response, #talk-response, #proposal {
    background-image: url('/assets/bg_6.jpg');
}


/* Highlight text */
.highlight {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Hope list */
.hope-list, .promises-list {
    list-style: none;
    text-align: left;
    margin: 2rem auto;
    max-width: 500px;
}

.hope-list li, .promises-list li {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    /*opacity: 1;*/
    transform: translateX(-20px);
    transition: var(--transition);
}

.hope-list li::before, .promises-list li::before {
    content: '❤️';
    position: absolute;
    left: 0;
    top: 0;
}


.promises-list li:nth-child(1)::before {
    content: '🧠';
}

.promises-list li:nth-child(2)::before {
    content: '🎈';
}


.promises-list li:nth-child(3)::before {
    content: '🌦️';
}


.promises-list li:nth-child(4)::before {
    content: '🌿';
}


.panel.active .hope-list li, .panel.active .promises-list li {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger the animation for list items */
.panel.active .hope-list li:nth-child(1), .panel.active .promises-list li:nth-child(1) {
    transition-delay: 0.2s;
}

.panel.active .hope-list li:nth-child(2), .panel.active .promises-list li:nth-child(2) {
    transition-delay: 0.4s;
}

.panel.active .hope-list li:nth-child(3), .panel.active .promises-list li:nth-child(3) {
    transition-delay: 0.6s;
}

.panel.active .hope-list li:nth-child(4), .panel.active .promises-list li:nth-child(4) {
    transition-delay: 0.8s;
}

.panel.active .hope-list li:nth-child(5), .panel.active .promises-list li:nth-child(5) {
    transition-delay: 1s;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn.primary:hover {
    background-color: #ff5252;
}

.btn.secondary:hover {
    background-color: #f0f0f0;
}

/* Hidden sections */
.hidden {
    display: none;
}

/* Signature */
.signature {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .content {
        padding: 2rem;
    }

    .buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .content {
        padding: 1.5rem;
    }
}

.resource-links{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}


.resource-links a {
    color: var(--primary-color);
}


#playButton{
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
}
