/* =============================================
    CSS Reset & Base Styles
    ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ec 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* =============================================
    Security Page
    ============================================= */
.security-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.security-page.hidden {
    opacity: 0;
    visibility: hidden;
}

.security-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease-in;
}

.security-title {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 600;
}

.security-text {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.code-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.code-input {
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-confirm {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-confirm:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* =============================================
   Floating Hearts Background Animation
   ============================================= */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 24px;
    color: #ff6b9d;
    opacity: 0;
    animation: floatHeart 15s infinite;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* =============================================
   Main Container
   ============================================= */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    margin-bottom: 60px;
    animation: fadeIn 1s ease-in;
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff6b9d;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin: 10px 0;
    font-weight: 300;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* =============================================
    Question Section
    ============================================= */
.question-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
    animation: fadeIn 1s ease-in 0.3s backwards;
    max-height: 80vh;
    overflow-y: auto;
}

.question-gif {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.question {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* =============================================
    Celebration Section
    ============================================= */
.celebration-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.celebration-section.show {
    display: block;
}

.celebration-gif {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc107 100%);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, #ffc107 0%, #ff6b9d 100%);
}

.btn-yes:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-no {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffc107 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative; /* Base position */
}

.btn-no:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, #ffc107 0%, #ff6b9d 100%);
}

.btn-no:active {
    transform: translateY(-1px) scale(1.02);
}

/* =============================================
   Failed Attempts Message
   ============================================= */
.failed-attempts {
    margin-top: 20px;
    color: #ff6b9d;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.failed-attempts.show {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

/* =============================================
   Celebration Section
   ============================================= */
.celebration-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.celebration-section.show {
    display: block;
}

.celebration-title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff6b9d;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.celebration-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: #ff6b9d;
}

.beating-heart {
    font-size: 2rem;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =============================================
    Responsive Design
    ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero {
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .question-section {
        padding: 20px 15px;
        max-width: 100%;
        margin: 0 auto;
        max-height: 70vh;
    }
    
    .celebration-section {
        padding: 20px 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .question-gif {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .celebration-gif {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .question {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .buttons {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    .celebration-title {
        font-size: 2rem;
    }
    
    .celebration-text {
        font-size: 0.9rem;
    }
    
    .couple-names {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .question-gif {
        width: 100px;
        height: 100px;
    }
    
    .celebration-gif {
        width: 100px;
        height: 100px;
    }
    
    .question {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        max-width: 160px;
    }
    
    .celebration-title {
        font-size: 1.8rem;
    }
}