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

:root {
    --primary-blue: #a8c8e1;
    --dark-blue: #6b9bc3;
    --gold: #d4af37;
    --light-gold: #e8d4a8;
    --cream: #fdfbf7;
    --text-dark: #4a4a4a;
    --text-light: #7a7a7a;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-dark);
}

.invitation-card {
    background: var(--cream);
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Paper texture background */
.invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(168, 200, 225, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(168, 200, 225, 0.05) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Floral decorations - Watercolor style */
.floral-corner {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: 0.5;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.floral-top-left {
    top: -30px;
    left: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250'%3E%3Cdefs%3E%3CradialGradient id='flower1'%3E%3Cstop offset='0%25' style='stop-color:%23a8c8e1;stop-opacity:0.8' /%3E%3Cstop offset='100%25' style='stop-color:%23a8c8e1;stop-opacity:0.3' /%3E%3C/radialGradient%3E%3CradialGradient id='flower2'%3E%3Cstop offset='0%25' style='stop-color:%238bb4d9;stop-opacity:0.7' /%3E%3Cstop offset='100%25' style='stop-color:%238bb4d9;stop-opacity:0.2' /%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='40' rx='20' ry='25' fill='url(%23flower1)' transform='rotate(-20 50 40)'/%3E%3Cellipse cx='45' cy='42' rx='18' ry='22' fill='url(%23flower1)' transform='rotate(30 45 42)'/%3E%3Cellipse cx='55' cy='38' rx='16' ry='20' fill='url(%23flower1)' transform='rotate(60 55 38)'/%3E%3Cellipse cx='52' cy='45' rx='15' ry='18' fill='url(%23flower1)' transform='rotate(-45 52 45)'/%3E%3Cellipse cx='48' cy='35' rx='14' ry='17' fill='url(%23flower1)' transform='rotate(80 48 35)'/%3E%3Ccircle cx='50' cy='40' r='8' fill='%23d4af37' opacity='0.5'/%3E%3Cellipse cx='75' cy='65' rx='16' ry='20' fill='url(%23flower2)' transform='rotate(10 75 65)'/%3E%3Cellipse cx='72' cy='67' rx='14' ry='18' fill='url(%23flower2)' transform='rotate(50 72 67)'/%3E%3Cellipse cx='78' cy='63' rx='13' ry='16' fill='url(%23flower2)' transform='rotate(90 78 63)'/%3E%3Cellipse cx='75' cy='70' rx='12' ry='15' fill='url(%23flower2)' transform='rotate(-30 75 70)'/%3E%3Ccircle cx='75' cy='65' r='6' fill='%23d4af37' opacity='0.4'/%3E%3Cellipse cx='30' cy='70' rx='12' ry='15' fill='url(%23flower2)' transform='rotate(-15 30 70)'/%3E%3Cellipse cx='28' cy='72' rx='10' ry='13' fill='url(%23flower2)' transform='rotate(35 28 72)'/%3E%3Cellipse cx='32' cy='68' rx='9' ry='11' fill='url(%23flower2)' transform='rotate(75 32 68)'/%3E%3Ccircle cx='30' cy='70' r='5' fill='%23d4af37' opacity='0.3'/%3E%3Cpath d='M50,45 Q40,60 35,75' stroke='%2398b8d1' stroke-width='2' fill='none' opacity='0.4'/%3E%3Cpath d='M75,70 Q65,85 60,100' stroke='%2398b8d1' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Cellipse cx='40' cy='55' rx='8' ry='10' fill='%23b8d4e8' opacity='0.3' transform='rotate(25 40 55)'/%3E%3Cellipse cx='65' cy='80' rx='7' ry='9' fill='%23b8d4e8' opacity='0.25' transform='rotate(-20 65 80)'/%3E%3C/svg%3E");
}

.floral-top-right {
    top: -30px;
    right: -30px;
    transform: scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250'%3E%3Cdefs%3E%3CradialGradient id='flower1'%3E%3Cstop offset='0%25' style='stop-color:%23a8c8e1;stop-opacity:0.8' /%3E%3Cstop offset='100%25' style='stop-color:%23a8c8e1;stop-opacity:0.3' /%3E%3C/radialGradient%3E%3CradialGradient id='flower2'%3E%3Cstop offset='0%25' style='stop-color:%238bb4d9;stop-opacity:0.7' /%3E%3Cstop offset='100%25' style='stop-color:%238bb4d9;stop-opacity:0.2' /%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='40' rx='20' ry='25' fill='url(%23flower1)' transform='rotate(-20 50 40)'/%3E%3Cellipse cx='45' cy='42' rx='18' ry='22' fill='url(%23flower1)' transform='rotate(30 45 42)'/%3E%3Cellipse cx='55' cy='38' rx='16' ry='20' fill='url(%23flower1)' transform='rotate(60 55 38)'/%3E%3Cellipse cx='52' cy='45' rx='15' ry='18' fill='url(%23flower1)' transform='rotate(-45 52 45)'/%3E%3Cellipse cx='48' cy='35' rx='14' ry='17' fill='url(%23flower1)' transform='rotate(80 48 35)'/%3E%3Ccircle cx='50' cy='40' r='8' fill='%23d4af37' opacity='0.5'/%3E%3Cellipse cx='75' cy='65' rx='16' ry='20' fill='url(%23flower2)' transform='rotate(10 75 65)'/%3E%3Cellipse cx='72' cy='67' rx='14' ry='18' fill='url(%23flower2)' transform='rotate(50 72 67)'/%3E%3Cellipse cx='78' cy='63' rx='13' ry='16' fill='url(%23flower2)' transform='rotate(90 78 63)'/%3E%3Cellipse cx='75' cy='70' rx='12' ry='15' fill='url(%23flower2)' transform='rotate(-30 75 70)'/%3E%3Ccircle cx='75' cy='65' r='6' fill='%23d4af37' opacity='0.4'/%3E%3Cellipse cx='30' cy='70' rx='12' ry='15' fill='url(%23flower2)' transform='rotate(-15 30 70)'/%3E%3Cellipse cx='28' cy='72' rx='10' ry='13' fill='url(%23flower2)' transform='rotate(35 28 72)'/%3E%3Cellipse cx='32' cy='68' rx='9' ry='11' fill='url(%23flower2)' transform='rotate(75 32 68)'/%3E%3Ccircle cx='30' cy='70' r='5' fill='%23d4af37' opacity='0.3'/%3E%3Cpath d='M50,45 Q40,60 35,75' stroke='%2398b8d1' stroke-width='2' fill='none' opacity='0.4'/%3E%3Cpath d='M75,70 Q65,85 60,100' stroke='%2398b8d1' stroke-width='1.5' fill='none' opacity='0.3'/%3E%3Cellipse cx='40' cy='55' rx='8' ry='10' fill='%23b8d4e8' opacity='0.3' transform='rotate(25 40 55)'/%3E%3Cellipse cx='65' cy='80' rx='7' ry='9' fill='%23b8d4e8' opacity='0.25' transform='rotate(-20 65 80)'/%3E%3C/svg%3E");
}

.floral-bottom-left {
    bottom: -30px;
    left: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250'%3E%3Cdefs%3E%3CradialGradient id='gold1'%3E%3Cstop offset='0%25' style='stop-color:%23d4af37;stop-opacity:0.7' /%3E%3Cstop offset='100%25' style='stop-color:%23d4af37;stop-opacity:0.2' /%3E%3C/radialGradient%3E%3CradialGradient id='gold2'%3E%3Cstop offset='0%25' style='stop-color:%23e8d4a8;stop-opacity:0.6' /%3E%3Cstop offset='100%25' style='stop-color:%23e8d4a8;stop-opacity:0.15' /%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='200' cy='200' rx='18' ry='22' fill='url(%23gold1)' transform='rotate(160 200 200)'/%3E%3Cellipse cx='198' cy='202' rx='16' ry='20' fill='url(%23gold1)' transform='rotate(-150 198 202)'/%3E%3Cellipse cx='203' cy='198' rx='15' ry='19' fill='url(%23gold1)' transform='rotate(-120 203 198)'/%3E%3Cellipse cx='200' cy='205' rx='14' ry='17' fill='url(%23gold1)' transform='rotate(135 200 205)'/%3E%3Cellipse cx='197' cy='197' rx='13' ry='16' fill='url(%23gold1)' transform='rotate(-100 197 197)'/%3E%3Ccircle cx='200' cy='200' r='7' fill='%23a8c8e1' opacity='0.4'/%3E%3Cellipse cx='175' cy='180' rx='14' ry='17' fill='url(%23gold2)' transform='rotate(170 175 180)'/%3E%3Cellipse cx='173' cy='182' rx='12' ry='15' fill='url(%23gold2)' transform='rotate(-140 173 182)'/%3E%3Cellipse cx='177' cy='178' rx='11' ry='14' fill='url(%23gold2)' transform='rotate(-110 177 178)'/%3E%3Ccircle cx='175' cy='180' r='5' fill='%23a8c8e1' opacity='0.3'/%3E%3Cellipse cx='220' cy='180' rx='12' ry='15' fill='url(%23gold2)' transform='rotate(165 220 180)'/%3E%3Cellipse cx='218' cy='182' rx='10' ry='13' fill='url(%23gold2)' transform='rotate(-145 218 182)'/%3E%3Ccircle cx='220' cy='180' r='4' fill='%23a8c8e1' opacity='0.25'/%3E%3Cpath d='M200,205 Q190,215 185,230' stroke='%23c9a961' stroke-width='2' fill='none' opacity='0.3'/%3E%3Cpath d='M175,185 Q165,195 160,210' stroke='%23c9a961' stroke-width='1.5' fill='none' opacity='0.25'/%3E%3Cellipse cx='190' cy='210' rx='7' ry='9' fill='%23e8d4a8' opacity='0.2' transform='rotate(-165 190 210)'/%3E%3C/svg%3E");
}

.floral-bottom-right {
    bottom: -30px;
    right: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 250'%3E%3Cdefs%3E%3CradialGradient id='gold1'%3E%3Cstop offset='0%25' style='stop-color:%23d4af37;stop-opacity:0.7' /%3E%3Cstop offset='100%25' style='stop-color:%23d4af37;stop-opacity:0.2' /%3E%3C/radialGradient%3E%3CradialGradient id='gold2'%3E%3Cstop offset='0%25' style='stop-color:%23e8d4a8;stop-opacity:0.6' /%3E%3Cstop offset='100%25' style='stop-color:%23e8d4a8;stop-opacity:0.15' /%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='200' rx='18' ry='22' fill='url(%23gold1)' transform='rotate(20 50 200)'/%3E%3Cellipse cx='52' cy='202' rx='16' ry='20' fill='url(%23gold1)' transform='rotate(50 52 202)'/%3E%3Cellipse cx='47' cy='198' rx='15' ry='19' fill='url(%23gold1)' transform='rotate(80 47 198)'/%3E%3Cellipse cx='50' cy='205' rx='14' ry='17' fill='url(%23gold1)' transform='rotate(-45 50 205)'/%3E%3Cellipse cx='53' cy='197' rx='13' ry='16' fill='url(%23gold1)' transform='rotate(100 53 197)'/%3E%3Ccircle cx='50' cy='200' r='7' fill='%23a8c8e1' opacity='0.4'/%3E%3Cellipse cx='75' cy='180' rx='14' ry='17' fill='url(%23gold2)' transform='rotate(10 75 180)'/%3E%3Cellipse cx='77' cy='182' rx='12' ry='15' fill='url(%23gold2)' transform='rotate(40 77 182)'/%3E%3Cellipse cx='73' cy='178' rx='11' ry='14' fill='url(%23gold2)' transform='rotate(70 73 178)'/%3E%3Ccircle cx='75' cy='180' r='5' fill='%23a8c8e1' opacity='0.3'/%3E%3Cellipse cx='30' cy='180' rx='12' ry='15' fill='url(%23gold2)' transform='rotate(15 30 180)'/%3E%3Cellipse cx='32' cy='182' rx='10' ry='13' fill='url(%23gold2)' transform='rotate(45 32 182)'/%3E%3Ccircle cx='30' cy='180' r='4' fill='%23a8c8e1' opacity='0.25'/%3E%3Cpath d='M50,205 Q60,215 65,230' stroke='%23c9a961' stroke-width='2' fill='none' opacity='0.3'/%3E%3Cpath d='M75,185 Q85,195 90,210' stroke='%23c9a961' stroke-width='1.5' fill='none' opacity='0.25'/%3E%3Cellipse cx='60' cy='210' rx='7' ry='9' fill='%23e8d4a8' opacity='0.2' transform='rotate(15 60 210)'/%3E%3C/svg%3E");
}

/* Decorative frame */
.decorative-frame {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    border: 1px solid var(--light-gold);
    border-radius: 15px;
    pointer-events: none;
}

.decorative-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 0.5px solid var(--gold);
    border-radius: 16px;
    opacity: 0.3;
}

/* Content */
.content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cross {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.header-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto;
}

.date-highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 500;
    margin: 2rem 0 1.5rem;
    letter-spacing: 1px;
}

.event-section {
    margin: 2rem 0;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-time {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.event-location {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 300;
}

.family-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.family-group h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.family-group p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.closing-message {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-light);
    margin: 2rem 0 1.5rem;
    line-height: 1.6;
}

.inspirational-quote {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--dark-blue);
    line-height: 1.5;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Countdown section */
.countdown-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.countdown-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-blue);
    font-family: 'Cormorant Garamond', serif;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Additional decorative leaves */
.decorative-leaf {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.2;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.leaf-left {
    top: 45%;
    left: -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cellipse cx='40' cy='40' rx='15' ry='30' fill='%23a8c8e1' opacity='0.4' transform='rotate(-30 40 40)'/%3E%3Cpath d='M40,25 Q35,40 40,55' stroke='%238bb4d9' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3C/svg%3E");
}

.leaf-right {
    top: 45%;
    right: -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cellipse cx='40' cy='40' rx='15' ry='30' fill='%23d4af37' opacity='0.4' transform='rotate(30 40 40)'/%3E%3Cpath d='M40,25 Q45,40 40,55' stroke='%23c9a961' stroke-width='1.5' fill='none' opacity='0.5'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 600px) {
    .invitation-card {
        padding: 2.5rem 2rem;
    }

    .title {
        font-size: 2.8rem;
    }

    .floral-corner {
        width: 180px;
        height: 180px;
    }

    .decorative-leaf {
        width: 60px;
        height: 60px;
    }

    .family-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .inspirational-quote {
        font-size: 1.4rem;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invitation-card {
    animation: fadeIn 0.8s ease-out;
}
