/* Reset scroll behavior */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #B38B6D;
    --secondary-color: #F9F5F1;
}

body {
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    position: relative;
}

#cover {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenburns 20s linear infinite;
    animation-delay: -20s;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-image:nth-child(2) {
    animation-delay: -15s;
}

.slideshow-image:nth-child(3) {
    animation-delay: -10s;
}

@keyframes kenburns {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Media query untuk memastikan aspek rasio yang konsisten */
@media (max-width: 480px) {
    .slideshow {
        width: 100vw;
        height: 100vh;
    }

    .slideshow-image {
        width: 100%;
        height: 100%;
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0);
    }
    25% {
        transform: scale(1.1) translate(-1%, 1%);
    }
    50% {
        transform: scale(1.1) translate(1%, -1%);
    }
    75% {
        transform: scale(1.1) translate(-1%, -1%);
    }
    100% {
        transform: scale(1) translate(0);
    }
}

/* Tambahkan variasi animasi untuk setiap slide */
.slideshow-image.image-1 {
    animation-name: kenburns-1;
}

.slideshow-image.image-2 {
    animation-name: kenburns-2;
}

.slideshow-image.image-3 {
    animation-name: kenburns-3;
}

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

@keyframes kenburns-2 {
    0% {
        transform: scale(1) translate(0);
    }
    50% {
        transform: scale(1.1) translate(1%, -1%);
    }
    100% {
        transform: scale(1) translate(0);
    }
}

@keyframes kenburns-3 {
    0% {
        transform: scale(1) translate(0);
    }
    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }
    100% {
        transform: scale(1) translate(0);
    }
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 5vh 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0) 20%,
        rgba(0,0,0,0) 80%,
        rgba(0,0,0,0.6) 100%);
}

.header-text {
    padding-top: 2vh;
}

.wedding-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCover 0.8s ease forwards;
    animation-delay: 0.3s;
}

.couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin: 0.5rem 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: fadeInUpScaleCover 1s ease forwards;
    animation-delay: 0.2s;
}

.wedding-date {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCover 0.3s ease forwards;
    animation-delay: 1s;
}

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

@keyframes fadeInUpScaleCover {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-content {
    margin-bottom: 3vh;
}

.to-guest {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCover 0.3s ease forwards;
    animation-delay: 1.3s;
}

.open-button {
    background-color: rgba(69, 43, 50, 0.8);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: fadeInUpScaleCover 0.3s ease forwards;
    animation-delay: 1.6s;
}

.open-button:hover {
    background-color: rgba(69, 43, 50, 1);
    transform: translateY(-2px);
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section h1,
.hero-section h2,
.hero-section p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards;
}

.hero-section h1 {
    animation-delay: 0.5s;
}

.hero-section h2 {
    animation-delay: 1s;
}

.hero-section p {
    animation-delay: 1.5s;
}

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

.hero-section h1,
.hero-section h2 {
    font-family: 'Great Vibes', cursive;
    transition: all 0.3s ease;
}

.hero-section h1:hover,
.hero-section h2:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: panAndZoom 20s infinite alternate;
    z-index: 1;
}

@keyframes panAndZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.2) translate(-2%, -2%);
    }
    100% {
        transform: scale(1.1) translate(2%, 2%);
    }
}

.container.position-relative {
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Hero section text positioning */
.hero-section .container.position-relative {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 8vh;
}

.hero-section .hero-text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    max-width: 90%;
}

/* Smaller text sizes */
.hero-section h1 {
    font-size: 1.5rem !important;
    line-height: 1.4;
    margin-bottom: 1rem !important;
}

.hero-section p {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

.hero-section .fas.fa-quote-right {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
}

/* Responsive adjustments for hero text positioning */
@media (max-width: 768px) {
    .hero-section .container.position-relative {
        padding-bottom: 6vh;
        min-height: 100vh;
    }
    
    .hero-section .hero-text-container {
        max-width: 95%;
    }
    
    .hero-section h1 {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 0.8rem !important;
    }
    
    .hero-section .fas.fa-quote-right {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section .container.position-relative {
        padding-bottom: 4vh;
        min-height: 100vh;
    }
    
    .hero-section .hero-text-container {
        max-width: 98%;
    }
    
    .hero-section h1 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 0.75rem !important;
    }
    
    .hero-section .fas.fa-quote-right {
        font-size: 0.9rem !important;
    }
}

#loveRainContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.love-symbol {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    animation: loveRain linear;
    z-index: 2;
}

@keyframes loveRain {
    0% {
        transform: translateY(-10%) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

.couple-section {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f0ede7 100%);
    padding: 2rem 0 1rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.couple-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.couple-left, .couple-right {
    position: relative;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(50px);
    background: transparent;
    padding: 1rem;
}

.couple-left.slide-in, .couple-right.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.couple-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    border: 5px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(179, 139, 109, 0.3);
    transform: scale(0.9);
    transition: all 1s ease;
    flex-shrink: 0;
}

.couple-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    border-radius: 0;
}

.couple-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.couple-img:hover::before {
    opacity: 1;
}

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

.couple-info {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    transition-delay: 0.5s;
}

.couple-info.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.couple-img.fade-in {
    transform: scale(1) rotateY(0deg);
}

.couple-info h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    margin: 1rem 0;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.couple-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.6s ease;
}

.couple-info.fade-in h3::after {
    opacity: 1;
    width: 80px;
}

/* Typing animation for names */
.couple-info h3 {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
    animation-delay: 1.8s;
}

.couple-info.fade-in h3 {
    animation: typing 2s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
    animation-delay: 0.2s;
}

.couple-right .couple-info.fade-in h3 {
    animation-delay: 0.6s;
}

@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 100%;
        border-right: none;
    }
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent;
    }
    50% { 
        border-color: var(--primary-color);
    }
}

.couple-info p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.couple-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.separator {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    color: var(--primary-color);
    margin: 0;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 4px 8px rgba(179, 139, 109, 0.3);
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

.separator.fade-in {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.separator.fade-in::before {
    opacity: 0.3;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

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

.heart {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.3;
    animation: floatUp 4s infinite ease-in-out;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Sakura effect */
.sakura {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        opacity: 1;
        top: -10%;
        transform: translateX(0px) rotate(0deg);
    }
    100% {
        opacity: 0.3;
        top: 100%;
        transform: translateX(30px) rotate(360deg);
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Mobile slide in animation */
@keyframes mobileSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .couple-left, .couple-right {
        position: relative;
        width: 50%;
        height: auto;
        left: 0 !important;
        right: 0 !important;
        padding: 2rem 0.5rem;
        transform: translateY(50px);
        opacity: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .couple-left.slide-in, .couple-right.slide-in {
        transform: translateY(0);
        opacity: 1;
    }

    .couple-container {
        height: auto;
        flex-direction: row;
        position: relative;
        max-width: 100%;
        overflow: hidden;
        padding: 2rem 0;
        align-items: flex-start;
        justify-content: space-between;
    }

    .couple-center {
        position: absolute;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
        z-index: 10;
        margin: 0;
    }

    .couple-img {
        width: 110px;
        height: 110px;
        border-width: 3px;
        margin: 0 auto 1rem;
        transform: scale(0.9) rotateY(0deg);
        box-shadow: 0 8px 20px rgba(179, 139, 109, 0.3);
        flex-shrink: 0;
    }

    .couple-img.fade-in {
        transform: scale(1) rotateY(0deg);
    }

    .couple-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        display: block;
    }

    .couple-info {
        max-width: 140px;
        margin: 0 auto;
        text-align: center;
        flex-shrink: 0;
    }

    .couple-info h3 {
        font-size: 1.4rem;
        white-space: normal;
        overflow: visible;
        width: auto;
        border-right: none;
        animation: none;
        line-height: 1.2;
        margin: 0.5rem 0;
    }

    .couple-info.fade-in h3 {
        animation: mobileSlideIn 0.8s ease forwards;
        animation-delay: 0.5s;
    }

    .couple-info p {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
        line-height: 1.3;
    }

    .separator {
        font-size: 2.5rem;
        position: relative;
    }

    .separator::before {
        width: 50px;
        height: 50px;
    }

    /* Additional small screen adjustments */
    @media (max-width: 360px) {
        .couple-img {
            width: 90px;
            height: 90px;
            border-width: 2px;
        }

        .couple-info {
            max-width: 120px;
        }

        .couple-info h3 {
            font-size: 1.2rem;
        }

        .couple-info p {
            font-size: 0.7rem;
        }

        .separator {
            font-size: 2rem;
        }

        .separator::before {
            width: 40px;
            height: 40px;
        }

        .couple-left, .couple-right {
            padding: 1.5rem 0.3rem;
        }
    }

    /* Extra small screens */
    @media (max-width: 320px) {
        .couple-img {
            width: 80px;
            height: 80px;
        }

        .couple-info {
            max-width: 100px;
        }

        .couple-info h3 {
            font-size: 1.1rem;
        }

        .couple-info p {
            font-size: 0.65rem;
        }

        .separator {
            font-size: 1.8rem;
        }
    }
}

/* Desktop responsive adjustments - ensure mobile-like view */
@media (min-width: 768px) {
    .couple-section {
        padding: 2rem 0;
        min-height: 50vh;
    }

    .couple-container {
        max-width: 600px;
        padding: 0 2rem;
    }

    .couple-left, .couple-right {
        width: 40%;
        padding: 1.5rem;
    }

    .couple-img {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }

    .couple-info h3 {
        font-size: 2rem;
        white-space: normal;
        overflow: visible;
        width: auto;
        border-right: none;
        animation: none;
    }

    .couple-info.fade-in h3 {
        animation: mobileSlideIn 0.8s ease forwards;
        animation-delay: 0.5s;
    }

    .couple-info p {
        font-size: 0.9rem;
    }

    .separator {
        font-size: 3.5rem;
    }

    .separator::before {
        width: 80px;
        height: 80px;
    }

    .couple-center {
        position: absolute;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
    }
}

/* Large desktop adjustments */
@media (min-width: 1024px) {
    .couple-container {
        max-width: 700px;
    }

    .couple-img {
        width: 180px;
        height: 180px;
    }

    .couple-info h3 {
        font-size: 2.2rem;
    }

    .separator {
        font-size: 4rem;
    }
}

/* Desktop optimizations for background images */
@media (min-width: 769px) {
    .countdown {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        /* Ensure smooth background rendering */
        will-change: background-position;
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .event-details {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        /* Ensure smooth background rendering */
        will-change: background-position;
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* Larger desktop screens */
@media (min-width: 1024px) {
    .countdown {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Better performance on large screens */
        transform: translateZ(0);
    }
    
    .event-details {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Better performance on large screens */
        transform: translateZ(0);
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .countdown {
        background-size: cover;
        background-position: center center;
        /* Prevent background jumping */
        background-attachment: scroll;
    }
    
    .event-details {
        background-size: cover;
        background-position: center center;
        /* Prevent background jumping */
        background-attachment: scroll;
    }
}

.floating-music {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
    max-width: 480px;
}

.floating-music.show {
    display: block;
}

/* Ensure music button stays within mobile view */
@media (min-width: 481px) {
    .floating-music {
        right: calc(50% - 240px + 20px); /* Center within 480px mobile view */
    }
}

.floating-music button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(179, 139, 109, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-music button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(179, 139, 109, 0.6);
}

.floating-music button:active {
    transform: scale(0.95);
}

/* Countdown section styling */
.countdown {
    position: relative;
    height: 100vh;
    background: url('../pictures/03.webp') center/cover;
    background-attachment: scroll;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    overflow: hidden;
}

.countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(179, 139, 109, 0.8) 0%,
        rgba(69, 43, 50, 0.7) 50%,
        rgba(179, 139, 109, 0.8) 100%
    );
    z-index: 1;
}

.countdown .container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 10vh;
}

.countdown-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 1.2s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
    transition-delay: 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 300;
}

.countdown-numbers {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.5s ease;
    transition-delay: 0.6s;
}

/* Scroll-triggered animations */
.countdown-title.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.countdown-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.countdown-numbers.animate {
    opacity: 1;
    transform: translateY(0);
}

.countdown-numbers .col-3 {
    padding: 0.5rem;
}

.countdown-numbers h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite alternate;
}

.countdown-numbers p {
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

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

@keyframes fadeInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 2px 2px 4px rgba(0,0,0,0.5);
    }
}

/* Countdown Love Rain Effect */
#countdownLoveContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.countdown-love {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    animation: countdownLoveRain linear;
    font-size: 1.5rem;
    z-index: 2;
}

@keyframes countdownLoveRain {
    0% {
        transform: translateY(-10%) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Beautiful Divider Section */
.beautiful-divider {
    position: relative;
    height: 150px;
    background: linear-gradient(
        135deg,
        rgba(179, 139, 109, 0.1) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(179, 139, 109, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 1.5s ease;
}

.divider-content.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.divider-ornament {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 1s ease;
}

.divider-ornament::before {
    right: 120%;
    transform: translateY(-50%) scaleX(0);
}

.divider-ornament::after {
    left: 120%;
    transform: translateY(-50%) scaleX(0);
}

.divider-content.animate .divider-ornament::before,
.divider-content.animate .divider-ornament::after {
    transform: translateY(-50%) scaleX(1);
}

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

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #b38b6d;
    border-radius: 50%;
    animation: sparkleFloat 4s linear infinite;
    opacity: 0;
    box-shadow: 0 0 6px #b38b6d;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0);
    }
    15% {
        opacity: 1;
        transform: translateY(50px) rotate(180deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(0px) rotate(270deg) scale(1.2);
    }
    85% {
        opacity: 1;
        transform: translateY(-50px) rotate(360deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(540deg) scale(0);
    }
}

/* Beautiful Divider 2 Section */
.beautiful-divider-2 {
    position: relative;
    height: 120px;
    background: linear-gradient(
        45deg,
        rgba(179, 139, 109, 0.05) 0%,
        rgba(255, 192, 203, 0.1) 50%,
        rgba(179, 139, 109, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider2-content {
    position: relative;
    z-index: 3;
}

.divider2-ornament-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider2-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b38b6d, transparent);
    position: relative;
}

.divider2-ornament {
    font-size: 2rem;
    animation: heartBeat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(179, 139, 109, 0.3));
}

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

.heart-particle {
    position: absolute;
    font-size: 12px;
    color: #ff69b4;
    animation: heartFloat 6s linear infinite;
    opacity: 0;
}

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

@keyframes heartFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(60px) rotate(180deg) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(20px) rotate(270deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(360deg) scale(0);
    }
}

/* Story Section */
.story-section {
    position: relative;
    padding: 6rem 0 0 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.9) 0%,
        rgba(255, 228, 225, 0.9) 50%,
        rgba(255, 248, 240, 0.9) 100%
    );
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
}

.story-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Story Header Improved */
.story-header {
    position: relative;
    z-index: 3;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.story-header-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.story-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #b38b6d;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(179, 139, 109, 0.1);
    display: block;
    width: 100%;
}

.story-subtitle {
    font-size: 1.2rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
    display: block;
    width: 100%;
}

.story-ornament {
    font-size: 2.5rem;
    color: #d4af37;
    margin: 1rem 0;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.story-ornament i {
    display: inline-block;
    filter: drop-shadow(2px 2px 4px rgba(212, 175, 55, 0.3));
}

/* Story Timeline Improved */
.story-timeline-wrapper {
    position: relative;
    z-index: 2;
}

.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(179, 139, 109, 0.3), 
        #d4af37, 
        rgba(179, 139, 109, 0.3)
    );
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.story-item {
    position: relative;
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.story-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.story-item:nth-child(odd) {
    flex-direction: column;
}

.story-item:nth-child(even) {
    flex-direction: column;
}

.story-date {
    flex: 0 0 auto;
    position: relative;
    z-index: 4;
    margin: 0 0 1rem 0;
}

.date-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #b38b6d, #d4af37);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 
        0 8px 25px rgba(179, 139, 109, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 0 8px rgba(179, 139, 109, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.story-item:hover .date-circle {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(179, 139, 109, 0.5),
        0 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 0 8px rgba(179, 139, 109, 0.2);
}

.date-circle i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    display: block;
}

.date-year {
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 600;
}

.story-content {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 1rem 0;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 139, 109, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-item:hover .story-content {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.06);
}

.story-content-inner {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.story-content::before {
    display: none;
}

.story-item:nth-child(odd) .story-content::before {
    display: none;
}

.story-item:nth-child(even) .story-content::before {
    display: none;
}

.story-content-title {
    color: #b38b6d;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.story-content-text {
    color: #6b5b73;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.love-particle {
    position: absolute;
    color: #ff69b4;
    animation: loveFloat 8s linear infinite;
    opacity: 0;
    font-size: 14px;
    pointer-events: none;
}

@keyframes loveFloat {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(0deg) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(30px) rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) rotate(180deg) scale(1.1);
    }
    90% {
        opacity: 0.6;
        transform: translateY(-80px) rotate(270deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(360deg) scale(0);
    }
}

/* Event Particles Effect */
.event-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.event-particle {
    position: absolute;
    border-radius: 50%;
    animation: eventParticleFloat 8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.event-particle.sparkle {
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
    box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
}

.event-particle.gold {
    background: radial-gradient(circle, #d4af37 0%, rgba(212,175,55,0.8) 40%, transparent 70%);
    box-shadow: 0 0 10px rgba(212,175,55,0.8), 0 0 20px rgba(212,175,55,0.4);
}

.event-particle.rose {
    background: radial-gradient(circle, #ff69b4 0%, rgba(255,105,180,0.8) 40%, transparent 70%);
    box-shadow: 0 0 10px rgba(255,105,180,0.8), 0 0 20px rgba(255,105,180,0.4);
}

.event-particle.bronze {
    background: radial-gradient(circle, #b38b6d 0%, rgba(179,139,109,0.8) 40%, transparent 70%);
    box-shadow: 0 0 10px rgba(179,139,109,0.8), 0 0 20px rgba(179,139,109,0.4);
}

@keyframes eventParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
    }
    5% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) rotate(45deg) scale(0.3);
    }
    15% {
        transform: translateY(75vh) translateX(-15px) rotate(90deg) scale(0.6);
    }
    30% {
        transform: translateY(50vh) translateX(20px) rotate(180deg) scale(1);
    }
    50% {
        transform: translateY(30vh) translateX(-25px) rotate(270deg) scale(1.2);
    }
    70% {
        transform: translateY(15vh) translateX(30px) rotate(360deg) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateY(5vh) translateX(-10px) rotate(450deg) scale(0.8);
    }
    95% {
        opacity: 0.8;
        transform: translateY(-5vh) translateX(15px) rotate(540deg) scale(0.4);
    }
    100% {
        opacity: 0;
        transform: translateY(-15vh) translateX(25px) rotate(720deg) scale(0);
    }
}

/* Floating heart symbols for event */
.event-heart {
    position: absolute;
    color: rgba(255, 192, 203, 0.8);
    font-size: 16px;
    animation: eventHeartFloat 10s linear infinite;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255, 192, 203, 0.6);
}

@keyframes eventHeartFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) rotate(90deg) scale(0.8);
    }
    25% {
        transform: translateY(60vh) rotate(180deg) scale(1);
    }
    50% {
        transform: translateY(30vh) rotate(270deg) scale(1.1);
    }
    75% {
        transform: translateY(10vh) rotate(360deg) scale(0.9);
    }
    90% {
        opacity: 1;
        transform: translateY(-5vh) rotate(450deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateY(-15vh) rotate(540deg) scale(0);
    }
}

/* Event Details Section */
.event-details {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../pictures/07.webp') center/cover;
    background-attachment: scroll;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    overflow: hidden;
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(179, 139, 109, 0.7) 0%,
        rgba(69, 43, 50, 0.6) 50%,
        rgba(179, 139, 109, 0.8) 100%
    );
    z-index: 1;
}

.event-details .container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 10vh;
}

.event-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 1.2s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-date {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    transition-delay: 0.3s;
}

.event-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s ease;
    transition-delay: 0.6s;
}

/* Scroll-triggered animations */
.event-title.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.event-date.animate {
    opacity: 1;
    transform: translateY(0);
}

.event-description.animate {
    opacity: 1;
    transform: translateY(0);
}

.event-details .btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: fadeInUpScaleCover 0.3s ease forwards;
    animation-delay: 1.6s;
}

.event-details .btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Event Content Row Styling */
.event-content-row {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 25px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
    width: 85%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.event-content-row::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 60%
    );
    transform: rotate(-45deg) translate(-100%, -100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.event-content-row:hover::before {
    transform: rotate(-45deg) translate(50%, 50%);
}

.event-content-row.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.event-content-row h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.event-content-row.animate-in h2 {
    opacity: 1;
    transform: translateY(0);
}

.event-content-row p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.event-content-row.animate-in p:nth-of-type(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.event-content-row.animate-in p:nth-of-type(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.7s;
}

.event-content-row.animate-in p:nth-of-type(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.9s;
}

.event-content-row .btn {
    background: linear-gradient(135deg, rgba(179, 139, 109, 0.9), rgba(212, 175, 55, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(179, 139, 109, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    margin-top: 1rem;
}

.event-content-row.animate-in .btn {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.1s;
}

.event-content-row .btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 1), rgba(179, 139, 109, 1));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(179, 139, 109, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.event-content-row .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.event-content-row i {
    margin-right: 8px;
    color: rgba(212, 175, 55, 0.9);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .event-content-row {
        width: 90%;
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .event-content-row h2 {
        font-size: 2rem;
    }
    
    .event-content-row p {
        font-size: 1rem;
    }
    
    .event-content-row .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .event-content-row {
        width: 95%;
        padding: 1.2rem;
    }
    
    .event-content-row h2 {
        font-size: 1.8rem;
    }
}

/* Story Section Scroll Animations */
.story-header-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-header-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.story-title-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

.story-title-animate.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.story-subtitle-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.6s;
}

.story-subtitle-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.story-ornament-animate {
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: 0.9s;
}

.story-ornament-animate.animate-in {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.story-timeline-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    transition-delay: 1.2s;
}

.story-timeline-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.story-item-animate {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-item-animate.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for story items */
.story-item-animate[data-item-index="0"] {
    transition-delay: 0.3s;
}

.story-item-animate[data-item-index="1"] {
    transition-delay: 0.6s;
}

.story-item-animate[data-item-index="2"] {
    transition-delay: 0.9s;
}

.story-item-animate[data-item-index="3"] {
    transition-delay: 1.2s;
}

.story-item-animate[data-item-index="4"] {
    transition-delay: 1.5s;
}

.story-item-animate .story-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.4s;
}

.story-item-animate.animate-in .story-content {
    opacity: 1;
    transform: translateX(0);
}

.story-item-animate .date-circle {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: 0.2s;
}

.story-item-animate.animate-in .date-circle {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Responsive Design for Story Section */
@media (max-width: 768px) {
    .story-section {
        padding: 4rem 0 0 0;
    }
    
    .story-title {
        font-size: 2.8rem;
    }
    
    .story-subtitle {
        font-size: 1.1rem;
    }
    
    .story-timeline::before {
        left: 30px;
        transform: none;
    }
    
    .story-item {
        flex-direction: column !important;
        margin: 2.5rem 0;
        padding-left: 60px;
    }
    
    .story-item:nth-child(odd),
    .story-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .story-date {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
    
    .date-circle {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }
    
    .story-content {
        width: 100%;
        margin: 1rem 0 0 0;
    }
    
    .story-content::before {
        display: none;
    }
    
    .story-content-inner {
        padding: 2rem;
    }
    
    .story-content-title {
        font-size: 1.4rem;
    }
}

/* Hover effects for story items */
.story-item-animate.animate-in:hover {
    transform: translateY(-10px) scale(1.02);
    transition: all 0.4s ease;
}

.story-item-animate.animate-in:hover .story-content {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.story-item-animate.animate-in:hover .date-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(179, 139, 109, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .story-item-animate {
        transform: translateY(40px) scale(0.98);
    }
    
    .story-item-animate.animate-in:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .story-item-animate {
        transform: translateY(30px) scale(0.98);
    }
    
    .story-title-animate {
        transform: translateY(30px) scale(0.95);
    }
    
    .story-item-animate.animate-in:hover {
        transform: translateY(-3px) scale(1.005);
    }
}

/* Story Timeline Enhanced Effects */
.story-timeline::before {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1s;
}

.story-timeline-animate.animate-in::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Story content enhanced hover effects */
.story-content {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.story-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(179, 139, 109, 0.1) 50%,
        transparent 60%
    );
    transform: rotate(-45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.story-item-animate.animate-in:hover .story-content::before {
    transform: rotate(-45deg) translate(50%, 50%);
}

/* Date circle enhanced animations */
.date-circle {
    position: relative;
    overflow: hidden;
}

.date-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.story-item-animate.animate-in:hover .date-circle::after {
    opacity: 1;
}

/* Progressive reveal animation for story content text */
.story-content h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.4s;
}

.story-content p {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.6s;
}

.story-item-animate.animate-in .story-content h3 {
    opacity: 1;
    transform: translateY(0);
}

.story-item-animate.animate-in .story-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced mobile responsiveness for animations */
@media (max-width: 768px) {
    .story-timeline::before {
        transition-delay: 0.8s;
    }
    
    .story-item-animate {
        transition-duration: 0.8s;
    }
    
    .story-content h3,
    .story-content p {
        transition-delay: 0.2s;
    }
    
    .story-item-animate.animate-in:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .story-item-animate {
        transition-duration: 0.6s;
    }
    
    .story-timeline::before {
        transition-delay: 0.6s;
    }
}

/* Smooth scroll behavior for story section */
.story-section {
    scroll-behavior: smooth;
}

/* Add subtle glow effect to active story items */
.story-item-animate.animate-in {
    position: relative;
}

.story-item-animate.animate-in::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(179, 139, 109, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.story-item-animate.animate-in:hover::before {
    opacity: 1;
}

/* Beautiful Divider 3 Section */
.beautiful-divider-3 {
    position: relative;
    height: 150px;
    background: linear-gradient(
        135deg,
        rgba(179, 139, 109, 0.08) 0%,
        rgba(255, 248, 240, 0.15) 50%,
        rgba(179, 139, 109, 0.08) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider3-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: all 1.5s ease;
}

.divider3-content.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.divider3-ornament-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.divider3-vine-left,
.divider3-vine-right {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    overflow: hidden;
}

.divider3-vine-left::before,
.divider3-vine-right::before {
    content: '❀';
    position: absolute;
    top: -8px;
    font-size: 1rem;
    color: var(--primary-color);
    animation: vineFlow 3s linear infinite;
    opacity: 0.7;
}

.divider3-vine-left::before {
    left: -20px;
}

.divider3-vine-right::before {
    right: -20px;
    animation-direction: reverse;
}

.divider3-ornament {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: flowerBoom 2s ease-in-out infinite;
}

.divider3-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin-top: 0.5rem;
}

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

.flower-particle {
    position: absolute;
    font-size: 14px;
    color: var(--primary-color);
    animation: flowerFloat 5s linear infinite;
    opacity: 0;
}

@keyframes vineFlow {
    0% { transform: translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(120px); opacity: 0; }
}

@keyframes flowerBoom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes flowerFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(60px) rotate(90deg) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(20px) rotate(180deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(270deg) scale(0);
    }
}

/* Gallery Section */
.gallery-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.95) 0%,
        rgba(255, 228, 225, 0.95) 50%,
        rgba(255, 248, 240, 0.95) 100%
    );
    overflow: hidden;
    z-index: 1;
}

.gallery-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 1rem;
    opacity: 0.8;
}

.gallery-slideshow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(179, 139, 109, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(179, 139, 109, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Gallery Particles */
.gallery-particle {
    position: absolute;
    color: var(--primary-color);
    animation: galleryFloat 10s linear infinite;
    opacity: 0;
    font-size: 16px;
    pointer-events: none;
}

@keyframes galleryFloat {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(0deg) scale(0);
    }
    15% {
        opacity: 0.8;
        transform: translateY(20px) rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-30px) rotate(180deg) scale(1.2);
    }
    85% {
        opacity: 0.4;
        transform: translateY(-80px) rotate(270deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(360deg) scale(0);
    }
}

/* Beautiful Divider 4 Section */
.beautiful-divider-4 {
    position: relative;
    height: 180px;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.1) 0%,
        rgba(255, 215, 0, 0.1) 25%,
        rgba(255, 228, 225, 0.15) 50%,
        rgba(255, 215, 0, 0.1) 75%,
        rgba(255, 248, 240, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 180px;
    width: 100%;
    z-index: 1;
}

.divider4-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 1.5s ease forwards;
}

.divider4-content.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.divider4-ornament-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.divider4-line-left,
.divider4-line-right {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    overflow: hidden;
}

.divider4-line-left::before,
.divider4-line-right::before {
    content: '✨';
    position: absolute;
    top: -10px;
    font-size: 1.2rem;
    color: gold;
    animation: giftSparkle 4s linear infinite;
    opacity: 0.8;
}

.divider4-line-left::before {
    left: -25px;
}

.divider4-line-right::before {
    right: -25px;
    animation-direction: reverse;
}

.divider4-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.divider4-ornament {
    font-size: 3.5rem;
    animation: giftBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.divider4-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

.gift-sparkle {
    position: absolute;
    font-size: 16px;
    color: gold;
    animation: giftSparkleFloat 6s linear infinite;
    opacity: 0;
}

@keyframes giftSparkle {
    0% { transform: translateX(-30px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(150px); opacity: 0; }
}

@keyframes giftBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(0deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes giftSparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0);
    }
    30% {
        opacity: 1;
        transform: translateY(60px) rotate(120deg) scale(1);
    }
    70% {
        opacity: 0.8;
        transform: translateY(20px) rotate(240deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotate(360deg) scale(0);
    }
}

/* Gift Section */
.gift-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.98) 0%,
        rgba(255, 235, 205, 0.98) 25%,
        rgba(255, 228, 225, 0.98) 50%,
        rgba(255, 235, 205, 0.98) 75%,
        rgba(255, 248, 240, 0.98) 100%
    );
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
}

.gift-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.gift-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.gift-header {
    text-align: center;
    margin-bottom: 6rem;
}

.gift-header-content {
    animation: fadeInUp 1s ease forwards;
}

.gift-header-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.gift-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gift-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.gift-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.gift-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ornament-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.ornament-heart {
    font-size: 2rem;
    animation: heartGlow 2s ease-in-out infinite;
}

.gift-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.gift-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.gift-section-title h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.gift-section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.gift-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.gift-card {
    perspective: 1000px;
    animation: fadeInUp 0.8s ease forwards;
    overflow: visible;
}

.gift-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.gift-card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    overflow: visible;
}

.gift-card:hover .gift-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.gift-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 248, 240, 0.95) 100%
    );
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 139, 109, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    z-index: 1;
    box-sizing: border-box;
}

.gift-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.gift-card:hover .gift-card-front::before {
    transform: translateX(100%);
}

.gift-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.bank-logo {
    font-size: 2.2rem;
    opacity: 0.8;
}

.bank-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.gift-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.account-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-align: center;
    background: rgba(179, 139, 109, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    border: 2px dashed rgba(179, 139, 109, 0.3);
}

.account-holder {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    font-style: italic;
}

.gift-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(179, 139, 109, 0.1);
    flex-shrink: 0;
    min-height: 60px;
    position: relative;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;
}

.copy-btn, .gift-copy-btn {
    background: linear-gradient(135deg, var(--primary-color), #d4af37);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(179, 139, 109, 0.3);
    min-width: 140px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: visible;
    z-index: 10;
    height: auto;
    min-height: 40px;
    margin: 0;
    box-sizing: border-box;
    max-width: 100%;
}

.copy-btn:focus, .gift-copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(179, 139, 109, 0.3);
}

/* Ensure button visibility on all devices */
.copy-btn, .gift-copy-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    contain: layout;
    max-width: 100%;
    word-wrap: break-word;
    text-overflow: ellipsis;
}

.copy-btn span, .gift-copy-btn span {
    display: inline !important;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.copy-btn i, .gift-copy-btn i {
    display: inline !important;
    flex-shrink: 0;
}

/* Container constraints for mobile */
@media (max-width: 768px) {
    .gift-card-front {
        contain: layout;
    }
    
    .copy-btn, .gift-copy-btn {
        flex-shrink: 0;
        min-width: 110px;
    }
    
    .copy-btn span, .gift-copy-btn span {
        flex-shrink: 0;
    }
}

.copy-btn:hover, .gift-copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 139, 109, 0.4);
}

.copy-btn:active, .gift-copy-btn:active {
    transform: translateY(-1px);
}

.gift-address-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 248, 240, 0.95) 100%
    );
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 139, 109, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.gift-address-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(179, 139, 109, 0.1);
}

.address-icon {
    font-size: 2.5rem;
}

.address-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.address-card-body {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.address-recipient {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.address-phone {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.address-location {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

.address-card-footer {
    text-align: center;
}

@keyframes heartGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 20, 147, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8)); }
}

/* Enhanced Fullscreen Modal */
.enhanced-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.enhanced-fullscreen-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.enhanced-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.enhanced-fullscreen-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1001;
    animation: scaleIn 0.3s ease-out;
}

.enhanced-fullscreen-image {
    width: 100%;
    height: 100%;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.enhanced-fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.enhanced-fullscreen-close:hover {
    background: rgba(179, 139, 109, 0.9);
    transform: scale(1.05);
}

.enhanced-fullscreen-navigation {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 1001;
}

.enhanced-fullscreen-prev,
.enhanced-fullscreen-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enhanced-fullscreen-prev:hover,
.enhanced-fullscreen-next:hover {
    background: rgba(179, 139, 109, 0.9);
    transform: scale(1.05);
}

.enhanced-fullscreen-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-wrapper {
        height: 300px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    /* Mobile Enhanced Fullscreen Adjustments */
    .enhanced-fullscreen-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px;
    }
    
    .enhanced-fullscreen-image {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .enhanced-fullscreen-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        border-radius: 6px;
    }
    
    .enhanced-fullscreen-navigation {
        padding: 0 20px;
    }

    /* Gift Section Mobile Responsive */
    .gift-section {
        padding: 4rem 0;
    }
    
    .gift-container {
        padding: 0 1rem;
    }
    
    .gift-cards {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .gift-card-inner {
        height: 380px;
        overflow: visible;
    }
    
    .gift-card-front {
        padding: 1rem;
        overflow: visible;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    
    .bank-name {
        font-size: 1.2rem;
    }
    
    .account-number {
        font-size: 1.1rem;
        padding: 0.6rem;
        letter-spacing: 0.5px;
    }
    
    .account-holder {
        font-size: 0.9rem;
    }
    
    .gift-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .gift-card-footer {
        flex-shrink: 0;
        padding: 1rem 0 0.5rem 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid rgba(179, 139, 109, 0.1);
        min-height: 60px;
        position: relative;
        z-index: 10;
    }
    
    .gift-address-card {
        padding: 1.5rem;
    }
    
    .copy-btn, .gift-copy-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 110px;
        max-width: calc(100% - 2rem);
        gap: 0.3rem;
        border-radius: 20px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin: 0;
        box-sizing: border-box;
        position: relative;
        z-index: 10;
        visibility: visible;
        opacity: 1;
    }
    
    .enhanced-fullscreen-prev,
    .enhanced-fullscreen-next {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        border-radius: 6px;
    }
    
    .enhanced-fullscreen-counter {
        bottom: 20px;
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 20px;
    }
    
    .divider3-ornament {
        font-size: 2.5rem;
    }
    
    .divider3-vine-left,
    .divider3-vine-right {
        width: 60px;
    }
    
    /* Divider 4 Mobile */
    .divider4-ornament {
        font-size: 2.8rem;
    }
    
    .divider4-subtitle {
        font-size: 1.2rem;
    }
    
    .divider4-line-left,
    .divider4-line-right {
        width: 80px;
    }
    
    /* Gift Section Mobile */
    .gift-title {
        font-size: 3rem;
    }
    
    .gift-subtitle {
        font-size: 1.1rem;
    }
    
    .gift-description {
        font-size: 1rem;
    }
    
    .gift-section-title h3 {
        font-size: 2.5rem;
    }
    
    .gift-cards {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .gift-card-inner {
        height: 220px;
    }
    
    .gift-card-front {
        padding: 1.5rem;
    }
    
    .account-number {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .gift-address-card {
        padding: 2rem;
    }
}

/* Additional mobile adjustments for smaller screens */
@media (max-width: 480px) {
    .enhanced-fullscreen-content {
        max-width: 98vw;
        max-height: 80vh;
        margin: 15px;
    }
    
    .enhanced-fullscreen-image {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .enhanced-fullscreen-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        border-radius: 5px;
    }
    
    .enhanced-fullscreen-prev,
    .enhanced-fullscreen-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 5px;
    }
    
    .enhanced-fullscreen-navigation {
        padding: 0 15px;
    }
    
    /* Gift Section Mobile 480px */
    .gift-section {
        padding: 3rem 0;
    }
    
    .gift-container {
        padding: 0 0.5rem;
    }
    
    .gift-card-inner {
        height: 420px;
        overflow: visible;
    }
    
    .gift-card-front {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        overflow: visible;
        position: relative;
        box-sizing: border-box;
    }
    
    .gift-card-header {
        margin-bottom: 0.8rem;
        flex-shrink: 0;
    }
    
    .bank-logo {
        font-size: 2rem;
    }
    
    .bank-name {
        font-size: 1.1rem;
    }
    
    .gift-card-body {
        flex: 1;
        gap: 0.6rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .account-number {
        font-size: 1rem;
        padding: 0.5rem;
        letter-spacing: 0.3px;
    }
    
    .account-holder {
        font-size: 0.85rem;
    }
    
    .gift-card-footer {
        margin: 0;
        padding: 1rem 0 0.5rem 0;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60px;
        position: relative;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
        border-top: 1px solid rgba(179, 139, 109, 0.1);
    }
    
    .copy-btn, .gift-copy-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 120px;
        max-width: calc(100% - 2rem);
        gap: 0.3rem;
        border-radius: 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 15;
        height: 40px;
        min-height: 40px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .copy-btn span, .gift-copy-btn span {
        font-size: 0.8rem;
        display: inline;
    }
    
    .copy-btn i, .gift-copy-btn i {
        font-size: 0.9rem;
        display: inline;
    }
    
    .gift-address-card {
        padding: 1.2rem;
    }
    
    .enhanced-fullscreen-counter {
        bottom: 15px;
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 15px;
    }
    
    .gallery-slideshow {
        margin: 0 10px;
    }
    
    .gallery-wrapper {
        height: 250px;
    }
    
    /* Divider 4 Mobile Small */
    .divider4-ornament {
        font-size: 2.5rem;
    }
    
    .divider4-subtitle {
        font-size: 1rem;
    }
    
    .divider4-line-left,
    .divider4-line-right {
        width: 60px;
    }
    
    /* Gift Section Mobile Small */
    .gift-container {
        padding: 0 1rem;
    }
    
    .gift-title {
        font-size: 2.5rem;
    }
    
    .gift-section-title h3 {
        font-size: 2rem;
    }
    
    .gift-card-inner {
        height: 200px;
    }
    
    .gift-card-front {
        padding: 1.2rem;
    }
    
    .bank-name {
        font-size: 1.3rem;
    }
    
    .account-number {
        font-size: 1.3rem;
    }
    
    .gift-address-card {
        padding: 1.5rem;
    }
}

/* Divider4 Animations */
@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

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

/* Gift Section Animations */
@keyframes floatUp {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-50vh) scale(1.1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.5) rotate(360deg);
    }
}

@keyframes giftGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        color: #333;
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        color: #ff6b6b;
    }
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

/* Enhanced card hover animations */
.gift-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardFloat 6s ease-in-out infinite;
}

.gift-card:nth-child(1) {
    animation-delay: 0s;
}

.gift-card:nth-child(2) {
    animation-delay: 2s;
}

.gift-card:nth-child(3) {
    animation-delay: 4s;
}

.gift-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gift-card:hover .bank-name {
    animation: giftGlow 2s ease-in-out infinite;
}

.gift-card:hover .account-number {
    color: #ff6b6b;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.copy-btn {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.copy-btn:hover::before {
    width: 100%;
    height: 100%;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Sparkle animations for divider4 */
#divider4 {
    position: relative;
    overflow: hidden;
}

#divider4 .sparkle {
    animation: twinkle 2s ease-in-out infinite, sparkleRotate 3s linear infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Gift particles */
.gift-particle {
    animation: floatUp 4s linear;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Additional hover effects for gift address card */
.gift-address-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

.gift-card,
.gift-address-card,
.copy-btn {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Mobile Extra Small - untuk layar sangat kecil */
@media (max-width: 375px) {
    .gift-cards {
        gap: 2rem;
    }
    
    .gift-card-inner {
        height: 450px;
        overflow: visible;
    }
    
    .gift-card-front {
        padding: 0.8rem;
        overflow: visible;
    }
    
    .copy-btn, .gift-copy-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 100px;
        max-width: calc(100% - 1.6rem);
        gap: 0.3rem;
        border-radius: 15px;
        height: 36px;
        min-height: 36px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 15;
        margin: 0;
        box-sizing: border-box;
    }
    
    .copy-btn span, .gift-copy-btn span {
        font-size: 0.7rem;
    }
    
    .copy-btn i, .gift-copy-btn i {
        font-size: 0.7rem;
    }
    
    .gift-card-footer {
        padding: 1rem 0 0.5rem 0;
        margin: 0;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60px;
        position: relative;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
        border-top: 1px solid rgba(179, 139, 109, 0.1);
    }
    
    .account-number {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .bank-name {
        font-size: 1rem;
    }
}

/* Divider 5 Styles */
.divider5-container {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 248, 240, 0.9) 100%
    );
    overflow: hidden;
}

.divider5-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(179,139,109,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(179,139,109,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(179,139,109,0.08)"/><circle cx="30" cy="70" r="1.5" fill="rgba(179,139,109,0.08)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s infinite linear;
}

.divider5-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.divider5-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider5-line-left,
.divider5-line-right {
    width: 100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%
    );
    animation: pulse 2s infinite;
}

.divider5-heart {
    font-size: 2rem;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.divider5-quote {
    margin-bottom: 2rem;
}

.divider5-quote p {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease;
}

.divider5-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.divider5-flower {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.divider5-flower:nth-child(1) {
    animation-delay: 0s;
}

.divider5-flower:nth-child(2) {
    animation-delay: 1s;
}

.divider5-flower:nth-child(3) {
    animation-delay: 2s;
}

/* Divider 5 Mobile Responsive */
@media (max-width: 768px) {
    .divider5-content {
        padding: 0 1rem;
    }
    
    .divider5-line-left,
    .divider5-line-right {
        width: 60px;
    }
    
    .divider5-quote p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .divider5-line-left,
    .divider5-line-right {
        width: 40px;
    }
    
    .divider5-quote p {
        font-size: 1.2rem;
    }
}

