/* Custom variables matching design requirements */
:root {
    --primary-color: #6A0DAD;      /* Royal Purple */
    --secondary-color: #FFD700;    /* Gold */
    --soft-pink: #FFB6C1;
    --sky-blue: #87CEEB;
    --text-color: #2D3748;
    --bg-color: #F7FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --font-family: 'Times New Roman', Times, serif;
    --font-size: 15px;
}

/* Dark Mode Overrides */
body.dark-mode {
    --text-color: #EDF2F7;
    --bg-color: #121214;
    --card-bg: #1A1A1E;
    --border-color: #2D2D33;
    --soft-pink: #E29BB0;
    --sky-blue: #70BCD8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Controls */
.controls-group {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--border-color);
    transform: scale(1.05);
}

/* Hero & Floating Balloons */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #300550 100%);
    color: #ffffff;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.15);
}

.hero-title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-style: italic;
}

/* Floating Balloons animation */
.balloon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.balloon {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    opacity: 0.25;
    animation: floatUp 15s infinite ease-in;
}

.balloon::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 18px;
    width: 4px;
    height: 8px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.balloon-1 { left: 10%; background-color: var(--secondary-color); animation-duration: 18s; }
.balloon-2 { left: 30%; background-color: var(--soft-pink); animation-duration: 14s; animation-delay: 2s; }
.balloon-3 { left: 70%; background-color: var(--sky-blue); animation-duration: 16s; animation-delay: 4s; }
.balloon-4 { left: 85%; background-color: var(--secondary-color); animation-duration: 20s; animation-delay: 1s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-700px) rotate(8deg);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #121214;
}

/* Section Titles */
h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--text-color);
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Countdown Clock */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.countdown-item {
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90px;
    padding: 1.25rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-bottom: 4px solid var(--primary-color);
}

.countdown-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.1;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #718096;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 14px;
}

.form-control {
    width: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

/* Gallery Slider */
.slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: var(--card-bg);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Slider native fallbacks */
.slide-placeholder {
    min-width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.slide-placeholder-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.slider-btn-prev { left: 15px; }
.slider-btn-next { right: 15px; }

/* Grid Systems */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-top: 3px solid var(--secondary-color);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Public Wall / Guestbook Grid */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wish-card {
    background: var(--card-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.wish-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 1rem;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Social buttons */
.share-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tw { background-color: #121214; }
.share-tg { background-color: #0088cc; }

/* Footer */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 4rem 1.5rem;
    margin-top: 6rem;
}

/* Mobile responsive modifications */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .slide, .slide-placeholder {
        height: 300px;
    }
}