/* ===== FAIRY FOREST WEDDING INVITATION ===== */

/* Color Palette */
:root {
    --forest-dark: #1a2f23;
    --forest-medium: #2d4a3e;
    --forest-light: #3d5a4c;
    --moss-green: #4a6741;
    --sage: #7d9b76;
    --leaf-gold: #c9a961;
    --fairy-gold: #d4af37;
    --cream: #f5f0e6;
    --warm-white: #faf8f3;
    --soft-brown: #8b7355;
    --mist: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--forest-dark);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ===== WELCOME VIDEO BACKGROUND ===== */
.welcome-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 1000;
    transition: opacity 1.5s ease;
}

.welcome-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.welcome-screen.video-playing .open-envelope-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Forest Background */
.forest-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Mist Effect */
.mist {
    position: absolute;
    width: 200%;
    height: 30%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.03),
        transparent);
    animation: mistMove 20s ease-in-out infinite;
}

.mist-1 {
    bottom: 20%;
    animation-delay: 0s;
}

.mist-2 {
    bottom: 40%;
    opacity: 0.5;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes mistMove {
    0%, 100% { transform: translateX(-25%); }
    50% { transform: translateX(0%); }
}

/* Tree Silhouettes */
.tree-silhouette {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 300px;
    background: linear-gradient(to top,
        #0a1510 0%,
        #0d1a14 50%,
        transparent 100%);
    clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
    opacity: 0.6;
}

.tree-1 { left: -30px; height: 350px; animation: treeSway 8s ease-in-out infinite; }
.tree-2 { left: 10%; height: 280px; animation: treeSway 9s ease-in-out infinite 0.5s; opacity: 0.4; }
.tree-3 { right: 10%; height: 300px; animation: treeSway 7s ease-in-out infinite 1s; opacity: 0.5; }
.tree-4 { right: -20px; height: 320px; animation: treeSway 10s ease-in-out infinite 1.5s; }

@keyframes treeSway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

/* Fairy Lights */
.fairy-lights-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fairy-light {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle,
        rgba(255, 248, 220, 1) 0%,
        rgba(212, 175, 55, 0.8) 30%,
        rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    animation: fairyGlow 3s ease-in-out infinite var(--delay),
               fairyFloat 6s ease-in-out infinite var(--delay);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5),
                0 0 20px rgba(212, 175, 55, 0.3),
                0 0 30px rgba(212, 175, 55, 0.1);
}

@keyframes fairyGlow {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes fairyFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

/* ===== ENVELOPE ===== */
.envelope-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.envelope {
    position: relative;
    width: 320px;
    height: 220px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Envelope Back */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #f5f0e6 0%,
        #e8e0d0 50%,
        #ddd5c5 100%);
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.envelope-back::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 3px;
}

/* Envelope Front (bottom flap) */
.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg,
        #e8e0d0 0%,
        #f5f0e6 30%,
        #faf8f3 100%);
    border-radius: 0 0 5px 5px;
    z-index: 3;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.envelope-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 115, 85, 0.3),
        transparent);
}

/* Envelope Flap (top triangle) */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    transform-origin: top center;
    transform-style: preserve-3d;
    z-index: 5;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-flap.open {
    transform: rotateX(180deg);
}

.flap-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        #f5f0e6 0%,
        #ebe3d3 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden;
}

.flap-inner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 145px solid transparent;
    border-right: 145px solid transparent;
    border-top: 105px solid transparent;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    opacity: 0.1;
}

/* Wax Seal on Flap */
.envelope-flap::after {
    content: 'E & A';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%,
        #c9453a 0%,
        #8b2d25 50%,
        #6b1f18 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Great Vibes', cursive;
    font-size: 14px;
    color: #f5e6d0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2),
                inset 0 2px 5px rgba(255, 255, 255, 0.1);
    z-index: 10;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    backface-visibility: hidden;
}

.envelope-flap.open::after {
    opacity: 0;
}

/* Letter */
.letter {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 180px;
    background: linear-gradient(180deg,
        #fdfcf9 0%,
        #f8f5ef 100%);
    border-radius: 3px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.letter.rise {
    transform: translateY(-120px);
}

.letter-content {
    padding: 25px 20px;
    text-align: center;
    color: var(--forest-dark);
}

.wax-seal {
    display: none;
}

.letter-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--soft-brown);
    margin-bottom: 8px;
}

.letter-names {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--forest-medium);
    margin-bottom: 5px;
    line-height: 1.2;
}

.letter-date {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--fairy-gold);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.leaf-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.leaf {
    width: 25px;
    height: 12px;
    background: var(--sage);
    opacity: 0.6;
}

.leaf.left {
    clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.leaf.right {
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.diamond {
    width: 8px;
    height: 8px;
    background: var(--fairy-gold);
    transform: rotate(45deg);
}

.letter-quote {
    font-style: italic;
    font-size: 12px;
    color: var(--moss-green);
    line-height: 1.4;
}

/* Open Button */
.open-envelope-btn {
    position: relative;
    z-index: 10;
    padding: 18px 45px;
    background: linear-gradient(135deg,
        var(--fairy-gold) 0%,
        var(--leaf-gold) 100%);
    border: none;
    border-radius: 30px;
    color: var(--forest-dark);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.4),
                0 0 0 2px rgba(212, 175, 55, 0.1);
}

.open-envelope-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5),
                0 0 0 3px rgba(212, 175, 55, 0.2);
}

.open-envelope-btn:active {
    transform: translateY(0) scale(0.98);
}

.open-envelope-btn .btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Welcome Hint */
.welcome-hint {
    position: absolute;
    bottom: 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    animation: hintPulse 3s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* ===== MAIN INVITATION ===== */
.invitation {
    background: var(--forest-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--forest-dark);
    text-align: center;
    padding: 60px 20px 15vh; /* Added bottom padding to push content up */
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(26, 47, 35, 0.6) 0%,
            rgba(26, 47, 35, 0.4) 50%,
            rgba(26, 47, 35, 0.7) 100%),
        radial-gradient(ellipse at center,
            transparent 0%,
            rgba(26, 47, 35, 0.3) 70%,
            rgba(26, 47, 35, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-forest-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.floating-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--sage);
    opacity: 0.3;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: leafFloat 15s ease-in-out infinite;
}

.leaf-1 { top: 20%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 60%; right: 15%; animation-delay: 5s; }
.leaf-3 { top: 80%; left: 20%; animation-delay: 10s; }

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.5; }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--fairy-gold);
    border-radius: 50%;
    animation: sparkleAnim 4s ease-in-out infinite;
}

.sparkle-1 { top: 30%; left: 25%; animation-delay: 0s; }
.sparkle-2 { top: 50%; right: 20%; animation-delay: 1.5s; }
.sparkle-3 { top: 70%; left: 30%; animation-delay: 3s; }

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    transform: translateY(-100px);
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(48px, 12vw, 80px);
    color: var(--cream);
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-names .ampersand {
    display: inline-block;
    margin: 0 15px;
    color: var(--fairy-gold);
    font-size: 0.8em;
}

.hero-nasi {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 4vw, 20px);
    color: var(--cream);
    margin-top: 10px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.branch {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage));
}

.branch.right {
    background: linear-gradient(90deg, var(--sage), transparent);
}

.hero-divider .heart {
    width: 12px;
    height: 12px;
    background: var(--fairy-gold);
    transform: rotate(45deg);
    position: relative;
}

.hero-divider .heart::before,
.hero-divider .heart::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--fairy-gold);
    border-radius: 50%;
}

.hero-divider .heart::before {
    top: -6px;
    left: 0;
}

.hero-divider .heart::after {
    top: 0;
    left: -6px;
}

.hero-date {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--fairy-gold);
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-venue {
    font-size: 18px;
    color: var(--cream);
    opacity: 0.8;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 180px; /* Moved up with hero content */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--fairy-gold);
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.scroll-indicator span {
    background: rgba(26, 47, 35, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--fairy-gold);
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.scroll-hint-animated {
    animation: fadeInUp 1s ease forwards 1.5s, pulseHint 2s ease-in-out infinite 2.5s;
}

@keyframes pulseHint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--fairy-gold);
    border-bottom: 3px solid var(--fairy-gold);
    transform: rotate(45deg);
    animation: scrollBounce 1s ease-in-out infinite;
}

.scroll-hand {
    font-size: 28px;
    animation: handBounce 1s ease-in-out infinite;
    margin-top: 5px;
}

@keyframes handBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 36px);
    text-align: center;
    color: var(--cream);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-leaf {
    width: 40px;
    height: 20px;
    background: var(--sage);
    opacity: 0.5;
}

.title-leaf.left {
    clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.title-leaf.right {
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.title-leaf.light {
    background: var(--cream);
}

/* Story Section */
.story-section {
    background: linear-gradient(180deg,
        var(--forest-dark) 0%,
        var(--forest-medium) 50%,
        var(--forest-dark) 100%);
}

.story-timeline {
    position: relative;
    padding-left: 40px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        var(--sage) 10%,
        var(--sage) 90%,
        transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--forest-dark);
    border: 2px solid var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    font-size: 14px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(125, 155, 118, 0.2);
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--fairy-gold);
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 13px;
    color: var(--sage);
    margin-bottom: 10px;
}

.timeline-content p:last-child {
    color: var(--cream);
    opacity: 0.9;
}

/* Details Section */
.details-section {
    background: var(--forest-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-card {
    background: linear-gradient(135deg,
        rgba(61, 90, 76, 0.3) 0%,
        rgba(45, 74, 62, 0.3) 100%);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(125, 155, 118, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.detail-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--fairy-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--fairy-gold);
}

.detail-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--cream);
    margin-bottom: 15px;
}

.detail-time {
    font-size: 18px;
    color: var(--fairy-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-location {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 5px;
}

.detail-address {
    font-size: 14px;
    color: #ffffff;
}

.detail-note {
    font-size: 13px;
    color: var(--cream);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-style: italic;
    line-height: 1.5;
}

/* Schedule Section */
.schedule-section {
    background: linear-gradient(180deg,
        var(--forest-dark) 0%,
        rgba(45, 74, 62, 0.5) 50%,
        var(--forest-dark) 100%);
}

.schedule-path {
    max-width: 600px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.schedule-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.schedule-time {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--fairy-gold);
    min-width: 70px;
    text-align: right;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    background: var(--sage);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.schedule-dot::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--sage), transparent);
}

.schedule-item:last-child .schedule-dot::after {
    display: none;
}

.schedule-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--cream);
    margin-bottom: 5px;
}

.schedule-content p {
    font-size: 14px;
    color: var(--sage);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.gallery-item.animate-in {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 47, 35, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--cream);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 10px 25px;
    border: 1px solid var(--cream);
    border-radius: 25px;
}

/* Location Section */
.location-section {
    background: linear-gradient(180deg,
        var(--forest-dark) 0%,
        var(--forest-medium) 100%);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.location-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.location-info.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.location-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--fairy-gold);
    margin-bottom: 15px;
}

.location-info > p {
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.8;
}

.location-details {
    margin-bottom: 25px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--cream);
}

.location-icon {
    font-size: 18px;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--fairy-gold);
    border-radius: 30px;
    color: var(--fairy-gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.directions-btn:hover {
    background: var(--fairy-gold);
    color: var(--forest-dark);
}

.directions-btn svg {
    width: 18px;
    height: 18px;
}

.location-map {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.location-map.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.location-map iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 15px;
    filter: grayscale(30%) contrast(1.1);
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(180deg,
        var(--forest-medium) 0%,
        var(--forest-dark) 100%);
    text-align: center;
}

.section-title.light {
    color: var(--cream);
}

.rsvp-subtitle {
    font-size: 18px;
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 40px;
}

.rsvp-subtitle strong {
    color: var(--fairy-gold);
}

.rsvp-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    border-radius: 15px;
    border: 1px solid rgba(125, 155, 118, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.rsvp-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rsvp-card:hover {
    transform: translateY(-5px);
    border-color: var(--fairy-gold);
    background: rgba(255, 255, 255, 0.08);
}

.rsvp-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--fairy-gold);
}

.rsvp-icon.whatsapp svg {
    fill: #25D366;
    stroke: none;
}

.rsvp-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--cream);
    margin-bottom: 5px;
}

.rsvp-card p {
    font-size: 14px;
    color: var(--sage);
}

/* RSVP Form */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(125, 155, 118, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.rsvp-form.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--fairy-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(125, 155, 118, 0.3);
    border-radius: 10px;
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 240, 230, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fairy-gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.form-group select option {
    background: var(--forest-dark);
    color: var(--cream);
}

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

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--fairy-gold) 0%, var(--leaf-gold) 100%);
    border: none;
    border-radius: 30px;
    color: var(--forest-dark);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

/* RSVP Success Message */
.rsvp-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid var(--fairy-gold);
    max-width: 500px;
    margin: 0 auto;
    animation: successPop 0.5s ease;
}

.rsvp-success.show {
    display: block;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--fairy-gold) 0%, var(--leaf-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--forest-dark);
    margin: 0 auto 20px;
}

.rsvp-success h3 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--fairy-gold);
    margin-bottom: 15px;
}

.rsvp-success p {
    color: var(--cream);
    font-size: 16px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rsvp-form {
        padding: 25px 20px;
    }
}

/* Footer */
.footer {
    background: var(--forest-dark);
    padding: 60px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: var(--cream);
    margin-bottom: 10px;
}

.footer-date {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--fairy-gold);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-hearts span {
    width: 8px;
    height: 8px;
    background: var(--sage);
    border-radius: 50%;
}

.footer-message {
    font-size: 16px;
    color: var(--cream);
    opacity: 0.7;
}

.footer-forest {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.footer-tree {
    width: 80px;
    height: 100%;
    background: linear-gradient(to top,
        rgba(10, 21, 16, 0.8),
        transparent);
    clip-path: polygon(50% 0%, 20% 100%, 80% 100%);
    opacity: 0.3;
}

/* Image Modal */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 16, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--cream);
    border-radius: 50%;
    color: var(--cream);
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--cream);
    color: var(--forest-dark);
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active #modal-image {
    transform: scale(1);
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--forest-medium);
    border: 2px solid var(--fairy-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.music-control:hover {
    transform: scale(1.1);
    background: var(--fairy-gold);
}

.music-icon {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .envelope {
        width: 280px;
        height: 190px;
    }

    .letter {
        height: 155px;
    }

    .letter-names {
        font-size: 26px;
    }

    .letter-subtitle {
        font-size: 10px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        order: -1;
    }

    .rsvp-options {
        flex-direction: column;
        align-items: center;
    }

    .rsvp-card {
        width: 100%;
        max-width: 280px;
    }

    .story-timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
        width: 26px;
        height: 26px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .schedule-time {
        text-align: left;
    }

    .schedule-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .envelope {
        width: 260px;
        height: 175px;
    }

    .letter {
        top: 12px;
        left: 12px;
        right: 12px;
        height: 145px;
    }

    .letter-content {
        padding: 20px 15px;
    }

    .letter-names {
        font-size: 24px;
    }

    .open-envelope-btn {
        padding: 12px 25px;
        font-size: 12px;
    }

    .section-title {
        flex-direction: column;
        gap: 10px;
    }

    .title-leaf {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
