:root {
            --vh: 1vh;
            --section-content-height: auto;
            --section-content-max-width: 550px;
            --section-padding: 2vh;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Crimson Text', serif;
            background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
            overflow-x: hidden;
        }

        /* Landing Page */
        .landing-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            height: calc(var(--vh, 1vh) * 100);
            background: #1a0a00;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: all 1.5s ease-in-out;
            overflow: hidden;
        }

        .bg-video-landing {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            object-fit: cover;
            z-index: 0;
            filter: brightness(0.45) sepia(0.4);
        }

        .landing-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(160deg, rgba(44,14,0,0.7) 0%, rgba(100,40,10,0.5) 60%, rgba(139,69,19,0.4) 100%);
            z-index: 1;
        }

        .landing-content {
            text-align: center;
            color: #F5DEB3;
            background: rgba(0, 0, 0, 0.35);
            padding: 50px 40px;
            border-radius: 24px;
            border: 2px solid rgba(210, 105, 30, 0.6);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            max-width: 480px;
            width: calc(100% - 40px);
            position: relative;
            z-index: 2;
            box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
        }

        .landing-content::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 100px;
            height: 100px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L50 90 L40 30 Z" fill="%23D2691E" opacity="0.3"/></svg>');
            animation: float 3s ease-in-out infinite;
        }

        .landing-content::after {
            content: '';
            position: absolute;
            bottom: -50px;
            right: -50px;
            width: 100px;
            height: 100px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L50 90 L40 30 Z" fill="%23D2691E" opacity="0.3"/></svg>');
            animation: float 3s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(10deg);
            }
        }

        .wayang-ornament {
            width: 80px;
            height: 120px;
            margin: 0 auto 20px;
            background: linear-gradient(45deg, #8B4513, #D2691E, #F4A460);
            clip-path: polygon(50% 0%, 70% 25%, 50% 95%, 30% 25%);
            position: relative;
            animation: glow 2s ease-in-out infinite alternate;
        }

        .wayang-ornament::before {
            content: '🛕';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            opacity: 0.8;
        }

        @keyframes glow {
            from { box-shadow: 0 0 20px rgba(210, 105, 30, 0.5); }
            to { box-shadow: 0 0 40px rgba(210, 105, 30, 0.8); }
        }

        .landing-subtitle {
            font-family: 'Playfair Display', serif;
            font-size: 0.85rem;
            letter-spacing: 5px;
            text-transform: uppercase;
            margin-bottom: 12px;
            color: #D2691E;
            opacity: 0.9;
        }

        .landing-title {
            font-family: 'Playfair Display', serif;
            font-size: 3.2rem;
            font-weight: 900;
            margin: 6px 0 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            background: linear-gradient(180deg, #F5DEB3, #FFD700, #F5DEB3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .landing-javanese {
            font-family: 'Crimson Text', serif;
            font-size: 1rem;
            font-style: italic;
            color: rgba(245, 222, 179, 0.7);
            margin-bottom: 18px;
            letter-spacing: 2px;
        }

        .landing-invite-text {
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 24px;
            opacity: 0.85;
        }

        .guest-name {
            font-size: 1.05rem;
            margin: 16px 0;
            color: rgba(245, 222, 179, 0.75);
            font-style: italic;
            border-top: 1px solid rgba(210,105,30,0.3);
            border-bottom: 1px solid rgba(210,105,30,0.3);
            padding: 14px 0;
        }
        .guest-name span {
            display: block;
            font-size: 1.25rem;
            font-weight: 700;
            color: #FFD700;
            font-style: normal;
            margin-top: 4px;
        }

        .progress-container {
            background: rgba(255, 255, 255, 0.2);
            height: 8px;
            border-radius: 10px;
            margin: 30px 0;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #D2691E, #F4A460);
            border-radius: 10px;
            width: 0%;
            transition: width 0.5s ease;
            animation: progressFlow 3s ease-in-out infinite;
        }

        @keyframes progressFlow {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .open-btn {
            background: linear-gradient(45deg, #8B4513, #D2691E);
            color: #F5DEB3;
            border: none;
            padding: 15px 30px;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
            position: relative;
            overflow: hidden;
        }

        .open-btn::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;
        }

        .open-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(139, 69, 19, 0.4);
        }

        .open-btn:hover::before {
            left: 100%;
        }

        /* Main Content - Full viewport scroll container */
        .main-content {
            display: none;
            background: #1a0a00;
            position: relative;
            scroll-snap-type: y mandatory;
            overflow-y: auto;
            overflow-x: hidden;
            height: 100vh;
            height: calc(var(--vh, 1vh) * 100);
            scroll-behavior: smooth;
        }

        .main-content.show {
            display: block;
            animation: reveaFromBottom 1.5s ease-out;
        }

        @keyframes reveaFromBottom {
            from {
                transform: translateY(100vh);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Progress Bar di Top */
        .top-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 5px;
            background: linear-gradient(90deg, #D2691E, #F4A460);
            z-index: 9998;
            box-shadow: 0 0 10px rgba(210, 105, 30, 0.5);
            display: none;
            transition: width 0.3s ease-out;
        }

        .top-progress-bar.show {
            display: block;
        }

        /* Floating Wayang Background - hidden when videos present */
        .wayang-bg {
            display: none;
        }

        /* Section Dots Navigator */
        .section-dots {
            position: fixed;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }
        .section-dots.show {
            display: flex;
        }
        .section-dots .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(245, 222, 179, 0.4);
            border: 2px solid rgba(210, 105, 30, 0.7);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .section-dots .dot.active,
        .section-dots .dot:hover {
            background: #D2691E;
            transform: scale(1.4);
        }

        /* Music Control */
        .music-control {
            position: fixed;
            top: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #8B4513, #D2691E);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
        }

        .music-control.show {
            display: flex;
            animation: bounceIn 1s ease-out;
        }

        @keyframes bounceIn {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .music-control:hover {
            transform: scale(1.1);
        }

        .music-control::before {
            content: '🎵';
            font-size: 24px;
            animation: musicNote 2s ease-in-out infinite;
        }

        @keyframes musicNote {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        /* Sections - Consistent Height */
        .section {
            min-height: 100vh;
            min-height: calc(var(--vh, 1vh) * 100);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 2;
            padding: 20px;
            scroll-snap-align: start;
            overflow: hidden;
            width: 100vw;
            max-width: 100%;
        }

        .section-content {
            width: 100%;
            max-width: var(--section-content-max-width);
            min-height: var(--section-content-height);
            max-height: 92vh;
            text-align: center;
            background: rgba(255, 255, 255, 0.95);
            padding: var(--section-padding);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            border: 2px solid #D2691E;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }

        .section-content::-webkit-scrollbar {
            display: none; /* Chrome/Safari/Opera */
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            color: #8B4513;
            margin-bottom: 1.5vh;
            position: relative;
            flex-shrink: 0;
        }

        .section-title::after {
            content: '';
            width: 80px;
            height: 2px;
            background: linear-gradient(90deg, #8B4513, #D2691E);
            display: block;
            margin: 1vh auto 0;
        }

        /* Quote Section */
        .quote-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            font-style: italic;
            color: #8B4513;
            margin: 2vh 0;
            line-height: 1.6;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quote-source {
            font-size: 1rem;
            color: #D2691E;
            margin-top: 2vh;
            flex-shrink: 0;
        }

        /* Mempelai Section - Fixed Layout */
        .couple-container {
            display: flex;
            flex-direction: column;
            gap: 1.5vh;
            align-items: center;
            margin: 2vh 0;
            flex-grow: 1;
            justify-content: center;
        }

        .couple-row {
            display: flex;
            align-items: stretch;
            gap: 30px;
            width: 100%;
            justify-content: center;
        }

        .bride-groom {
            text-align: center;
            padding: 15px;
            background: linear-gradient(45deg, rgba(139, 69, 19, 0.1), rgba(210, 105, 30, 0.1));
            border-radius: 15px;
            border: 2px solid #D2691E;
            flex: 1;
            max-width: 250px;
            min-height: 280px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .couple-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 10px;
            background: #D2691E;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            border: 5px solid #8B4513;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .couple-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .couple-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            color: #8B4513;
            margin-bottom: 10px;
        }

        .couple-parents {
            color: #5D4037;
            line-height: 1.6;
        }

        .couple-divider {
            font-size: 1.5rem;
            color: #D2691E;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
        }

        /* Gallery - Horizontal Scroll */
        .gallery-container {
            position: relative;
            margin: 3vh 0;
            flex-grow: 1;
        }

        .gallery-grid {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            margin: 2vh 0;
            padding: 10px 0;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: #D2691E rgba(0,0,0,0.1);
        }

        .gallery-grid::-webkit-scrollbar {
            height: 8px;
        }

        .gallery-grid::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }

        .gallery-grid::-webkit-scrollbar-thumb {
            background: #D2691E;
            border-radius: 10px;
        }

        .gallery-item {
            flex: 0 0 250px;
            height: 250px;
            background: #D2691E;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            scroll-snap-align: center;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-scroll-hint {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(139, 69, 19, 0.8);
            color: white;
            padding: 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            opacity: 0.7;
            animation: fadeInOut 2s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 0.3; }
        }

        /* Video Section */
        .video-container {
            margin: 3vh 0;
            flex-grow: 1;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Map Section */
        .map-container {
            margin: 3vh 0;
            flex-grow: 1;
        }

        .map-wrapper {
            position: relative;
            width: 100%;
            height: 250px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }

        .map-wrapper iframe {
            width: 100%;
            height: 100%;
        }

        /* Gift Section */
        .gift-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 3vh 0;
            flex-wrap: wrap;
            flex-grow: 1;
            align-items: center;
        }

        .gift-btn {
            background: linear-gradient(45deg, #8B4513, #D2691E);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gift-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
        }

        /* Modal/Popup */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        .modal.show {
            display: flex;
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            max-width: 400px;
            position: relative;
            animation: modalSlideIn 0.3s ease-out;
            margin: 20px;
        }

        @keyframes modalSlideIn {
            from {
                transform: scale(0.8) translateY(50px);
                opacity: 0;
            }
            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #8B4513;
        }

        .bank-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: #D2691E;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        .bank-info {
            background: #F5E6D3;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .copy-btn {
            background: #8B4513;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px;
            transition: all 0.3s ease;
        }

        .copy-btn:hover {
            background: #D2691E;
        }

        /* Countdown */
        .countdown {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 2vh 0;
            flex-grow: 1;
            align-items: center;
        }

        .countdown-item {
            background: linear-gradient(45deg, #8B4513, #D2691E);
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
        }

        .countdown-number {
            font-size: 1.5rem;
            font-weight: bold;
            color: #8B4513;
        }

        .rsvp-form {
            background: #F5E6D3;
            padding: 15px;
            border-radius: 15px;
            margin-top: 1vh;
            flex-grow: 1;
        }

        .form-group {
            margin-bottom: 10px;
            text-align: left;
        }
 
        .form-group label {
            display: block;
            margin-bottom: 3px;
            font-weight: bold;
            color: #8B4513;
            font-size: 0.9rem;
        }
 
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #D2691E;
            border-radius: 8px;
            font-family: inherit;
            background: white;
            font-size: 0.9rem;
        }

        .form-group textarea {
            height: 100px;
            resize: vertical;
        }

        .radio-group {
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
        }

        .radio-group input[type="radio"] {
            width: auto;
            margin-right: 8px;
        }

        .radio-group label {
            margin-bottom: 0;
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .submit-btn {
            background: linear-gradient(45deg, #8B4513, #D2691E);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Playfair Display', serif;
            font-weight: 600;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .rsvp-messages {
            margin-top: 1.5vh;
            max-height: 200px;
            overflow-y: auto;
            text-align: left;
            scrollbar-width: thin;
            scrollbar-color: #D2691E rgba(0,0,0,0.1);
        }
        
        .rsvp-messages::-webkit-scrollbar {
            width: 6px;
        }
        .rsvp-messages::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }
        .rsvp-messages::-webkit-scrollbar-thumb {
            background: #D2691E;
            border-radius: 10px;
        }

        .message-item {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 15px;
            border-left: 4px solid #D2691E;
        }

        .message-name {
            font-weight: 600;
            color: #8B4513;
            margin-bottom: 5px;
        }

        .message-text {
            color: #5D4037;
            line-height: 1.6;
        }

        .message-date {
            font-size: 0.8rem;
            color: #8D6E63;
            text-align: right;
            margin-top: 10px;
        }

        /* Footer Navigation */
        .footer-nav {
            background: rgba(139, 69, 19, 0.95);
            padding: 30px 20px;
            margin-top: 0;
            border-top: 3px solid #D2691E;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            color: #F5DEB3;
            margin-bottom: 20px;
        }

        .footer-scroll-hint {
            text-align: center;
            font-size: 0.8rem;
            color: #D2B48C;
            margin-bottom: 15px;
            opacity: 0.7;
        }

        .footer-sections {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            margin-bottom: 30px;
            padding: 10px 0;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: #D2691E rgba(0,0,0,0.2);
        }

        .footer-sections::-webkit-scrollbar {
            height: 6px;
        }

        .footer-sections::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.2);
            border-radius: 5px;
        }

        .footer-sections::-webkit-scrollbar-thumb {
            background: #D2691E;
            border-radius: 5px;
        }

        .footer-section-item {
            flex: 0 0 120px;
            background: rgba(210, 105, 30, 0.2);
            padding: 15px;
            border-radius: 10px;
            transition: all 0.3s ease;
            text-align: center;
            scroll-snap-align: center;
        }

        .footer-section-item:hover {
            background: rgba(210, 105, 30, 0.3);
            transform: translateY(-2px);
        }

        .footer-section-item a {
            color: #F5DEB3;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .footer-section-item a:hover {
            color: #FFE4B5;
        }

        .footer-bottom {
            border-top: 1px solid rgba(210, 105, 30, 0.3);
            padding-top: 20px;
            color: #D2B48C;
            font-size: 0.9rem;
        }

        /* Responsive Design - Enhanced */
        @media (max-width: 768px) {
            :root {
                --section-padding: 15px;
                --section-content-height: auto;
            }

            .landing-title {
                font-size: 2rem;
            }

            .landing-content {
                padding: 30px 15px;
                margin: 15px;
            }

            .section-content {
                padding: var(--section-padding);
                margin: 10px;
                min-height: var(--section-content-height);
                max-height: 90vh;
            }

            .section-title {
                font-size: 1.6rem;
            }

            .countdown {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .countdown-number {
                font-size: 1.4rem;
            }

            /* Mobile Mempelai Layout */
            .couple-row {
                flex-direction: column;
                gap: 2vh;
                align-items: stretch;
            }

            .bride-groom {
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
                min-height: auto;
            }

            .couple-divider {
                transform: none;
                font-size: 2.5rem;
            }

            .couple-photo {
                width: 150px;
                height: 150px;
                font-size: 3rem;
            }

            .couple-name {
                font-size: 1.5rem;
            }

            .nav-menu {
                left: 10px;
                right: 10px;
                transform: none;
                width: calc(100% - 20px);
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                padding: 10px;
            }

            .nav-menu a {
                margin: 2px 4px;
                font-size: 0.7rem;
                padding: 4px 6px;
            }

            .gift-buttons {
                flex-direction: column;
                align-items: center;
            }

            .gift-btn {
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }

            .modal-content {
                margin: 20px;
                padding: 30px 20px;
                max-width: calc(100vw - 40px);
                max-height: 90vh;
                overflow-y: auto;
            }

            .music-control {
                top: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
            }

            .music-control::before {
                font-size: 20px;
            }

            .quote-text {
                font-size: 1.2rem;
            }

            .radio-group {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .footer-section-item {
                padding: 12px;
                flex: 0 0 100px;
            }

            .footer-section-item a {
                font-size: 0.7rem;
            }

            .gallery-item {
                flex: 0 0 200px;
                height: 200px;
                font-size: 2rem;
            }

            /* Mobile background optimization */
            .main-content {
                background-attachment: scroll;
                background-size: cover;
            }
        }

        @media (max-width: 480px) {
            :root {
                --section-padding: 20px;
                --section-content-height: 70vh;
            }

            .landing-title {
                font-size: 1.8rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .section-content {
                padding: var(--section-padding);
                margin: 5px;
                min-height: var(--section-content-height);
            }

            .couple-name {
                font-size: 1.3rem;
            }

            .countdown-item {
                padding: 15px 10px;
            }

            .countdown-number {
                font-size: 1.3rem;
            }

            .nav-menu a {
                font-size: 0.65rem;
                margin: 1px 2px;
            }

            .footer-section-item {
                flex: 0 0 90px;
                padding: 10px;
            }

            .gallery-item {
                flex: 0 0 180px;
                height: 180px;
            }
        }

        /* Auto Scroll Animation */
        .auto-scrolling {
            scroll-behavior: smooth;
        }

        /* Hidden elements */
        .hidden {
            display: none !important;
        }

        /* Section transition effect */
        .section-transition {
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease-in-out;
        }

        .section-transition.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Auto-scroll paused indicator */
        .scroll-paused-indicator {
            position: fixed;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(139, 69, 19, 0.9);
            color: #F5DEB3;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 0.8rem;
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .scroll-paused-indicator.show {
            opacity: 1;
        }
    


/* === SCROLL SNAP & VIDEO BACKGROUND === */
html, body {
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

.main-content {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    scroll-behavior: smooth;
    width: 100vw;
    max-width: 100%;
}

.section {
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    width: 100vw;
    min-height: 100vh;
}

.bg-video-section {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4) sepia(0.5);
    pointer-events: none;
}

.section-overlay-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.65), rgba(93, 64, 55, 0.55), rgba(107, 44, 44, 0.5));
    z-index: 1;
    pointer-events: none;
}

.section-content-jawa, .section > div:not(.bg-video-section):not(.section-overlay-video) {
    z-index: 2;
    position: relative;
}

/* === DESKTOP ARROWS === */
.desktop-arrows {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--jawa-maroon), var(--jawa-gold));
    color: var(--jawa-cream);
    border: 2px solid var(--jawa-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    user-select: none;
}

.arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(200, 169, 98, 0.6);
}

@media (max-width: 768px) {
    .desktop-arrows {
        display: none !important;
    }
}