/* ===============================================
   BIRTHDAY WISH APP - COMPLETE STYLESHEET
   =============================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* ===============================================
   CONTAINER & LAYOUT
   =============================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: popIn 0.6s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================================
   HEADER
   =============================================== */

.header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ff6b9d 100%);
    padding: 50px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '🎂 🎈 🎉 🎊 🎁 ✨';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 2em;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

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

.header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    animation: slideDown 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.4em;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 0.3s both;
}

.header .subtitle {
    font-size: 1.1em;
    margin-top: 10px;
    font-style: italic;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===============================================
   CONFETTI ANIMATION
   =============================================== */

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1000;
}

/* ===============================================
   MUSIC CONTROL
   =============================================== */

.music-control {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.music-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.music-btn.playing {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b9d 100%);
}

/* ===============================================
   CONTENT & SECTIONS
   =============================================== */

.content {
    padding: 40px 20px;
}

.section {
    margin-bottom: 50px;
    animation: slideUp 0.6s ease-out both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }

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

.section-title {
    font-size: 2.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

/* ===============================================
   PHOTO SECTION
   =============================================== */

.photo-section {
    text-align: center;
}

.photo-frame {
    width: 320px;
    height: 350px;
    margin: 0 auto 20px;
    border: 8px solid #f5576c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.3);
    background: linear-gradient(135deg, #fff0f3 0%, #f0e6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: frameFloat 3s ease-in-out infinite;
}

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

.photo-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.4);
}

.girl-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-text {
    text-align: center;
    color: #ccc;
    font-weight: 500;
}

.photo-label {
    color: #764ba2;
    font-size: 1.2em;
    font-style: italic;
    font-weight: 500;
}

/* ===============================================
   MESSAGES SECTION
   =============================================== */

.messages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.message-card {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    padding: 28px;
    border-radius: 15px;
    border-left: 6px solid #f5576c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.message-card:hover::before {
    transform: translateX(0);
}

.message-card p {
    color: #333;
    font-size: 1em;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===============================================
   REASONS SECTION
   =============================================== */

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.reason-card {
    background: linear-gradient(135deg, #e6f3ff 0%, #e6f0ff 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out both;
}

.reason-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.reason-card p {
    color: #333;
    font-size: 1em;
    line-height: 1.6;
}

.reason-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.1em;
}

/* ===============================================
   ADD BUTTON
   =============================================== */

.add-btn {
    display: block;
    margin: 30px auto 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   LOVE METER SECTION
   =============================================== */

.love-meter-section {
    background: linear-gradient(135deg, #fff5e6 0%, #fff0f3 100%);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #f5576c;
}

.love-meter-container {
    margin: 20px 0;
}

/* ===============================================
   SCRATCH CARD STYLES
   =============================================== */

.scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.scratch-card {
    display: block;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border-radius: 15px;
    touch-action: none;
    position: relative;
    z-index: 10;
}

.scratch-card-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.love-meter-text {
    text-align: center;
    font-size: 2em;
    color: #f5576c;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.scratch-instruction {
    text-align: center;
    color: #666;
    font-size: 1.05em;
    margin-top: 20px;
    font-weight: 500;
}

/* ===============================================
   MEMORIES SECTION
   =============================================== */

.memories-section {
    margin: 30px 0;
}

.memories-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.memory-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.memory-carousel::-webkit-scrollbar {
    height: 8px;
}

.memory-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.memory-carousel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.memory-item {
    flex: 0 0 220px;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    color: #999;
    position: relative;
}

.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memory-item:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

/* ===============================================
   MESSAGE SECTION (Final)
   =============================================== */

.message-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #ff7675 100%);
    padding: 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.message-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.message-section p {
    font-size: 1.1em;
    line-height: 1.9;
}

/* ===============================================
   FUN SECTION
   =============================================== */

.fun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.fun-card {
    background: linear-gradient(135deg, #e0f0ff 0%, #e6f3ff 100%);
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #667eea;
    text-align: center;
    transition: all 0.3s ease;
}

.fun-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.fun-card h3 {
    color: #764ba2;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.fun-card p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.fun-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fun-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   MODAL STYLES
   =============================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-title {
    color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 2em;
    margin-bottom: 20px;
}

.modal-content p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
    margin: 20px 0;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===============================================
   QUIZ STYLES
   =============================================== */

.quiz-question {
    margin: 20px 0;
}

.quiz-question h4 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background: #f0f0f0;
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    background: #e6f3ff;
    border-color: #667eea;
}

.quiz-option input[type="radio"] {
    margin-right: 10px;
}

.quiz-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.quiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quiz-result {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 5px solid #f5576c;
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 1.1em;
}

.socail-icons{
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 24px;
    color: #555;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ff4d6d;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .photo-frame {
        width: 250px;
        height: 250px;
    }

    .messages-container {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .fun-grid {
        grid-template-columns: 1fr;
    }

    .memory-item {
        flex: 0 0 180px;
        height: 180px;
    }

    .content {
        padding: 20px;
    }

    .section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .memory-item {
        flex: 0 0 150px;
        height: 150px;
    }

    .container {
        border-radius: 15px;
    }

    .modal-content {
        padding: 25px;
        max-width: 90%;
    }
}