/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe4d8;
    --gold: #c9a959;
    --gold-light: #d4bc7a;
    --gold-dark: #a8893c;
    --text-primary: #3d3d3d;
    --text-secondary: #6b6b6b;
    --white: #ffffff;
    --cream: #faf8f4;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Screen container */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background: var(--bg-primary);
    padding: 20px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Content wrapper */
.content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.question {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 169, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 89, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--bg-secondary);
}

.btn-secondary:hover {
    border-color: var(--gold-light);
    background: var(--cream);
}

/* Glitch effect for the "Yes I'm busy" button */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes shrink {
    to {
        transform: scale(0.7);
        opacity: 0.6;
    }
}

.btn.glitching {
    animation: glitch 0.3s ease infinite, shrink 1s ease forwards;
}

.btn.growing {
    animation: grow 0.5s ease forwards;
}

@keyframes grow {
    to {
        transform: scale(1.1);
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        color: var(--white);
        border-color: var(--gold);
    }
}

/* Reveal screen styles */
.reveal-content {
    max-width: 550px;
    overflow-y: auto;
    max-height: 100vh;
    padding-bottom: 40px;
}

.reveal-title {
    font-size: 2.2rem;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.reveal-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Spa info section */
.spa-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.spa-info h2 {
    font-size: 1.5rem;
    color: var(--gold-dark);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.spa-location {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.spa-room {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Carousel */
.carousel {
    margin-bottom: 1.5rem;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--white);
    color: var(--gold-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Package details */
.package-details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: left;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.package-details h3 {
    font-size: 1.1rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.package-details ul {
    list-style: none;
}

.package-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.package-details li:last-child {
    border-bottom: none;
}

.package-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* Love note */
.love-note {
    font-style: italic;
    color: var(--gold-dark);
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(201, 169, 89, 0.15);
    border: 2px solid var(--gold-light);
    line-height: 1.5;
}

/* Floating hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.heart {
    position: absolute;
    bottom: -50px;
    font-size: 24px;
    animation: floatUp 4s ease-in forwards;
    opacity: 0;
}

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

/* Responsive adjustments */
@media (max-width: 380px) {
    h1 {
        font-size: 2rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .reveal-title {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 220px;
    }

    .love-note {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* Screen 3 scroll fix */
#screen3 {
    align-items: flex-start;
    padding-top: 40px;
    overflow-y: auto;
}

#screen3 .content {
    padding-bottom: 60px;
}
