/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile background for entire page */
    body {
        background-image: url('../images/mobile-background.png');
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        background-repeat: no-repeat;
        position: relative;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg,
            rgba(255, 254, 247, 0.3) 0%,
            rgba(245, 240, 232, 0.35) 50%,
            rgba(255, 254, 247, 0.3) 100%
        );
        pointer-events: none;
        z-index: -1;
    }
    
    /* iOS Safari fix - use a pseudo-element for fixed background */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../images/mobile-background.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: -2;
        pointer-events: none;
    }
    
    /* Remove background from body for iOS */
    @supports (-webkit-touch-callout: none) {
        body {
            background-image: none;
        }
    }
    
    .nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 20px;
        font-size: 12px;
    }

    .hero {
        background-image: none;
        background-color: transparent;
        min-height: 100vh;
        padding: 80px 20px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero::after {
        display: none;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }
    
    /* Make text more visible and symmetric on mobile */
    .hero-subtitle {
        color: var(--gold-dark);
        text-shadow: 0 2px 4px rgba(255, 254, 247, 0.8);
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 15px;
        text-align: center;
        font-weight: 800;
    }
    
    .hero-subtitle::before,
    .hero-subtitle::after {
        display: none;
    }
    
    .hero-heart {
        margin: 10px 0 15px;
    }
    
    .hero-names {
        font-size: 64px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        line-height: 0.9;
        margin-bottom: 25px;
        margin-top: 0;
        width: 100%;
        text-shadow: 0 3px 10px rgba(255, 254, 247, 0.9), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-names .name-line,
    .hero-names .name-ampersand {
        display: block;
        text-align: center;
        line-height: 0.9;
    }
    
    .hero-names .name-line:first-child {
        margin-bottom: -10px;
    }
    
    .hero-names .name-ampersand {
        margin: -5px 0;
    }
    
    .hero-names .name-line:last-child {
        margin-top: -10px;
    }
    
    .hero-date {
        text-shadow: none;
        text-align: center;
        justify-content: center;
        margin-top: 40px;
        color: var(--gold);
        background: rgba(0, 0, 0, 0.4);
        padding: 12px 24px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .hero-heart {
        margin: 15px auto;
        text-align: center;
    }
    
    .hero-divider {
        margin: 25px auto;
        width: 100px;
    }

    .section {
        padding: 80px 30px;
        background: transparent;
    }

    .timeline {
        padding: 80px 30px;
    }

    .timeline-container {
        padding: 0;
    }

    .contact {
        padding: 80px 30px;
        background: transparent;
    }
    
    .rsvp-card {
        background: rgba(255, 254, 247, 0.85);
    }
    
    .closing {
        background-image: none !important;
        background: transparent !important;
    }
    
    .closing::after {
        display: none !important;
    }

    .rsvp-cta {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 40px;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .timeline-header {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-time {
        font-size: 28px;
    }

    .timeline-title {
        font-size: 24px;
    }

    .contact-info {
        padding: 40px 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    
    .timeline-item-content {
        text-align: left;
    }

    .timeline-icon {
        margin-bottom: 15px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .hero-heart {
        font-size: 28px;
    }

    .hero-date {
        flex-direction: row;
        gap: 12px;
        font-size: 16px;
        letter-spacing: 3px;
        flex-wrap: wrap;
    }

    .hero-date i {
        font-size: 16px;
        transform: rotate(0deg) !important;
        margin: 0 !important;
    }

    .timeline-location {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .timeline-location-icon {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .timeline-location span:last-child {
        flex: 1;
        line-height: 1.6;
        word-wrap: break-word;
    }
}

