:root {
    --color-bg: #FAFAFA;
    --color-text: #111111;
    --color-accent: #0A301D; /* Deep Emerald */
    --color-gold: #D4AF37;
    --font-heading: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Overlay */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-accent);
    color: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

.overlay-content {
    text-align: center;
}

.overlay-content h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.big-letter {
    font-size: 5rem;
}

.small-type {
    font-size: 3rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    font-size: 3rem;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.overlay-content p {
    font-size: 0.9rem;
    letter-spacing: 5px;
    margin-bottom: 40px;
}

#open-btn {
    background: transparent;
    border: 1px solid var(--color-bg);
    color: var(--color-bg);
    padding: 12px 40px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#open-btn:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.glow-btn {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(250, 250, 250, 0.2),
                    0 0 10px rgba(250, 250, 250, 0.2);
    }
    to {
        box-shadow: 0 0 10px rgba(250, 250, 250, 0.6),
                    0 0 20px rgba(250, 250, 250, 0.6),
                    0 0 30px rgba(250, 250, 250, 0.4);
    }
}

/* Layout */
.split-layout {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

.left-pane {
    width: 50vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url('assets/caricature.png');
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Slight darkening for mood */
}

.right-pane {
    width: 50vw;
    margin-left: 50vw;
    min-height: 100vh;
    background-color: var(--color-bg);
    padding: 10vh 8vw;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Music Toggle */
#music-toggle {
    position: absolute;
    top: 40px;
    right: 4vw;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    color: var(--color-text);
}

/* Typography & Content Sections */
.content-section {
    margin-bottom: 12vh;
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--color-text);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--color-text);
}

.title.italic {
    font-style: italic;
    color: var(--color-accent);
}

.date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.countdown-ticker {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--color-accent);
}

.story-section h3, .venue-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.body-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    max-width: 80%;
    margin: 0 auto;
}

/* Venue Section */
.sharp-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    filter: grayscale(20%) contrast(110%);
}

.venue-name {
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 10px;
}

.venue-address {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.venue-time {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.outline-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.footer-section {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 40px;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 0;
}

/* Particles / Blessings */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

.particle {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
    animation: drift linear infinite;
    opacity: 0.6;
}

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

/* Mobile Responsive */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    .left-pane {
        width: 100vw;
        height: 60vh;
        position: relative;
        background-attachment: fixed;
    }
    .right-pane {
        width: 100vw;
        margin-left: 0;
        padding: 10vh 6vw;
    }
    .title {
        font-size: 3.5rem;
    }
    .body-text {
        max-width: 100%;
    }
}
