:root {
    --primary-color: #f7cbd9; /* Soft Pink */
    --secondary-color: #d4af37; /* Gold */
    --text-color: #5c4033; /* Soft Brown/Earth */
    --bg-overlay: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

#flower-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: flex-end; /* Card to the right */
    align-items: center;
    overflow-x: hidden;
    background-color: #000; /* Dark background behind image */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('valentina.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(10px) brightness(0.8);
    z-index: -2;
    transform: scale(1.1); /* Prevent white edges from blur */
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('valentina.jpg') no-repeat center center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}


#youtube-player {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.01; /* Minimal opacity instead of 0 or hidden */
    pointer-events: none;
    overflow: hidden;
}

.mute-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.mute-btn:hover {
    transform: scale(1.1);
    background: white;
}

.mute-btn.muted svg {
    opacity: 0.5;
}

.mute-btn.muted::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered floral overlay on top of body background */
    background: url('bg.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.25; /* Even more subtle to prevent washing out her face */
    mix-blend-mode: multiply; 
    z-index: -1;
    pointer-events: none;
}

.welcome-container {
    width: 90%;
    max-width: 500px;
    margin-right: 5%; /* Leave space on the right */
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: transform 0.6s ease, opacity 0.6s ease;
    border-top: 2px solid rgba(255,255,255,0.8); /* Highlight top edge */
}

.hero header .pre-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

h1 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-color);
}

.name {
    font-family: var(--font-header);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.date-text {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.time-block {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px 5px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.time-block span {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.time-block small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions {
    display: flex;
    justify-content: center;
}

.primary-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: #c29f2f;
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateZ(100px);
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

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

@media (max-width: 600px) {
    body {
        justify-content: center;
        align-items: flex-end; /* Align card to bottom on mobile */
        padding-bottom: 20px;
    }

    .welcome-container {
        width: 95%;
        margin-right: 0;
        margin-bottom: 5vh; /* Space from bottom */
    }

    .glass-card {
        padding: 25px 15px;
        border-radius: 20px;
    }

    h1 { font-size: 1.8rem; }
    .name { font-size: 3rem; margin-bottom: 15px; }
    
    .countdown {
        gap: 5px;
        margin-bottom: 20px;
    }

    .time-block {
        padding: 10px 2px;
    }

    .time-block span { font-size: 1.3rem; }
}

@media (max-height: 700px) and (max-width: 600px) {
    .name { font-size: 2.5rem; }
    .glass-card { padding: 15px 10px; }
}

/* NEW STYLES */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.menu-item {
    cursor: pointer;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
}

.icon-wrap {
    color: var(--secondary-color);
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.detail-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    z-index: 100;
}

.detail-section .glass-card {
    position: relative;
}

.close-detail {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.emphasized {
    font-family: var(--font-header);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
}

.rsvp-form textarea {
    height: 80px;
    resize: none;
}

#rsvp-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
}

/* --- SPLASH SCREEN (Premium Minimal Style) --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #fffbfd 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    padding: 60px;
    animation: fadeInDown 2s ease-out;
}

.splash-pre {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #bfa5ae;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: 300;
}

.splash-name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #4a4a4a;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(to right, #4a4a4a, #d18ba1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-btn {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid rgba(166, 77, 121, 0.2);
    padding: 18px 70px;
    border-radius: 0; /* Pure elegance with sharp corners */
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 8px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.splash-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.splash-btn:hover::before {
    left: 100%;
}

.splash-btn:hover {
    letter-spacing: 12px;
    color: #a64d79;
    border-color: #a64d79;
    box-shadow: 0 5px 20px rgba(166, 77, 121, 0.1);
}

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