:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --light-green: #e8f5e9;
    --medium-green: #81c784;
    --white: #ffffff;
    --gold: #d4af37;
    --light-gold: #f9f3e5;
    --dark-text: #333333;
    --light-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8f5e9' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow-x: hidden;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--medium-green);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-toggle button {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.language-toggle button:hover {
    background: rgba(46, 125, 50, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 125, 50, 0.15);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.3);
    backdrop-filter: blur(10px);
}

.back-button a:hover {
    background: rgba(46, 125, 50, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.corner-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.corner-top-left {
    top: 20px;
    left: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' fill='none'%3E%3Cpath d='M0 0C0 55.2285 44.7715 100 100 100V0H0Z' fill='%232e7d32' fill-opacity='0.05'/%3E%3Cpath d='M20 20C20 55.1472 48.8528 84 84 84V20H20Z' stroke='%232e7d32' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
}

.corner-bottom-right {
    bottom: 20px;
    right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' fill='none'%3E%3Cpath d='M100 100C100 44.7715 55.2285 0 0 0V100H100Z' fill='%232e7d32' fill-opacity='0.05'/%3E%3Cpath d='M80 80C80 44.8528 51.1472 16 16 16V80H80Z' stroke='%232e7d32' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
}

header {
    text-align: center;
    padding: 100px 20px 50px;
    background: url('/img/other/background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 80px 80px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.header-content::before,
.header-content::after {
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1px solid var(--gold);
    opacity: 0.5;
    z-index: -1;
    border-radius: 15px;
    pointer-events: none;
}

.header-content::before {
    top: 5px;
    left: 5px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.header-content::after {
    bottom: 5px;
    right: 5px;
    border-left: 2px solid var(--gold);
    border-top: 2px solid var(--gold);
}

.floral-divider {
    width: 180px;
    margin: 20px auto;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.floral-divider:hover {
    transform: scale(1.05);
}

.wedding-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--primary-dark);
    margin: 20px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.names::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold);
    margin: 0 15px;
    vertical-align: middle;
    display: inline-block;
    transform: rotate(-5deg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.date {
    font-size: 1.8rem;
    margin: 15px 0;
    color: var(--dark-text);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.invitation-text {
    font-size: 1.3rem;
    margin: 30px 0 10px;
    line-height: 1.8;
    color: var(--dark-text);
    font-weight: 400;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    margin: 40px 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--medium-green), transparent);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--medium-green), transparent);
    bottom: -10px;
    left: 20%;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-top: -15px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

.event-details {
    background-color: var(--light-green);
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e7d32' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.detail-item {
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.detail-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.detail-item:hover::before {
    transform: scaleX(1);
}

.detail-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.detail-item:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.detail-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.detail-info {
    color: var(--light-text);
    line-height: 1.8;
}

.map-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 60px 0;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

.couple-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin: 60px 0;
}

.person {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.person::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(46, 125, 50, 0.05), transparent 70%);
    border-radius: 20px;
    pointer-events: none;
}

.person:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.12);
}

.person-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 15px 0 10px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.person-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 300;
}

.person-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--light-green);
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.person:hover .person-img {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.family-info {
    margin-top: 25px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.family-info p {
    margin: 12px 0;
    color: var(--light-text);
    line-height: 1.6;
}

.family-info strong {
    color: var(--dark-text);
    font-weight: 500;
}

.rsvp-section {
    background-color: var(--light-green);
    padding: 80px 40px;
    text-align: center;
    border-radius: 30px;
    margin: 60px 0;
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414L74 80.414zm16 0L90 80.414 95.586 86H84.414L90 80.414zm16 0L106 80.414 111.586 86h-11.172L106 80.414zM87.414 91.414L92 96.586l4.586-5.172h-9.172zM87.414 91.414L92 96.586l4.586-5.172h-9.172zM87.414 91.414L92 96.586l4.586-5.172h-9.172z' fill='%232e7d32' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(46, 125, 50, 0.2);
}

.social-icons a:hover::before {
    transform: scale(1);
}

footer {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-green);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(46, 125, 50, 0.05), transparent 70%);
    pointer-events: none;
}

.footer-message {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copyright {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 300;
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

html {
    scroll-behavior: smooth;
}

/* New Couple Section Styles */
.couple-info {
    display: flex;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.groom-section {
    padding-right: 0; /* Remove padding */
}

.bride-section {
    padding-left: 0; /* Remove padding */
    flex-direction: row-reverse;
    margin-top: 60px;
}

.couple-details {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.couple-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
}

.couple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Prevent any default image spacing */
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.groom-section .gradient-overlay {
    background: linear-gradient(to right, transparent, rgba(46, 125, 50, 0.2));
}

.bride-section .gradient-overlay {
    background: linear-gradient(to left, transparent, rgba(46, 125, 50, 0.2));
}

.couple-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.couple-role {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.couple-role::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), transparent);
    bottom: -15px;
    left: 0;
}

.bride-section .couple-role::after {
    background: linear-gradient(to right, var(--primary-light), transparent);
    left:90%;
    right: 0;
}
.groom-section .couple-role::after {
    background: linear-gradient(to left, var(--primary-light), transparent);
    left: 0;
}
.family-details {
    margin-top: 30px;
    text-align: center;
}

.family-line {
    margin: 12px 0;
    color: var(--light-text);
    line-height: 1.8;
}

.family-line strong {
    color: var(--dark-text);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}
/* ----- Love Story Section Styles ----- */
.love-story-section {
    margin-top: 80px;
    position: relative;
    background-color: var(--light-green);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    overflow: hidden;
}

.love-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e7d32' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.love-story-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.love-story-text {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.love-story-text p {

    margin-bottom: 20px;
    line-height: 1.8;
    color: var (--light-text);
}

.love-story-text p:last-child {
    margin-bottom: 0;
}

/* Slideshow Styles */
.slideshow-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    background-color: var(--white);
}

.slideshow-inner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.showing {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.slide-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-250px);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

.slide-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-250px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slide-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80%;
    margin: 0 auto;
}

.indicator {
    width: 45px;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(46, 125, 50, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background-color: rgba(46, 125, 50, 0.4);
    transform: scaleY(1.2);
}

.indicator.active {
    background-color: var(--primary-color);
    width: 55px;
}

.slide.active .slide-progress {
    width: 100%;
}

/* ----- Wishes Form Section Styles ----- */
.wishes-section {
    margin: 80px 0;
}

.wishes-container {
    margin-top: 40px;
}

.wishes-form-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.1);
    overflow: hidden;
}

.wishes-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    pointer-events: none;
}

.left-decoration {
    top: 20px;
    left: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%232e7d32' d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transform: rotate(-25deg);
}

.right-decoration {
    bottom: 20px;
    right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%232e7d32' d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transform: rotate(25deg);
}

.wishes-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 8px;
    background-color: rgba(232, 245, 233, 0.3);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background-color: var(--white);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.submit-btn i {
    transition: all 0.3s ease;
}

.submit-btn:hover i {
    transform: scale(1.2);
}

.wishes-display {
    max-width: 1000px;
    margin: auto;
    position: relative;
}

.wishes-display h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Structured wishes gallery */
.wishes-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background-color: var(--light-green);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.1);
    margin-bottom: 30px;
    justify-content: center;
    height: auto;
    min-height: 300px;
    position: relative;
}

.wish-card {
    position: relative;
    width: 300px;
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease forwards;
    flex: 0 0 auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .wishes-gallery {
        padding: 25px;
    }
    
    .wish-card {
        width: 280px;
    }
}

.wish-card-1 {
    border-left: 4px solid var(--primary-light);
    background-color: rgba(255, 255, 255, 0.95);
    transform: rotate(-1deg);
}

.wish-card-2 {
    border-left: 4px solid var(--medium-green);
    background-color: rgba(232, 245, 233, 0.95);
    transform: rotate(1deg);
}

.wish-card-3 {
    border-left: 4px solid var(--gold);
    background-color: rgba(249, 243, 229, 0.95);
    transform: rotate(-0.5deg);
}

.wish-card:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.2);
    z-index: 10;
}

.wish-message-wrapper {
    flex-grow: 1;
    margin-bottom: 15px;
    position: relative;
    padding-right: 10px;
    padding-left: 15px;
}

.wish-message {
    line-height: 1.8;
    color: var(--light-text);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-style: italic;
}

.wish-from {
    text-align: right;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: auto;
    position: relative;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state */
.wishes-empty {
    text-align: center;
    color: var(--light-text);
    padding: 80px 20px;
}

.wishes-empty i {
    font-size: 40px;
    color: var(--primary-light);
    margin-bottom: 15px;
    opacity: 0.6;
}

/* Pagination */
.wishes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn, .page-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.page-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    font-weight: 500;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}

.page-btn:hover:not(.active) {
    background-color: var(--light-green);
    transform: translateY(-2px);
}

.page-nav {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

.page-nav:hover:not(.disabled) {
    background-color: var(--light-green);
    transform: translateY(-2px);
}

.page-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--primary-color);
    margin: 0 5px;
}

/* Loading state */
.wishes-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-color);
}

.wishes-loading i {
    font-size: 30px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wishes-gallery {
        padding: 25px;
        grid-template-columns: 1fr;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        padding: 80px 20px 40px;
        border-radius: 0 0 40px 40px;
    }
    
    .names {
        font-size: 3.5rem;
    }
    
    .wedding-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
        margin-top: -10px;
        margin-bottom: 25px;
    }
    
    .date {
        font-size: 1.4rem;
    }
    
    .invitation-text {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .header-content {
        padding: 25px 15px;
    }
    
    .header-content::before,
    .header-content::after {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }
    
    .header-content::before {
        top: 3px;
        left: 3px;
    }
    
    .header-content::after {
        bottom: 3px;
        right: 3px;
    }
    
    .event-details {
        padding: 30px 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .couple-section {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .person {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .person-img {
        width: 150px;
        height: 150px;
    }
    
    .rsvp-section {
        padding: 50px 20px;
    }
    
    .footer-message {
        font-size: 2rem;
    }
    
    .corner-decoration {
        width: 60px;
        height: 60px;
    }
    
    .couple-info {
        flex-direction: column;
    }
    
    .bride-section {
        flex-direction: column;
    }
    
    .couple-image-container {
        height: 300px;
    }
    
    .couple-details {
        padding: 30px 20px;
    }
    .love-story-content {
        flex-direction: column;
    }
    
    .slideshow-inner {
        height: 300px;
    }
    
    .wishes-form-wrapper {
        padding: 30px 20px;
    }
    
    .wishes-decoration {
        width: 60px;
        height: 60px;
    }
    .wishes-gallery {
        height: 800px;
        padding: 20px;
    }
    
    .wish-card {
        width: 85%;
        max-width: 280px;
    }
}

/* Love Story Timeline Styles */
.love-story-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.love-story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, 
                               transparent, 
                               rgba(46, 125, 50, 0.3) 10%, 
                               rgba(46, 125, 50, 0.3) 90%, 
                               transparent);
    transform: translateX(-1px);
    z-index: 1;
}

.story-moment {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    align-items: center;
}

.story-moment:last-child {
    margin-bottom: 20px;
}

.story-moment::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(46, 125, 50, 0.1);
}

.story-moment.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    margin: 0 30px;
    max-width: 400px;
    transition: all 0.3s ease;
}

.story-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.image-date {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    border-top-right-radius: 15px;
}

.story-text {
    flex: 1;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
    margin: 0 30px;
    max-width: 400px;
    transition: all 0.3s ease;
}

.story-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.1);
}

.moment-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.moment-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.story-text p {
    text-align: justify;
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--light-text);
}

.story-icon {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
    font-size: 1.2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .love-story-timeline::before {
        left: 30px;
    }
    
    .story-moment {
        flex-direction: column;
    }
    
    .story-moment.reverse {
        flex-direction: column;
    }
    
    .story-moment::after {
        left: 30px;
        top: 40px;
    }
    
    .story-image, .story-text {
        margin: 30px 0 30px 60px;
        max-width: none;
        width: calc(100% - 60px);
    }
    
    .story-image {
        order: 1;
    }
    
    .story-text {
        order: 2;
    }
}

/* ----- Wishes Display Styles ----- */

.wishes-display {
    margin: auto;
    position: relative;
}

.wishes-display h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Enhanced wish cards styling */
.wishes-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background-color: var(--light-green);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.1);
    margin-bottom: 30px;
    justify-content: center;
    height: auto;
    min-height: 300px;
    position: relative;
}

.wish-card {
    position: relative;
    width: 900px;
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease forwards;
    flex: 0 0 auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .wishes-gallery {
        padding: 25px;
    }
    
    .wish-card {
        width: 280px;
    }
}

/* Card variations with improved colors */
.wish-card-1 {
    background-color: var(--white);
    border-left: 4px solid var(--primary-light);
}

.wish-card-2 {
    background-color: rgba(232, 245, 233, 0.7);
    border-left: 4px solid var(--medium-green);
}

.wish-card-3 {
    background-color: rgba(249, 243, 229, 0.7);
    border-left: 4px solid var(--gold);
}

/* Enhanced scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.needs-scroll .scroll-indicator {
    opacity: 0.8;
}

.scroll-indicator.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.8; }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .wishes-gallery {
        height: 800px;
        padding: 20px;
    }
    
    .wish-card {
        width: 260px;
        padding: 20px 15px;
        max-width: 85%;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Music Player Styles */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.music-player-inner {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
    gap: 10px;
    min-width: 200px;
}

.music-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 2px;
}

.music-btn {
    background: var(--primary-color);
    color: white;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.music-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.music-title-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.music-title {
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 500;
    animation: scrollText 10s linear infinite;
    animation-play-state: paused;
}

.playing .music-title {
    animation-play-state: running;
}

.volume-icon {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.volume-slider {
    flex-grow: 1;
    appearance: none;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .music-player-inner {
        padding: 8px 12px;
        min-width: 180px;
    }
    
    .music-btn {
        min-width: 32px;
        height: 32px;
    }
}

/* Photo Slideshow Section */
.photo-slideshow-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, rgba(232, 245, 233, 0.3), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.photo-slideshow-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e7d32' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.8;
}

/* Decorative elements for the slideshow section */
.photo-slideshow-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, var(--light-green) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.floating-element {
    position: absolute;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.floating-element-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--medium-green) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-element 15s infinite ease-in-out;
}

.floating-element-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 8%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-element 12s infinite ease-in-out reverse;
}

.floating-element-3 {
    width: 60px;
    height: 60px;
    bottom: 10%;
    left: 10%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-element 10s infinite ease-in-out 2s;
}

@keyframes float-element {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
    }
    50% {
        transform: translateY(0px) translateX(20px) scale(1);
    }
    75% {
        transform: translateY(15px) translateX(-10px) scale(0.9);
    }
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
    transform-style: preserve-3d;
    padding: 40px 0;
}

.slides-wrapper {
    position: relative;
    height: 500px;
    margin: 0 auto 30px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 20%;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateZ(-400px) scale(0.5);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.slide.prev {
    opacity: 0.7;
    visibility: visible;
    transform: translateX(-70%) translateZ(-150px) scale(0.8);
    z-index: 5;
    filter: brightness(0.8) saturate(0.8);
}

.slide.next {
    opacity: 0.7;
    visibility: visible;
    transform: translateX(70%) translateZ(-150px) scale(0.8);
    z-index: 5;
    filter: brightness(0.8) saturate(0.8);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.8s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.slide.active img {
    transform: scale(1.02);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    border-radius: 15px;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.slide.active::after {
    opacity: 0.3;
}

/* Enhanced caption styling */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: white;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s ease;
    z-index: 15;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.slide-caption p {    margin: 0;    font-family: 'Cormorant Garamond', serif;    font-size: 1.8rem;    font-weight: 600;    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);    opacity: 0;    transform: translateY(20px);    transition: all 0.5s ease 0.3s;}

.slide.active .slide-caption p {
    opacity: 1;
    transform: translateY(0);
}

.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gold);
    width: 0%;
    transition: width 5s linear;
    z-index: 20;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Media queries for slideshow responsiveness */
@media (max-width: 992px) {
    .slides-wrapper {
        height: 450px;
    }
    
    .slide-btn {
        width: 50px;
        height: 50px;
        transform: translateY(-225px);
    }
    
    .slide-btn:hover {
        transform: translateY(-225px) scale(1.1);
    }
}

@media (max-width: 768px) {
    .slides-wrapper {
        height: 350px;
    }
    
    .slide {
        width: 80%;
        left: 10%;
    }
    
    .slide.prev, .slide.next {
        opacity: 0.5;
        transform: translateX(-100%) translateZ(-100px) scale(0.7);
    }
    
    .slide.next {
        transform: translateX(100%) translateZ(-100px) scale(0.7);
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        transform: translateY(-175px);
    }
    
    .slide-btn:hover {
        transform: translateY(-175px) scale(1.1);
    }
    
    .slideshow-container {
        padding: 20px 0;
    }
    
    .indicator {
        width: 35px;
        height: 5px;
    }
    
    .indicator.active {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .slides-wrapper {
        height: 280px;
    }
    
    .slide {
        width: 90%;
        left: 5%;
    }
    
    .slide-btn {
        width: 35px;
        height: 35px;
        transform: translateY(-140px);
    }
    
    .slide-btn:hover {
        transform: translateY(-140px) scale(1.1);
    }
    
    .slideshow-container {
        padding: 10px 0;
    }
    
    .indicator {
        width: 25px;
        height: 4px;
    }
    
    .indicator.active {
        width: 35px;
    }
}

/* Animation for slides */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Love Story Image Slideshow */
.story-image-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.story-image-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1.08);
}

.story-image-slideshow img.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 5s ease-out;
}

/* Enhance story-image appearance */
.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    margin: 0 30px;
    max-width: 400px;
    transition: all 0.3s ease;
    height: 300px; /* Fixed height for consistent look */
}

.story-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
}