/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5c7e5c;
    /* Sage green */
    --primary-dark: #4a664a;
    --bg-light: #eff5ef;
    /* Light mint */
    --bg-secondary: #e6eee6;
    /* Darker mint */
    --text-main: #333333;
    --text-muted: #637381;
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Animations (Intersection Observer targets) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-brand {
    color: var(--text-main);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

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

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-light);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    padding: 15px 24px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-style: normal;
}

.hero-title .name {
    display: block;
    transform: skewX(-12deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .ampersand {
    font-size: 2.5rem;
    font-style: normal;
    color: var(--primary-color);
    margin: 10px 0;
    display: block;
    transform: skewX(-12deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    height: 1px;
    width: 100px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 auto 30px;
}

.hero-date {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 2px;
}

.location-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (min-width: 768px) {

    .hero-title .name,
    .hero-title .ampersand {
        display: inline-block;
        margin: 0 10px;
    }

    .hero-title {
        font-size: 5rem;
    }
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-curve svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
    color: #eff5ef;
}

/* Save The Date Calendar */
.save-the-date {
    padding: 80px 20px;
    background: #eff5ef;
}

.calendar-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e4efe4 0%, #c9dbc8 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.calendar-header .line {
    height: 1px;
    width: 60px;
    background: #a4c2a4;
}

.calendar-header h2 {
    font-size: 2rem;
    color: #3b473b;
}

.calendar-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #5c7e5c;
    margin-bottom: 40px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px 5px;
}

.days-of-week {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #3b473b;
}

.days {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #3b473b;
}

.wedding-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c7e5c;
    font-weight: bold;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.25);
    }
}

.heart-bg {
    position: absolute;
    font-size: 3.5rem;
    font-weight: 300;
    opacity: 1;
    z-index: 0;
    line-height: 1;
    transform: scale(1.1);
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));
    animation: heartbeat 2s infinite ease-in-out;
}

.day-num {
    position: relative;
    z-index: 1;
    color: #3b473b;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 60px;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.title {
    font-size: 2.5rem;
    color: var(--text-main);
}

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

@media (min-width: 768px) {
    .couple-grid {
        grid-template-columns: 1fr 1fr;
        gap: 120px;
    }
}

.person {
    text-align: center;
}

.image-wrapper {
    width: 260px;
    height: 340px;
    margin: 0 auto 30px;
    border-radius: 130px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.image-wrapper:hover .person-img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.role {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.person-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.parents {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.parents span {
    color: var(--text-main);
    font-weight: 500;
}

.divider-small {
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    margin: 20px auto;
    opacity: 0.5;
}

.description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

.couple-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    color: var(--primary-color);
}

.couple-divider .line {
    height: 1px;
    width: 100px;
    background: rgba(212, 175, 55, 0.3);
}

/* Timeline */
.timeline {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.timeline-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.card-img {
    position: relative;
    height: 220px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-circle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-main);
}

.detail-item i {
    color: var(--primary-color);
    margin-top: 4px;
}

.address {
    font-weight: 500;
}

.address-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Dress Code */
.dresscode-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
}

.dresscode-box h3 {
    font-size: 1.5rem;
}

.dresscode-box p {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.colors {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery .title {
    margin-bottom: 50px;
}

.gallery-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-slider-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.gallery-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slider .slide.active {
    opacity: 1;
}

.gallery-masonry-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-masonry-1 img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.gallery-masonry-2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.gm2-left-block {
    display: flex;
    flex-direction: column;
}

.gm2-grid-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
}

.gm2-inner-left {
    display: flex;
    flex-direction: column;
}

.forever-love-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forever-love {
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: #a8bfae;
    font-style: italic;
    font-weight: 300;
    text-align: center;
    margin: 0;
}

.gm2-inner-left-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.gm2-inner-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gm2-inner-right img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.love-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 25px;
    padding: 0 10px;
}

.gm2-right-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-center-box {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('./assets/images/couple.png');
    background-size: cover;
    background-position: center;
    padding: 35px 25px;
    max-width: 450px;
    margin: 60px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.box-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.box-images img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 6px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box-title {
    font-family: var(--font-serif);
    color: #0b2b4d;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.box-desc {
    font-size: 0.85rem;
    color: #637381;
    font-style: italic;
}

/* Gallery Hover Effects */
.gallery-masonry-1 img,
.gm2-inner-left-img,
.gm2-inner-right img,
.gm2-right-block img,
.box-images img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    /* Slight rounding for better look */
}

.gallery-masonry-1 img:hover,
.gm2-inner-left-img:hover,
.gm2-inner-right img:hover,
.gm2-right-block img:hover,
.box-images img:hover,
.gallery-slider .slide:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .gallery-slider-container {
        height: 300px;
    }

    .gallery-masonry-1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-masonry-2 {
        grid-template-columns: 1fr;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Video Section */
.video-section {
    padding: 100px 0;
    background: #1a1a1a;
    color: #fff;
    position: relative;
}

.video-section .title {
    color: #fff;
}

.video-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* RSVP Section */
.rsvp {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.rsvp .title {
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w-full {
    width: 100%;
}

.form-message {
    margin-top: 20px;
    color: #2e7d32;
    font-weight: 500;
}

/* Countdown Section */
.countdown-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.countdown-content {
    position: relative;
    z-index: 10;
}

.countdown-section .title,
.countdown-section .subtitle {
    color: #fff;
}

.countdown-section .subtitle {
    letter-spacing: 0.3em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 15px;
    min-width: 80px;
}

.time-box span {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.time-box p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin: 0;
}

.countdown-date {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Thank You Section */
.thank-you-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.thank-you-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thank-you-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 20px 0;
}

.thank-you-hearts {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.thank-you-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #6b8e6b;
    ;
    color: #e4efe4;
    padding: 0 0 5px;
}


.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    text-align: center;
}

.footer p {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer a {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: 300;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    z-index: 10001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}

.lightbox-counter {
    position: absolute;
    top: 35px;
    left: 35px;
    color: #f1f1f1;
    font-size: 20px;
    font-family: var(--font-primary);
    font-weight: 300;
    z-index: 10001;
}

/* --- NEW RSVP FORM --- */
.new-rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.new-rsvp-form .text-left {
    text-align: left;
}

.new-rsvp-form .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Inputs & Textareas */
.new-rsvp-form input[type="text"],
.new-rsvp-form textarea,
.new-rsvp-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1eee3;
    border-radius: 12px;
    background-color: #f2fae8;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: var(--transition);
}

.new-rsvp-form input[type="text"]:focus,
.new-rsvp-form textarea:focus,
.new-rsvp-form select:focus {
    outline: none;
    border-color: #a5cca9;
    background-color: #f7fdf0;
}

.new-rsvp-form input::placeholder,
.new-rsvp-form textarea::placeholder {
    color: #9cbda2;
}

/* Message Group */
.message-group {
    position: relative;
}
.smile-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}
.smile-icon:hover {
    color: var(--primary-color);
}
.hidden-emoji-picker {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 10px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
}
.hidden-emoji-picker.active {
    display: block;
}

/* Guest Cards */
.guest-cards {
    display: flex;
    gap: 15px;
}

.guest-card {
    flex: 1;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.guest-card input[type="radio"] {
    display: none;
}

.guest-card .card-content {
    position: relative;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.guest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.guest-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.guest-card:hover img {
    transform: scale(1.05);
}

.guest-card input[type="radio"]:checked + .card-content {
    border-color: #55875c;
    box-shadow: 0 4px 10px rgba(85, 135, 92, 0.3);
}

/* Two columns row */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.half-width {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
}
.custom-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
    font-size: 0.8rem;
}
.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.send-btn {
    padding: 16px;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    .guest-card .card-content {
        height: 120px;
    }
}
/* --- END NEW RSVP FORM --- */

/* Gift Section */
.gift-section {
    padding: 80px 0;
}

.gift-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: #d1e5d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.gift-icon-wrapper i {
    font-size: 26px;
    color: #438f53;
}

.gift-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
}

@media (min-width: 768px) {
    .gift-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.gift-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.gift-card-header {
    background-color: #eaf3ea;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gift-card-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.gift-card-title h3 {
    margin: 0 0 3px 0;
    font-size: 1.05rem;
    color: #333;
}

.gift-card-title p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.gift-card-body {
    padding: 25px 20px;
}

.bank-info .label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.bank-info .mt-3 {
    margin-top: 15px;
}

.account-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #333;
}

.copy-btn {
    background-color: #d1e5d5;
    color: #438f53;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.copy-btn:hover {
    background-color: #b8d4bd;
}

.account-name {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.qr-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: 0.2s;
}

.qr-btn i {
    color: #c99339;
}

.qr-btn:hover {
    color: #438f53;
}

.gift-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.95rem;
    color: #555;
}

/* Gift Card Flip */
.gift-card-inner {
    height: 100%;
}

.gift-card-inner.show-qr .gift-card-front {
    display: none;
}

.gift-card-inner.show-qr .gift-card-back {
    display: flex;
}

.gift-card-back {
    display: none;
    padding: 30px 20px;
    background: #fff;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.gift-card-back img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #d1e5d5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.qr-back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: 0.2s;
}

.qr-back-btn i {
    color: #c99339;
}

.qr-back-btn:hover {
    color: #438f53;
}

/* Invite Overlay */
body.no-scroll {
    overflow: hidden;
}

.invite-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e6f0e6;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    color: #3b4d40;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
}

.invite-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.invite-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}
.invite-container .top-text {
    letter-spacing: 5px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    color: #556c55;
}
.invite-container .guest-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin: 0 0 50px 0;
    color: #243627;
    font-weight: 400;
    opacity: 0;
    animation: handwriting 3.5s ease-in-out forwards;
    animation-delay: 0.5s;
    /* Đảm bảo đuôi chữ cursive không bị cắt */
    padding-right: 15px; 
}

@keyframes handwriting {
    0% {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 -10% 0 0);
    }
}
.invite-container .envelope-wrapper {
    position: relative;
    width: 450px;
    max-width: 90%;
    margin: 0 auto 60px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.invite-container .envelope-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    animation: breathe 3.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.invite-container .click-icon {
    position: absolute;
    top: 70%;
    left: 55%;
    width: 35px;
    z-index: 5;
    animation: bounce 1.5s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@keyframes bounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, 6px); }
}
.invite-container .couple-name {
    letter-spacing: 4px;
    font-size: 1.45rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-weight: 800;
    color: #111d13;
}
.invite-container .couple-name span {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    text-transform: lowercase;
    margin: 0 10px;
    color: #43593b;
    vertical-align: middle;
    font-weight: 400;
}
.invite-container .wedding-date {
    letter-spacing: 3px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111d13;
}/* --- WISHES SECTION --- */
.wishes-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.wish-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}
.wish-card:hover {
    transform: translateY(-5px);
}
.wish-quote-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #55875c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.wish-message {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    word-wrap: break-word;
}
.wish-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.wish-author .author-name {
    font-weight: bold;
    color: #333;
    display: block;
    font-size: 0.95rem;
}
.wish-author .author-rel {
    font-size: 0.8rem;
    color: #888;
}
.wish-date {
    font-size: 0.75rem;
    color: #aaa;
}

/* --- WISHES MODAL --- */
.wishes-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wishes-modal.active {
    display: flex;
}
.wishes-modal-content {
    background: var(--bg-light);
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.wishes-modal-left {
    flex: 1;
    background: #000;
}
.wishes-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishes-modal-right {
    flex: 1.2;
    padding: 30px 20px 30px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.wishes-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.wishes-close-btn:hover {
    background: rgba(0,0,0,0.6);
}
.wishes-modal-header {
    margin-bottom: 20px;
    padding-right: 30px;
}
.wishes-modal-header h3 {
    margin: 0 0 5px 0;
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 1.5rem;
}
.wishes-modal-header p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}
.wishes-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}
.wishes-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.wishes-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.wishes-scroll-container .wish-card {
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.wishes-scroll-container .wish-message {
    font-size: 1.15rem;
}
.wishes-scroll-container .wish-quote-icon {
    display: none;
}
@media (max-width: 768px) {
    .wishes-modal-left {
        display: none;
    }
    .wishes-modal-right {
        padding: 20px;
    }
}

/* Responsive cho thiệp mời trên điện thoại nhỏ (iPhone SE) */
.mobile-break {
    display: none;
}

@media (max-width: 480px) {
    .invite-container .guest-name {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }
    .invite-container .envelope-wrapper {
        margin-bottom: 40px;
        width: 100%;
    }
    .invite-container .couple-name {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .invite-container .couple-name span {
        font-size: 2rem;
        margin: 0 5px;
    }
    .invite-container .wedding-date {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .hero-title {
        font-size: clamp(2rem, 13vw, 3.2rem);
    }
    .hero-title .name {
        white-space: nowrap;
    }
    .mobile-break {
        display: block !important;
    }
}