/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --primary-dark: #000000;
    --secondary-color: #fff5f5;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --background: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
   
}

/* ===================================
   LOADING SCREEN
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.wedding-rings {
    font-size: 4rem;
    animation: ring-pulse 1.5s infinite;
}

.loading-content p {
    font-size: 1.2rem;
    margin-top: 20px;
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}


.hero-background-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Content - positioned at bottom */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: #333;
    padding: 200px 0px 0px 0px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8), transparent);
    border-radius: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    min-height: 160px;
}



/* Hide the overlay divs since we're using pseudo-elements */
.hero-overlay,
.hero-gradient-bottom {
    display: none;
}

/* Hero Content Elements - Wedding Style từ bottom to top */
.hero-invitation-label {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #000000;
    order: 4;
    position: relative;
}


.hero-time-info {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(139, 90, 60, 0.3);
    letter-spacing: 2px;
    order: 3;
    line-height: 1;
}

.hero-date-large {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
   
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(139, 90, 60, 0.3);
    order: 2;
    position: relative;
    animation: zoomIn 1s 0.7s backwards;
    line-height: 1;
}

.hero-bottom-text {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    color: #000000;
    order: 1;
    font-style: italic;    
    line-height: 1;
    margin-bottom: 20px;
}

.wedding-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 20px auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '❤';
    position: absolute;
    top: -8px;
    font-size: 1rem;
}

.decorative-line::before { left: 0; }
.decorative-line::after { right: 0; }

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin: 30px 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--primary-color);
    margin: 0 20px;
    display: inline-block;
}

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

.date-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.date-text {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 10px;
    letter-spacing: 2px;
}

.heart-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 20px 0;
}

.scroll-indicator {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-hearts .heart {
    position: absolute;
    bottom: -50px;
    font-size: 2rem;
    color: rgba(196, 30, 58, 0.6);
    animation: float-up 10s infinite;
}

.floating-hearts .heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-hearts .heart:nth-child(2) { left: 30%; animation-delay: 2s; }
.floating-hearts .heart:nth-child(3) { left: 50%; animation-delay: 4s; }
.floating-hearts .heart:nth-child(4) { left: 70%; animation-delay: 6s; }
.floating-hearts .heart:nth-child(5) { left: 90%; animation-delay: 8s; }

@keyframes float-up {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100px) rotate(180deg);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-100px) rotate(360deg);
    }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: 100px 20px;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.title-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* ===================================
   INVITATION SECTION
   =================================== */
.invitation-section {
    background: linear-gradient(135deg, #fef5f7 0%, #ffffff 100%);
}

.invitation-content {
    max-width: 800px;
    margin: 0 auto;
}

.invitation-text {
    text-align: center;
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.invitation-text strong {
    color: var(--primary-color);
    font-size: 1.6rem;
    display: block;
    margin: 20px 0;
}

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

.parent-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.parent-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.parent-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.parent-card p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.parent-card .address {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
}

/* ===================================
   EVENT SECTION
   =================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.card-content p {
    margin: 10px 0;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.time {
    font-size: 1.3rem;
    margin: 15px 0;
}

.lunar-date {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.countdown-item {
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.countdown-item small {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Compact countdown (used in the welcome popup) */
.countdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    background: transparent; /* remove outer card/bg */
    padding: 0; /* no extra inner spacing */
    box-shadow: none;
    border-radius: 0;
}

.countdown-inline {
    display: flex;       /* layout items in a row */
    gap: 16px;
    align-items: center;
    flex-wrap: nowrap; /* keep items on a single line */
}

/* Hover sweep background across the whole inline countdown */
.countdown-inline {
    position: relative;
    overflow: hidden;
}

.countdown-inline::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(196,30,58,0.06), rgba(255,255,255,0.04));
    transform: translateX(0);
    transition: transform 600ms cubic-bezier(.2,.9,.2,1), opacity 300ms ease;
    opacity: 0 !important; /* ensure hidden by default */
    pointer-events: none;
}

/* show sweep only on hover — do NOT show on focus/active */
.countdown-inline:hover::before {
    transform: translateX(100%);
    opacity: 1 !important;
}

/* explicitly remove any background/box-shadow on focus/active */
.countdown-inline:focus,
.countdown-inline:active,
.countdown-inline:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.countdown-container:focus,
.countdown-container:active,
.countdown-container:focus-within {
    background: transparent !important;
    box-shadow: none !important;
}

/* Individual item hover — subtle lift and pop */
.countdown-item {
    transition: transform 280ms var(--transition), box-shadow 280ms var(--transition);
}

.countdown-inline:hover .countdown-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 36px rgba(196,30,58,0.12), inset 0 -6px 12px rgba(255,255,255,0.6);
}

/* Staggered transition for nicer feel */
.countdown-item { transition-delay: 0ms; }
.countdown-item:nth-child(1) { transition-delay: 20ms; }
.countdown-item:nth-child(2) { transition-delay: 60ms; }
.countdown-item:nth-child(3) { transition-delay: 100ms; }
.countdown-item:nth-child(4) { transition-delay: 140ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .countdown-inline::before,
    .countdown-item { transition: none !important; }
}

.countdown-inline .emoji {
    font-size: 1.1rem;
    margin: 0 4px;
}

.countdown-inline strong {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.countdown-inline .separator {
    color: var(--text-muted);
    margin: 0 6px;
}

/* Circular countdown items (days/hours/minutes/seconds) */
.countdown-item {
    --size: 120px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    border: 2px solid rgba(196,30,58,0.2);
    color: var(--primary-color);
}

.countdown-item strong {
    font-size: 34px;
    line-height: 1;
    color: var(--primary-color);
    font-weight: 700;
}

.countdown-item small {
    font-size: 14px;
    color: rgba(0,0,0,0.45);
    margin-top: 6px;
}

/* translucent blurred band at bottom of each circle */
.countdown-item::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 6%;
    height: 34%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* smaller circles on narrow screens */
@media (max-width: 480px) {
    .countdown-item { --size: 90px; }
    .countdown-item strong { font-size: 24px; }
    .countdown-item small { font-size: 12px; }
}

/* Hint text appearing above compact countdown */
.countdown-hint {
    text-align: center;
    color: rgba(255, 52, 79, 0.8);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    font-family: 'Great Vibes', cursive;
    text-shadow: 0 2px 4px rgba(196, 30, 58, 0.1);
    animation: fadeInGlow 1.2s ease-in-out;
}

@media (max-width: 480px) {
    .countdown-inline {
        padding: 8px 10px;
        gap: 6px;
        font-size: 0.95rem;
    }
    .countdown-inline strong { min-width: 28px; }
}

/* Map Section */
.map-section {
    margin-top: 60px;
}

.map-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.btn-map {
    display: block;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

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

.gallery-item {
    position: relative;
  
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(196, 30, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 3rem;
}

/* ===================================
   RSVP SECTION
   =================================== */
.rsvp-section {
    background: white;
}

.rsvp-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.rsvp-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 10px 0;
}

.rsvp-intro strong {
    color: var(--primary-color);
}

.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fef5f7 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.required {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(196,30,58,0.4);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.success-message.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

.success-message h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===================================
   WISHES SECTION
   =================================== */
.wishes-section {
    background: linear-gradient(135deg, #fef5f7 0%, #ffffff 100%);
}

.gift-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.bank-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.bank-card {
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.bank-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bank-logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

.bank-details p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.bank-details strong {
    color: var(--text-dark);
}

.btn-copy {
    margin-top: 0px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.qr-code {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.qr-code img {
    max-width: 250px;
    width: 100%;
    margin-bottom: 15px;
}

.qr-code p {
    color: var(--text-muted);
}

/* Wishes Wall */
.wishes-wall {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 2px dashed #e0e0e0;
}

.wishes-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wish-item {
    display: flex;
    gap: 20px;
   
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.wish-item:hover {
    transform: translateX(10px);
}

.wish-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wish-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.wish-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.wish-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: white;
    color: white;
    text-align: center;
}

.footer-content {
    max-width: 800px;
   



.footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0px;
}

.footer-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: px 0;
    opacity: 0.9;
}

.couple-names-footer {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin: 10px 0;
}

.couple-names-footer .ampersand {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===================================
   FLOATING BUTTONS
   =================================== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(196,30,58,0.4);
    z-index: 999;
    transition: var(--transition);
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing .music-icon {
    animation: spin 2s linear infinite;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease;
}

.animate-slide-up {
    animation: slideUp 1s ease 0.3s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1.5s ease 0.6s both;
}

.animate-pulse {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .wedding-title {
        font-size: 2.5rem;
    }

    .couple-names {
        font-size: 2rem;
    }

    .ampersand {
        font-size: 2.5rem;
        margin: 0 10px;
    }

    .date-number {
        font-size: 3.5rem;
    }

    .date-text {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .title-icon {
        font-size: 2rem;
    }

    .info-grid,
    .parents-info,
    .bank-info,
    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .countdown-item span {
        font-size: 2rem;
    }

    .music-toggle,
    .scroll-top {
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .music-toggle {
        left: 20px;
    }

    .scroll-top {
        right: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }


    .scroll-indicator {
        display: none;
    }

    .footer h3 {
        font-size: 2rem;
    }

    .couple-names-footer {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .wedding-title {
        font-size: 2rem;
    }

    .couple-names {
        font-size: 1.5rem;
    }

    .date-number {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .info-card,
    .parent-card,
    .bank-card {
        padding: 25px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}
