@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

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

:root {
    --primary: #046A38;
    --gold: #D4AF37;
    --rose: #d97760;
    --light: #fef5e7;
    --dark: #1a1a1a;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--light) 0%, #fff8f0 100%);
    color: #333;
    line-height: 1.6;
}

/* Container */
.invitation {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

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

/* Cover Section */
.cover {
    background: linear-gradient(135deg, var(--light) 0%, #fff8f0 100%);
    padding: 60px 30px;
    text-align: center;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.cover-content {
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

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

.cover h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: var(--rose);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cover p {
    font-size: 18px;
    color: #666;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Sections */
.section {
    padding: 50px 40px;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.8s ease-out;
}

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

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--rose);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Couple Section */
.couple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.person {
    text-align: center;
}

.person img {
    width: 200px;
    height: 250px;
    border-radius: 50% 50% 45% 45%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.person img:hover {
    transform: scale(1.05);
}

.person h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--rose);
    margin-bottom: 10px;
    font-weight: 700;
}

.person p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Event Box */
.event-box {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(217, 119, 96, 0.05) 100%);
    padding: 30px;
    border-left: 4px solid var(--rose);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-box:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(217, 119, 96, 0.1);
}

.event-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--rose);
    margin-bottom: 10px;
    font-weight: 700;
}

.event-box p {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.7;
}

.event-box strong {
    color: var(--primary);
    font-weight: 600;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Guests Section */
.guest-section {
    background: linear-gradient(135deg, rgba(74, 124, 126, 0.08) 0%, transparent 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.guest-section h5 {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.guest-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Closing Section */
.closing {
    background: linear-gradient(135deg, var(--primary) 0%, var(--rose) 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.closing h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.closing p {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 300;
    opacity: 0.95;
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
    border-radius: 2px;
}

/* Ampersand */
.ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--gold);
    margin: 0 20px;
    font-weight: 700;
}

/* Grid for couple names */
.couple-names {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

/* Countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.countdown-item {
    background: linear-gradient(135deg, var(--gold), #e8a910);
    color: #3a2d00;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.countdown-item .number {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.countdown-item .label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.text-primary {
    color: var(--primary);
}

.text-rose {
    color: var(--rose);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .invitation {
        margin: 20px;
        border-radius: 12px;
    }
    
    .cover {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .cover h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .cover p {
        font-size: 14px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .couple {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .couple-names {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ampersand {
        margin: 10px 0;
        font-size: 32px;
    }
    
    .person img {
        width: 150px;
        height: 200px;
    }
    
    .person h3 {
        font-size: 24px;
    }
    
    .event-box {
        padding: 20px;
    }
    
    .event-box h4 {
        font-size: 16px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery img {
        height: 180px;
    }
    
    .closing {
        padding: 40px 20px;
    }
    
    .closing h2 {
        font-size: 32px;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .countdown-item {
        padding: 15px;
    }
    
    .countdown-item .number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cover h1 {
        font-size: 24px;
    }
    
    .cover p {
        font-size: 12px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .section h2 {
        font-size: 22px;
    }
    
    .person img {
        width: 120px;
        height: 160px;
    }
    
    .person h3 {
        font-size: 20px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery img {
        height: 200px;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-box {
        padding: 15px;
        border-left-width: 3px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .invitation {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .cover {
        page-break-after: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Styles */
a {
    color: var(--rose);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), #2d5016);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--gold), #e8a910);
    color: #3a2d00;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

/* Border decorative */
.border-top {
    border-top: 2px solid var(--gold);
    padding-top: 20px;
}

.border-bottom {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 20px;
}

/* Animation for images */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery img {
    animation: fadeInScale 0.6s ease-out;
}

.person img {
    animation: fadeInScale 0.6s ease-out;
}