:root {
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #f4f1e6;
}

body {
    margin: 0;
    min-height: 100vh;
}

.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-content {
    max-width: 420px;
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 32px rgba(255, 215, 0, 0.75);
}

.loader-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.85;
}

.main-content {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.section {
    padding: 5rem 0;
}

.welcome {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.welcome .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.75));
}

.welcome .content {
    position: relative;
    z-index: 1;
    padding-top: 12rem;
}

.welcome h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.countdown-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 1.25rem;
    min-height: 140px;
}

.countdown-item h3 {
    margin-bottom: 0.5rem;
}

.card-detail {
    background: rgba(255,255,255,0.05);
    border: none;
}

.card-detail i {
    color: #ffd700;
}

.dress-card {
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.dress-card .card-body {
    background: rgba(0,0,0,0.45);
    color: #fff;
    margin-top: auto;
}

.rsvp-form, .message-form {
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-card {
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.qr-box {
    width: 260px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .welcome .content {
        padding-top: 6rem;
    }
}
