/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #ffe5d9;
    --accent-color: #d4145a;
    --gold-color: #ffd700;
    --green-color: #138808;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

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

/* ==========================================
   Desktop Only Message - Mobile Only Site
   ========================================== */
.desktop-only-message {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffe8e8 0%, #fff5f5 50%, #ffe8e8 100%);
    z-index: 10000; /* Above everything */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.desktop-message-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.desktop-message-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.desktop-message-content p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.desktop-instruction {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.5rem !important;
    margin: 30px 0 !important;
}

.qr-code-placeholder {
    margin-top: 40px;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 20px;
}

.phone-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.small-text {
    font-size: 0.9rem !important;
    color: #666;
    margin: 10px 0 0 0 !important;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.mobile-content {
    display: block; /* Shown by default */
}

/* Show desktop message on desktop, hide main content */
@media (min-width: 769px) {
    .desktop-only-message {
        display: flex !important; /* Show message */
    }
    
    .mobile-content {
        display: none !important; /* Hide all main content */
    }
}

/* Hide desktop message on mobile, show main content */
@media (max-width: 768px) {
    .desktop-only-message {
        display: none !important; /* Hide message */
    }
    
    .mobile-content {
        display: block !important; /* Show all main content */
    }
}

/* ==========================================
   Navigation
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

#navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

#navbar li {
    margin: 0 25px;
}

#navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

#navbar a:hover::after {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to start */
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    position: relative;
    padding-top: 150px; /* Increased from 80px to position content higher */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ff6b35" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: 500;
}

.wedding-date {
    margin: 40px 0;
}

.wedding-date .date {
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-color);
    margin-bottom: 10px;
}

.wedding-date .venue {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Countdown */
.countdown {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 100px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* Enhanced Scroll Indicator */
.scroll-indicator-enhanced {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
    margin: 10px 0;
}

.arrow-down {
    font-size: 2rem;
    color: var(--accent-color);
    line-height: 0.6;
    animation: bounceArrow 1.5s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(212, 20, 90, 0.3);
}

.arrow-down:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.arrow-down:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.4;
}

.scroll-hint {
    font-size: 0.80rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
    font-style: italic;
}

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

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-15px);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-8px);
        opacity: 0.9;
    }
}

/* Old scroll indicator - keep for backward compatibility */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: 100px 0;
    overflow-x: hidden; /* Prevent horizontal scroll in all sections */
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 60px;
}

/* ==========================================
   Scroll Animation Section - Bride & Groom Meeting
   ========================================== */
.scroll-animation-wrapper {
    height: 300vh; /* Extended height for scroll effect */
    position: relative;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 50%, #fff5f5 100%);
    padding: 0;
    margin-bottom: -100vh; /* Pull next section up to reduce white space */
    overflow-x: hidden; /* Prevent horizontal scroll from off-screen characters */
    /* Background image is now controlled via JavaScript config */
}

.scroll-animation-section {
    position: sticky;
    top: 70px; /* Push down to account for navbar height (~60-70px) */
    height: calc(100vh - 70px); /* Adjust height to compensate */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: visible; /* Allow characters to extend vertically */
    overflow-x: hidden; /* Prevent horizontal scroll */
    z-index: 1; /* Above background overlay */
    padding-top: 20px; /* Additional padding to prevent head cutoff */
}

.scroll-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow-y: visible; /* Allow characters to extend vertically */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.character-container {
    position: absolute;
    bottom: 10%; /* Align with bottom of mandap */
    transform: translateY(0);
    z-index: 3; /* Characters in front of everything */
    overflow: visible; /* Prevent character cropping */
}

.bride-container {
    left: -500px; /* Start off-screen */
}

.groom-container {
    right: -500px; /* Start off-screen */
}

.character-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.traditional-attire {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.character-silhouette {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
    margin-bottom: 15px;
}

/* Remove background and circular shape when custom image is used */
.character-silhouette.has-custom-image {
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-silhouette.has-custom-image img {
    border-radius: 0 !important;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Remove white box and colored borders when custom image is used */
.has-custom-image ~ * .traditional-attire,
.character-silhouette.has-custom-image {
    background: transparent !important;
}

.has-custom-image + .character-name ~ .bride-attire,
.has-custom-image + .character-name ~ .groom-attire {
    border: none !important;
    background: transparent !important;
}

.character-container:has(.has-custom-image) .traditional-attire {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.character-container:has(.has-custom-image) .character-name {
    margin-top: 20px;
}

.character-name {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-color);
    margin: 0;
}

.bride-attire {
    border: 3px solid var(--accent-color);
}

.character-container:has(.has-custom-image) .bride-attire {
    border: none;
}

.groom-attire {
    border: 3px solid var(--green-color);
}

.character-container:has(.has-custom-image) .groom-attire {
    border: none;
}

/* Knot Animation Container */
.knot-container {
    position: absolute;
    bottom: 10%; /* Align with bottom of mandap, same as characters */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Fire animation in center, between background and characters */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none; /* Hide fire animation */
}

.knot-animation {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.heart-burst {
    position: absolute;
    font-size: 80px;
    animation: heartPulse 1.5s ease infinite;
    opacity: 0;
}

.knot-symbol {
    position: absolute;
    font-size: 60px;
    animation: rotate 3s linear infinite;
    opacity: 0;
}

.rings {
    position: absolute;
    font-size: 50px;
    animation: float 2s ease-in-out infinite;
    opacity: 0;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.9;
    }
}

/* Scroll Instruction */
.scroll-instruction {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-instruction p {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* Responsive for scroll animation */
@media (max-width: 768px) {
    .bride-container {
        left: -600px;
    }
    
    .groom-container {
        right: -600px;
    }
    
    /* Bottom alignment for mobile is controlled via JavaScript config */
}

/* ==========================================
   Our Story Section
   ========================================== */
.couple-section {
    background: var(--white);
}

.story-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.story-item {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 40px 30px;
    background: var(--secondary-color);
    border-radius: 15px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.story-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.story-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.story-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.story-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.story-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   Events Section
   ========================================== */
.events-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    position: relative;
    z-index: 2; /* Ensure events section is above the scroll animation background */
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.event-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

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

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-time {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.event-location {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-description {
    color: var(--text-light);
    line-height: 1.8;
}

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

.gallery-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.gallery-carousel {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    background: #fff;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--gold-color) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.placeholder-image span {
    font-size: 5rem;
}

.placeholder-image p {
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--white);
}

/* Carousel Navigation Buttons - Minimal & Translucent */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 10;
    opacity: 0.7;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--white);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

/* Carousel Indicators - Smaller */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.4);
}

.carousel-indicator:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}


/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-hearts {
    font-size: 1.5rem;
    margin: 20px 0;
}

.footer-date {
    font-weight: 600;
    color: var(--primary-color);
}

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

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

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* Adjusted for mobile */
    }
    
    .couple-names {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .wedding-date .date {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    /* Enhanced scroll indicator for mobile */
    .scroll-indicator-enhanced {
        bottom: 30px;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px 25px;
        border-radius: 25px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--primary-color);
    }
    
    .scroll-text {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .arrow-down {
        font-size: 2rem;
    }
    
    .scroll-hint {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    #navbar ul {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    #navbar li {
        margin: 5px 15px;
    }

    .countdown {
        gap: 15px;
    }

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

    .countdown-value {
        font-size: 2rem;
    }

    .story-timeline,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carousel responsive adjustments */
    .gallery-carousel-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .gallery-carousel {
        border-radius: 15px;
    }
    
    .gallery-slide {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 4 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
    
    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }

    /* Reduce scroll distance for bride/groom animation on mobile */
    .scroll-animation-wrapper {
        height: 200vh; /* Reduced from 300vh for faster animation on mobile */
        margin-bottom: -80vh; /* Pull next section up on mobile */
        /* Background settings controlled via JavaScript config */
    }
    
    .scroll-animation-section {
        top: 55px; /* Smaller navbar on mobile */
        height: calc(100vh - 55px);
        padding-top: 10px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px; /* Adjusted for very small screens */
    }
    
    .couple-names {
        font-size: 2.5rem;
    }

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

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }
    
    /* Very small screens - sizes controlled by config */
    
    /* Even faster animation on very small screens */
    .scroll-animation-wrapper {
        height: 150vh; /* Further reduced for very small screens */
        margin-bottom: -60vh; /* Pull next section up on very small screens */
        /* Background settings controlled via JavaScript config */
    }
    
    .scroll-animation-section {
        top: 50px; /* Even smaller navbar on very small screens */
        height: calc(100vh - 50px);
        padding-top: 5px;
    }
    
    /* Carousel adjustments for very small screens */
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .carousel-btn-prev {
        left: 8px;
    }
    
    .carousel-btn-next {
        right: 8px;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
    
    .placeholder-image span {
        font-size: 3rem;
    }
    
    .placeholder-image p {
        font-size: 1rem;
    }
    
    /* Gallery adjustments for very small screens */
    .gallery-carousel-wrapper {
        padding: 0 5px;
    }
    
    .gallery-carousel {
        border-radius: 10px;
    }
    
    .gallery-slide {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 4 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
    
    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ==========================================
   Flower Shower Parallax Effect
   ========================================== */
.flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.flower {
    position: absolute;
    font-size: 20px;
    opacity: 0.8;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(100px) rotate(180deg);
    }
    100% {
        top: 110%;
        transform: translateX(-100px) rotate(360deg);
    }
}

@keyframes fallLeft {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(-100px) rotate(180deg);
    }
    100% {
        top: 110%;
        transform: translateX(100px) rotate(360deg);
    }
}

@keyframes fallStraight {
    0% {
        top: -10%;
        transform: rotate(0deg);
    }
    100% {
        top: 110%;
        transform: rotate(360deg);
    }
}

.flower.slow {
    animation-duration: 15s;
}

.flower.medium {
    animation-duration: 10s;
}

.flower.fast {
    animation-duration: 7s;
}

.flower.left {
    animation-name: fallLeft;
}

.flower.straight {
    animation-name: fallStraight;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .flower {
        font-size: 16px;
    }
}
