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

        :root {
            --primary: #D88181;
            --secondary: #F4A7B9;
            --accent: #FFEDF0;
            --dark: #5D3E3E;
            --light: #FFF9FA;
            --gold: #D4AF37;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background: var(--light);
            color: var(--dark);
            overflow-x: hidden;
            scroll-behavior: smooth;
            width: 100%;
            position: relative;
        }

        body.no-scroll {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }
        ::-webkit-scrollbar-track {
            background: var(--light);
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--primary), var(--secondary));
            border-radius: 5px;
        }

        /* Loading Screen dengan animasi yang lebih kompleks */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.8s ease, visibility 0.8s;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-content {
            text-align: center;
            color: var(--secondary);
            position: relative;
        }

        .loader-ring {
            width: 100px;
            height: 100px;
            border: 4px solid rgba(212, 175, 55, 0.3);
            border-top: 4px solid var(--secondary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
            position: relative;
        }

        .loader-ring::before {
            content: '❤';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            color: var(--secondary);
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.2); }
        }

        /* Opening Overlay dengan efek parallax dan ornamen */
        .opening-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            height: 100vh;
            height: 100dvh;
            background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(139, 69, 19, 0.95) 100%);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
            overflow: hidden;
        }

        .opening-overlay::before,
        .opening-overlay::after {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            border: 2px solid rgba(212, 175, 55, 0.2);
            border-radius: 50%;
            animation: rotate 20s linear infinite;
        }

        .opening-overlay::before {
            top: -100px;
            left: -100px;
        }

        .opening-overlay::after {
            bottom: -100px;
            right: -100px;
            animation-direction: reverse;
        }

        .opening-overlay.opened {
            transform: translateY(-100%);
        }

        .opening-content {
            text-align: center;
            color: var(--light);
            padding: 40px 20px;
            max-width: 500px;
            width: 100%;
            position: relative;
            z-index: 10;
        }

        .opening-ornament {
            font-size: 3rem;
            color: var(--secondary);
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }

        .opening-content h2 {
            font-family: 'Dancing Script', cursive;
            font-size: 3.5rem;
            color: var(--secondary);
            margin-bottom: 20px;
            animation: fadeInUp 1s ease;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .opening-content p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            opacity: 0.9;
            animation: fadeInUp 1s ease 0.3s both;
        }

        .btn-open {
            background: transparent;
            border: 2px solid var(--secondary);
            color: var(--secondary);
            padding: 15px 40px;
            font-size: 1.1rem;
            cursor: pointer;
            border-radius: 50px;
            transition: all 0.4s ease;
            animation: fadeInUp 1s ease 0.6s both;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: 2px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .btn-open::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn-open:hover::before {
            left: 100%;
        }

        .btn-open:hover {
            background: var(--secondary);
            color: var(--dark);
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
        }

        /* Floating Petals Animation */
        .petals-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 999;
            overflow: hidden;
        }

        .petal {
            position: absolute;
            width: 15px;
            height: 15px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            border-radius: 50% 0 50% 50%;
            opacity: 0.6;
            animation: fall linear infinite;
        }

        @keyframes fall {
            0% {
                transform: translateY(-100vh) rotate(0deg) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 0.6;
            }
            90% {
                opacity: 0.6;
            }
            100% {
                transform: translateY(100vh) rotate(720deg) translateX(100px);
                opacity: 0;
            }
        }

        /* Navigation dengan efek glassmorphism yang lebih baik */
        nav {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(255, 255, 255, 0.95);
            padding: 15px 30px;
            border-radius: 50px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            z-index: 1000;
            backdrop-filter: blur(10px);
            display: flex;
            gap: 30px;
            opacity: 0;
            transition: all 0.5s ease;
            width: max-content;
            max-width: 90vw;
        }

        nav.visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        nav a {
            color: var(--primary);
            text-decoration: none;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            position: relative;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        nav a:hover {
            color: var(--secondary);
            transform: translateY(-5px);
            background: rgba(216, 129, 129, 0.1);
        }

        nav a.active {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(216, 129, 129, 0.4);
        }

        nav a::after {
            content: attr(title);
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--dark);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.7rem;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        nav a:hover::after {
            opacity: 1;
            bottom: -35px;
        }

        /* Hero Section dengan animasi yang lebih dinamis */
        .hero {
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #5D3A1A 100%);
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23F4A7B9" stroke-width="0.5" opacity="0.1"/></svg>');
            background-size: 100px;
            animation: float 20s infinite linear;
        }

        .hero-ornament {
            position: absolute;
            font-size: 4rem;
            color: rgba(244, 167, 185, 0.2);
            animation: float 6s ease-in-out infinite;
        }

        .hero-ornament:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
        .hero-ornament:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
        .hero-ornament:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }
        .hero-ornament:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 3s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }

        .hero-content {
            text-align: center;
            color: var(--light);
            z-index: 2;
            position: relative;
            padding: 20px;
        }

        .hero-subtitle {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            letter-spacing: 5px;
            text-transform: uppercase;
            margin-bottom: 20px;
            opacity: 0;
            animation: fadeInUp 1s ease 0.5s forwards;
        }

        .hero-names {
            font-family: 'Dancing Script', cursive;
            font-size: 5.5rem;
            color: var(--secondary);
            margin: 20px 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
            opacity: 0;
            animation: fadeInUp 1s ease 0.8s forwards;
            position: relative;
            display: inline-block;
        }

        .hero-names::before,
        .hero-names::after {
            content: '❦';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2rem;
            color: var(--secondary);
            opacity: 0;
            animation: fadeIn 1s ease 1.5s forwards;
        }

        .hero-names::before { left: -50px; }
        .hero-names::after { right: -50px; }

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

        .hero-date {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.8rem;
            margin-top: 20px;
            opacity: 0;
            animation: fadeInUp 1s ease 1.1s forwards;
            font-weight: 600;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            color: var(--secondary);
            font-size: 2rem;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .scroll-indicator:hover {
            transform: translateX(-50%) scale(1.2);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-20px); }
            60% { transform: translateX(-50%) translateY(-10px); }
        }

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

        /* Couple Section dengan card 3D effect */
        .couple {
            background: var(--light);
            position: relative;
        }

        .couple::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(to bottom, rgba(93, 62, 62, 0.1), transparent);
        }

        .couple-container {
            max-width: 1200px;
            width: 100%;
            text-align: center;
            padding: 0 20px;
        }

        .section-title {
            font-family: 'Dancing Script', cursive;
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 60px;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--secondary), transparent);
        }

        .section-title::before {
            content: '❦';
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.5rem;
            color: var(--secondary);
        }

        .couple-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 40px;
            align-items: center;
            margin-top: 40px;
            perspective: 1000px;
        }

        .couple-card {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(50px) rotateY(-10deg);
            position: relative;
            overflow: hidden;
        }

        .couple-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: rotate(45deg);
            transition: all 0.5s;
        }

        .couple-card:hover::before {
            left: 100%;
        }

        .couple-card.visible {
            opacity: 1;
            transform: translateY(0) rotateY(0);
        }

        .couple-card:hover {
            transform: translateY(-10px) rotateY(5deg);
            box-shadow: 0 30px 80px rgba(0,0,0,0.15);
        }

        .couple-avatar {
            width: 150px;
            height: 150px;
            background: linear-gradient(135deg, var(--accent), var(--secondary));
            border-radius: 50%;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: white;
            position: relative;
            overflow: hidden;
            border: 5px solid white;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .couple-avatar::after {
            content: '';
            position: absolute;
            inset: -10px;
            border: 2px solid var(--secondary);
            border-radius: 50%;
            animation: ripple 2s linear infinite;
        }

        @keyframes ripple {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.2); opacity: 0; }
        }

        .couple-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .couple-details {
            color: #666;
            line-height: 1.8;
            font-size: 0.95rem;
        }

        .couple-details strong {
            color: var(--primary);
            display: block;
            margin-top: 10px;
            position: relative;
            display: inline-block;
        }

        .couple-details strong::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--secondary), transparent);
        }

        .heart-divider {
            font-size: 3rem;
            color: var(--secondary);
            animation: heartbeat 1.5s ease-in-out infinite;
            position: relative;
        }

        .heart-divider::before,
        .heart-divider::after {
            content: '✿';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            color: var(--primary);
            opacity: 0.5;
        }

        .heart-divider::before { left: -30px; }
        .heart-divider::after { right: -30px; }

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

        /* Event Section dengan efek timeline */
        .event {
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
            color: var(--light);
            position: relative;
            overflow: hidden;
        }

        .event::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q40,30 50,50 T80,50" fill="none" stroke="%23F4A7B9" stroke-width="0.5" opacity="0.2"/></svg>');
            background-size: 200px;
            animation: drift 20s linear infinite;
        }

        @keyframes drift {
            0% { transform: translateX(0); }
            100% { transform: translateX(-200px); }
        }

        .event-container {
            max-width: 1000px;
            width: 100%;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .event-title {
            font-family: 'Dancing Script', cursive;
            font-size: 4rem;
            color: var(--secondary);
            margin-bottom: 50px;
            position: relative;
            display: inline-block;
        }

        .event-title::before,
        .event-title::after {
            content: '◆';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            color: var(--secondary);
        }

        .event-title::before { left: -40px; }
        .event-title::after { right: -40px; }

        .event-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
            width: 100%;
            padding: 0 10px;
        }

        .event-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 20px;
            padding: 40px 30px;
            transition: all 0.4s ease;
            opacity: 0;
            transform: scale(0.9) translateY(30px);
            position: relative;
            overflow: hidden;
        }

        .event-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.5s;
        }

        .event-card:hover::before {
            left: 100%;
        }

        .event-card.visible {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        .event-card:hover {
            transform: translateY(-10px) scale(1.02);
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--secondary);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .event-icon {
            font-size: 3rem;
            color: var(--secondary);
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .event-icon::after {
            content: '';
            position: absolute;
            inset: -10px;
            border: 2px solid var(--secondary);
            border-radius: 50%;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s;
        }

        .event-card:hover .event-icon::after {
            opacity: 0.3;
            transform: scale(1.2);
        }

        .event-type {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--light);
            font-weight: 600;
        }

        .event-detail {
            margin: 15px 0;
            font-size: 1.1rem;
            transition: transform 0.3s;
        }

        .event-card:hover .event-detail {
            transform: translateX(5px);
        }

        .event-detail i {
            color: var(--secondary);
            margin-right: 10px;
            width: 20px;
            transition: transform 0.3s;
        }

        .event-card:hover .event-detail i {
            transform: scale(1.2);
        }

        /* Countdown dengan efek flip */
        .countdown {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .countdown-item {
            background: rgba(212, 175, 55, 0.2);
            border: 2px solid var(--secondary);
            border-radius: 15px;
            padding: 20px;
            min-width: 80px;
            backdrop-filter: blur(5px);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s;
        }

        .countdown-item:hover {
            transform: translateY(-5px);
        }

        .countdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .countdown-item:hover::before {
            opacity: 1;
        }

        .countdown-number {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.5rem;
            color: var(--secondary);
            display: block;
            font-weight: 700;
            transition: transform 0.3s;
        }

        .countdown-item:hover .countdown-number {
            transform: scale(1.1);
        }

        .countdown-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 5px;
        }

        /* Location Section dengan map interaktif */
        .location {
            background: var(--light);
            position: relative;
        }

        .location::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 150px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23D88181"/></svg>');
            background-size: cover;
        }

        .location-container {
            max-width: 1000px;
            width: 100%;
            text-align: center;
            padding-top: 100px;
        }

        .map-container {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            margin-top: 40px;
            position: relative;
            min-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
            opacity: 0;
            transform: translateY(30px) scale(0.95);
            transition: all 0.6s ease;
            max-width: 100%;
        }

        .map-container.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .map-container iframe {
            width: 100%;
            height: 400px;
            display: block;
            border: none;
        }

        .map-placeholder {
            text-align: center;
            color: #666;
            padding: 40px;
        }

        .map-placeholder i {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 20px;
            animation: bounce 2s infinite;
        }

        .btn-map {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 30px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-map::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn-map:hover::before {
            left: 100%;
        }

        .btn-map:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(216, 129, 129, 0.4);
        }

        .address-box {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-top: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-left: 5px solid var(--secondary);
            text-align: left;
            opacity: 0;
            transform: translateX(-30px);
            transition: all 0.6s ease;
            word-wrap: break-word;
            max-width: 100%;
            position: relative;
        }

        .address-box::before {
            content: '❝';
            position: absolute;
            top: -10px;
            right: 20px;
            font-size: 4rem;
            color: var(--accent);
            opacity: 0.5;
            font-family: serif;
        }

        .address-box.visible {
            opacity: 1;
            transform: translateX(0);
        }

        /* Gallery dengan lightbox dan masonry layout */
        .gallery {
            background: white;
            position: relative;
        }

        .gallery-container {
            max-width: 1200px;
            width: 100%;
            text-align: center;
            padding: 0 20px;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .gallery-item {
            height: 300px;
            background: linear-gradient(135deg, var(--accent), var(--secondary));
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: all 0.4s ease;
            opacity: 0;
            transform: scale(0.8) rotate(-5deg);
        }

        .gallery-item.visible {
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        .gallery-item:hover {
            transform: scale(1.05) rotate(2deg);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            z-index: 10;
        }

        .gallery-item::after {
            content: '\f002';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            font-size: 2rem;
            color: white;
            opacity: 0;
            transition: all 0.3s;
            background: rgba(0,0,0,0.5);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-item:hover::after {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

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

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

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            transform: scale(0.8);
            transition: transform 0.3s;
        }

        .lightbox.active img {
            transform: scale(1);
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 3rem;
            color: white;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .lightbox-close:hover {
            transform: rotate(90deg);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 3rem;
            color: white;
            cursor: pointer;
            padding: 20px;
            transition: all 0.3s;
            opacity: 0.7;
        }

        .lightbox-nav:hover {
            opacity: 1;
            transform: translateY(-50%) scale(1.2);
        }

        .lightbox-prev { left: 20px; }
        .lightbox-next { right: 20px; }

        /* RSVP Section dengan form yang lebih menarik */
        .rsvp {
            background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
            position: relative;
            overflow: hidden;
        }

        .rsvp::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(244, 167, 185, 0.2) 0%, transparent 70%);
            border-radius: 50%;
        }

        .rsvp-container {
            max-width: 600px;
            width: 100%;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .rsvp-subtitle {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 30px;
        }

        .alert-success {
            background: rgba(76, 175, 80, 0.1);
            border: 2px solid #4CAF50;
            color: #2E7D32;
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-weight: 500;
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-success i {
            font-size: 1.3rem;
        }

        .rsvp-form {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            text-align: left;
            opacity: 0;
            transform: translateY(30px);
            position: relative;
        }

        .rsvp-form::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 20px 20px 0 0;
        }

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

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s;
        }

        .form-group:focus-within label {
            color: var(--primary);
        }

        .form-group label i {
            color: var(--primary);
            margin-right: 8px;
            width: 20px;
            transition: transform 0.3s;
        }

        .form-group:focus-within label i {
            transform: scale(1.2);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(216, 129, 129, 0.1);
            transform: translateY(-2px);
        }

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

        .error-message {
            display: block;
            color: #e74c3c;
            font-size: 0.85rem;
            margin-top: 5px;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        .btn-submit {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn-submit:hover::before {
            left: 100%;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(216, 129, 129, 0.4);
        }

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

        /* RSVP List dengan card yang lebih menarik */
        .rsvp-list {
            margin-top: 60px;
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            opacity: 0;
            transform: translateY(30px);
            max-height: 600px;
            overflow-y: auto;
        }

        .rsvp-list.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .rsvp-list-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 30px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .rsvp-list-title i {
            color: var(--secondary);
        }

        .rsvp-items {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .rsvp-item {
            background: var(--accent);
            padding: 20px;
            border-radius: 15px;
            border-left: 4px solid var(--secondary);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .rsvp-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            transform: translateX(-100%);
            transition: transform 0.5s;
        }

        .rsvp-item:hover::before {
            transform: translateX(100%);
        }

        .rsvp-item:hover {
            transform: translateX(10px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .rsvp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .rsvp-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.2rem;
            color: var(--primary);
            font-weight: 600;
        }

        .rsvp-time {
            font-size: 0.85rem;
            color: #999;
            font-style: italic;
        }

        .rsvp-message {
            color: #666;
            line-height: 1.6;
            font-size: 0.95rem;
            position: relative;
            padding-left: 15px;
        }

        .rsvp-message::before {
            content: '"';
            position: absolute;
            left: 0;
            top: -5px;
            font-size: 1.5rem;
            color: var(--secondary);
            opacity: 0.5;
        }

        /* Footer dengan wave animation */
        footer {
            background: var(--dark);
            color: var(--light);
            text-align: center;
            padding: 60px 20px 40px;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23FFF9FA"/></svg>');
            background-size: cover;
        }

        .footer-quote {
            font-family: 'Dancing Script', cursive;
            font-size: 2.2rem;
            color: var(--secondary);
            margin-bottom: 30px;
            position: relative;
            padding: 0 20px;
        }

        .footer-quote::before,
        .footer-quote::after {
            content: '❝';
            position: absolute;
            font-size: 3rem;
            opacity: 0.3;
            color: var(--secondary);
        }

        .footer-quote::before {
            top: -20px;
            left: -10px;
        }

        .footer-quote::after {
            content: '❞';
            bottom: -40px;
            right: -10px;
        }

        .footer-text {
            opacity: 0.9;
            font-size: 0.95rem;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.8;
        }

        .footer-signature {
            margin-top: 30px;
            font-family: 'Dancing Script', cursive;
            font-size: 2rem;
            color: var(--secondary);
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { text-shadow: 0 0 5px rgba(244, 167, 185, 0.5); }
            to { text-shadow: 0 0 20px rgba(244, 167, 185, 0.8), 0 0 30px rgba(244, 167, 185, 0.6); }
        }

        .footer-copyright {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(212, 175, 55, 0.2);
            font-size: 0.8rem;
            opacity: 0.6;
            letter-spacing: 1px;
        }

        .footer-copyright i {
            color: #e74c3c;
            animation: heartbeat 1s infinite;
        }

        /* Music Control dengan efek yang lebih menarik */
        .music-control {
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            z-index: 1100;
            transition: all 0.3s ease;
            border: 3px solid white;
        }

        .music-control::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid var(--secondary);
            animation: pulse-ring 2s infinite;
        }

        @keyframes pulse-ring {
            0% { transform: scale(1); opacity: 0.7; }
            100% { transform: scale(1.6); opacity: 0; }
        }

        .music-control:hover {
            transform: scale(1.1) rotate(10deg);
        }

        .music-control i {
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s;
        }

        .music-control.playing {
            animation: rotate 3s linear infinite;
        }

        .music-control.playing i {
            animation: bounce 0.5s infinite alternate;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
            contain: strict;
        }

        .particle {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--secondary);
            border-radius: 50%;
            opacity: 0.3;
            animation: float-particle 15s infinite;
        }

        @keyframes float-particle {
            0%, 100% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.3;
            }
            100% {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-names {
                font-size: 3rem;
            }

            .hero-names::before,
            .hero-names::after {
                display: none;
            }

            .couple-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .heart-divider {
                transform: rotate(90deg);
                margin: 20px 0;
            }

            .event-grid {
                grid-template-columns: 1fr;
            }

            nav {
                gap: 15px;
                padding: 12px 20px;
                bottom: 20px;
            }

            nav a {
                font-size: 1rem;
                width: 35px;
                height: 35px;
            }

            .countdown {
                gap: 10px;
            }

            .countdown-item {
                min-width: 60px;
                padding: 15px;
            }

            .countdown-number {
                font-size: 1.8rem;
            }

            .music-control {
                width: 50px;
                height: 50px;
                bottom: 90px;
                right: 20px;
            }

            .section-title {
                font-size: 3rem;
            }

            .opening-content h2 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 480px) {
            .opening-content {
                padding: 20px;
            }

            .opening-content h2 {
                font-size: 2rem;
            }

            .rsvp-form,
            .rsvp-list {
                padding: 25px;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Guest name styling */
        .guest-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.5rem;
            margin: 20px 0;
            color: var(--secondary);
            position: relative;
            display: inline-block;
            padding: 10px 20px;
            border: 2px solid rgba(244, 167, 185, 0.3);
            border-radius: 10px;
            background: rgba(0,0,0,0.2);
        }

        .guest-name strong {
            font-size: 2rem;
            display: block;
            margin-top: 5px;
            color: white;
        }

        /* Save the Date Badge */
        .save-date {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            z-index: 999;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            transform: translateX(150%);
            transition: transform 0.5s ease;
            cursor: pointer;
        }

        .save-date.visible {
            transform: translateX(0);
        }

        .save-date:hover {
            transform: translateX(0) scale(1.05);
        }

        /* Floating hearts animation */
        .floating-hearts {
            position: fixed;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .floating-heart {
            position: absolute;
            color: var(--secondary);
            opacity: 0.3;
            animation: float-up 10s infinite;
            font-size: 1.5rem;
        }

        @keyframes float-up {
            0% {
                transform: translateY(100vh) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.3;
            }
            100% {
                transform: translateY(-100vh) scale(1.5);
                opacity: 0;
            }
        }


/* ==========================================
   ANIMATIONS FOR REALTIME RSVP
   ========================================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.alert-success,
.alert-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
