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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Video Background */
.hero-video {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-transform: none;
    font-variant: normal;
}

.capital-a {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    font-size: 1.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content .date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.location {
    margin-bottom: 1.5rem;
}

.location .city {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.location .country {
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    opacity: 0.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-content .tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

/* Floating RSVP Design */
.rsvp-floating {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.rsvp-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.rsvp-line {
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto;
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(255,255,255,0.6);
}

.rsvp-floating:hover .rsvp-text {
    text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.8), 0 0 35px rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.rsvp-floating:hover .rsvp-line {
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4);
    }
    to {
        text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.8), 0 0 35px rgba(255,255,255,0.6);
    }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.cta-btn {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    animation: bounce 2s infinite;
}

/* Transition Image Section */
.transition-image-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transition-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://d14dkdvwlc1to0.cloudfront.net/images/IMG_1.JPG');
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: 1;
}

.transition-image-section img {
    max-width: 70%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.transition-image-section:hover img {
    transform: scale(1.05);
}

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

/* Navigation */
.nav {
    background: rgba(255,255,255,0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.nav a {
    text-decoration: none;
    color: #333;
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    /* Remove mobile touch highlights */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    outline: none;
}

/* Aggressive mobile-only overrides */
@media (max-width: 768px) {
    .nav a,
    .nav a:focus,
    .nav a:active,
    .nav a:visited,
    .nav a:hover {
        -webkit-tap-highlight-color: transparent !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .nav a.active {
        color: #d4af37 !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        border-bottom: 2px solid #d4af37 !important;
    }
}

.nav a:hover {
    background: #f0f0f0;
    color: #d4af37;
    transform: translateY(-1px);
}

.nav a:focus {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Wishlist Section */
.wishlist-intro {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
}

.alcohol-note {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
}

.wishlist-links em {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3rem 4rem;
    justify-items: center;
    align-items: start;
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2rem;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-icon {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.payment-icon:hover {
    transform: scale(1.1);
}

.payment-link {
    color: #0066cc;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

.payment-link:hover {
    text-decoration: underline;
}

.payment-url {
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.3rem;
    line-height: 1.3;
}

.mobile-single {
    display: none;
}

.desktop-break {
    display: inline;
}

.payment-name {
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

.usa-flag {
    height: 15px;
    width: auto;
    margin: 0 3px;
    vertical-align: middle;
}

.zelle-info, .venmo-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-name-main {
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.payment-name-sub {
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.payment-phone {
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin-top: 0.3rem;
}

.payment-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-details {
    color: #888;
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .payment-methods {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        max-width: 400px;
        padding: 1.5rem;
    }
    
    .payment-item {
        width: 100%;
        max-width: 300px;
    }
    
    .payment-item:nth-child(3) {
        order: 4;
    }
    
    .payment-item:nth-child(4) {
        order: 3;
    }
    
    .payment-url {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .desktop-break {
        display: none;
    }
    
    .mobile-single {
        display: inline;
    }
    
    .payment-icon {
        height: 40px;
    }
    
    .payment-link, .payment-name {
        font-size: 0.95rem;
    }
    
    .payment-url {
        font-size: 0.7rem;
    }
    
    .payment-name-main, .payment-name-sub {
        font-size: 0.9rem;
    }
    
    .usa-flag {
        height: 13px;
    }
    
    .payment-phone {
        font-size: 0.85rem;
    }
    
    .payment-details {
        font-size: 0.7rem;
    }
}

/* Q&A Section */
.ampersand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

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

.qa-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.qa-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
}

.qa-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .qa-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qa-item {
        padding: 20px;
    }
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rsvp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.rsvp-photos-side {
    position: sticky;
    top: 0;
    height: 400px;
    overflow: hidden;
}

/* Success and Error Messages */
.success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

/* W3Schools Smooth Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dc3545;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  color: white;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #28a745;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(86px);
}

.toggle-text-left {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.toggle-text-right {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.4s;
}

.toggle-switch input:checked + .toggle-slider .toggle-text-left {
  opacity: 1;
}

.toggle-switch input:checked + .toggle-slider .toggle-text-right {
  opacity: 0;
}

.card ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.card ul li {
    margin: 8px 0;
    line-height: 1.4;
}

.card ul li a {
    color: #2c3e50;
    text-decoration: none;
}

.card ul li a:hover {
    text-decoration: underline;
    color: #d4af37;
}

.nav a.active {
    color: #d4af37;
    font-weight: 500;
    border-bottom: 2px solid #d4af37;
    background: transparent;
}

/* Split Sections (Ferrari Style) */
.split-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 80vh;
}

.split-section.reverse .split-content {
    grid-template-columns: 1fr 1fr;
}

.text-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f9f9f9;
}

.image-content {
    position: relative;
    overflow: hidden;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 2rem;
    font-style: italic;
}

.artistic-o {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    margin-right: -0.1rem;
}

.artistic-text {
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
}

.story-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-text strong {
    color: #d4af37;
    font-weight: 500;
}

.text-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* RSVP Section */
.rsvp-section {
    padding: 6rem 2rem;
    background: #000;
    color: #fff;
}

.rsvp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rsvp-form-side h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 2rem;
    font-style: italic;
}

.rsvp-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 3rem;
}
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 3rem;
}

.rsvp-form {
    max-width: 400px;
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input {
    width: 100%;
    padding: 18px 15px 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    left: 12px;
    font-size: 0.9rem;
    color: #d4af37;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 6px;
}

.input-line {
    display: none; /* Remove the bottom line since we have borders now */
}

.rsvp-photos-side {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.photo-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-slide.active {
    opacity: 1;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    /* Prevent entire website from shifting */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Fix RSVP section centering */
    .rsvp-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .rsvp-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    
    .rsvp-form-side {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .input-group input {
        text-align: left;
        text-indent: 0;
        padding-left: 15px;
        box-sizing: border-box;
        caret-color: #fff;
        line-height: 1.2;
        vertical-align: top;
        -webkit-appearance: none;
        transform: translateZ(0);
        position: relative;
        font-size: 16px;
    }
    
    .input-group input:focus {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        font-size: 16px;
    }
    
    /* Firefox iOS - position form higher */
    @supports (-moz-appearance: none) {
        .rsvp-section {
            padding-top: 20px;
        }
        
        .rsvp-container {
            margin-top: 0;
        }
    }
    
    /* Mobile group RSVP fixes */
    #rsvp-response {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
        margin: 0;
    }
    
    #rsvp-response > div {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px;
        margin: 10px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile group member layout */
    #rsvp-response > div > div {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 10px 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Name and toggle on separate lines for mobile */
    #rsvp-response > div > div > span:first-child {
        font-weight: 500;
        color: #2c3e50;
        margin-bottom: 8px;
        display: block;
        word-wrap: break-word;
    }
    
    /* Toggle and status container */
    #rsvp-response > div > div > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    
    .toggle-switch {
        width: 90px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .toggle-switch .toggle-slider {
        transition: .4s;
    }
    
    .toggle-switch .toggle-slider:before {
        height: 24px;
        width: 24px;
        transition: .4s;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(58px);
    }
    
    .rsvp-photos-side {
        height: 300px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

.rsvp-btn {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    background: #b8941f;
}

.rsvp-btn.not-going {
    background: #666;
    color: #fff;
}

.rsvp-btn.not-going:hover {
    background: #555;
}

.hidden {
    display: none;
}

.error {
    color: #ff6b6b;
    margin-top: 15px;
}

.success {
    color: #51cf66;
    margin-top: 15px;
}

/* Regular Sections */
.section {
    padding: 4rem 2rem;
}

.section:nth-child(even) {
    background: #f9f9f9;
}

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

.section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    font-style: italic;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3, .card p {
    padding: 0 1.5rem;
}

.card h3 {
    color: #d4af37;
    margin: 1rem 0;
    font-size: 1.3rem;
}

.card p {
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    max-width: 600px;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid #d4af37;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
}

.timeline-item h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 2rem;
}

.info-item h3 {
    color: #d4af37;
    margin-bottom: 1rem;
}

/* Photo Grid */
.photo-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.photo-grid-wrapper {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(15, calc(33.333% - 0.667rem));
    gap: 1rem;
    margin-top: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.photo:hover {
    transform: scale(1.05);
}

.photo-scroll-bar {
    display: none;
}

.photo-scroll-note {
    display: none;
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-nav-btn:hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-btn.prev {
    left: 10px;
}

.photo-nav-btn.next {
    right: 10px;
}

.photo-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.photo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-indicator.active {
    background: rgba(212, 175, 55, 1);
    transform: scale(1.3);
}

/* Ceremony Section */
.ceremony-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

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

.ceremony-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.venue-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.venue-info h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.venue-address {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.event-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-time {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-time h4 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.venue-features {
    margin-bottom: 2rem;
}

.venue-features p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.venue-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hotel-recommendations {
    margin-top: 3rem;
    text-align: center;
}

.hotel-recommendations h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.hotel-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.hotel-link:hover {
    text-decoration: underline;
}

.transport-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.transport-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-overlay {
        align-items: flex-start;
        padding-top: 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .split-content {
        grid-template-columns: 1fr;
    }
    
    .text-content {
        padding: 2rem;
    }
    
    .nav ul {
        gap: 1rem;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 0 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: 50px;
        align-items: center;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav a {
        white-space: nowrap;
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        display: block;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section h2 {
        font-family: 'Dancing Script', cursive;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
        font-style: italic;
    }
    
    .photo-carousel-container {
        padding: 0;
    }
    
    .photo-nav-btn {
        display: none;
    }
    
    .photo-indicators {
        display: none;
    }
    
    .photo-grid-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 2rem 0 0;
        padding: 0;
    }
    
    .photo-grid-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .photo-grid {
        display: flex;
        gap: 0;
        transform: none !important;
        transition: none;
        grid-template-columns: none;
        margin: 0;
    }
    
    .photo {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        height: 400px;
        border-radius: 0;
    }
    
    .venue-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-times {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile landscape specific */
@media (max-width: 926px) and (orientation: landscape) {
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav ul {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        height: 45px;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav a {
        white-space: nowrap;
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
}

/* Mobile Portrait Specific - Smaller text sizes */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-overlay {
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .date {
        font-size: 1.3rem;
    }
    
    .hero-content .city {
        font-size: 1.1rem;
    }
    
    .hero-content .country {
        font-size: 0.9rem;
    }
    
    .hero-content .tagline {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0 20px;
    }
    
    .rsvp-floating {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .rsvp-text {
        font-size: 0.9rem;
    }
    
    .loader-title {
        font-size: 1rem;
        margin: 0 auto 1rem auto;
        white-space: nowrap;
    }
    
    .split-section.reverse .split-content {
        display: flex;
        flex-direction: column;
    }
    
    .split-section.reverse .image-content {
        order: 1;
    }
    
    .split-section.reverse .text-content {
        order: 2;
    }
    
    .transition-image-section {
        background: none;
    }
    
    .transition-image-section::before {
        display: none;
    }
    
    .transition-image-section img {
        max-width: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .rsvp-photos-side {
        height: 500px;
    }
    
    .photo-carousel {
        position: relative;
        width: 100%;
        height: 500px;
    }
    
    .photo-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 500px;
    }
    
    .photo-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .photo-grid-wrapper {
        position: relative;
    }
    
    .photo-scroll-bar {
        display: block;
        position: relative;
        width: 80%;
        height: 3px;
        background: rgba(212, 175, 55, 0.3);
        border-radius: 2px;
        margin: 15px auto 0;
    }
    
    .photo-scroll-note {
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #999;
        margin-top: 8px;
        font-style: italic;
    }
    
    .photo-scroll-progress {
        height: 100%;
        background: rgba(212, 175, 55, 0.9);
        border-radius: 2px;
        transition: width 0.1s ease;
    }
}

/* RSVP Closed State */
.rsvp-closed {
    background: #9e9e9e !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.rsvp-closed:hover {
    background: #9e9e9e !important;
    transform: none !important;
}

input:disabled {
    background: rgba(128, 128, 128, 0.2) !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: rgba(128, 128, 128, 0.3) !important;
    box-shadow: none !important;
}

input:disabled + label {
    color: #999 !important;
}
/* RSVP Help Note */
.rsvp-help-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

/* Privacy Notice Collapsible */
.privacy-notice-container {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.privacy-toggle {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.privacy-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.privacy-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.privacy-arrow.rotated {
    transform: rotate(180deg);
}

.privacy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    width: 100%;
    box-sizing: border-box;
}

.privacy-content.expanded {
    max-height: 1000px;
    padding: 15px;
    opacity: 1;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.2s ease 0.1s;
}

.privacy-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
}

.privacy-content p:last-child {
    margin-bottom: 0;
    text-align: left;
}

/* Wishlist slideshow */
.wishlist-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.wishlist-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.wishlist-slide.active {
    opacity: 1;
}

/* Mobile fix for wishlist slideshow */
@media (max-width: 768px) {
    .wishlist-slideshow {
        min-height: 500px;
        height: 500px;
    }
    
    /* Make RSVP carousel taller on mobile */
    .photo-carousel {
        height: 500px;
        margin-bottom: 30px;
    }
    
    .photo-slide {
        height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .photo-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Add space below entire RSVP section on mobile */
    .rsvp-section {
        padding-bottom: 50px;
    }
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #fffdf7;
}

.loader-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-transform: none;
    font-variant: normal;
    position: relative;
    color: #fffdf7;
}

.ml5 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-right: 0.05em;
    padding-bottom: 0.15em;
    line-height: 1em;
}

.ml5 .line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 3px;
    width: 100%;
    background-color: #fffdf7;
    transform-origin: 0.5 0;
}

.ml5 .ampersand {
    font-family: 'Dancing Script', cursive;
    font-weight: 500;
    width: 1em;
    margin-right: -0.1em;
    margin-left: -0.1em;
}

.ml5 .letters {
    display: inline-block;
    opacity: 0;
}

.loader-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

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

/* Loading State */
body.loading {
    overflow: hidden;
}

body.loading .hero-video,
body.loading .nav,
body.loading section:not(.loader) {
    opacity: 0;
    pointer-events: none;
}

/* Explore Section with Map */
.explore-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.explore-container {
    max-width: 1400px;
    margin: 0 auto;
}

.explore-container h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    font-style: italic;
    margin-bottom: 1rem;
}

.explore-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
}

.explore-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    height: 600px;
}

.explore-list {
    overflow-y: auto;
    padding-right: 1rem;
}

.location-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d4af37;
}

.location-item.active {
    border-color: #d4af37;
    background: #fffef8;
}

.location-item h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.location-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.explore-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .explore-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .explore-list {
        height: 400px;
        margin-bottom: 2rem;
    }
    
    .explore-map {
        height: 400px;
    }
}


/* Mobile landscape specific - fix nav scrolling */
@media (max-width: 926px) and (orientation: landscape) {
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav ul {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        height: 45px;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav a {
        white-space: nowrap;
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .photo-carousel-container {
        padding: 0 60px;
    }
    
    .photo-grid-wrapper {
        overflow: hidden;
    }
    
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(15, calc(33.333% - 0.667rem));
        gap: 1rem;
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .photo {
        width: 100%;
        height: 250px;
        flex: none;
        scroll-snap-align: none;
    }
    
    .photo-nav-btn {
        display: flex;
    }
    
    .photo-indicators {
        display: flex;
    }
    
    .photo-scroll-bar {
        display: none;
    }
    
    .photo-scroll-note {
        display: none;
    }
}
