:root {
    --primary-color: #d4af37; /* Gold */
    --bg-color: #fdfbf7; /* Off-white/Cream */
    --text-color: #333;
    --card-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Noto Serif TC', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #fff 0%, #fdfbf7 100%);
    pointer-events: none;
}

/* Floating petals or particles can be added here via JS or CSS */

main {
    width: 100%;
    max-width: 100vw;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    padding: 2rem;
    position: relative;
}

.card-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Adjust based on image aspect ratio */
    aspect-ratio: 2/3; /* Assuming portrait invitation, adjust if landscape */
    cursor: pointer;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    transform: rotateY(180deg);
}

.instruction-text {
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #888;
    opacity: 0;
    animation: fadeIn 2s ease 1s forwards, float 3s ease-in-out infinite;
}

/* Info Section */
.info-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.05));
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    opacity: 0; /* For scroll animation */
    transform: translateY(30px);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.traffic-image-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.traffic-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-map {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}
