/* Opening Section with Photos - Side by side layout */
.opening-with-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0;
}

.side-photo {
    width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}

.side-photo.left {
    transform: rotate(-4deg);
}

.side-photo.right {
    transform: rotate(4deg);
}

.opening-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 300px;
}

@media (max-width: 1100px) {
    .side-photo {
        width: 300px;
        height: auto;
    }
    .opening-with-photos {
        gap: 26px;
    }
}

@media (max-width: 900px) {
    .side-photo {
        width: 260px; /* Adjusted for smaller screens */
        height: 300px;
    }
    .opening-with-photos {
        gap: 24px;
    }
}

@media (max-width: 700px) {
    .opening-with-photos {
        flex-direction: column;
        gap: 20px;
    }
    .side-photo {
        width: 220px; /* Adjusted for mobile screens */
        height: 340px;
    }
    .side-photo.left, .side-photo.right {
        transform: rotate(0deg);
    }
}

/* Photo Section - Separate from opening for flexible positioning */
.photo-section {
    padding: 20px 0;
    background: transparent;
}

.photo-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.photo-item {
    width: 220px;
    height: 400px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.8));
    background: transparent;
}

.photo-item.left {
    transform: rotate(-3deg);
}

.photo-item.right {
    transform: rotate(3deg);
}

@media (max-width: 900px) {
    .photo-item {
        width: 160px;
        height: 280px;
    }
    .photo-wrapper {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .photo-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .photo-item {
        width: 140px;
        height: 240px;
    }
    .photo-item.left, .photo-item.right {
        transform: rotate(0deg);
    }
}

/* Opening Illustration */
.opening-illustration-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
    margin-top: 0;
}

.opening-illustration {
    width: 220px;
    height: 400px;
    object-fit: contain;
    z-index: 2;
    margin-top: -100px;
    margin-bottom: -60px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.8));
    background: transparent;
}

.opening-illustration.left {
    margin-right: 24px;
}
.opening-illustration.right {
    margin-left: 24px;
}

.opening-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    z-index: 3;
}

@media (max-width: 900px) {
    .opening-illustration {
        width: 160px;
        height: 280px;
        margin-top: -60px;
        margin-bottom: -40px;
    }
    .opening-illustration.left, .opening-illustration.right {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 600px) {
    .opening-illustration-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .opening-illustration {
        width: 140px;
        height: 240px;
        margin: 0 0 -10px 0;
    }
    .opening-illustration.left, .opening-illustration.right {
        margin: 0;
    }
    .opening-center {
        margin: 12px 0;
    }
}
/* Wedding Invitation - Adit & Risa */
/* Elegant and Responsive Design */

:root {
    --primary-color: #C4A484;
    --secondary-color: #E8DED1;
    --accent-color: #B8956E;
    --text-color: #5C4033;
    --light-bg: #F5F0EB;
    --white: #FFFFFF;
    --dark-text: #4A3728;
    --nude-brown: #C4A484;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #f0e4d4;
    background-image:
        linear-gradient(rgba(240, 228, 212, 0.85), rgba(240, 228, 212, 0.85)),
        url('foto/bunga2.png'),
        url('foto/bunga.png'),
        url('foto/bunga2.png'),
        url('foto/bunga.png'),
        radial-gradient(circle at 12% 16%, rgba(196, 164, 132, 0.14) 0%, transparent 22%),
        radial-gradient(circle at 84% 11%, rgba(196, 164, 132, 0.12) 0%, transparent 18%),
        radial-gradient(circle at 77% 82%, rgba(148, 84, 54, 0.10) 0%, transparent 16%),
        radial-gradient(circle at 27% 73%, rgba(232, 222, 209, 0.12) 0%, transparent 22%);
    background-repeat: no-repeat;
    background-position: center center,
                         15% 12%,
                         70% 18%,
                         30% 65%,
                         80% 78%,
                         center 20%,
                         right 10%,
                         left 75%,
                         60% 85%;
    background-size: cover,
                     64px 64px,
                     42px 42px,
                     54px 54px,
                     36px 36px,
                     140px 140px,
                     120px 120px,
                     100px 100px,
                     120px 120px;
    background-attachment: fixed;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 20% 10%, rgba(196, 164, 132, 0.16) 0 80px, transparent 82px),
                      radial-gradient(circle at 75% 15%, rgba(196, 164, 132, 0.12) 0 55px, transparent 57px),
                      radial-gradient(circle at 40% 55%, rgba(148, 84, 54, 0.08) 0 70px, transparent 72px),
                      radial-gradient(circle at 90% 75%, rgba(232, 222, 209, 0.10) 0 90px, transparent 92px),
                      radial-gradient(circle at 15% 80%, rgba(196, 164, 132, 0.10) 0 85px, transparent 87px);
    pointer-events: none;
    opacity: 0.55;
    transform: scale(1.02);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('foto/bunga.png'), url('foto/bunga2.png');
    background-repeat: repeat, repeat;
    background-position: 0 0, 80% 30%;
    background-size: 32px 32px, 44px 44px;
    opacity: 0.14;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('foto/bgwedding1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 164, 132, 0.7) 0%, rgba(196, 164, 132, 0.5) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero .couple-name {
    font-size: 3rem;
    color: #FFFFFF;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero .ampersand {
    display: block;
    font-size: 3rem;
    color: #FFFFFF;
    margin: 20px 0;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .date {
    font-size: 1.8rem;
    color: #FFFFFF;
    letter-spacing: 4px;
    margin-top: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .scroll-indicator {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero .scroll-indicator span {
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 5px;
    line-height: 1.2;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-top: 5px;
}

.hero-open-btn {
    margin: 24px auto 0;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B6A52 100%);
    border: none;
    border-radius: 999px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
    z-index: 1;
}

.hero-open-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 42px rgba(196, 164, 132, 0.32);
}

.hero-flower {
    position: absolute;
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    animation: floatFlower 5.5s ease-in-out infinite alternate;
}

.hero-flower-1 {
    top: 35%;
    left: 3%;
    width: 56px;
    height: 56px;
    background-image: url('foto/bunga.png');
}

.hero-flower-2 {
    top: 32%;
    right: 4%;
    width: 40px;
    height: 40px;
    background-image: url('foto/bunga2.png');
    animation-duration: 6s;
}

.hero-flower-3 {
    bottom: 32%;
    left: 4%;
    width: 44px;
    height: 44px;
    background-image: url('foto/bunga2.png');
    animation-duration: 5s;
}

.hero-flower-4 {
    bottom: 35%;
    right: 3%;
    width: 50px;
    height: 50px;
    background-image: url('foto/bunga.png');
    animation-duration: 7s;
}

@keyframes floatFlower {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-70px) rotate(360deg);
    }
}

.hero-content {
    animation: heroReveal 0.9s ease-out;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(11, 28, 40, 0.9);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 40px 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
    text-align: center;
    overflow: hidden;
    animation: cardEntrance 0.85s ease-out;
}

.intro-card::before,
.intro-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
}

.intro-card::before {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(196, 164, 132, 0.35) 0%, transparent 70%);
}

.intro-card::after {
    width: 130px;
    height: 130px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(196, 164, 132, 0.25) 0%, transparent 70%);
}

.intro-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 14px;
}

.intro-title {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--dark-text);
    margin-bottom: 18px;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 32px;
}

.open-invite-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B6A52 100%);
    border: none;
    border-radius: 999px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
    animation: buttonFloat 3.5s ease-in-out infinite;
}

.open-invite-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 42px rgba(196, 164, 132, 0.32);
}

body.intro-active {
    overflow: hidden;
}

.hero-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-ornament {
    position: absolute;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.75;
}

.hero-ornament-top {
    width: 170px;
    height: 170px;
    top: 40px;
    left: 40px;
    background-image: url('foto/flower.png');
}

.hero-ornament-bottom {
    width: 120px;
    height: 120px;
    bottom: 70px;
    right: 45px;
    background-image: url('foto/flower.png');
}

@media (max-width: 768px) {
    .hero-ornament-top {
        width: 130px;
        height: 130px;
        top: 30px;
        left: 30px;
    }

    .hero-ornament-bottom {
        width: 90px;
        height: 90px;
        bottom: 50px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .hero-ornament-top {
        width: 100px;
        height: 100px;
        top: 20px;
        left: 20px;
    }

    .hero-ornament-bottom {
        width: 70px;
        height: 70px;
        bottom: 40px;
        right: 20px;
    }
}

.hero-content {
    animation: heroReveal 0.9s ease-out;
}

.hero .subtitle,
.hero .date,
.hero .couple-name {
    opacity: 0;
    animation: contentFadeIn 1s ease forwards;
}

.hero .subtitle {
    animation-delay: 0.2s;
}

.hero .couple-name {
    animation-delay: 0.4s;
}

.hero .date {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

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

@keyframes buttonFloat {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-6px);
    }
}

/* Opening Section */
.opening {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--white);
}

.opening-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
    font-style: italic;
}

/* Couple Section */
.couple-section {
    padding: 40px 20px;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.couple-section .container {
    position: relative;
    z-index: 2;
}

.couple-flower {
    position: absolute;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    animation: floatFlower 6s ease-in-out infinite alternate;
}

.couple-flower-1 {
    width: 58px;
    height: 58px;
    top: 16%;
    left: 5%;
    background-image: url('foto/bunga.png');
}

.couple-flower-2 {
    width: 42px;
    height: 42px;
    top: 20%;
    right: 7%;
    background-image: url('foto/bunga2.png');
    animation-duration: 5.2s;
}

.couple-flower-3 {
    width: 48px;
    height: 48px;
    bottom: 14%;
    left: 9%;
    background-image: url('foto/bunga2.png');
    animation-duration: 7s;
}

.couple-flower-4 {
    width: 64px;
    height: 64px;
    bottom: 10%;
    right: 6%;
    background-image: url('foto/bunga.png');
    animation-duration: 6.5s;
}

.couple-ornament {
    position: absolute;
    display: block;
    width: 180px;
    height: 180px;
    background-image: url('foto/flower.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.couple-ornament-left {
    top: 50%;
    left: -55px;
    transform: translateY(-50%) rotate(-18deg);
}

.couple-ornament-right {
    top: 50%;
    right: -55px;
    transform: translateY(-50%) rotate(18deg) scaleX(-1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

.couple-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.person-card {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.photo-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.photo-frame img.round-photo {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.photo-placeholder {
    font-size: 4rem;
}

.person-name {
    font-size: 1.7rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.person-desc {
    font-size: 0.9rem;
    color: var(--text-color);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider span {
    font-size: 2rem;
    color: var(--accent-color);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* Event Section */
.event-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.event-frame {
    position: relative;
    padding: 40px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,240,235,0.95) 100%);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 164, 132, 0.2);
    overflow: hidden;
}

.event-frame::before,
.event-frame::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(196, 164, 132, 0.12);
    z-index: 0;
}

.event-frame::before {
    top: -30px;
    left: -20px;
}

.event-frame::after {
    bottom: -35px;
    right: -25px;
}

.event-frame .section-title {
    position: relative;
    z-index: 1;
}

.event-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 235, 0.95) 100%);
    padding: 40px 35px;
    margin-bottom: 30px;
    border-radius: 25px;
    text-align: center;
    border: 1.5px solid rgba(196, 164, 132, 0.15);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(196, 164, 132, 0.03) 100%);
    pointer-events: none;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(196, 164, 132, 0.2);
}

.event-card::before,
.event-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 999px;
    opacity: 0.3;
}

.event-card::before {
    top: 24px;
    left: 24px;
}

.event-card::after {
    bottom: 24px;
    right: 24px;
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(196, 164, 132, 0.1) 0%, rgba(232, 222, 209, 0.15) 100%);
    border-radius: 15px;
    animation: floatIcon 3s ease-in-out infinite;
}

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

.event-card h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.event-time {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.event-location {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-text);
}

.event-address {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 18px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b6a52 100%);
    color: var(--white);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(139, 115, 85, 0.25);
    opacity: 0.98;
}

/* Countdown Section */
.countdown-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6B5344 100%);
    color: var(--white);
    position: relative;
}

.countdown-section .section-title {
    color: var(--white);
    margin-bottom: 50px;
}

.countdown-section .section-title::after {
    background-color: var(--white);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.12);
    padding: 28px 20px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
    max-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    color: #FFF8E7;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    font-weight: 600;
}

/* Greeting Section */
.greeting-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(196, 164, 132, 0.5) 0%, rgba(232, 222, 209, 0.5) 100%);
    text-align: center;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.greeting-content {
    animation: fadeIn 0.8s ease-in;
}

.greeting-label {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 10px;
}

.greeting-name {
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 60px;
}

.greeting-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

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

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

.gallery-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 40px;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--light-bg);
    display: block;
    border-radius: 5px;
}

.gallery-placeholder {
    font-size: 3rem;
    opacity: 0.5;
    cursor: pointer;
}

.gallery-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-color);
    font-style: italic;
}

/* Gallery Modal/Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image-container {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2001;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 2001;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-caption {
    color: var(--white);
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-prev,
    .modal-next {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .modal-close {
        right: 15px;
        top: 15px;
    }

    .modal-image-container {
        padding: 15px;
    }
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(196, 164, 132, 0.1) 0%, rgba(232, 222, 209, 0.15) 100%);
    position: relative;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: rgba(196, 164, 132, 0.15);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.rsvp-section .section-title {
    position: relative;
    z-index: 1;
    color: var(--dark-text);
}

.rsvp-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(196, 164, 132, 0.15);
    backdrop-filter: blur(10px);
}

.rsvp-form::before,
.rsvp-form::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(196, 164, 132, 0.08);
    z-index: -1;
}

.rsvp-form::before {
    top: -20px;
    right: -20px;
}

.rsvp-form::after {
    bottom: -20px;
    left: -20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--secondary-color);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(196, 164, 132, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 0 3px rgba(196, 164, 132, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B6A52 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(196, 164, 132, 0.2);
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 164, 132, 0.35);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.rsvp-message {
    text-align: center;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.rsvp-message.success {
    display: block;
    background-color: #D4EDDA;
    color: #155724;
    border-left-color: #28a745;
}

.rsvp-message.error {
    display: block;
    background-color: #F8D7DA;
    color: #721C24;
    border-left-color: #dc3545;
}

/* Gift Section */
.gift-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.gift-text {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.gift-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.gift-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.account-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.account-name {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 5px;
}

/* Footer */
.footer {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6B5344 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before,
.footer::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.footer::before {
    top: -50px;
    left: -50px;
}

.footer::after {
    bottom: -50px;
    right: -50px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.95;
}

.couple-signature {
    font-size: 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    margin: 20px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-note {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.footer-credit {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.footer-credit-title {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-link {
    color: #FFF8E7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-2px);
}

.footer-divider {
    margin: 0 10px;
    opacity: 0.6;
    display: inline;
}

.footer-text {
    opacity: 0.9;
    display: inline;
}

.watermark {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.bottom-nav a:hover {
    transform: scale(1.2);
}

.music-toggle {
    position: fixed;
    right: 20px;
    bottom: 78px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B6A52 50%);
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(92, 64, 51, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.music-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 38px rgba(92, 64, 51, 0.3);
}

.music-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.music-toggle.playing {
    animation: musicPulse 1.8s ease-in-out infinite;
}

.music-toggle-icon {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(92, 64, 51, 0.24);
    }
    50% {
        box-shadow: 0 12px 32px rgba(196, 164, 132, 0.48);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-name {
        font-size: 4rem;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 24px 16px;
    }

    .countdown-timer {
        gap: 16px;
    }

    .couple-grid {
        flex-direction: column;
    }

    .divider {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .photo-frame {
        width: 150px;
        height: 150px;
    }

    .couple-flower {
        opacity: 0.42;
    }

    .couple-flower-1,
    .couple-flower-4 {
        width: 46px;
        height: 46px;
    }

    .couple-flower-2,
    .couple-flower-3 {
        width: 34px;
        height: 34px;
    }

    .couple-ornament {
        width: 130px;
        height: 130px;
        opacity: 0.14;
    }

    .photo-placeholder {
        font-size: 3rem;
    }

    .music-toggle {
        right: 16px;
        bottom: 76px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .couple-name {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .date {
        font-size: 1.3rem;
    }

    .event-card {
        padding: 24px 20px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 20px 12px;
        max-width: 110px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .event-icon {
        font-size: 2.2rem;
        padding: 12px;
        margin-bottom: 12px;
    }

    .couple-flower-1 {
        top: 8%;
        left: 2%;
    }

    .couple-flower-2 {
        top: 12%;
        right: 2%;
    }

    .couple-flower-3 {
        bottom: 8%;
        left: 3%;
    }

    .couple-flower-4 {
        bottom: 6%;
        right: 2%;
    }

    .couple-ornament-left {
        left: -75px;
    }

    .couple-ornament-right {
        right: -75px;
    }
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}