:root {
    --primary: #4c332a;
    --accent: #d4a373;
    --bg: #fdfaf5;
    --deep: #1c140f;
}

body {
    margin: 0;
    font-family: 'Lora', serif;
    background: var(--bg) url('background.jpg') center 80% / cover fixed;
    color: var(--primary);
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.page-ready {
    opacity: 1;
}

@media (min-width: 1600px) {
    body {
        background-size: 120% auto;
        background-position: center 85%;
    }
}

@media (max-width: 1024px) {
    body {
        background-size: 160% auto;
        background-position: center 65%;
    }
}

@media (max-width: 640px) {
    body {
        background-size: 220% auto;
        background-position: center 55%;
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(212,163,115,0.2), transparent 40%),
                radial-gradient(circle at bottom, rgba(93,64,55,0.15), transparent 45%);
    opacity: 0;
    animation: glow 1.5s ease forwards;
    z-index: -1;
}

h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; letter-spacing: 2px; margin: 20px 0; }
.shloka {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px auto 20px;
    max-width: 520px;
}
.subtitle { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 50px; }
.request { font-style: italic; max-width: 80%; margin: 10px auto; font-size: 1.1rem; }
.intro-line { letter-spacing: 3px; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 25px; color: rgba(0,0,0,0.55); }

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: url('background.jpg') center/cover fixed;
    transform: scale(1.1);
    filter: grayscale(0.15) brightness(0.75);
    transition: transform 1s ease, filter 1s ease;
}

.overlay {
    position: relative;
    background: rgba(253, 250, 245, 0.92);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.4);
}

.crest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.crest-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.05);
    background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(253,250,245,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.08);
}

.crest-ring img {
    width: 140%;
    object-fit: cover;
    filter: saturate(1.2);
}

.crest-initials {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0;
}

.crest-tagline {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(0,0,0,0.55);
}

.cta-group { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.details { padding: 100px 20px; position: relative; }
.details::before {
    content: '';
    position: absolute;
    inset: 120px 12%;
    background: rgba(255,255,255,0.3);
    filter: blur(60px);
    z-index: -1;
}

.photo-placeholder {
    background: rgba(233,224,212,0.85);
    border: 1px solid rgba(188,172,150,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: #8d7d66;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.main-couple { width: 90%; max-width: 600px; height: 420px; border-radius: 22px; }

.individual-photos { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.photo-placeholder.mini { width: 140px; height: 140px; border-radius: 50%; font-size: 0.8rem; position: relative; }
.photo-placeholder.mini::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.6);
    pointer-events: none;
}

.info-box {
    margin: 50px auto;
    padding: 30px;
    border: 1px solid rgba(224,213,197,0.8);
    max-width: 500px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(253,250,245,0.78));
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    border-radius: 18px;
}

.marriage-box {
    margin: 30px auto 50px;
    padding: 25px;
    border-radius: 16px;
    border: 1px dashed rgba(93,64,55,0.3);
    max-width: 480px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.date { font-size: 1.4rem; font-weight: bold; }
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn.secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    opacity: 0.95;
}

.footer-note { margin-top: 40px; padding-bottom: 50px; font-size: 0.85rem; opacity: 0.8; }

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

[data-animate].slide-left { transform: translateX(-60px); }
[data-animate].slide-right { transform: translateX(60px); }
[data-animate].slide-up { transform: translateY(60px); }

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate].visible.slide-left,
[data-animate].visible.slide-right,
[data-animate].visible.slide-up {
    transform: translate(0);
}

.tilt-card {
    transition: box-shadow 0.8s ease, filter 0.8s ease;
}

.tilt-card.visible {
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
    filter: saturate(1.05);
}

.hero.visible .overlay { animation: floatUp 1.2s ease forwards; }

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

@keyframes glow {
    to { opacity: 1; }
}
.story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 40px;
    padding: 80px 8%;
}

.story.groom .story-media { order: 1; }
.story.groom .story-content { order: 2; text-align: left; }
.story.bride .story-media { order: 2; }
.story.bride .story-content { order: 1; text-align: right; }

.story-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.story-media::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: inherit;
    pointer-events: none;
}

.story-media img {
    width: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.9s ease;
}

.story:hover .story-media img {
    transform: scale(1.08);
}

.story-content {
    background: rgba(253, 250, 245, 0.85);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.story-content::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.story .label {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.story h2 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 15px;
    font-size: 2.2rem;
    letter-spacing: 3px;
}

.story-content p {
    line-height: 1.7;
    margin: 0 0 12px;
}

.story .note {
    font-style: italic;
    color: rgba(0,0,0,0.6);
}
