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

html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Mobile-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .nav-link:hover,
    .event:hover,
    .direction-card:hover,
    .hotel-card:hover,
    .activity-card:hover,
    .registry-card:hover,
    .info-item:hover,
    .photo-card:hover,
    .time:hover {
        transform: none !important;
        box-shadow: inherit !important;
        background: inherit !important;
    }
    
    .nav-link:hover::before,
    .event:hover::before {
        left: -100% !important;
    }
    
    /* Enable focus states for better accessibility on mobile */
    .nav-link:focus,
    .direct-link:focus {
        outline: 2px solid var(--soft-burgundy);
        outline-offset: 2px;
    }
}

/* Performance optimizations */
.mobile-device * {
    /* Optimize animations for mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

:root {
    --deep-burgundy: #722f37;
    --soft-burgundy: #a85963;
    --dusty-pink: #d4a5a9;
    --blush-pink: #f2e5e7;
    --sage-green: #8d9a8c;
    --soft-green: #b8c4b7;
    --forest-green: #5d6e5c;
    --cream: #faf8f6;
    --warm-white: #fcfbfa;
    --charcoal: #2c3e50;
    --soft-gray: #6c757d;
    --light-gray: #f8f9fa;
    --shadow: rgba(114, 47, 55, 0.08);
    --shadow-hover: rgba(114, 47, 55, 0.12);
    --shadow-subtle: rgba(114, 47, 55, 0.04);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush-pink) 30%, var(--soft-green) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    width: 100%;
}

/* HERO SECTION STYLING */
.hero-section {
    background: linear-gradient(145deg, rgba(252, 251, 250, 0.95), rgba(242, 229, 231, 0.4));
    border-radius: 30px;
    box-shadow: 0 25px 50px var(--shadow);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--soft-burgundy), var(--dusty-pink), var(--sage-green));
    border-radius: 30px;
    z-index: -1;
    opacity: 0.2;
}

.couple-photo {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.couple-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: left bottom;
    border: 6px solid white;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.photo-border {
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: 50%;
    background: linear-gradient(45deg, var(--soft-burgundy), var(--dusty-pink), var(--sage-green));
    z-index: 1;
    opacity: 0.5;
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.couple-info {
    color: var(--charcoal);
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 4.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--deep-burgundy), var(--soft-burgundy), var(--dusty-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px var(--shadow-subtle);
    letter-spacing: -1px;
}

.wedding-details {
    margin-top: 1.5rem;
}

.wedding-date {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wedding-location {
    font-size: 1.2rem;
    color: var(--soft-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.decorative-divider {
    margin: 1.5rem 0;
    color: var(--dusty-pink);
    font-size: 1.2rem;
}

.wedding-message {
    font-size: 1.1rem;
    color: var(--charcoal);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* NAVIGATION STYLING */
.navigation {
    background: linear-gradient(145deg, rgba(252, 251, 250, 0.95), rgba(242, 229, 231, 0.2));
    border-radius: 30px;
    padding: 1.2rem 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 15px 40px var(--shadow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-tabs li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--soft-gray);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::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.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--charcoal);
    background: linear-gradient(45deg, var(--blush-pink), rgba(212, 165, 169, 0.3));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px var(--shadow);
}

.nav-link.active {
    color: white;
    background: linear-gradient(45deg, var(--deep-burgundy), var(--soft-burgundy));
    box-shadow: 0 10px 25px var(--shadow);
    transform: translateY(-2px) scale(1.02);
}

.nav-link.active::before {
    display: none;
}

/* CONTENT SECTIONS */
.content-section, .hero-section {
    background: linear-gradient(145deg, rgba(252, 251, 250, 0.97), rgba(242, 229, 231, 0.3));
    border-radius: 30px;
    padding: 4rem 3.5rem;
    margin: 2rem 0;
    box-shadow: 0 20px 45px var(--shadow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: none;
    transform: translateX(100px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.content-section.active-section, .hero-section.active-section {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.content-section.slide-out-left, .hero-section.slide-out-left {
    transform: translateX(-100px) scale(0.95);
    opacity: 0;
    visibility: hidden;
}

.content-section.slide-out-right, .hero-section.slide-out-right {
    transform: translateX(100px) scale(0.95);
    opacity: 0;
    visibility: hidden;
}

.section-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideOutUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-20px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
        filter: blur(3px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--deep-burgundy), var(--soft-burgundy), var(--dusty-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* DIRECTIONS SECTION */
.venue-info {
    text-align: center;
    margin-bottom: 2.5rem;
}

.venue-info h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.address {
    font-size: 1.1rem;
    color: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.what3words {
    font-size: 1rem;
    color: var(--soft-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.5));
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 165, 169, 0.2);
    font-weight: 500;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.direction-card {
    background: linear-gradient(145deg, var(--warm-white), rgba(242, 229, 231, 0.4));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.direction-card h4 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.direction-card ul {
    list-style: none;
    padding-left: 1rem;
}

.direction-card li {
    margin: 0.5rem 0;
    position: relative;
}

.direction-card li::before {
    content: '→';
    color: var(--dusty-pink);
    position: absolute;
    left: -1rem;
}

.map-placeholder {
    background: linear-gradient(145deg, var(--soft-green), rgba(184, 196, 183, 0.3));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    font-style: italic;
    color: var(--charcoal);
    border: 1px solid rgba(141, 154, 140, 0.2);
}

/* SCHEDULE SECTION */
.schedule-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.schedule-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.2);
    backdrop-filter: blur(10px);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--soft-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.toggle-btn i {
    font-size: 1.1rem;
}

.toggle-btn:hover {
    color: var(--deep-burgundy);
    transform: translateY(-1px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--deep-burgundy), var(--soft-burgundy));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.toggle-btn.active:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.schedule-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-content.active {
    display: block;
    opacity: 1;
}

.schedule-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.schedule-intro h3 {
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.schedule-date {
    font-size: 1.1rem;
    color: var(--soft-burgundy);
    font-weight: 500;
    font-style: italic;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
    gap: 2rem;
    opacity: 1;
}


.time {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--deep-burgundy), var(--soft-burgundy));
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px var(--shadow);
    min-width: 100px;
    transition: all 0.3s ease;
}

.time:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.event {
    flex: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(242, 229, 231, 0.2));
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.15);
    transition: all 0.3s ease;
}

.event:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.event h4 {
    color: var(--charcoal);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.event h4 i {
    color: var(--soft-burgundy);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

/* FOOD SECTION */
.food-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--charcoal);
    line-height: 1.7;
    font-style: italic;
}

.food-timeline {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.food-day {
    background: linear-gradient(145deg, var(--warm-white), rgba(242, 229, 231, 0.3));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.food-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.food-day.wedding-day {
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.5));
    border: 2px solid var(--dusty-pink);
}

.day-header {
    color: var(--deep-burgundy);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.wedding-ceremony {
    background: rgba(114, 47, 55, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--deep-burgundy);
    text-align: center;
}

.wedding-ceremony h4 {
    color: var(--deep-burgundy);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ceremony-note {
    color: var(--soft-burgundy);
    font-style: italic;
    font-size: 0.95rem;
}

.day-meals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meal-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.meal-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.meal-time {
    flex-shrink: 0;
    background: linear-gradient(45deg, var(--soft-burgundy), var(--dusty-pink));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 3px 10px var(--shadow);
}

.meal-description {
    flex: 1;
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 0.5rem;
}

.leftovers-note {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, var(--sage-green), rgba(141, 154, 140, 0.3));
    border-radius: 20px;
    color: var(--charcoal);
    border: 1px solid rgba(141, 154, 140, 0.2);
    font-size: 1.1rem;
    font-weight: 500;
}

/* GIFTS SECTION */
.gift-message-personal {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--charcoal);
    line-height: 1.8;
}

.gift-message-personal p {
    margin-bottom: 1.5rem;
}

.gift-message-personal p:last-of-type {
    margin-bottom: 2.5rem;
}

.bank-details {
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.4));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 169, 0.2);
    margin-top: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
}

.bank-details h4 {
    color: var(--deep-burgundy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.bank-info {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(212, 165, 169, 0.1);
}

.bank-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-info p:last-child {
    margin-bottom: 0;
}

/* ACCOMMODATION SECTION */
.accommodation-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.simple-message {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    color: var(--charcoal);
    line-height: 1.7;
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.3));
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 169, 0.2);
    font-style: italic;
}

.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.hotel-card {
    background: linear-gradient(145deg, var(--warm-white), rgba(242, 229, 231, 0.4));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.hotel-card h4 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.distance {
    color: var(--soft-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 165, 169, 0.3);
}

.contact-info p {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.booking-note {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, var(--dusty-pink), rgba(212, 165, 169, 0.3));
    border-radius: 20px;
    color: var(--charcoal);
    border: 1px solid rgba(212, 165, 169, 0.2);
}

/* WHAT YOU NEED TO KNOW SECTION */
.info-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(145deg, var(--warm-white), rgba(242, 229, 231, 0.3));
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--soft-burgundy), var(--dusty-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.info-content {
    flex: 1;
    color: var(--charcoal);
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 0.5rem;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: var(--deep-burgundy);
}

.contact-info .info-content a {
    color: var(--soft-burgundy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info .info-content a:hover {
    color: var(--deep-burgundy);
    text-decoration: underline;
}

.contact-info {
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.4));
    border: 1px solid rgba(212, 165, 169, 0.2);
}

.eco-note {
    background: linear-gradient(145deg, var(--soft-green), rgba(184, 196, 183, 0.3));
    border: 1px solid rgba(141, 154, 140, 0.2);
}

/* PHOTOS SECTION - QR CODE */
.qr-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.qr-intro {
    margin-bottom: 3rem;
}

.qr-intro h3 {
    font-size: 1.8rem;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

.qr-intro p {
    font-size: 1.1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.qr-code-display {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(242, 229, 231, 0.3));
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 40px var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    margin-bottom: 3rem;
}

.qr-frame {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.qr-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--soft-burgundy), var(--dusty-pink), var(--sage-green));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    display: block;
}

.qr-instructions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--deep-burgundy), var(--soft-burgundy));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow);
}

.instruction-item p {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.qr-alternative {
    background: linear-gradient(145deg, var(--blush-pink), rgba(242, 229, 231, 0.4));
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 169, 0.2);
    margin-bottom: 2rem;
    text-align: center;
}

.qr-alternative p {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1rem;
}

.direct-link {
    display: inline-block;
    background: linear-gradient(145deg, var(--deep-burgundy), var(--soft-burgundy));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    word-break: break-all;
    max-width: 100%;
    line-height: 1.4;
}

.direct-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    background: linear-gradient(145deg, var(--soft-burgundy), var(--dusty-pink));
    text-decoration: none;
    color: white;
}

.qr-message {
    background: linear-gradient(145deg, var(--sage-green), rgba(141, 154, 140, 0.3));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(141, 154, 140, 0.2);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.qr-message i {
    color: var(--dusty-pink);
    margin-right: 0.5rem;
}

/* ACTIVITIES SECTION */
.activities-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: linear-gradient(145deg, var(--warm-white), rgba(242, 229, 231, 0.4));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(212, 165, 169, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.activity-card h4 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Fix for mobile devices */
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .container {
        padding: 0.5rem;
        min-height: 100vh;
    }
    
    .hero-section, .content-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
        margin: 1rem 0;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    /* Mobile schedule toggle */
    .schedule-toggle {
        flex-direction: column;
        padding: 0.3rem;
        border-radius: 20px;
    }
    
    .toggle-btn {
        padding: 0.8rem 1.5rem;
        margin: 0.1rem 0;
        font-size: 0.9rem;
        min-width: 120px;
    }

    /* Mobile Navigation Optimization */
    .navigation {
        padding: 0.8rem 0.5rem;
        margin: 1rem 0;
        border-radius: 20px;
        position: sticky;
        top: 10px;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }
    
    .nav-tabs {
        gap: 0.2rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 0.8rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
        flex-shrink: 0;
        text-align: center;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        line-height: 1.2;
        white-space: nowrap;
        min-height: 48px; /* Touch target size */
    }
    
    .nav-link i {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    
    /* Typography Optimization */
    .couple-names {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .couple-image {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    /* Food Timeline Mobile */
    .meal-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .meal-time {
        min-width: auto;
        width: fit-content;
        margin: 0 auto;
        font-size: 0.85rem;
    }
    
    .food-day {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
        align-items: stretch;
    }
    
    .time {
        width: fit-content;
        margin: 0 auto;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .event {
        padding: 1.2rem 1.5rem;
    }
    
    .event h4 {
        font-size: 1rem;
    }
    
    .directions-grid,
    .accommodation-grid,
    .activities-grid,
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile Card Optimizations */
    .direction-card,
    .hotel-card,
    .activity-card,
    .registry-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
        border-radius: 15px;
        box-shadow: 0 4px 15px var(--shadow);
    }
    
    .info-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
        text-align: left;
    }
    
    .info-icon {
        margin: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        font-size: 1rem;
    }
    
    .registry-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile QR Code */
    .qr-code-display {
        padding: 1.5rem 1rem;
    }
    
    .qr-frame {
        padding: 1.5rem;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
    
    .qr-instructions {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .instruction-item {
        flex-direction: row;
        max-width: none;
        width: 100%;
        gap: 1rem;
        text-align: left;
        align-items: center;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    /* Mobile Typography */
    .food-intro,
    .bring-intro,
    .activities-intro,
    .accommodation-intro,
    .photos-intro,
    .qr-intro p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .qr-intro h3 {
        font-size: 1.4rem;
    }
    
    .direct-link {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        font-size: 16px; /* Prevent zoom on input focus */
    }
    
    .container {
        padding: 0.3rem;
        min-height: 100vh;
    }
    
    .hero-section, .content-section {
        padding: 1.2rem 0.8rem;
        border-radius: 12px;
        margin: 0.8rem 0;
    }
    
    .hero-section {
        padding: 1.8rem 1rem;
    }
    
    /* Ultra-mobile navigation */
    .navigation {
        padding: 0.5rem 0.3rem;
        border-radius: 15px;
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.6rem 0.3rem;
        font-size: 0.6rem;
        min-width: 50px;
        min-height: 44px;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    /* Typography for small screens */
    .couple-names {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .couple-image {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    /* Ultra-mobile cards */
    .direction-card,
    .hotel-card,
    .activity-card,
    .registry-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .info-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Ultra-mobile QR code */
    .qr-code-display {
        padding: 1.2rem 0.8rem;
    }
    
    .qr-frame {
        padding: 1.2rem;
    }
    
    .qr-image {
        width: 160px;
        height: 160px;
    }
    
    .qr-intro h3 {
        font-size: 1.2rem;
    }
    
    .instruction-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .direct-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        line-height: 1.3;
    }
    
    /* Timeline ultra-mobile */
    .timeline-item {
        gap: 0.8rem;
        margin: 1.2rem 0;
    }
    
    .time {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .event {
        padding: 1rem;
    }
    
    .event h4 {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    
    /* Food timeline ultra-mobile */
    .food-day {
        padding: 1rem;
    }
    
    .meal-time {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .day-header {
        font-size: 1.2rem;
    }
}