/* Royal Wedding Premium CSS - Mobile First */

/* CSS Variables for Royal Theme */
:root {
    --royal-purple: #6B3AA0;
    --rose-gold: #E8B4A0;
    --deep-gold: #B8860B;
    --ivory: #FFFFF0;
    --charcoal: #2C2C2C;
    --gradient-royal: linear-gradient(135deg, #6B3AA0 0%, #E8B4A0 100%);
    --gradient-gold: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    
    /* Typography */
    --font-royal: 'Playfair Display', serif;
    --font-script: 'Allura', cursive;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-height: 60px;
    
    /* Shadows */
    --shadow-royal: 0 8px 32px rgba(107, 58, 160, 0.15);
    --shadow-gold: 0 4px 16px rgba(184, 134, 11, 0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--ivory);
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

/* Container */
.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-royal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.royal-logo {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-royal);
}

.audio-control:hover {
    transform: scale(1.1);
}

.audio-control.playing {
    animation: pulse 2s infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-royal);
    font-size: 2rem;
    color: var(--royal-purple);
    margin: 1rem 0;
    position: relative;
}

.royal-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* Royal Ornaments */
.royal-ornament {
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 55 L30 65 L35 45 L20 30 L40 30 Z" fill="%23B8860B"/></svg>') center/contain no-repeat;
    margin: 1rem auto;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-royal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.royal-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="%23FFFFFF" fill-opacity="0.05"><circle cx="30" cy="30" r="20"/><circle cx="30" cy="30" r="10"/></g></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    max-width: 500px;
}

.bismillah {
    margin-bottom: 2rem;
}

.bismillah p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bismillah-translation {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.opening-text {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.couple-names {
    margin: 3rem 0;
}

.bride-name, .groom-name {
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ampersand {
    font-family: var(--font-royal);
    font-size: 1.5rem;
    margin: 1rem 0;
    opacity: 0.8;
}

.wedding-date {
    margin: 2rem 0;
}

.date-main {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 60px;
}

.countdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--deep-gold);
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--gradient-gold);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

/* Ayat Section */
.ayat-section {
    padding: 3rem 0;
    background: white;
}

.ayat-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ayat-arabic {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--royal-purple);
    font-weight: 500;
}

.ayat-translation {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--charcoal);
}

.ayat-source {
    font-weight: 600;
    color: var(--deep-gold);
}

/* Couple Section */
.couple-section {
    padding: 3rem 0;
    background: linear-gradient(45deg, #f8f9ff 0%, #fff5f5 100%);
}

.couple-profiles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-royal);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.bride-card::before {
    background: var(--gradient-royal);
}

.groom-card::before {
    background: var(--gradient-gold);
}

.profile-frame {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-royal);
}

.royal-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid transparent;
    border-radius: 20px;
    background: var(--gradient-gold);
    z-index: -1;
}

.profile-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--royal-purple);
    margin-bottom: 0.5rem;
}

.profile-fullname {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.profile-bio {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-royal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-royal);
}

/* Events Section */
.events-section {
    padding: 3rem 0;
    background: white;
}

.events-timeline {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-royal);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.akad-card::before {
    background: var(--gradient-royal);
}

.resepsi-card::before {
    background: var(--gradient-gold);
}

.event-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-royal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.resepsi-card .event-icon {
    background: var(--gradient-gold);
}

.event-content h3 {
    font-family: var(--font-royal);
    font-size: 1.5rem;
    color: var(--royal-purple);
    text-align: center;
    margin-bottom: 1.5rem;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-details > div {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.event-details i {
    color: var(--royal-purple);
    width: 20px;
    text-align: center;
}

.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-calendar, .btn-maps {
    flex: 1;
    min-width: 140px;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-calendar {
    background: var(--gradient-royal);
    color: white;
}

.btn-maps {
    background: var(--gradient-gold);
    color: white;
}

.btn-calendar:hover, .btn-maps:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-royal);
}

/* Location Section */
.location-section {
    padding: 3rem 0;
    background: linear-gradient(45deg, #f8f9ff 0%, #fff5f5 100%);
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-royal);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-royal);
}

.location-info h3 {
    font-family: var(--font-royal);
    font-size: 1.5rem;
    color: var(--royal-purple);
    margin-bottom: 0.5rem;
}

.location-info > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.location-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.detail-item i {
    color: var(--royal-purple);
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
    background: white;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-mode {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--royal-purple);
    background: transparent;
    color: var(--royal-purple);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-mode.active {
    background: var(--royal-purple);
    color: white;
}

/* Carousel Mode */
.gallery-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: none;
}

.gallery-carousel.active {
    display: block;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-royal);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--royal-purple);
}

/* Grid Mode */
.gallery-grid {
    display: none;
}

.gallery-grid.active {
    display: block;
}

.grid-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--royal-purple);
    background: transparent;
    color: var(--royal-purple);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--royal-purple);
    color: white;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-royal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 58, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

/* Story Section */
.story-section {
    padding: 3rem 0;
    background: linear-gradient(45deg, #f8f9ff 0%, #fff5f5 100%);
}

.story-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-royal);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-royal);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-royal);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-content h3 {
    color: var(--royal-purple);
    margin-bottom: 0.5rem;
    font-family: var(--font-royal);
}

.timeline-date {
    color: var(--deep-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Guestbook Section */
.guestbook-section {
    padding: 3rem 0;
    background: white;
}

.guestbook-form {
    max-width: 500px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-royal);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 3px rgba(107, 58, 160, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-royal);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-royal);
}

.messages-container {
    max-width: 600px;
    margin: 0 auto;
}

.message-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-royal);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-author {
    font-weight: 600;
    color: var(--royal-purple);
}

.message-category {
    padding: 0.25rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.message-category.ucapan {
    background: var(--royal-purple);
}

.message-category.doa {
    background: var(--deep-gold);
}

.message-category.kenangan {
    background: var(--rose-gold);
}

.message-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* Gifts Section */
.gifts-section {
    padding: 3rem 0;
    background: linear-gradient(45deg, #f8f9ff 0%, #fff5f5 100%);
}

.gifts-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.6;
}

.payment-methods {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.payment-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-royal);
    text-align: center;
}

.payment-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bank-logo,
.ewallet-logo {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

.payment-header h3 {
    color: var(--royal-purple);
    font-family: var(--font-royal);
}

.payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.account-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 1px;
}

.account-name {
    color: #666;
    margin-bottom: 1rem;
}

.copy-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-gold);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Closing Section */
.closing-section {
    padding: 3rem 0;
    background: var(--gradient-royal);
    color: white;
    text-align: center;
}

.closing-content {
    max-width: 600px;
    margin: 0 auto;
}

.closing-content h2 {
    font-family: var(--font-royal);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.closing-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.couple-signature {
    margin: 2rem 0;
}

.signature-names {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bride-signature,
.groom-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--deep-gold);
}

.families {
    opacity: 0.9;
    font-style: italic;
}

.social-follow {
    margin-top: 2rem;
}

.social-follow p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links .social-link {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-links .social-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--bottom-nav-height);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding-bottom: var(--safe-area-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.nav-item.active {
    color: var(--royal-purple);
    background: rgba(107, 58, 160, 0.1);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */

/* Mobile Medium (375px+) */
@media (min-width: 375px) {
    .container {
        max-width: 375px;
    }
    
    .couple-names {
        margin: 3.5rem 0;
    }
    
    .bride-name, .groom-name {
        font-size: 2.8rem;
    }
}

/* Mobile Large (414px+) */
@media (min-width: 414px) {
    .container {
        max-width: 414px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .couple-profiles {
        flex-direction: row;
        align-items: stretch;
    }
    
    .profile-card {
        flex: 1;
    }
    
    .countdown {
        gap: 1.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
}

/* Tablet Portrait (481px+) */
@media (min-width: 481px) {
    .container {
        max-width: 768px;
        padding: 0 2rem;
    }
    
    .couple-profiles {
        flex-direction: row;
        gap: 3rem;
    }
    
    .payment-methods {
        flex-direction: row;
        gap: 2rem;
    }
    
    .payment-card {
        flex: 1;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .story-timeline::before {
        left: 50px;
    }
    
    .timeline-icon {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    
    /* Convert bottom nav to top nav or side nav */
    .bottom-nav {
        position: sticky;
        top: 0;
        height: 70px;
        border-top: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .nav-item {
        flex-direction: row;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }
    
    .nav-item span {
        font-size: 0.9rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .bride-name, .groom-name {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .events-timeline {
        flex-direction: row;
        max-width: 1000px;
    }
    
    .event-card {
        flex: 1;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI screens */
    .royal-ornament {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .audio-control.playing {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --royal-purple: #4A0E4E;
        --charcoal: #000000;
        --shadow-royal: 0 4px 8px rgba(0,0,0,0.3);
    }
}

/* Print Styles */
@media print {
    .audio-control,
    .bottom-nav,
    .lightbox,
    .loading-screen {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}
