/* CSS Variables */
:root {
    --primary-blue: #4a90e2;
    --light-blue: #e3f2fd;
    --soft-gold: #f5c842;
    --warm-white: #fefefe;
    --pure-white: #ffffff;
    --text-navy: #2c3e50;
    --text-soft: #5a6c7d;
    --shadow-light: rgba(74, 144, 226, 0.1);
    --shadow-gold: rgba(245, 200, 66, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-navy);
    overflow-x: hidden;
    background: var(--warm-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.welcome-screen.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.welcome-content {
    text-align: center;
    color: var(--pure-white);
    position: relative;
    z-index: 2;
}

.blessing-icon {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s ease 0.3s forwards;
}

.dove-icon {
    width: 80px;
    height: 80px;
    color: var(--pure-white);
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.welcome-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.cross-symbol {
    font-size: 4rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: glowIn 1.5s ease 1s forwards;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes glowIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btn-open {
    background: transparent;
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.btn-open:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-open:hover .ripple-effect {
    width: 300px;
    height: 300px;
}

.floating-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pure-white);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatLight 8s infinite linear;
}

@keyframes floatLight {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Main Invitation */
.invitation-container {
    opacity: 0;
    transition: opacity 1s ease;
}

.invitation-container.show {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--pure-white) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light-rays {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(245, 200, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    animation: rotateRays 20s linear infinite;
}

@keyframes rotateRays {
    to {
        transform: rotate(360deg);
    }
}

.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--soft-gold);
    border-radius: 50% 0;
    opacity: 0.3;
    animation: fallPetal 12s infinite linear;
}

@keyframes fallPetal {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-navy);
}

.blessing-badge {
    margin-bottom: 2rem;
    display: inline-block;
}

.cross-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 10px var(--shadow-light);
}

.blessing-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-soft);
}

.baby-name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    text-shadow: 0 4px 20px var(--shadow-light);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--text-soft);
}

.date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.date-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--soft-gold), transparent);
}

.ceremony-date {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

/* Bible Verse Section */
.verse-section {
    padding: 100px 0;
    background: var(--pure-white);
    text-align: center;
}

.verse-content {
    max-width: 800px;
    margin: 0 auto;
}

.verse-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--soft-gold);
}

.bible-verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-navy);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
}

.bible-verse::before,
.bible-verse::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.3;
    position: absolute;
}

.bible-verse::before {
    top: -10px;
    left: -30px;
}

.bible-verse::after {
    bottom: -30px;
    right: -30px;
}

.verse-reference {
    font-size: 1.1rem;
    color: var(--text-soft);
    font-weight: 500;
}

/* Ceremony Details */
.ceremony-details {
    padding: 100px 0;
    background: var(--light-blue);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-navy);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-blue);
}

.details-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.details-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-blue);
    opacity: 0.3;
}

.timeline-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--shadow-light);
}

.timeline-event:nth-child(even) {
    direction: rtl;
}

.timeline-event:nth-child(even) .event-content {
    direction: ltr;
}

.event-time {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
}

.event-content {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    text-align: center;
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.event-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-navy);
    margin-bottom: 10px;
}

.event-content p {
    color: var(--text-soft);
    margin-bottom: 5px;
}

.event-address {
    font-size: 0.9rem;
    font-style: italic;
}

/* Family Section */
.family-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.family-card {
    text-align: center;
    padding: 40px;
    background: var(--light-blue);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.family-card.highlight {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: scale(1.05);
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.family-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.family-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.family-card p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.family-role {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Blessings Section */
.blessing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-blue), var(--pure-white));
}

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

.blessing-card {
    text-align: center;
    padding: 30px;
    background: var(--pure-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.blessing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.blessing-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blessing-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.blessing-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background: var(--primary-blue);
    text-align: center;
    color: var(--pure-white);
}

.rsvp-section .section-title {
    color: var(--pure-white);
}

.rsvp-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.btn-confirm {
    background: var(--soft-gold);
    color: var(--text-navy);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-confirm:hover .btn-glow {
    left: 100%;
}

.contact-info p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.btn-contact {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--pure-white);
    color: var(--primary-blue);
}

/* Prayer Footer */
.prayer-footer {
    padding: 80px 0;
    background: var(--light-blue);
    text-align: center;
}

.prayer-content {
    max-width: 700px;
    margin: 0 auto;
}

.prayer-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.prayer-text {
    font-size: 1.1rem;
    color: var(--text-navy);
    margin-bottom: 30px;
    line-height: 1.6;
}

.prayer-signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

/* Light Effects */
.light-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .baby-name {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-event {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline-event:nth-child(even) {
        direction: ltr;
    }
    
    .details-timeline::before {
        left: 30px;
    }
    
    .timeline-event::before {
        left: 30px;
    }
    
    .bible-verse {
        font-size: 1.4rem;
    }
    
    .family-grid {
        grid-template-columns: 1fr;
    }
}