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

/* Curtain Intro */
.curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.curtain {
    width: 50%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.9) 0px,
            rgba(245, 245, 245, 0.85) 15px,
            rgba(255, 255, 255, 0.9) 30px,
            rgba(240, 240, 240, 0.85) 45px,
            rgba(255, 255, 255, 0.9) 60px
        );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 28px,
            rgba(200, 200, 200, 0.12) 29px,
            rgba(200, 200, 200, 0.12) 31px,
            transparent 32px,
            transparent 60px
        );
}

.curtain-left {
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.05);
    animation: curtainLeft 1.8s ease-in-out 0.8s forwards;
}

.curtain-right {
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.05);
    animation: curtainRight 1.8s ease-in-out 0.8s forwards;
}

@keyframes curtainLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes curtainRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.curtain-overlay.hidden {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: #faf9f7;
    color: #3a3a3a;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 100vw;
}

/* Section Base */
.section {
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Hero Section */
.section-hero {
    position: relative;
    padding: 0;
    background-color: #f5f3f0;
}

.hero-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroZoomIn 2s ease-out forwards;
}

@keyframes heroZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    padding: 40px 20px;
    text-align: center;
}

.wedding-date {
    font-size: 14px;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 15px;
}

.couple-names {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.venue {
    font-size: 14px;
    color: #666;
}

.parents-info {
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.parent-line {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    line-height: 1.6;
}

.parent-names {
    color: #777;
}

.child-name {
    font-weight: 500;
    color: #2c2c2c;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-number {
    font-size: 28px;
    font-weight: 400;
    color: #2c2c2c;
    letter-spacing: 1px;
    line-height: 1.2;
}

.countdown-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 24px;
    color: #ccc;
    font-weight: 300;
    margin-bottom: 18px;
}

@media screen and (min-width: 768px) {
    .countdown-container {
        gap: 12px;
    }

    .countdown-item {
        min-width: 65px;
    }

    .countdown-number {
        font-size: 36px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .countdown-separator {
        font-size: 28px;
    }
}

.calendar-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.calendar-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Noto Serif KR', serif;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.google-cal {
    background-color: rgba(255,255,255,0.9);
    color: #555;
}

.google-cal:hover {
    background-color: #fff;
}

.apple-cal {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
}

.apple-cal:hover {
    background-color: rgba(0,0,0,0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Story Section */
.section-story {
    background-color: #fff;
}

.story-image-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
}

.story-text {
    text-align: center;
    max-width: 400px;
    margin-bottom: 30px;
}

.story-text h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #2c2c2c;
}

.story-text p {
    font-size: 15px;
    color: #555;
    line-height: 2;
}

.story-feature-image {
    width: 100%;
    max-width: 500px;
    margin-top: 40px;
    border-radius: 8px;
}

/* Gallery Section */
.section-gallery {
    background-color: #f8f7f5;
    padding: 60px 20px;
}

.gallery-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.gallery-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Photo Viewer Modal */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-viewer.active {
    display: flex;
    opacity: 1;
}

.viewer-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.viewer-content img.fade-out {
    opacity: 0;
}

.viewer-content img.dragging {
    transition: none;
}

/* Loading spinner */
.viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.viewer-loading.hidden {
    display: none;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.viewer-close:hover {
    opacity: 1;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.viewer-nav:hover {
    opacity: 1;
}

.viewer-prev {
    left: 10px;
}

.viewer-next {
    right: 10px;
}

.viewer-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .section {
        padding: 60px 40px;
    }

    .hero-image-container {
        max-height: 700px;
    }

    .couple-names {
        font-size: 36px;
    }

    .wedding-date,
    .venue {
        font-size: 16px;
    }

    .story-text h2 {
        font-size: 26px;
    }

    .story-text p {
        font-size: 16px;
    }

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

    .gallery-title {
        font-size: 26px;
    }
}

@media screen and (min-width: 1024px) {
    .section {
        min-height: 100vh;
    }

    .section-hero {
        flex-direction: row;
    }

    .hero-image-container {
        width: 60%;
        aspect-ratio: auto;
        max-height: none;
        height: 100vh;
    }

    .hero-text {
        width: 40%;
        padding: 60px;
    }

    .scroll-indicator {
        display: none;
    }

    .story-image-container,
    .story-feature-image {
        max-width: 600px;
    }

    .gallery-grid {
        max-width: 800px;
        gap: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .gallery-item:active {
        transform: scale(0.98);
    }
}

/* Safe Area for notched devices */
@supports (padding: max(0px)) {
    .section-hero {
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .photo-viewer {
        padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }
}

/* Location Section */
.section-location {
    background-color: #fff;
    padding: 60px 20px;
    min-height: auto !important;
    height: auto;
    justify-content: flex-start;
}

.location-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #2c2c2c;
    text-align: center;
}

.location-info {
    text-align: center;
    margin-bottom: 30px;
}

.location-name {
    font-size: 18px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.location-address {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: all;
}

.location-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.copy-btn, .map-btn {
    padding: 10px 20px;
    background-color: #f5f0eb;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.copy-btn:hover, .map-btn:hover {
    background-color: #ebe5df;
}

.copy-btn:active, .map-btn:active {
    transform: scale(0.98);
}

.kakao-btn {
    background-color: #fee500;
    border-color: #fee500;
    color: #3c1e1e;
}

.kakao-btn:hover {
    background-color: #fdd800;
}

.naver-btn {
    background-color: #03c75a;
    border-color: #03c75a;
    color: #fff;
}

.naver-btn:hover {
    background-color: #02b350;
}

/* Account Section */
.section-account {
    background-color: #f8f7f5;
    padding: 35px 20px;
    min-height: auto !important;
    height: auto;
    justify-content: flex-start;
}

.account-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2c2c2c;
    text-align: center;
}

.account-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 30px;
}

.account-accordions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.account-accordion {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 500;
    color: #2c2c2c;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-icon {
    font-size: 20px;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s;
}

.account-accordion.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.account-accordion.active .accordion-content {
    max-height: 500px;
}

.account-item {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-role {
    font-size: 13px;
    color: #999;
    min-width: 40px;
}

.account-name {
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    min-width: 55px;
}

.account-info {
    font-size: 14px;
    color: #555;
    flex: 1;
    letter-spacing: 0.3px;
}

.account-item .copy-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .account-title {
        font-size: 26px;
    }

    .account-accordions {
        flex-direction: row;
        max-width: 700px;
        gap: 20px;
    }

    .account-accordion {
        flex: 1;
    }
}

/* Guestbook Section */
.section-guestbook {
    background-color: #fff;
    padding: 60px 20px;
}

.guestbook-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2c2c2c;
    text-align: center;
}

.guestbook-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 30px;
}

.guestbook-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: #bbb;
}

.guestbook-form textarea {
    height: 100px;
    resize: none;
}

.guestbook-submit {
    width: 100%;
    padding: 12px;
    background-color: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.guestbook-submit:hover {
    background-color: #444;
}

.guestbook-submit:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.guestbook-list {
    max-width: 400px;
    margin: 0 auto;
}

.guestbook-loading {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.guestbook-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.guestbook-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.guestbook-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
}

.guestbook-item-date {
    font-size: 11px;
    color: #999;
}

.guestbook-item-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    word-break: break-word;
}

.guestbook-delete-btn {
    display: block;
    margin-top: 10px;
    margin-left: auto;
    padding: 5px 12px;
    font-size: 11px;
    color: #999;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Noto Serif KR', serif;
    transition: all 0.2s;
}

.guestbook-delete-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.guestbook-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 20px;
}

.guestbook-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-btn {
    padding: 8px 16px;
    background-color: #f5f0eb;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #ebe5df;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

@media screen and (min-width: 768px) {
    .guestbook-title {
        font-size: 26px;
    }

    .guestbook-form,
    .guestbook-list {
        max-width: 500px;
    }
}

.copy-toast {
    display: none;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.copy-toast.show {
    display: inline-block;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.location-map-container {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.location-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Transport Guide */
.transport-guide {
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
}

.transport-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transport-item:last-of-type {
    border-bottom: none;
}

.transport-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.transport-detail {
    flex: 1;
}

.transport-title {
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.transport-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* Transport Video */
.transport-video {
    margin-top: 24px;
}

.transport-video-title {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.transport-detail-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 14px 20px;
    background-color: #2c2c2c;
    border: none;
    border-radius: 20px;
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.transport-detail-link:hover {
    background-color: #444;
}

@media screen and (min-width: 768px) {
    .location-title {
        font-size: 26px;
    }

    .location-name {
        font-size: 20px;
    }

    .location-address {
        font-size: 16px;
    }

    .location-map-container {
        width: 100%;
        max-width: 500px;
    }

    .transport-guide {
        max-width: 500px;
    }
}

/* Petal Animation */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at 30% 30%, #ffffff 0%, #f5f5f5 40%, #e8e8e8 100%);
    border-radius: 150% 0 150% 0;
    opacity: 0;
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.5);
    animation: falling-petal linear forwards;
}

@keyframes falling-petal {
    0% {
        opacity: 0;
        transform: translateY(-5vh) translateX(0) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) translateX(15px) rotate(90deg) scale(1);
    }
    50% {
        transform: translateY(50vh) translateX(-10px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(75vh) translateX(20px) rotate(270deg) scale(0.85);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(105vh) translateX(5px) rotate(360deg) scale(0.7);
    }
}

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

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

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

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation for gallery items */
.gallery-item.scale-in {
    transition-delay: calc(var(--delay) * 0.1s);
}

/* Hero text animation */
.hero-text .wedding-date,
.hero-text .couple-names,
.hero-text .venue {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text .wedding-date {
    animation-delay: 0.5s;
}

.hero-text .couple-names {
    animation-delay: 0.8s;
}

.hero-text .venue {
    animation-delay: 1.1s;
}

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