/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #1b5e20;
    --accent-color: #a5d6a7;
    --text-color: #333333;
    --light-bg: #f1f8e9;
    --white: #ffffff;
    --gold: #4caf50;
    --green-dark: #1b5e20;
    --green-light: #81c784;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    padding-top: 45px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ticker Notification */
.ticker-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    z-index: 999;
    overflow: hidden;
    height: 45px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-content span {
    padding: 0 50px;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sound Button */
.sound-btn {
    position: fixed;
    top: 55px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sound-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

.sound-btn:hover svg {
    color: white;
}

.sound-btn svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

/* Hearts Animation Container */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.heart {
    position: absolute;
    top: -50px;
    animation: fall linear forwards;
    opacity: 0.7;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    
    height: 100vh;
    background: url('image/backgroud.WebP') center/cover no-repeat;
    position: relative;
    display: flex;
    /* object-fit: cover;  */
    

    align-items: center;
    justify-content: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.save-date {
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin-bottom: 30px;
}

.ampersand {
    display: block;
    font-size: 3rem;
    margin: 10px 0;
    color: var(--gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wedding-date {
    font-size: 2rem;
    letter-spacing: 5px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ==================== SLIDE IMAGES EFFECT ==================== */
.slide-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.slide-img {
    position: absolute;
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 4px solid white;
    z-index: 3;
}

/* Slide from left */
.slide-img.slide-left {
    left: -200px;
    top: 15%;
    transform: rotate(-8deg);
}

.slide-img.slide-left.active {
    left: 5%;
    opacity: 0.85;
}

/* Slide from right */
.slide-img.slide-right {
    right: -200px;
    top: 60%;
    transform: rotate(8deg);
}

.slide-img.slide-right.active {
    right: 5%;
    opacity: 0.85;
}

/* Slide from top */
.slide-img.slide-top {
    top: -150px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
}

.slide-img.slide-top.active {
    top: 8%;
    opacity: 0.85;
}

/* Slide from bottom */
.slide-img.slide-bottom {
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
}

.slide-img.slide-bottom.active {
    bottom: 8%;
    opacity: 0.85;
}

/* Different positions for variety */
.story-section .slide-img.slide-left { top: 20%; }
.story-section .slide-img.slide-right { top: 50%; }
.story-section .slide-img.slide-bottom { left: 30%; }

.couple-section .slide-img.slide-left { top: 25%; }
.couple-section .slide-img.slide-right { top: 65%; }
.couple-section .slide-img.slide-top { left: 70%; }

.event-section .slide-img.slide-left { top: 30%; }
.event-section .slide-img.slide-right { top: 55%; }

.gallery-section .slide-img.slide-left { top: 10%; }
.gallery-section .slide-img.slide-right { top: 70%; }
.gallery-section .slide-img.slide-bottom { left: 70%; }

.rsvp-section .slide-img.slide-left { top: 35%; }
.rsvp-section .slide-img.slide-right { top: 45%; }

.wishes-section .slide-img.slide-left { top: 15%; }
.wishes-section .slide-img.slide-right { top: 60%; }
.wishes-section .slide-img.slide-top { left: 25%; }

/* Hover effect on slide images */
.slide-img.active:hover {
    transform: scale(1.05) rotate(0deg);
    opacity: 1;
    z-index: 10;
}

/* ==================== Z-INDEX LAYERS ==================== */
/* Đảm bảo tất cả nội dung text và elements quan trọng luôn nằm trên ảnh bay */
.section-title,
.countdown,
.countdown-item,
.invitation-content,
.invitation-card,
.invitation-text,
.invitation-divider,
.invitation-quote,
.invitation-signature,
.invitation-signature .heart,
.couple-wrapper,
.person,
.person h3,
.person-desc,
.person .quote,
.heart-divider,
.events-wrapper,
.event-card,
.gallery-slideshow,
.rsvp-desc,
.rsvp-form,
.wishes-subtitle,
.wishes-carousel,
.wish-card,
h1, h2, h3, h4, h5, h6,
p, span, a, button,
form, input, textarea {
    position: relative;
    z-index: 5;
}

/* Slide images ở layer giữa */
.slide-images {
    z-index: 3;
}

.slide-img {
    z-index: 3;
}

/* Container ở layer dưới cùng */
.container {
    z-index: 2;
}

/* ==================== END Z-INDEX LAYERS ==================== */

/* Section Title */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.section-title::after {
    content: '❤';
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--gold);
}

/* All sections need relative positioning */
.countdown-section,
.story-section,
.couple-section,
.event-section,
.gallery-section,
.rsvp-section,
.wishes-section {
    position: relative;
    overflow: hidden;
}

/* Container stays above slide images */
.countdown-section .container,
.story-section .container,
.couple-section .container,
.event-section .container,
.gallery-section .container,
.rsvp-section .container,
.wishes-section .container {
    position: relative;
    z-index: 2;
}

/* Countdown Section */
.countdown-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #c8e6c9 100%);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: glassShine 3s infinite;
}

@keyframes glassShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.countdown-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.countdown-item .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.countdown-item .label {
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-content .date {
    color: var(--gold);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.timeline-content p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Couple Section */
.couple-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #c8e6c9 0%, #f1f8e9 100%);
}

.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.person {
    text-align: center;
    max-width: 350px;
    position: relative;
    z-index: 5;
}

.person-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.person-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.person-desc {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    z-index: 5;
}

.person .quote {
    font-style: italic;
    color: var(--gold);
    font-size: 1rem;
    position: relative;
    z-index: 5;
}

.heart-divider {
    font-size: 3rem;
    animation: heartbeat 1.5s infinite;
    position: relative;
    z-index: 5;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

/* Event Section */
.event-section {
    padding: 100px 0;
    background: var(--white);
}

.events-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.event-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
}

.event-card:hover {
    transform: translateY(-15px);
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.event-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.event-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

.event-date {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.event-location {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-address {
    color: #777;
    margin-bottom: 20px;
}

.map-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #c8e6c9 100%);
}

/* Gallery Slideshow */
.gallery-slideshow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.gallery-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive for gallery */
@media (max-width: 768px) {
    .gallery-slide img {
        height: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: visible;
}

.rsvp-desc {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    z-index: 5;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    z-index: 5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #c8e6c9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Attendance Group */
.attendance-group {
    margin-bottom: 25px;
}

.attendance-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: left;
}

.attendance-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    min-height: 80px;
}

.attendance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    background: var(--light-bg);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    user-select: none;
}

.attendance-option:last-child {
    transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease;
}

.attendance-option:hover {
    border-color: var(--gold);
    background: white;
}

.attendance-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.attendance-option input[type="radio"]:checked + .radio-custom {
    background: var(--gold);
    border-color: var(--gold);
}

.attendance-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.attendance-option input[type="radio"]:checked ~ span:last-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.attendance-option span:last-child {
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

/* Wishes Section */
.wishes-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #c8e6c9 0%, #f1f8e9 100%);
}

.wishes-desc {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.wishes-form {
    max-width: 500px;
    margin: 0 auto 60px;
}

.wishes-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 5;
}

/* Wishes Carousel */
.wishes-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 5;
}

.wishes-carousel > div:first-child {
    overflow: hidden;
    border-radius: 20px;
}

.wishes-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.wishes-track .wish-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.wish-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wish-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: 'Dancing Script', cursive;
}

.wish-content {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wish-author {
    color: var(--gold);
    font-weight: 600;
    text-align: right;
    font-size: 1.1rem;
}

/* Wishes Navigation Buttons */
.wishes-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wishes-nav:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.wishes-prev {
    left: 10px;
}

.wishes-next {
    right: 10px;
}

/* Wishes Dots */
.wishes-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.wish-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.wish-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.wish-dot:hover {
    background: rgba(76, 175, 80, 0.6);
}

/* Hide gallery dots */
.gallery-dots {
    display: none;
}

/* Footer */
.footer {
    padding: 80px 0;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: var(--white);
    text-align: center;
}

.thank-you {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-names {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-hearts {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* Animation Classes for AOS */
[data-aos] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"] {
    transform: translateY(60px);
}

[data-aos="fade-right"] {
    transform: translateX(-80px);
}

[data-aos="fade-left"] {
    transform: translateX(80px);
}

[data-aos="slide-up"] {
    transform: translateY(100px) scale(0.9);
}

[data-aos="slide-left"] {
    transform: translateX(-100px);
}

[data-aos="slide-right"] {
    transform: translateX(100px);
}

[data-aos="zoom-in"] {
    transform: scale(0.7);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Body padding for ticker */
    body {
        padding-top: 40px;
    }
    
    /* Ticker Mobile */
    .ticker-wrapper {
        height: 40px;
    }
    
    .ticker-content span {
        padding: 0 30px;
        font-size: 0.95rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .save-date {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    
    .couple-names {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .ampersand {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    .wedding-date {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    /* Section Title Mobile */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    
    .section-title::after {
        font-size: 1.2rem;
    }
    
    /* Countdown Mobile */
    .countdown-section,
    .story-section,
    .couple-section,
    .event-section,
    .gallery-section,
    .rsvp-section,
    .wishes-section {
        padding: 60px 0;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 20px 25px;
        min-width: 80px;
    }
    
    .countdown-item .number {
        font-size: 2.5rem;
    }
    
    .countdown-item .label {
        font-size: 0.85rem;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
        margin-bottom: 35px;
    }
    
    .timeline-icon {
        left: -5px !important;
        right: auto !important;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .timeline-content h3 {
        font-size: 1.5rem;
    }
    
    .timeline-content p {
        font-size: 1rem;
    }
    
    /* Couple Section Mobile */
    .couple-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .person {
        max-width: 100%;
    }
    
    .person-image {
        width: 200px;
        height: 200px;
        border: 4px solid var(--gold);
    }
    
    .person h3 {
        font-size: 1.8rem;
    }
    
    .person-desc {
        font-size: 1rem;
    }
    
    .person .quote {
        font-size: 0.95rem;
    }
    
    .heart-divider {
        transform: rotate(90deg);
        font-size: 2.5rem;
    }
    
    /* Event Section Mobile */
    .events-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .event-card {
        padding: 30px 25px;
        max-width: 100%;
        width: 100%;
    }
    
    .event-icon {
        font-size: 3rem;
    }
    
    .event-card h3 {
        font-size: 1.8rem;
    }
    
    .event-time {
        font-size: 1.3rem;
    }
    
    .event-date {
        font-size: 1.1rem;
    }
    
    .event-location {
        font-size: 1rem;
    }
    
    .event-address {
        font-size: 0.95rem;
    }
    
    /* Gallery Mobile */
    .gallery-slide img {
        height: 280px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    /* RSVP Mobile */
    .rsvp-desc {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .rsvp-form {
        padding: 0 10px;
    }
    
    .attendance-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .attendance-option {
        min-width: 100%;
        padding: 10px 15px;
    }
    
    .attendance-label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    /* Wishes Mobile */
    .wishes-carousel {
        max-width: 100%;
        padding: 0 45px;
    }
    
    .wishes-track .wish-card {
        padding: 25px 20px;
        min-height: 150px;
    }
    
    .wishes-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .wishes-prev {
        left: 5px;
    }
    
    .wishes-next {
        right: 5px;
    }
    
    .wish-dot {
        width: 10px;
        height: 10px;
    }
    
    .wish-content {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .wish-author {
        font-size: 0.95rem;
    }
    
    .wish-card::before {
        font-size: 2.5rem;
        left: 10px;
        top: 5px;
    }
    
    .wishes-subtitle {
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 50px 0;
    }
    
    .thank-you {
        font-size: 2.2rem;
    }
    
    .footer-names {
        font-size: 1.6rem;
    }
    
    .footer-date {
        font-size: 1rem;
    }
    
    /* Invitation Section Mobile */
    .invitation-card {
        padding: 30px 20px;
    }
    
    .invitation-icon {
        font-size: 3rem;
    }
    
    .invitation-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .invitation-quote {
        font-size: 1rem;
        padding: 15px;
    }
    
    .invitation-signature {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Smaller slide images on mobile */
    .slide-img {
        width: 80px;
        height: 60px;
        border: 2px solid white;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .slide-img.slide-left.active {
        left: 3%;
    }
    
    .slide-img.slide-right.active {
        right: 3%;
    }
    
    .slide-img.slide-top.active {
        top: 5%;
    }
    
    .slide-img.slide-bottom.active {
        bottom: 5%;
    }
    
    /* Sound Button Mobile */
    .sound-btn {
        width: 45px;
        height: 45px;
        top: 50px;
        right: 15px;
    }
    
    .sound-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Container padding mobile */
    .container {
        padding: 0 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .couple-names {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 70px;
    }
    
    .countdown-item .number {
        font-size: 2rem;
    }
    
    .person-image {
        width: 180px;
        height: 180px;
    }
    
    .gallery-slide img {
        height: 240px;
    }
    
    .event-card {
        padding: 25px 20px;
    }
}

/* ==================== INVITATION SECTION (LỜI NGỎ) ==================== */
.invitation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #c8e6c9 0%, #f1f8e9 100%);
    position: relative;
    overflow: hidden;
}

.invitation-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.invitation-card {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 5;
}

.invitation-card::before,
.invitation-card::after {
    content: '❦';
    position: absolute;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
}

.invitation-card::before {
    top: 20px;
    left: 30px;
}

.invitation-card::after {
    bottom: 20px;
    right: 30px;
}

.invitation-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.invitation-text {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.invitation-divider {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 30px 0;
    letter-spacing: 10px;
    position: relative;
    z-index: 5;
}

.invitation-quote {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--secondary-color);
    line-height: 1.8;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    position: relative;
    z-index: 5;
}

.invitation-signature {
    margin-top: 35px;
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 5;
}

.invitation-signature .heart {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
    position: relative;
    z-index: 5;
}

/* Ensure container stays above slide images */
.invitation-section .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .invitation-card {
        padding: 35px 25px;
    }
    
    .invitation-text {
        font-size: 1.1rem;
    }
    
    .invitation-signature {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
}
