/* CSS Variables */
:root {
    --primary-navy: #1a2b4a;
    --primary-gold: #d4af37;
    --accent-gold: #f4e4c1;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: rgba(26, 43, 74, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--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(--primary-navy) 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.welcome-content {
    text-align: center;
    color: var(--white);
}

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

.welcome-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    margin-bottom: 3rem;
}

.number-reveal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.digit {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-gold);
    opacity: 0;
    transform: translateY(50px);
    animation: revealNumber 1s ease 0.5s forwards;
}

.digit:nth-child(2) {
    animation-delay: 0.7s;
}

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

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

.btn-open {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.btn-open:hover {
    background: var(--primary-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-open:hover .arrow-icon {
    transform: translateX(5px);
}

/* Main Invitation */
.invitation-container {
    opacity: 0;
    transition: opacity 0.8s 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(--primary-navy) 0%, #34495e 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1464047736614-af63643285bf?w=1200') center/cover;
    opacity: 0.3;
}

.golden-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

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

.milestone-badge {
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
}

.milestone-number {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.milestone-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-top: -10px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.date-line {
    width: 80px;
    height: 1px;
    background: var(--primary-gold);
    opacity: 0.6;
}

.date-text {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(10px);
    }
    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* Quote Section */
.quote-section {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

.milestone-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--primary-navy);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.milestone-quote::before,
.milestone-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-gold);
    opacity: 0.3;
    position: absolute;
}

.milestone-quote::before {
    top: -20px;
    left: -40px;
}

.milestone-quote::after {
    bottom: -40px;
    right: -40px;
}

/* Details Section */
.details-section {
    padding: 100px 0;
    background: var(--white);
}

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

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

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

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

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

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

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

.detail-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

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

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

.timeline-item {
    position: relative;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

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

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

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.timeline-item.highlight .timeline-content {
    background: var(--primary-navy);
    color: var(--white);
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-item.highlight .timeline-content h4 {
    color: var(--primary-gold);
}

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

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

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

.rsvp-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm,
.btn-contact {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-confirm {
    background: var(--primary-gold);
    color: var(--primary-navy);
}

.btn-confirm:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-contact {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Footer */
.invitation-footer {
    padding: 60px 0;
    background: var(--bg-light);
    text-align: center;
}

.footer-message {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.footer-signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .digit {
        font-size: 4rem;
    }
    
    .milestone-number {
        font-size: 5rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-item:nth-child(even) {
        direction: ltr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .milestone-quote {
        font-size: 1.5rem;
    }
}