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

:root {
    --bg-color: #F8F5F0;
    --text-color: #2C2C2C;
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A028;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    --accent-glow: rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --transition-smooth: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-cursive { 
    font-family: 'Great Vibes', cursive; 
    color: var(--gold-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Poppins', sans-serif; }

/* Landing Experience */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, -5px); }
}

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #000;
    cursor: pointer;
    transition: opacity 1s ease;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-video-loop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: none;
    opacity: 0;
    overflow: hidden;
    transition: opacity 1s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Content Sections */
.main-content {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
    max-width: 900px; /* Slimmer for elegance */
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
}

.section-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2); /* Soft gold border */
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.05);
    max-width: 800px;
    position: relative;
}

.decorative-card {
    border: 2px double rgba(212, 175, 55, 0.4);
    padding: 4rem 3rem;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Flowers */
.flower-decor {
    width: 300px; /* Slightly larger */
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    transition: transform 0.1s linear;
}

.invitation-flowers {
    position: relative;
    padding: 2rem 0;
}

.flower-top { margin-bottom: -1rem; }
.flower-bottom { margin-top: -1rem; transform: rotate(180deg); }

/* Names */
.names-container {
    padding: 6rem 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arabic-text {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gold-primary);
}

.name-text {
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 0.5rem 0;
}

.weds-text {
    font-size: 1.5rem;
    color: var(--gold-secondary);
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Scratch Card */
.scratch-container {
    width: 300px;
    height: 150px;
    margin: 2rem auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

.scratch-reveal-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Event Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    padding: 2rem;
    text-align: center; /* Centered for elegance */
}

.event-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain; /* Don't crop */
    border-radius: 10px;
    margin: 0 auto 1.5rem auto;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Location */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--gold-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Controls */
#music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--glass-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
}

.navy-card {
    background: #1A2A44; /* Premium Deep Navy */
    color: #F8F5F0; /* Ivory text */
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navy-card p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.navy-card .whatsapp-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.navy-card .whatsapp-link:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .flower-bottom-left, .flower-bottom-right { width: 150px; }
    .flower-mid-left, .flower-mid-right { display: none; }
    .section-card { padding: 2rem 1rem; }
    .name-text { font-size: 2.8rem; }
    .arabic-text { font-size: 1.6rem; }
    .weds-text { font-size: 1rem; letter-spacing: 3px; }
}
