/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4c5b9;
    --accent-color: #b8a082;
    --text-dark: #3a3a3a;
    --text-light: #fff;
    --text-muted: #8a8a8a;
    --background-cream: #faf9f7;
    --background-beige: #f5f3f0;
    --background-white: #ffffff;
    --background-soft: #fbfaf9;
    --border-light: #eeebe7;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-soft: 0 2px 12px rgba(0,0,0,0.04);
    --border-radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background-white);
    scroll-behavior: smooth;
}

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

/* SECTION TITLES */
.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f4a26122;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.header.scrolled .nav-logo .logo-text {
    font-size: 2rem;
}

/* Default: keep names on one line for desktop and large tablets */
.nav-logo .logo-text .break-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-logo {
        text-align: center;
        flex: 1;
    }
    
    .nav-logo .logo-text {
        font-size: 1.9rem;
        line-height: 1.1;
        display: block;
    }
    
    .header.scrolled .nav-logo .logo-text {
        font-size: 1.5rem;
    }
    
    .header.scrolled {
        padding: 0.6rem 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.header.scrolled .nav-link {
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}



/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed header */
}

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

.hero-background {
    background: none;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 20%;
    display: block;
    opacity: 0;
    transform: scale(1.1);
    animation: heroImageReveal 2.5s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    text-align: center;
}

.couple-names-overlay {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 2.5s ease-out 0.3s forwards;
    letter-spacing: 1px;
}

.hero-cta {
    position: relative;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroCtaReveal 1.5s ease-out 2s forwards;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 0 20px rgba(212, 197, 185, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        0 0 30px rgba(212, 197, 185, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.hero-btn i {
    font-size: 1.2rem;
    animation: heartBeat 2s ease-in-out infinite;
}

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

.name-part-overlay {
    display: block;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    animation: slideInUp 1.2s ease-out forwards;
}

.name-part-overlay:first-child {
    animation-delay: 0.1s;
}

.name-part-overlay:last-child {
    animation-delay: 0.5s;
}

.ampersand-overlay {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--accent-color);
    display: inline-block;
    margin: 0 10px;
    position: relative;
    transform: scale(0) rotate(-15deg);
    animation: scaleRotateIn 1s ease-out 0.8s forwards;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleRotateIn {
    to {
        transform: scale(1) rotate(0deg);
    }
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 15px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    display: inline-block;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 4;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-arrow {
    font-size: 2rem;
    opacity: 0.8;
}

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

/* HERO CTA SECTION */
.hero-cta-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, var(--background-soft) 50%);
    padding: 60px 0 40px 0;
    text-align: center;
    position: relative;
}

/* INVITATION */
.invitation {
    background: linear-gradient(180deg, var(--background-soft) 0%, var(--background-soft) 100%);
    padding: 80px 0 80px 0;
    text-align: center;
    position: relative;
}



.invitation-text {
    font-size: 1.3rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
    font-weight: 300;
}

/* OUR STORY */
.our-story {
    background: linear-gradient(180deg, var(--background-beige) 0%, var(--background-white) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}



.story-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf-decoration {
    position: absolute;
    width: 80px;
    height: 120px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 36"><path d="M12 2C8 8 2 14 2 22c0 6 4 12 10 12s10-6 10-12c0-8-6-14-10-20z" fill="%23d4af7a" opacity="0.3"/></svg>') no-repeat center;
    background-size: contain;
    animation: gentleFloat 4s ease-in-out infinite;
}

.leaf-1 {
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.leaf-2 {
    top: 20%;
    right: 8%;
    transform: rotate(25deg);
    animation-delay: 1s;
}

.leaf-3 {
    bottom: 15%;
    left: 3%;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.leaf-4 {
    bottom: 25%;
    right: 5%;
    transform: rotate(-30deg);
    animation-delay: 3s;
}

.story-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    min-height: 500px;
}

/* Polaroid Styles */
.polaroid-left,
.polaroid-right {
    flex-shrink: 0;
}

.polaroid-left .polaroid-frame {
    transform: rotate(-12deg);
    margin-top: 50px;
}

.polaroid-right .polaroid-frame {
    transform: rotate(8deg);
    margin-bottom: 50px;
}

.polaroid-frame {
    background: #fff;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: var(--transition);
    width: 280px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.polaroid-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.polaroid-text {
    text-align: center;
    margin-top: 15px;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.story-center {
    flex: 1;
    max-width: 500px;
    text-align: center;
    padding: 0 20px;
}

.story-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.story-title-main {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.story-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
}

/* WEDDING GALLERY SECTION */
.wedding-gallery-section {
    background: var(--background-soft);
    padding: 100px 0;
}

/* WEDDING GALLERY */
.wedding-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-page.active {
    display: block;
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-bottom: 40px;
    min-height: auto;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    background: var(--background-white);
    aspect-ratio: 3/4;
    min-height: 380px;
    height: auto;
}

.gallery-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-light);
    padding: 25px 15px 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    font-style: italic;
}

.card-overlay span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination-btn {
    background: var(--background-white);
    border: 2px solid var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: var(--background-white);
    color: var(--primary-color);
}

.page-indicator {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.current-page {
    color: var(--primary-color);
    font-weight: 700;
}



@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* SAVE THE DATE SECTION */
.save-the-date {
    background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.save-the-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(184, 160, 130, 0.7) 0%, 
        rgba(212, 197, 185, 0.6) 100%);
    z-index: 1;
}

.save-decoration-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flower-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c-2 0-4 2-4 4 0-2-2-4-4-4s-4 2-4 4c0 4 4 8 8 8s8-4 8-8c0-2-2-4-4-4s-2 2-4 4z" fill="%23ffffff" opacity="0.2"/><circle cx="12" cy="12" r="2" fill="%23ffffff" opacity="0.3"/></svg>') no-repeat center;
    background-size: contain;
    animation: gentleFloat 6s ease-in-out infinite;
}

.flower-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.flower-2 {
    top: 25%;
    right: 12%;
    animation-delay: 2s;
}

.flower-3 {
    bottom: 20%;
    left: 6%;
    animation-delay: 4s;
}

.flower-4 {
    bottom: 30%;
    right: 8%;
    animation-delay: 1.5s;
}

.save-the-date .container {
    position: relative;
    z-index: 2;
}



.white-title {
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(0,0,0,0.3);
}

.save-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 60px;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.4),
        0 0 8px rgba(0,0,0,0.2);
}

.dual-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.event-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.event-header {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.event-header i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.event-info {
    text-align: center;
}

.event-date {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.4),
        0 0 8px rgba(0,0,0,0.2);
}

.event-location {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* COUNTDOWN */
.countdown-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-shadow: 
        1px 1px 3px rgba(0,0,0,0.4),
        0 0 8px rgba(0,0,0,0.2);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 15px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-width: 80px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.4),
        0 0 10px rgba(0,0,0,0.2);
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* EVENTS SECTION */
.events {
    background: var(--background-beige);
    padding: 100px 0;
    position: relative;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23f4a261;stop-opacity:0.1" /><stop offset="100%" style="stop-color:transparent" /></radialGradient></defs><circle cx="20" cy="10" r="3" fill="url(%23grad1)" /><circle cx="50" cy="10" r="3" fill="url(%23grad1)" /><circle cx="80" cy="10" r="3" fill="url(%23grad1)" /></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.events-decoration-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.vine-decoration {
    position: absolute;
    width: 120px;
    height: 200px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 80"><path d="M20 0 Q 15 10 20 20 Q 25 30 20 40 Q 15 50 20 60 Q 25 70 20 80" stroke="%23d4c5b9" stroke-width="2" fill="none" opacity="0.15"/><circle cx="12" cy="15" r="3" fill="%23b8a082" opacity="0.2"/><circle cx="28" cy="35" r="2.5" fill="%23d4c5b9" opacity="0.2"/><circle cx="15" cy="55" r="2" fill="%23b8a082" opacity="0.2"/><circle cx="25" cy="70" r="3" fill="%23d4c5b9" opacity="0.2"/></svg>') no-repeat center;
    background-size: contain;
    animation: gentleFloat 8s ease-in-out infinite;
}

.vine-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.vine-2 {
    top: 20%;
    right: 8%;
    transform: scaleX(-1);
    animation-delay: 3s;
}

.vine-3 {
    bottom: 15%;
    left: 7%;
    animation-delay: 1.5s;
}

.wedding-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.timeline-column {
    background: var(--background-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.timeline-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
}

.timeline-location {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.timeline-events {
    margin-top: 30px;
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--background-beige);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-event:hover {
    background: rgba(212, 197, 185, 0.1);
    transform: translateX(10px);
}

.event-time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    font-size: 1.1rem;
}

.event-content {
    flex: 1;
    color: var(--text-dark);
}

/* MAPS SECTION */
.maps-section {
    background: var(--background-white);
    padding: 100px 0;
    position: relative;
}

.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-card {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.map-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.08), rgba(184, 160, 130, 0.06));
}

.map-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.map-address {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.map-time {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.map-iframe {
    width: 100%;
    height: 300px;
}

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

.map-actions {
    padding: 25px;
    text-align: center;
    background: var(--background-beige);
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

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

/* QR PAYMENT SECTION */
.qr-payment {
    background: var(--background-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}



.qr-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Flip Card Styles */
.qr-flip-card {
    background: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.qr-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.qr-flip-card.flipped .qr-flip-card-inner {
    transform: rotateY(180deg);
}

.qr-flip-card-front, .qr-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 25px;
    border: 2px solid var(--border-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qr-flip-card-front {
    background: linear-gradient(135deg, 
        rgba(212, 197, 185, 0.15) 0%, 
        rgba(184, 160, 130, 0.08) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    color: var(--text-dark);
}

.qr-flip-card-back {
    background: linear-gradient(135deg, 
        rgba(212, 197, 185, 0.08) 0%, 
        rgba(184, 160, 130, 0.06) 100%);
    color: var(--text-dark);
    transform: rotateY(180deg);
}

.qr-flip-card:hover .qr-flip-card-front,
.qr-flip-card:hover .qr-flip-card-back {
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.qr-flip-card:hover .qr-flip-card-back {
    transform: rotateY(180deg) translateY(-5px);
}

/* Card Icon */
.card-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin: 20px 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.qr-flip-card:hover .card-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Card Preview */
.card-preview {
    text-align: center;
    margin: 20px 0;
}

.card-preview p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

/* Animated Text */
.animated-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600 !important;
    animation: textGradientShift 3s ease-in-out infinite, textFloat 2s ease-in-out infinite;
    text-shadow: none;
}



@keyframes textGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Flip Hints */
.flip-back-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.qr-flip-card:hover .flip-back-hint {
    opacity: 1;
}

/* Legacy qr-card for backwards compatibility */
.qr-card {
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.08), rgba(184, 160, 130, 0.06));
    padding: 40px 30px;
    border-radius: 25px;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.qr-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(244,162,97,0.1) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite reverse;
}

.qr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.qr-header {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    background: white;
    padding: 10px;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.bank-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* GALLERY */
.gallery {
    background: var(--background-soft);
    padding: 100px 0;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23e8b4b8" opacity="0.3"/><circle cx="50" cy="30" r="1.5" fill="%23f4a261" opacity="0.3"/><circle cx="80" cy="40" r="2" fill="%23e8b4b8" opacity="0.3"/><circle cx="30" cy="60" r="1" fill="%23f4a261" opacity="0.3"/><circle cx="70" cy="70" r="1.5" fill="%23e8b4b8" opacity="0.3"/></svg>') repeat;
    pointer-events: none;
}

.gallery-decoration-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.petal-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><ellipse cx="10" cy="10" rx="8" ry="4" fill="%23f4a261" opacity="0.1" transform="rotate(45 10 10)"/><ellipse cx="10" cy="10" rx="4" ry="8" fill="%23d4c5b9" opacity="0.1" transform="rotate(-45 10 10)"/></svg>') no-repeat center;
    background-size: contain;
    animation: gentleFloat 5s ease-in-out infinite;
}

.petal-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.petal-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2.5s;
}

.petal-3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 1s;
}

.petal-4 {
    bottom: 35%;
    right: 12%;
    animation-delay: 3.5s;
}

.gallery-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--text-light);
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    pointer-events: all;
    
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    
    /* Multi-layer shadow for depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Icon styling */
.nav-btn i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 20px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 197, 185, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.dot:hover {
    background: rgba(212, 197, 185, 0.6);
    transform: scale(1.2);
    border-color: rgba(212, 197, 185, 0.3);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    border-color: rgba(212, 197, 185, 0.2);
    box-shadow: 0 0 0 4px rgba(212, 197, 185, 0.2);
}

.dot.active::before {
    transform: translate(-50%, -50%) scale(1);
    background: var(--text-light);
}

.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    justify-items: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* CONTACT */
.contact {
    background: var(--background-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="10" cy="10" r="1" fill="%23e8b4b8" opacity="0.4"/><circle cx="50" cy="20" r="1.5" fill="%23f4a261" opacity="0.4"/><circle cx="30" cy="40" r="1" fill="%23e8b4b8" opacity="0.4"/><circle cx="45" cy="50" r="1.2" fill="%23f4a261" opacity="0.4"/></svg>') repeat;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: var(--background-beige);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: rgba(212, 197, 185, 0.08);
}

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

.contact-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2a2a2a 100%);
    color: var(--text-light);
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-text {
    width: 100%;
}

.footer-message {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-names {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin: 20px 0;
    font-weight: 700;
}

.groom-name,
.bride-name {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.separator {
    color: var(--accent-color);
    margin: 0 15px;
    font-size: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero {
        min-height: 80vh;
        margin-top: 70px;
    }

    .hero-background img {
        object-position: 30% 15%;
    }

    .couple-names-overlay {
        font-size: 3.5rem;
        gap: 12px;
    }

    .ampersand-overlay {
        font-size: 3rem;
    }

    .nav-container {
        justify-content: center;
        position: relative;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }



    .hero-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

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

    .story-layout {
        flex-direction: column;
        gap: 40px;
    }

    .polaroid-frame {
        width: 250px;
    }

    .polaroid-left .polaroid-frame,
    .polaroid-right .polaroid-frame {
        transform: rotate(0deg);
    }

    .story-title-main {
        font-size: 2.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        gap: 15px;
        min-height: auto;
    }
    
    .gallery-card {
        aspect-ratio: 3/4;
        min-height: 320px;
        height: auto;
    }
    
    .footer-names {
        font-size: 2.5rem;
    }

    .dual-events {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .countdown-container {
        gap: 20px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .wedding-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .maps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qr-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qr-flip-card {
        height: 350px;
    }

    .card-icon {
        font-size: 3rem;
        margin: 15px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slider-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 250px;
        padding: 0 10px;
    }

    .thumbnail {
        width: 70px;
        height: 52px;
    }

    .slider-dots {
        gap: 10px;
        margin-top: 20px;
        padding: 15px 0;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        gap: 40px; /* Tăng khoảng cách giữa các ảnh trên tablet */
    }
    
    .gallery-card {
        min-height: 280px;
    }
    
    .slider-thumbnails {
        gap: 15px; /* Tăng khoảng cách giữa thumbnails trên tablet */
        max-width: 350px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
}

/* Medium screens (tablets) - keep names on one line */
@media (max-width: 768px) and (min-width: 481px) {
    .nav-logo .logo-text .break-mobile {
        display: none;
    }
}

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

    .hero {
        min-height: 70vh;
        margin-top: 60px;
    }

    .hero-background img {
        object-position: 30% 10%;
    }
    
    .nav-logo .logo-text {
        font-size: 1.9rem;
        line-height: 1.15;
    }
    
    .nav-logo .logo-text .break-mobile {
        display: block;
    }
    
    .header.scrolled .nav-logo .logo-text {
        font-size: 1.6rem;
    }
    
    .header.scrolled {
        padding: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }



    .hero-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

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

    .story-title-main {
        font-size: 2.5rem;
    }

    .polaroid-frame {
        width: 200px;
    }

    .polaroid-frame img {
        height: 250px;
    }

    .story-card {
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        gap: 15px;
        min-height: auto;
    }
    
    .gallery-card {
        aspect-ratio: 3/4;
        min-height: 280px;
        height: auto;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    

    
    .footer-names {
        font-size: 2.2rem;
    }

    .couple-names-overlay {
        font-size: 3rem;
        gap: 10px;
        flex-direction: column;
    }

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

    .qr-card {
        padding: 25px 20px;
    }

    .qr-code {
        width: 140px;
        height: 140px;
        padding: 8px;
    }

    .qr-flip-card {
        height: 320px;
    }

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

    .qr-flip-card-front, .qr-flip-card-back {
        padding: 20px;
    }
    
    .qr-flip-card-front {
        /* Mobile optimization for image sharpness */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .qr-flip-card-back {
        /* Maintain rotateY transform for back face */
        -webkit-transform: rotateY(180deg) translateZ(0);
        transform: rotateY(180deg) translateZ(0);
    }
    
    .qr-code img {
        /* Force GPU acceleration for crisp images on mobile */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        image-rendering: crisp-edges;
    }

    .slide img {
        height: 400px;
        object-position: center top;
    }

    .timeline-column {
        padding: 25px 20px;
    }

    .countdown-item {
        padding: 15px 10px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .slider-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: 200px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .slider-dots {
        gap: 8px;
        margin-top: 15px;
        padding: 10px 0;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* iOS/Safari specific fixes for QR image blur */
@supports (-webkit-touch-callout: none) {
    .qr-flip-card-inner {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .qr-code img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        filter: contrast(1.1) brightness(1.05);
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .qr-code img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-filter: contrast(1.05);
        filter: contrast(1.05);
    }
}

/* LOADING ANIMATIONS */
@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroCtaReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-3px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* SCROLL ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

.gentle-float {
    animation: gentleFloat 3s ease-in-out infinite;
}



/* NOTIFICATION STYLES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background-white);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left-color: #22c55e;
}

.notification.error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}