:root {
    --bg-color: #ffffff;
    --text-dark: #222222;
    --text-light: #888888;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa8022 100%);
    --gold-solid: #d4af37;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 300;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Upright', serif;
    font-weight: 500;
    margin: 0;
}

.gold-text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.title-separator {
    width: 60px;
    height: 1px;
    background: var(--gold-gradient);
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.neon-glow-soft {
    text-shadow: 0 0 5px rgba(243, 229, 171, 0.8), 0 0 10px rgba(243, 229, 171, 0.6), 0 0 15px rgba(212, 175, 55, 0.8);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.glow-top-left {
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
}

.glow-bottom-right {
    bottom: 10%;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
}

.glow-center {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
}

.floral-neon-cover {
    position: fixed;
    inset: 0;
    background: #faf8f5;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease 1s, visibility 1s ease 1s;
    overflow: hidden;
}

.floral-neon-cover.open {
    opacity: 0;
    visibility: hidden;
}

.particles-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.card-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    height: 85vh;
    max-height: 650px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 15px;
}

.floral-neon-cover.open .card-container {
    transform: scale(1.1) translateY(-30px);
    opacity: 0;
}

.floral-element {
    position: absolute;
    width: 140px;
    height: 140px;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    mix-blend-mode: multiply;
    background-image: url('');
}

.element-1 {
    top: -20px;
    left: -20px;
    transform: rotate(0deg);
}

.element-2 {
    top: -20px;
    right: -20px;
    transform: rotate(90deg);
}

.element-3 {
    bottom: -20px;
    right: -20px;
    transform: rotate(180deg);
}

.element-4 {
    bottom: -20px;
    left: -20px;
    transform: rotate(270deg);
}


/* KHUNG NEON LẤP LÁNH (CHỚP NHÁY) */

.geometric-neon-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    pointer-events: none;
    z-index: 2;
    animation: neon-pulse-frame 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse-frame {
    0% {
        filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
        opacity: 0.7;
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(243, 229, 171, 1)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
        opacity: 1;
    }
}

.card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cover-h-simbol {
    font-family: 'SimSun', 'PMingLiU', sans-serif;
    font-size: 3.5rem;
    color: var(--gold-solid);
    margin-bottom: 20px;
    line-height: 1;
}

.card-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: none;
}

.card-names span {
    white-space: nowrap;
}

.card-names .amp {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--gold-solid);
    margin: 5px 0;
}

.card-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.card-invitee {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 400;
    text-transform: none;
}

.open-btn {
    padding: 10px 35px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.open-btn:hover {
    background: var(--gold-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 0 15px;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-frame {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 4;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px 2px rgba(212, 175, 55, 0.4);
}

.hero-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 249, 230, 0.8), transparent 120deg);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-frame::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    z-index: 1;
    animation: kenburns 20s ease-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--gold-solid);
    margin-bottom: 25px;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    color: #ffffff;
    margin: 0 0 25px 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-names span {
    white-space: nowrap;
}

.hero-ampersand {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--gold-solid);
    margin: 5px 0;
    font-weight: 300;
}

.hero-date {
    font-size: 1.1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #f9f6e8;
    font-weight: 300;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.scroll-text {
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 15px;
}

.scroll-line-container {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.scroll-line {
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    position: absolute;
    top: 0;
    left: 0;
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
    0% {
        transform-origin: top;
        transform: scaleY(0);
    }
    50% {
        transform-origin: top;
        transform: scaleY(1);
    }
    51% {
        transform-origin: bottom;
        transform: scaleY(1);
    }
    100% {
        transform-origin: bottom;
        transform: scaleY(0);
    }
}

.invitation-section {
    padding: 180px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.monogram-circle {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
    font-family: 'Cormorant Upright', serif;
    font-size: 2.2rem;
    gap: 10px;
    position: relative;
    z-index: 1;
    animation: pulse-glow 2.5s infinite;
}

.monogram-circle .ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    opacity: 0.7;
}

.invite-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.invite-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.invite-names span {
    white-space: nowrap;
}

.invite-ampersand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--gold-solid);
    margin: 5px 0;
    font-weight: 300;
}

.heart-and-text-wrapper {
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
}

.neon-heart-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.neon-heart-backdrop svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.neon-heart-path {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: slowDrawSlowErase 6s ease-in-out infinite;
}

@keyframes slowDrawSlowErase {
    0% {
        stroke-dashoffset: 450;
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    45% {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
    55% {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
    95% {
        stroke-dashoffset: -450;
        opacity: 0.9;
    }
    100% {
        stroke-dashoffset: -450;
        opacity: 0;
    }
}

.invite-details-text {
    font-family: 'Cormorant Upright', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    padding: 15px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0) 70%);
}

.invite-details-text p {
    margin: 5px 0;
}

.invite-date-minimal {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--gold-solid);
    margin-bottom: 10px !important;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-box:nth-child(1) {
    animation: float 4s ease-in-out infinite 0s;
}

.time-box:nth-child(2) {
    animation: float 4s ease-in-out infinite 1s;
}

.time-box:nth-child(3) {
    animation: float 4s ease-in-out infinite 2s;
}

.time-box:nth-child(4) {
    animation: float 4s ease-in-out infinite 3s;
}

.time-box span {
    font-family: 'Cormorant Upright', serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 10px;
}

.time-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

.story {
    padding: 120px 20px 150px;
    position: relative;
}

.story-timeline {
    position: absolute;
    top: 280px;
    bottom: 100px;
    left: 50%;
    width: 1px;
    background: var(--gold-gradient);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.5;
}

.story-block {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 120px;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.story-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--gold-solid);
    border-radius: 50%;
    z-index: 2;
    animation: pulse-glow 2s infinite;
}

.story-block:nth-child(odd) {
    flex-direction: row;
}

.story-block.reverse {
    flex-direction: row-reverse;
}

.story-img-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background-color: #fff;
    position: relative;
}

.story-img-wrapper::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.05);
    z-index: -1;
}

.double-img-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.double-img-container .story-img {
    height: 280px;
    object-fit: cover;
}

.story-img {
    width: 100%;
    display: block;
    filter: grayscale(10%);
    transition: filter 0.8s ease;
}

.story-block:hover .story-img {
    filter: grayscale(0%);
}

.story-text {
    flex: 1;
    padding: 0;
    text-align: left;
}

.story-block.reverse .story-text {
    text-align: right;
}

.story-text h3 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 2px;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

.story-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold-solid);
    opacity: 0.8;
}

.closing-section-v2 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 2;
}

.closing-section-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 30, 0.7);
}

.closing-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.closing-highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold-solid);
    margin-bottom: 30px;
    display: block;
}

.closing-thankyou-v2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 50px;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.closing-names-v2 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    padding-bottom: 15px;
}

.closing-names-v2 span {
    white-space: nowrap;
}

.closing-ampersand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--gold-solid);
    margin: 5px 0;
    font-weight: 300;
}

.closing-date-v2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.8;
}

.music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--gold-solid);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: spinMusic 4s linear infinite;
    transition: opacity 0.3s ease;
}

.music-btn.paused {
    animation: none;
    opacity: 0.5;
}

@keyframes spinMusic {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .floral-element {
        width: 110px;
        height: 110px;
    }
    .geometric-neon-frame {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }
    .card-names {
        font-size: 2.8rem;
    }
    .hero-names {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    .hero-names span,
    .invite-names span,
    .closing-names-v2 span {
        font-size: 12vw;
    }
    .hero-ampersand,
    .invite-ampersand,
    .closing-ampersand {
        font-size: 1.5rem;
    }
    .hero-date,
    .invite-date-minimal,
    .closing-date-v2 {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .invite-details-text {
        font-size: 1.4rem;
        padding: 10px;
    }
    .countdown-container {
        gap: 15px;
        margin-top: 30px;
    }
    .time-box span {
        font-size: 2.5rem;
    }
    .neon-heart-backdrop {
        width: 320px;
        max-width: none;
        transform: translate(-50%, -50%) scale(0.85);
    }
    .story {
        padding: 60px 15px 80px;
    }
    .story-block,
    .story-block.reverse {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
    }
    .story-text,
    .story-block.reverse .story-text {
        text-align: center;
    }
    .story-timeline,
    .story-dot {
        display: none;
    }
    .double-img-container .story-img {
        height: 220px;
    }
    .closing-section-v2 {
        background-attachment: scroll !important;
    }
}