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

:root {
    --primary: #8b1a2b;
    --primary-light: #c0392b;
    --gold: #d4a853;
    --gold-light: #f0d080;
    --cream: #fdf5e6;
    --dark: #1a1a2e;
    --text: #2d2d2d;
    --text-light: #666;
    --white: #ffffff;
    --rose: #fce4ec;
    --rose-dark: #e8a0b4;
    --secondary: #8b1a2b;
    --secondary-light: #c0392b;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b2e 30%, #8b1a2a 70%, #1a1a2e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(232, 160, 180, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1.5s ease-out;
}

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

.floral-divider {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

.name {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ampersand {
    font-family: var(--font-script);
    color: var(--gold);
    font-size: 1.5em;
    margin: 0 15px;
    display: inline-block;
    vertical-align: middle;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    56% { transform: scale(1); }
}

.hero-date {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    margin-top: 20px;
}

.date-icon {
    margin-right: 10px;
    color: var(--gold);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 0.8; }
}

/* ── Section Shared ── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--white);
}

.section-number {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 5px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-divider {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header.light h2 {
    color: var(--white);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
}

.divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--secondary-light));
    margin: 0 auto;
    border-radius: 2px;
}

.divider-line.light {
    background: var(--gold);
}

/* ── Story Section ── */
.story-section {
    background: var(--cream);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; }
}

.story-card {
    background: var(--white);
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--secondary));
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 26, 42, 0.1);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.story-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.story-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Gallery Section ── */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-placeholder:hover::after {
    opacity: 1;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.6;
    transition: transform 0.4s ease;
}

.gallery-placeholder:hover .placeholder-icon {
    transform: scale(1.2) rotate(-5deg);
}

.placeholder-text {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--dark);
    opacity: 0.7;
}

/* ── Event Section ── */
.event-section {
    background: linear-gradient(135deg, var(--cream), #fff);
}

.event-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 50px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(139, 26, 42, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.event-details p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.event-details p strong {
    color: var(--secondary);
    font-size: 1.2rem;
}

.event-date-time {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.event-label {
    font-weight: 600;
    color: var(--gold);
}

.event-value {
    color: var(--text-light);
}

/* ── Countdown Section ── */
.countdown-section {
    background: linear-gradient(135deg, #1a1a2e, #2d1b2e, #8b1a2a);
    position: relative;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 168, 83, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media (max-width: 480px) {
    .countdown-grid { gap: 10px; }
}

.countdown-box {
    text-align: center;
    min-width: 100px;
}

@media (max-width: 480px) {
    .countdown-box { min-width: 70px; }
}

.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .countdown-number { font-size: 2.5rem; }
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.countdown-separator {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.4;
    margin-top: -20px;
}

@media (max-width: 480px) {
    .countdown-separator { font-size: 2rem; margin-top: -10px; }
}

/* ── Message Section ── */
.message-section {
    background: var(--cream);
}

.wish-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-sans);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 26, 42, 0.3);
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    padding: 60px 0;
    text-align: center;
}

.footer-hearts {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    letter-spacing: 15px;
    animation: pulse 3s ease-in-out infinite;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-text {
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ── Selection ── */
::selection {
    background: var(--secondary);
    color: var(--white);
}