/* Global Variables */
:root {
    --gold: #D4AF37;
    --rose-gold: #FF7B9C; /* Deeper, more vibrant pink */
    --rose-light: #FFE0E9; /* Slightly more pinkish background */
    --text-dark: #4A3B3D;
    --text-light: #876D72;
    --bg-light: #FFFBFB;
    --white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', sans-serif;

    --shadow-soft: 0 15px 35px rgba(199, 139, 153, 0.15);
    --shadow-strong: 0 20px 40px rgba(74, 59, 61, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

body.locked {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.hidden-element {
    display: none !important;
}

main {
    overflow-x: hidden;
    width: 100%;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--rose-gold);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 400;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
}

/* Buttons */
.btn-glass {
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--rose-gold), #E6A8B5);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(199, 139, 153, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 139, 153, 0.6);
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-outline:hover {
    background: var(--rose-gold);
    color: var(--white);
}

/* Cover Screen - Split Animation */
.cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: visibility 1.5s, opacity 1.5s;
}

.cover-screen.hidden-cover {
    opacity: 0;
    visibility: hidden;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1518621736915-f3b1c41bfd00?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat;
    background-size: 200% 100%;
    z-index: 1;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
}

.door::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 247, 0.75);
    /* Soft, airy pink overlay */
}

.door-left {
    left: 0;
    background-position: left center;
    border-right: 1px solid rgba(199, 139, 153, 0.4);
    box-shadow: 5px 0 20px rgba(199, 139, 153, 0.1);
}

.door-right {
    right: 0;
    background-position: right center;
    border-left: 1px solid rgba(199, 139, 153, 0.4);
    box-shadow: -5px 0 20px rgba(199, 139, 153, 0.1);
}

.cover-screen.open .door-left {
    transform: translateX(-100%);
}

.cover-screen.open .door-right {
    transform: translateX(100%);
}

.cover-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    padding: 60px 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(199, 139, 153, 0.2);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 90%;
}

.cover-screen.open .cover-content {
    opacity: 0;
    transform: scale(0.9);
}

.cover-content .btn-glass {
    background: var(--rose-gold);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 25px rgba(199, 139, 153, 0.3);
    margin-top: 15px;
}

.cover-content .btn-glass:hover {
    background: #B47583;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(199, 139, 153, 0.5);
}

.wedding-of {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.couple-name-cover {
    font-family: var(--font-script);
    font-size: 6rem;
    margin: 10px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--rose-gold);
}

.cover-separator {
    width: 2px;
    height: 60px;
    background: var(--rose-gold);
    margin: 20px auto;
}

.guest-info {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 300;
}

.guest-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Luxury Frame Animation */
.luxury-frame {
    position: absolute;
    top: 3vh;
    left: 4vw;
    right: 4vw;
    bottom: 85px;
    z-index: 3;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M5,100 v-75 a20,20 0 0,1 20,-20 h75" fill="none" stroke="%23FF7B9C" stroke-width="1.5"/><path d="M15,100 v-65 a10,10 0 0,1 10,-10 h75" fill="none" stroke="%23FF7B9C" stroke-width="0.75"/><path d="M35,100 v-40 a25,25 0 0,1 25,-25 h40" fill="none" stroke="%23FF7B9C" stroke-width="1"/><path d="M55,100 v-20 a25,25 0 0,1 25,-25 h20" fill="none" stroke="%23FF7B9C" stroke-width="0.75"/><path d="M25,95 C50,95 50,70 25,70 C10,70 10,95 25,95 Z" fill="%23FF7B9C" fill-opacity="0.3"/><path d="M45,75 C65,75 65,50 45,50 C35,50 35,75 45,75 Z" fill="%23FF7B9C" fill-opacity="0.5"/><circle cx="5" cy="95" r="3" fill="%23FF7B9C"/><circle cx="15" cy="75" r="2" fill="%23FF7B9C"/><circle cx="35" cy="75" r="2.5" fill="%23FF7B9C"/><circle cx="55" cy="60" r="1.5" fill="%23FF7B9C"/></svg>');
    opacity: 0;
    transition: all 1s ease;
}

.top-left {
    top: 0;
    left: 0;
    transform: scale(1);
}

.top-right {
    top: 0;
    right: 0;
    transform: scale(-1, 1);
}

.bottom-left {
    bottom: 0;
    left: 0;
    transform: scale(1, -1);
}

.bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1, -1);
}

.frame-border {
    position: absolute;
    background: var(--rose-gold);
    opacity: 0;
    transition: all 1s ease;
}

.border-top {
    top: 6px;
    left: 120px;
    right: 120px;
    height: 1.5px;
}

.border-bottom {
    bottom: 6px;
    left: 120px;
    right: 120px;
    height: 1.5px;
}

.border-left {
    left: 6px;
    top: 120px;
    bottom: 120px;
    width: 1.5px;
}

.border-right {
    right: 6px;
    top: 120px;
    bottom: 120px;
    width: 1.5px;
}

/* Appearance Animation Classes */
.luxury-frame.show .anim-1 {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    transition-delay: 0.5s;
}

.luxury-frame.show .anim-2 {
    opacity: 1;
    transform: scale(-1, 1) translate(0, 0);
    transition-delay: 1.0s;
}

.luxury-frame.show .anim-3 {
    opacity: 1;
    transform: scale(1, -1) translate(0, 0);
    transition-delay: 1.5s;
}

.luxury-frame.show .anim-4 {
    opacity: 1;
    transform: scale(-1, -1) translate(0, 0);
    transition-delay: 2.0s;
}

.luxury-frame.show .anim-5 {
    opacity: 0.6;
    transform: translateY(0);
    transition-delay: 2.5s;
}

.luxury-frame.show .anim-6 {
    opacity: 0.6;
    transform: translateY(0);
    transition-delay: 2.5s;
}

.luxury-frame.show .anim-7 {
    opacity: 0.6;
    transform: translateX(0);
    transition-delay: 3.0s;
}

.luxury-frame.show .anim-8 {
    opacity: 0.6;
    transform: translateX(0);
    transition-delay: 3.0s;
}

/* Custom entrance for the hero content */
#hero-frame-content {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.5s ease;
}

#hero-frame-content.show {
    opacity: 1;
    transform: scale(1);
    transition-delay: 3.5s;
    /* Appears after ornaments finish */
}

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

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center/cover;
    animation: zoomInOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 232, 236, 0.6) 0%, rgba(199, 139, 153, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
}

.hero-frame {
    padding: 60px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 3px solid var(--white);
    outline: 1px dashed var(--rose-gold);
    outline-offset: -10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.sub-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-light);
}

.title {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--rose-gold);
    line-height: 1;
    margin-bottom: 20px;
}

.date {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-box {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    color: var(--rose-gold);
    border: 1px dashed var(--rose-gold);
}

.time-box span {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-serif);
    line-height: 1;
}

.time-box p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Shape Dividers */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-light);
}

.wave-footer .shape-fill {
    fill: var(--text-dark);
}

.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-top .shape-fill {
    fill: var(--bg-light);
}

/* Quote Section */
.quote-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.verse {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 30px auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.verse-ref {
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* Couple Section */
.couple-section {
    padding: 100px 0;
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/cream-paper.png');
}

.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.couple-card {
    padding: 40px 30px;
    width: 350px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.couple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--rose-light), var(--rose-gold), var(--rose-light));
}

.img-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 30px;
    padding: 10px;
    border: 2px dashed var(--rose-gold);
    position: relative;
}

.animated-border {
    animation: rotateBorder 15s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ddd;
    animation: rotateBorder 15s linear infinite reverse;
    /* counter rotate so image stays straight */
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 370px;
    min-width: 310px;
}

.role-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--rose-gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.role-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
}

.couple-card h3 {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--rose-gold);
    margin-bottom: 10px;
    font-weight: 400;
}

.couple-card .parent-name {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.couple-card .socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--rose-light);
    color: var(--rose-gold);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.couple-card .socials a:hover {
    background: var(--rose-gold);
    color: var(--white);
    transform: scale(1.1);
}

.ampersand {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--rose-gold);
    animation: float 3s ease-in-out infinite;
    align-self: center;
}

/* Event Section */
.event-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.event-card {
    padding: 50px 40px;
    position: relative;
    transition: transform 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.icon-ring {
    width: 80px;
    height: 80px;
    background: var(--rose-light);
    color: var(--rose-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.pulse-anim {
    animation: pulseShadow 2s infinite;
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-dark);
}

.event-divider {
    width: 50px;
    height: 2px;
    background: var(--rose-gold);
    margin: 20px auto;
}

.date-display {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--rose-gold);
}

.time {
    margin-bottom: 10px;
    color: var(--text-light);
}

.location-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(199, 139, 153, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 3rem;
    color: var(--white);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* RSVP Section */
.rsvp-section {
    padding: 120px 0 200px;
    position: relative;
    background: url('https://images.unsplash.com/photo-1518621736915-f3b1c41bfd00?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed;
}

.rsvp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 232, 236, 0.7);
    backdrop-filter: blur(5px);
}

.rsvp-card {
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-desc {
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rose-gold);
}

input,
select {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid rgba(199, 139, 153, 0.3);
    border-radius: 30px;
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--rose-gold);
    box-shadow: 0 0 10px rgba(199, 139, 153, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 120px 0 50px;
    background-color: var(--text-dark);
    color: var(--rose-light);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-couple {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--rose-gold);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.footer-ampersand {
    font-size: 3rem;
    display: inline-block;
    margin: -10px 0;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Audio Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    color: var(--rose-gold);
    border: 1px solid var(--rose-gold);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
}

.spin {
    animation: spinAnim 4s linear infinite;
}

@keyframes spinAnim {
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Petals/Particles Animation */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.petal {
    position: absolute;
    background: var(--rose-gold);
    border-radius: 50% 0 50% 50%;
    opacity: 0.4;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translateY(-10vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
        transform: scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(110vh) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

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

@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 139, 153, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(199, 139, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(199, 139, 153, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 30px;
    }
}

/* Petals Animation */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    /* Above background, but below high-z elements */
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    /* Start completely off-screen above */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 183, 197, 0.9));
    border-radius: 15px 0 15px 0;
    /* Leaf/petal shape */
    box-shadow: 0 2px 10px rgba(255, 183, 197, 0.5);
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity; /* GPU acceleration */
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

.hero-frame {
    padding: 40px 20px;
    border-radius: 20px;
}

.title {
    font-size: 3.5rem;
}

.countdown {
    gap: 10px;
}

.time-box {
    width: 60px;
    height: 60px;
}

.time-box span {
    font-size: 1.2rem;
}

.time-box p {
    font-size: 0.6rem;
}

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

.couple-name-cover {
    font-size: 4rem;
}

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

/* Gift Section */
.gift-section {
    padding: 100px;
    background: var(--bg-light);
    text-align: center;
}

.gift-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.bank-card {
    padding: 40px 20px;
}

.bank-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.account-num {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0 5px;
    color: var(--text-dark);
    letter-spacing: 2px;
}

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

.btn-copy {
    width: 100%;
    justify-content: center;
}

.btn-copy.copied {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Wish Section */
.wish-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 768px) {
    .wish-wrapper {
        grid-template-columns: 1fr;
    }
}

.wish-form-card {
    padding: 40px;
}

.wish-wrapper textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(199, 139, 153, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    resize: none;
    transition: 0.3s ease;
}

.wish-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 139, 153, 0.2);
}

.wishes-list {
    padding: 20px;
    height: 100%;
    max-height: 400px;
    overflow-y: auto;
}

.wish-item {
    padding: 15px;
    border-bottom: 1px solid rgba(199, 139, 153, 0.2);
    margin-bottom: 15px;
}

.wish-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.wish-header strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.wish-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wishes-list::-webkit-scrollbar {
    width: 6px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    /* Cover Page Responsiveness */
    .cover-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .couple-name-cover {
        font-size: 3.5rem;
    }
    
    .wedding-of {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .guest-name {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    /* Responsive Frame Ornaments */
    .frame-corner {
        width: 70px;
        height: 70px;
    }
    
    .top-left {
        transform: scale(1);
    }
    .top-right {
        transform: scale(-1, 1);
    }
    .bottom-left {
        transform: scale(1, -1);
    }
    .bottom-right {
        transform: scale(-1, -1);
    }
    
    /* Responsive Frame Borders */
    .border-top {
        left: 70px;
        right: 70px;
        top: 3.5px;
    }
    
    .border-bottom {
        left: 70px;
        right: 70px;
        bottom: 3.5px;
    }
    
    .border-left {
        top: 70px;
        bottom: 70px;
        left: 3.5px;
    }
    
    .border-right {
        top: 70px;
        bottom: 70px;
        right: 3.5px;
    }

    /* Responsive Countdown */
    .countdown {
        gap: 10px;
    }
    
    .time-box {
        width: 55px;
        height: 55px;
    }
    
    .time-box span {
        font-size: 1.1rem;
    }
    
    .time-box p {
        font-size: 0.55rem;
    }

    /* Responsive Texts */
    .hero-content .title {
        font-size: 3rem;
    }
    
    .hero-content .sub-title {
        font-size: 0.9rem;
    }
    
    .hero-content .date {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-frame {
        padding: 40px 20px;
        max-width: 90vw;
        border-radius: 15px;
    }

    /* General Section Padding */
    .event-section, .gallery-section {
        padding: 60px 20px;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }

    /* Gift Section */
    .gift-section {
        padding: 60px 20px;
    }
    
    .gift-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bank-card {
        padding: 25px 15px;
    }
    
    .bank-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }
    
    .account-num {
        font-size: 1.2rem;
    }

    /* RSVP / Wish Section */
    .rsvp-section {
        padding: 60px 20px 100px;
    }
    
    .wish-form-card {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input, select, .wish-wrapper textarea {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }
    
    .form-icon {
        left: 15px;
    }

    /* Couple Section */
    .couple-card {
        padding: 30px 20px;
    }
    
    .img-frame {
        width: 150px;
        height: 150px;
    }
}