/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=GFS+Didot&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #ebe8e1;
    --secondary-color: #80695a;
    --accent-color: #d4a574;
    --text-color: #80695a;
    --light-text: #fff;
    --dark-overlay: rgba(128, 105, 90, 0.1);
}

/* Main content initially hidden */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* Loading Screen Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4 {
    font-family: 'GFS Didot', serif;
    font-weight: 400;
}

section {
    padding: 30px 0;

    @media screen and (max-width: 1439px) {
        padding: 20px 0;
    }
}

.page-width {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.page-full-width {
    max-width: 100%;
    padding: 0 40px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.01px;
    margin: 0;
    font-family: 'Cormorant Garamond', sans-serif;
}

.logo img {
    width: 60px;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    margin: 0;
}

.hero-image {
    font-size: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* aspect-ratio: 16/9; */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 100%;
    color: var(--light-text);
}

.hero-content .couple-names {
    font-family: 'Bodoni Moda', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-content .save-date {
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .wedding-date {
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Hero Video Section */
.hero-video {
    position: relative;
    padding: 0;
    margin: 0;
}

.hero-video-inner {
    width: 100%;
    height: 100%;
    font-size: 0;
    position: relative;
}

.hero-video-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Thumbnail Overlay */
.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-thumbnail-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    position: absolute;
    top: 0;
    left: 0;
}

.video-play-button {
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    filter: drop-shadow(0 4px 12px rgba(128, 105, 90, 0.3));
}

.video-play-button:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(128, 105, 90, 0.4));
}

.video-play-button:active {
    transform: scale(0.95);
}

.video-play-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Responsive play button */
@media screen and (max-width: 768px) {
    .video-play-button svg {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .video-play-button svg {
        width: 50px;
        height: 50px;
    }
}

/* Welcome Section */
.welcome {
    padding-bottom: 0;
}

.welcome-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0;
    flex-wrap: wrap;
}

@media screen and (max-width: 989px) {
    .welcome-inner {
        row-gap: 20px;
    }
}

.welcome-image-first img,
.welcome-image-second img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-image-first {
    order: 1;
    width: calc(30% - 10px * 2/3);
    max-width: calc(30% - 10px * 2/3);
}

@media screen and (max-width: 989px) {
    .welcome-image-first {
        order: 1;
        width: calc(50% - 10px * 1/2);
        max-width: calc(50% - 10px * 1/2);
    }
}

.welcome-image-second {
    order: 3;
    width: calc(30% - 10px * 2/3);
    max-width: calc(30% - 10px * 2/3);
}

@media screen and (max-width: 989px) {
    .welcome-image-second {
        order: 2;
        width: calc(50% - 10px * 1/2);
        max-width: calc(50% - 10px * 1/2);
    }
}

.welcome-image-third {
    order: 2;
    width: calc(40% - 10px * 2/3);
    max-width: calc(40% - 10px * 2/3);
    text-align: center;
    /* animation: fadeInUp 1s ease-out 0.3s both; - now handled by scroll animations */
}

@media screen and (max-width: 989px) {
    .welcome-image-third {
        order: 3;
        width: calc(100% - 10px * 1/1);
        max-width: calc(100% - 10px * 1/1);
    }
}

.welcome-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 7rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: capitalize;
}

@media screen and (max-width: 1199px) {
    .welcome-title {
        font-size: 5rem;
    }
}

@media screen and (max-width: 989px) {
    .welcome-title {
        font-size: 4rem;
    }
}

@media screen and (max-width: 599px) {
    .welcome-title {
        font-size: 2.5rem;
    }
}

.welcome-subtitle {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 28px 0 20px;
}

@media screen and (max-width: 1199px) {
    .welcome-subtitle {
        font-size: 1rem;
        margin: 18px 0 10px;
    }
}

.welcome-couple-names {
    font-family: 'Cormorant', sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.3rem;
}

@media screen and (max-width: 1199px) {
    .welcome-couple-names {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 399px) {
    .welcome-couple-names {
        font-size: 1.5rem;
    }
}

.welcome-wedding-date {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    margin-top: 20px;
}

/* Invitation Section */
@media screen and (max-width: 989px) {
    .invitation {
        padding: 20px 0 0;
    }
}

.invitation-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: 101%;
    background-position: center 54%;
    background-repeat: no-repeat;
    padding: 160px 15px 138px;
}

@media screen and (max-width: 989px) {
    .invitation-inner {
        padding: 100px 5px 80px;
    }
}

@media screen and (max-width: 500px) {
    .invitation-inner {
        padding: 8px 5px;
    }
}

.invitation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0;
}

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

/* .invitation-content rule moved to animation section to prevent conflicts */

.invitation-title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    padding-right: 22px;
    padding-left: 22px;
    margin-top: 60px;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-text);
}

@media screen and (max-width: 799px) {
    .invitation-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 500px) {
    .invitation-title {
        font-size: 1.3rem;
        margin: 21px 0 10px;
    }
}

.invitation-subtitle {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.8rem;
}

@media screen and (max-width: 799px) {
    .invitation-subtitle {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 500px) {
    .invitation-subtitle {
        font-size: 1.3rem;
    }
}

.invitation-guest {
    font-family: 'Pinyon Script', cursive;
    font-size: 2rem;
    margin: 5px 0;
}

@media screen and (max-width: 799px) {
    .invitation-guest {
        font-size: 1.5rem;
    }
}

.invitation-event {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', sans-serif;
    font-weight: 400;
    margin-top: 10px;
}

@media screen and (max-width: 799px) {
    .invitation-event {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 500px) {
    .invitation-event {
        font-size: 1.3rem;
        margin: 20px 0 21px;
    }
}

/* Couple Names Section */
.couple-names-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    font-size: 0;
}

.couple-names-inner h4 {
    font-size: 5.7rem;
    line-height: 1;
    font-weight: 400;
    font-family: 'Cormorant Garamond', sans-serif;
}

@media screen and (max-width: 1199px) {
    .couple-names-inner h4 {
        font-size: 4.7rem;
    }
}

@media screen and (max-width: 900px) {
    .couple-names-inner h4 {
        font-size: 3.7rem;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-inner h4 {
        font-size: 2.7rem;
    }
}

.couple-names-inner p {
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 400;
}

@media screen and (max-width: 1199px) {
    .couple-names-inner p {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-inner p {
        font-size: 1.8rem;
    }
}

.couple-names-images {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    font-size: 0;
}

@media screen and (max-width: 1200px) {
    .couple-names-images {
        gap: 40px;
        margin-top: 30px;
    }
}

@media screen and (max-width: 900px) {
    .couple-names-images {
        gap: 20px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-images {
        gap: 10px;
    }
}

.couple-names-image {
    font-size: 0;
    width: calc(33.333% - 90px * 2/3);
    max-width: calc(33.333% - 90px * 2/3);
    position: relative;
}

@media screen and (max-width: 1200px) {
    .couple-names-image {
        width: calc(33.333% - 40px * 2/3);
        max-width: calc(33.333% - 40px * 2/3);
    }
}

@media screen and (max-width: 900px) {
    .couple-names-image {
        width: calc(33.333% - 20px * 2/3);
        max-width: calc(33.333% - 20px * 2/3);
    }
}

@media screen and (max-width: 599px) {
    .couple-names-image {
        width: calc(33.333% - 10px * 2/3);
        max-width: calc(33.333% - 10px * 2/3);
    }
}

/* @media screen and (max-width: 799px) {
    .couple-names-image {
        width: 100%;
        max-width: 100%;
    }
} */

.couple-names-image:first-child {
    z-index: 3;
}

.couple-names-image:first-child:after {
    content: 'Together';
    font-family: 'Pinyon Script', cursive;
    font-size: 4.3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    color: #80695a;
    position: absolute;
    top: 50%;
    right: -142px;
    z-index: 2;
    transform: translateY(-50%);
}

@media screen and (max-width: 1200px) {
    .couple-names-image:first-child:after {
        right: -110px;
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 900px) {
    .couple-names-image:first-child:after {
        right: -70px;
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-image:first-child:after {
        right: -25px;
        font-size: 1rem;
    }
}

.couple-names-image:nth-child(2) {
    z-index: 2;
}

.couple-names-image:nth-child(2):after {
    content: 'Forever';
    font-family: 'Pinyon Script', cursive;
    font-size: 4.3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    color: #80695a;
    position: absolute;
    top: 50%;
    right: -142px;
    z-index: 2;
    transform: translateY(-50%);
}

@media screen and (max-width: 1200px) {
    .couple-names-image:nth-child(2):after {
        right: -110px;
        font-size: 3.5rem;
    }
}
@media screen and (max-width: 900px) {
    .couple-names-image:nth-child(2):after {
        right: -70px;
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-image:nth-child(2):after {
        right: -25px;
        font-size: 1rem;
    }
}

.couple-names-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: clip;
    border-radius: 200px 200px 200px 200px;
}

@media screen and (max-width: 900px) {
    .couple-names-images img {
        border-radius: 20vw;
    }
}

@media screen and (max-width: 599px) {
    .couple-names-images img {
        border-radius: 14vw;
    }
}


/* Venue Section */
.venue {
    text-align: center;
    padding-bottom: 0;
}

.venue-title {
    font-size: 4rem;
    font-family: 'Pinyon Script', cursive;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    color: var(--secondary-color);
}

@media screen and (max-width: 1200px) {
    .venue-title {
        font-size: 4.5rem;
    }
}

@media screen and (max-width: 799px) {
    .venue-title {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 500px) {
    .venue-title {
        font-size: 1.8rem;
    }
}

.venue-subtitle {
    font-size: 3rem;
    margin: 20px 0 10px;
    font-family: 'Cormorant Garamond', sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

@media screen and (max-width: 500px) {
    .venue-subtitle {
        font-size: 1.3rem;
    }
}

.venue-subtitle span {
    margin-right: 10px;
    text-transform: none;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
}

@media screen and (max-width: 500px) {
    .venue-subtitle span {
        font-size: 1.2rem;
    }
}

.venue-address {
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: capitalize;
    color: var(--secondary-color);
    margin: 30px 0 50px;
}

@media screen and (max-width: 799px) {
    .venue-address {
        margin: 10px 0 20px;
    }
}

@media screen and (max-width: 500px) {
    .venue-address {
        font-size: 1.2rem;
    }
}

.venue-icon-location {
    font-size: 0;
    width: 57px;
    height: 59px;
    display: block;
    margin: 40px auto 0;
    animation: floatUpDown 2s ease-in-out infinite;
}

.venue-icon-location img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.venue-time {
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.07em;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media screen and (max-width: 799px) {
    .venue-time {
        font-size: 1.2rem;
        align-items: flex-start;
    }
}

.venue-time img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Timeline Section */
.timeline {
    font-size: 0;
}

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

/* Thank You Section */
.thank-you {
    padding-top: 0;
}

.thank-you-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
    font-size: 0;
}

@media screen and (max-width: 1439px) {
    .thank-you-inner {
        gap: 50px;
    }
}

@media screen and (max-width: 900px) {
    .thank-you-inner {
        gap: 20px;
    }
}

@media screen and (max-width: 1199px) {
    .thank-you-inner {
        gap: 10px;
    }
}


.thank-you-image-col {
    width: 100%;
    max-width: 602px;
}

@media screen and (max-width: 900px) {
    .thank-you-image-col {
        width: 60%;
        max-width: 60%;
    }
}

.thank-you-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50vw 50vw 0px 0px;
}



.thank-you-content-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
}

@media screen and (max-width: 900px) {
    .thank-you-content-col {
        gap: 10px;
    }
}

@media screen and (max-width: 500px) {
    .thank-you-content-col {
        gap: 5px;
    }
}

.thank-you-content-col:before {
    content: '';
    width: 2px;
    height: 98px;
    background-color: var(--secondary-color);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.thank-you-content-col:after {
    content: '';
    width: 2px;
    height: 98px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.thank-you-content-col h2 {
    font-weight: 300;
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.01em;
    width: 100%;
    color: var(--secondary-color);
}

@media screen and (max-width: 1199px) {
    .thank-you-content-col h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 900px) {
    .thank-you-content-col h2 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    .thank-you-content-col h2 {
        font-size: 0.8rem;
    }
}

.thank-you-content-col h2:nth-child(2n) {
    text-align: right;
}


/* Contact Section */
.contact {
    padding: 0;
}

.contact-inner {
    background-color: var(--primary-color);
    padding: 50px;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .contact-inner {
        padding: 30px;
    }
}

@media screen and (max-width: 500px) {
    .contact-inner {
        padding: 20px;
    }
}

.contact-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 40px;
    margin-left: -48px;
}

@media screen and (max-width: 500px) {
    .contact-heading {
        padding-bottom: 20px;
    }
}

.contact-heading:before {
    content: '';
    border-bottom: 2px solid var(--secondary-color);
    width: 57%;
    position: absolute;
    bottom: 0;
    left: 100px;
}

@media screen and (max-width: 799px) {
    .contact-heading:before {
        left: 79px;
    }
}

@media screen and (max-width: 500px) {
    .contact-heading:before {
        left: 49px;
    }
}

.contact-heading h2 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-align: center;
    font-family: 'Cormorant Garamond', sans-serif;
}

@media screen and (max-width: 799px) {
    .contact-heading h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 500px) {
    .contact-heading h2 {
        font-size: 1.2rem;
    }
}

.contact-heading span {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    position: absolute;
    left: 100%;
    top: 30px;
}

@media screen and (max-width: 799px) {
    .contact-heading span {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 500px) {
    .contact-heading span {
        font-size: 1rem;
        top: 10px;
    }
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

@media screen and (max-width: 900px) {
    .contact-info {
        gap: 3rem;
    }
}

@media screen and (max-width: 500px) {
    .contact-info {
        gap: 1rem;
    }
}

.bride, .groom {
    text-align: center;
    width: calc(50% - 2rem);
    max-width: calc(50% - 2rem);
    text-align: center;
}

@media screen and (max-width: 799px) {
    .bride, .groom {
        width: 100%;
        max-width: 100%;
    }
}

.bride img, .groom img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: inline-block;
}

@media screen and (max-width: 500px) {
    .bride img, .groom img {
        max-width: 100px;
        margin-bottom: 10px;
    }
}

.bride h3, .groom h3 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    margin-bottom: 30px;
}

@media screen and (max-width: 900px) {
    .bride h3, .groom h3 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 500px) {
    .bride h3, .groom h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

.bride h3 span, .groom h3 span {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-right: 16px;
    display: inline-block;
}

@media screen and (max-width: 900px) {
    .bride h3 span, .groom h3 span {
        font-size: 2rem;
    }
}

@media screen and (max-width: 500px) {
    .bride h3 span, .groom h3 span {
        font-size: 1rem;
        margin-right: 10px;
    }
}

.bride p, .groom p {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-family: 'Cormorant Infant', sans-serif;
    color: var(--text-color) !important;
    text-decoration: none !important;
}

@media screen and (max-width: 900px) {
    .bride p, .groom p {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    .bride p, .groom p {
        font-size: 1rem;
    }
}

.contact-note {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 20px;
    font-family: 'Cormorant Garamond', sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
}

@media screen and (max-width: 900px) {
    .contact-note {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    .contact-note {
        font-size: 12px;
    }
}

/* Gallery Section */
.gallery {
    padding-bottom: 0;
}

.gallery-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

@media screen and (max-width: 1200px) {
    .gallery-inner {
        gap: 20px;
    }
}

.gallery-content-col {
    width: 100%;
    min-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding-left: 100px;
    padding-right: 100px;
}

@media screen and (max-width: 1439px) {
    .gallery-content-col {
        padding-left: 50px;
        padding-right: 50px;
        min-width: auto;
    }
}

@media screen and (max-width: 1200px) {
    .gallery-content-col {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 899px) {
    .gallery-content-col {
        padding-left: 0;
        padding-right: 0;
    }
}

.gallery-content-col h2 {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-align: left;
}

@media screen and (max-width: 1439px) {
    .gallery-content-col h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 899px) {
    .gallery-content-col h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 700px) {
    .gallery-content-col h2 {
        font-size: 1rem;
    }
}

.gallery-content-col h2 + p {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: right;
}

@media screen and (max-width: 1439px) {
    .gallery-content-col h2 + p {
        font-size: 2rem;
    }
}

@media screen and (max-width: 899px) {
    .gallery-content-col h2 + p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 700px) {
    .gallery-content-col h2 + p {
        font-size: 1rem;
    }
}

.gallery-image-col {
    width: 100%;
    height: auto;
    font-size: 0;
}

.gallery-content-col .note {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0 20px;
    text-decoration: none;
}

@media screen and (max-width: 899px) {
    .gallery-content-col .note {
        margin: 0;
    }
}

@media screen and (max-width: 700px) {
    .gallery-content-col .note {
        font-size: 1rem;
    }
}

@media screen and (max-width: 500px) {
    .gallery-content-col .note {
        font-size: 12px;
    }
}

.gallery-content-col .note img {
    width: 80px;
    height: 80px;
}

@media screen and (max-width: 899px) {
    .gallery-content-col .note img {
        width: 30px;
        height: 30px;
    }
}

.gallery-content-col .update-note {
    font-family: 'Pinyon Script', cursive;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--secondary-color);
}

@media screen and (max-width: 1439px) {
    .gallery-content-col .update-note {
        font-size: 2rem;
    }
}

@media screen and (max-width: 899px) {
    .gallery-content-col .update-note {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 700px) {
    .gallery-content-col .update-note {
        font-size: 1rem;
    }
}

.gallery-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Final Message */
.final-message-inner {
    background-color: var(--primary-color);
    padding: 50px 40px;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .final-message-inner {
        padding: 40px 30px;
    }
}

@media screen and (max-width: 899px) {
    .final-message-inner {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 700px) {
    .final-message-inner {
        padding: 25px 15px;
    }
}

@media screen and (max-width: 500px) {
    .final-message-inner {
        padding: 20px 10px;
    }
}

.final-message-title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 15px;
}

@media screen and (max-width: 1200px) {
    .final-message-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 899px) {
    .final-message-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}

@media screen and (max-width: 700px) {
    .final-message-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 500px) {
    .final-message-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

.final-message-subtitle {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.1em;
    margin: 15px 0;
}

@media screen and (max-width: 1200px) {
    .final-message-subtitle {
        font-size: 1.9rem;
    }
}

@media screen and (max-width: 899px) {
    .final-message-subtitle {
        font-size: 1.6rem;
        margin: 12px 0;
    }
}

@media screen and (max-width: 700px) {
    .final-message-subtitle {
        font-size: 1.3rem;
        margin: 10px 0;
    }
}

@media screen and (max-width: 500px) {
    .final-message-subtitle {
        font-size: 1rem;
        margin: 8px 0;
    }
}

.final-message-image {
    font-size: 0;
    display: block;
    margin: 20px auto;
}

@media screen and (max-width: 899px) {
    .final-message-image {
        margin: 15px auto;
    }
}

@media screen and (max-width: 700px) {
    .final-message-image {
        margin: 12px auto;
    }
}

.final-message-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 899px) {
    .final-message-image img {
        max-width: 150px;
    }
}

@media screen and (max-width: 700px) {
    .final-message-image img {
        max-width: 120px;
    }
}

@media screen and (max-width: 500px) {
    .final-message-image img {
        max-width: 100px;
    }
}

.final-message-signature {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.1em;
    margin-top: 15px;
}

@media screen and (max-width: 1200px) {
    .final-message-signature {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 899px) {
    .final-message-signature {
        font-size: 1.8rem;
        margin-top: 12px;
    }
}

@media screen and (max-width: 700px) {
    .final-message-signature {
        font-size: 1.4rem;
        margin-top: 10px;
    }
}

@media screen and (max-width: 500px) {
    .final-message-signature {
        font-size: 1rem;
        margin-top: 8px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content .couple-names {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .save-date {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-content .wedding-date {
        font-size: 1.4rem;
    }

    .divider {
        width: 100px;
        margin: 0 auto 1.5rem auto;
    }

    .timeline-container {
        flex-direction: column;
    }

    .timeline-item {
        width: 100%;
    }

    .hero {
        background-attachment: scroll;
    }

    .page-width {
        padding: 0 20px;
    }
    
    .page-full-width {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo img {
        width: 50px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Original section animation - now handled by scroll animations */
/* section {
    animation: fadeIn 1s ease-out;
} */

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Element-specific scroll animations */
.scroll-animate-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
    transition-delay: var(--animation-delay, 0s);
}

.scroll-animate-element.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Welcome section specific animations */
.welcome-image-first {
    opacity: 0;
    transform: translateX(-60px) translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.welcome-image-first.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.welcome-image-second {
    opacity: 0;
    transform: translateX(60px) translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.welcome-image-second.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.welcome-image-third {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.welcome-image-third.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Invitation section - no animation, immediate display */
.invitation-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', sans-serif;
    color: var(--light-text);
    text-align: center;
}

/* Couple names animations */
.scroll-animate-couple {
    opacity: 0;
    transform: scale(0.8) translateY(60px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--animation-delay, 0s);
}

.scroll-animate-couple.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Timeline animation */
.scroll-animate-timeline {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease-out;
}

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

/* Thank you section animations */
.thank-you-image-col {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thank-you-image-col.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.thank-you-content-col h2 {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease-out;
    transition-delay: var(--animation-delay, 0s);
}

.thank-you-content-col h2.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Contact section animations */
.bride, .groom {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--animation-delay, 0s);
}

.bride.animate, .groom.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Gallery section animations */
.gallery-content-col {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.gallery-content-col.animate {
    opacity: 1;
    transform: translateX(0);
}

.gallery-image-col {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
}

.gallery-image-col.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Venue section staggered animations */
.venue-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.venue-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.venue-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.1s;
}

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

.venue-address {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.2s;
}

.venue-address.animate {
    opacity: 1;
    transform: translateY(0);
}
/* 
.venue-time {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.3s;
}

.venue-time.animate {
    opacity: 1;
    transform: translateY(0);
} */

/* Loading state for body */
/* body:not(.loaded) * {
    animation-play-state: paused;
} */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-animate-element,
    .scroll-animate-couple,
    .scroll-animate-timeline,
    .welcome-image-first,
    .welcome-image-second,
    .welcome-image-third,
    .thank-you-image-col,
    .thank-you-content-col h2,
    .bride,
    .groom,
    .gallery-content-col,
    .gallery-image-col,
    .venue-title,
    .venue-subtitle,
    .venue-address,
    .venue-time {
        animation: none !important;
        transition: none !important;
        opacity: 1;
    }
}

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 105, 90, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(128, 105, 90, 0.3);
    border: 2px solid rgba(128, 105, 90, 0.1);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(128, 105, 90, 0.1);
    transform: scale(1.1);
}

.popup-close:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.popup-message {
    text-align: center;
    color: var(--secondary-color);
}

.popup-icon {
    margin-bottom: 20px;
}

.popup-icon img {
    width: 60px;
    height: auto;
    opacity: 0.8;
}

.popup-message h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.popup-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--secondary-color);
    opacity: 0.9;
    letter-spacing: 0.02em;
}

/* Mobile responsiveness for popup */
@media screen and (max-width: 768px) {
    .popup-content {
        padding: 30px 25px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .popup-message h3 {
        font-size: 1.6rem;
    }
    
    .popup-message p {
        font-size: 1.1rem;
    }
    
    .popup-icon img {
        width: 50px;
    }
}

@media screen and (max-width: 480px) {
    .popup-content {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .popup-message h3 {
        font-size: 1.4rem;
    }
    
    .popup-message p {
        font-size: 1rem;
    }
}

/* QR Code Popup Styles */
.qr-popup-overlay {
    background: rgba(128, 105, 90, 0.9);
}

.qr-popup-content {
    max-width: 450px;
    padding: 30px;
    text-align: center;
}

.qr-popup-message h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.qr-popup-person-info {
    margin-bottom: 25px;
}

.qr-popup-person-info p:first-child {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.qr-popup-person-info p:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.qr-popup-image {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-popup-image img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(128, 105, 90, 0.2);
    border: 3px solid rgba(128, 105, 90, 0.1);
    transition: transform 0.2s ease;
}

.qr-popup-image img:hover {
    transform: scale(1.02);
}

.qr-popup-bank-info p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.qr-popup-instruction {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
    opacity: 0.8;
    font-style: italic;
    margin-top: 20px;
    letter-spacing: 0.02em;
}

/* QR Code hover effect for original images */
.js-qr-code {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.js-qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(128, 105, 90, 0.3);
}

/* Mobile responsiveness for QR popup */
@media screen and (max-width: 768px) {
    .qr-popup-content {
        padding: 25px 20px;
        margin: 20px;
        max-width: 90%;
    }
    
    .qr-popup-message h3 {
        font-size: 1.5rem;
    }
    
    .qr-popup-person-info p:first-child {
        font-size: 1.2rem;
    }
    
    .qr-popup-person-info p:last-child {
        font-size: 1.1rem;
    }
    
    .qr-popup-image img {
        max-width: 250px;
    }
    
    .qr-popup-bank-info p {
        font-size: 1.1rem;
    }
    
    .qr-popup-instruction {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .qr-popup-content {
        padding: 20px 15px;
        margin: 15px;
    }
    
    .qr-popup-message h3 {
        font-size: 1.3rem;
    }
    
    .qr-popup-person-info p:first-child {
        font-size: 1.1rem;
    }
    
    .qr-popup-person-info p:last-child {
        font-size: 1rem;
    }
    
    .qr-popup-image img {
        max-width: 220px;
        border-radius: 12px;
    }
    
    .qr-popup-bank-info p {
        font-size: 1rem;
    }
    
    .qr-popup-instruction {
        font-size: 0.9rem;
    }
} 