:root {
    --maroon: #591F12;
    --gold: #D4AF37;
    --cream: #FDF5E6;
    --dark: #2c2c2c;
    --light-maroon: #7c2d1b;
    --deep-maroon: #3a1209;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--dark);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .names, .love {
    font-family: 'Playfair Display', serif;
    color: var(--maroon);
}

.envelope-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #591F12 0%, #7c2d1b 50%, #591F12 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.envelope-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.envelope {
    width: 100%;
    max-width: 500px;
    background-color: var(--maroon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    transition: all 0.5s ease;
    border: 3px solid var(--gold);
}

@media (min-width: 500px) {
    .envelope {
        min-height: auto;
        height: 90vh;
        border-radius: 10px;
        overflow-y: auto;
    }
}

.landing-page {
    height: 100vh;
    height: 100svh; /* Better for mobile browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--maroon);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    border: 3px solid var(--gold);
    overflow: hidden;
    box-sizing: border-box;
}

.landing-page.open {
    transform: translateY(-100%);
    pointer-events: none;
}

.landing-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    animation: slideshow 20s infinite;
}

@keyframes slideshow {
    0%, 20% { background-image: url('/assets/images/image1.jpeg'); }
    25%, 45% { background-image: url('/assets/images/image2.jpeg'); }
    50%, 70% { background-image: url('/assets/images/image3.jpeg'); }
    75%, 95% { background-image: url('/assets/images/image4.jpeg'); }
    100% { background-image: url('/assets/images/image1.jpeg'); }
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, transparent 70%, var(--gold) 71%, var(--gold) 75%, transparent 76%);
    animation: rotateSlow 30s linear infinite;
    opacity: 0.3;
}

.landing-page::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, transparent 70%, var(--gold) 71%, var(--gold) 73%, transparent 74%);
    animation: rotateSlow 30s linear infinite reverse;
    opacity: 0.2;
}

@media (min-width: 500px) {
    .landing-page {
        height: 100vh;
        height: 100svh;
    }
}

.landing-page.open {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.landing-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.landing-page p {
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.landing-page .names {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--gold);
}

/* Ensure buttons are clickable */
.open-btn {
    background-color: var(--maroon);
    color: var(--cream);
    border: 2px solid var(--gold);
    padding: 10px 30px;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 100;
}

.dear-text {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 100;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.landing-guest {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 100;
}

.open-btn:hover {
    background-color: var(--gold);
    color: var(--maroon);
    border-color: var(--maroon);
}

.main-content {
    padding: 3rem 1.5rem;
    background-color: var(--maroon);
    position: relative;
    border: 3px solid var(--gold);
    border-radius: 5px;
    box-shadow: 
        0 0 0 1px var(--gold),
        0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatUp 8s ease-in-out infinite;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 20%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatUp 10s ease-in-out infinite reverse;
}

@keyframes floatUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

.main-content::before {
    top: -100px;
    left: 50%;
}

.main-content::after {
    bottom: -50px;
    right: 20%;
    transform: translateX(0);
}

.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    pointer-events: none;
}

/* Wave line animations */
/* Ensure ornaments are behind content */
.decorative-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.diagonal-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.animated-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Main content sections should be on top */
.main-content > * {
    position: relative;
    z-index: 10;
}

.main-content section,
.main-content header,
.main-content footer {
    position: relative;
    z-index: 10;
}

.wave-line {
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
    animation: waveFlow 8s ease-in-out infinite;
}

.wave-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: wavePulse 2s ease-in-out infinite;
}

@keyframes waveFlow {
    0% { 
        transform: translateX(-50%) rotate(0deg); 
    }
    100% { 
        transform: translateX(-50%) rotate(360deg); 
    }
}

@keyframes wavePulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.wave-1 { top: 15%; left: -50%; animation-duration: 10s; animation-delay: 0s; }
.wave-2 { top: 35%; left: -50%; animation-duration: 12s; animation-delay: 2s; }
.wave-3 { top: 55%; left: -50%; animation-duration: 8s; animation-delay: 4s; }
.wave-4 { top: 75%; left: -50%; animation-duration: 11s; animation-delay: 1s; }

/* Curved flowing lines */
.flowing-curve {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    opacity: 0.4;
    animation: curveRotate 6s linear infinite;
}

@keyframes curveRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.curve-1 { top: 20%; left: 5%; animation-delay: 0s; }
.curve-2 { top: 60%; right: 5%; animation-delay: 2s; }
.curve-3 { bottom: 15%; left: 10%; animation-delay: 4s; }
.curve-4 { top: 40%; right: 8%; animation-delay: 1s; }

/* Particle dots effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) translateX(15px); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) translateX(-10px); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-40px) translateX(5px); 
        opacity: 0.8;
    }
}

.particle-1 { top: 25%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 45%; right: 20%; animation-delay: 2s; }
.particle-3 { bottom: 30%; left: 25%; animation-delay: 4s; }
.particle-4 { top: 65%; right: 15%; animation-delay: 1s; }
.particle-5 { bottom: 45%; left: 20%; animation-delay: 3s; }
.particle-6 { top: 35%; left: 30%; animation-delay: 5s; }

/* Sine wave decorative lines */
.sine-wave {
    position: absolute;
    width: 150px;
    height: 3px;
    background: var(--gold);
    opacity: 0.5;
    animation: sineMove 7s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes sineMove {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-5deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(5deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) rotate(-3deg); 
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-25px) translateX(8px) rotate(2deg); 
        opacity: 0.7;
    }
}

.sine-1 { top: 20%; left: 10%; animation-delay: 0s; }
.sine-2 { top: 50%; right: 12%; animation-delay: 2s; }
.sine-3 { bottom: 25%; left: 18%; animation-delay: 4s; }
.sine-4 { top: 70%; left: 8%; animation-delay: 1s; }
.sine-5 { bottom: 40%; right: 10%; animation-delay: 3s; }

/* Scroll decorative pattern */
.scroll-pattern {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    opacity: 0.4;
    animation: scrollExpand 5s ease-in-out infinite;
}

.scroll-pattern::before,
.scroll-pattern::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: var(--gold);
}

.scroll-pattern::before { left: 50%; }
.scroll-pattern::after { 
    top: 50%; 
    left: 0;
    width: 100%; 
    height: 1px; 
}

@keyframes scrollExpand {
    0%, 100% { 
        transform: scale(0.8) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1) rotate(45deg); 
        opacity: 0.6;
    }
}

.scroll-1 { top: 30%; left: 12%; animation-delay: 0s; }
.scroll-2 { top: 55%; right: 14%; animation-delay: 2s; }
.scroll-3 { bottom: 35%; left: 16%; animation-delay: 4s; }

/* Floating stars */
.star {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(0.8) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 0.8;
    }
}

.star-1 { top: 25%; right: 15%; animation-delay: 0s; }
.star-2 { bottom: 30%; left: 12%; animation-delay: 1.5s; }
.star-3 { top: 60%; left: 20%; animation-delay: 3s; }
.star-4 { bottom: 50%; right: 18%; animation-delay: 0.5s; }

/* Elegant border animation */
.animated-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: borderSlide 4s ease-in-out infinite;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: borderSlide 4s ease-in-out infinite reverse;
}

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

/* Decorative circles with pulse */
.pulsing-circle {
    position: absolute;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: circlePulse 4s ease-in-out infinite;
}

.pulsing-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

@keyframes circlePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.6;
    }
}

.pulse-1 { width: 40px; height: 40px; top: 15%; left: 8%; animation-delay: 0s; }
.pulse-2 { width: 35px; height: 35px; top: 45%; right: 10%; animation-delay: 1s; }
.pulse-3 { width: 45px; height: 45px; bottom: 20%; left: 12%; animation-delay: 2s; }
.pulse-4 { width: 30px; height: 30px; top: 70%; left: 18%; animation-delay: 0.5s; }

/* Diagonal lines effect */
.diagonal-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        var(--gold) 10px,
        var(--gold) 11px
    );
    animation: diagonalMove 20s linear infinite;
}

@keyframes diagonalMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

.countdown-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 15;
}

.countdown-title {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

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

.countdown-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    line-height: 1;
    margin-bottom: 0.3rem;
    position: relative;
}

.countdown-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 1px solid var(--gold);
    border-radius: 8px;
    opacity: 0.3;
    animation: pulseBorder 2s ease-in-out infinite;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.5rem;
        padding: 0;
    }
    
    .countdown-item {
        min-width: 40px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }

    .landing-page h1 {
        font-size: 1.5rem;
    }
    .landing-page p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .landing-page .names {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }
    .landing-guest {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .dear-text {
        font-size: 1.4rem;
    }
    .open-btn {
        padding: 8px 24px;
        font-size: 1rem;
    }
    .landing-page::before {
        width: 250px;
        height: 250px;
    }
    .landing-page::after {
        width: 200px;
        height: 200px;
    }
}

@keyframes pulseBorder {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.5;
    }
}
    position: absolute;
    width: 90px;
    height: 90px;
    pointer-events: none;
}

.corner-ornament::before,
.corner-ornament::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.corner-ornament.top-left {
    top: 25px;
    left: 25px;
}

.corner-ornament.top-left::before {
    width: 2px;
    height: 90px;
    left: 0;
    top: 0;
}

.corner-ornament.top-left::after {
    width: 90px;
    height: 2px;
    left: 0;
    top: 0;
}

.corner-ornament.top-right {
    top: 25px;
    right: 25px;
}

.corner-ornament.top-right::before {
    width: 2px;
    height: 90px;
    right: 0;
    top: 0;
}

.corner-ornament.top-right::after {
    width: 90px;
    height: 2px;
    right: 0;
    top: 0;
}

.corner-ornament.bottom-left {
    bottom: 25px;
    left: 25px;
}

.corner-ornament.bottom-left::before {
    width: 2px;
    height: 90px;
    left: 0;
    bottom: 0;
}

.corner-ornament.bottom-left::after {
    width: 90px;
    height: 2px;
    left: 0;
    bottom: 0;
}

.corner-ornament.bottom-right {
    bottom: 25px;
    right: 25px;
}

.corner-ornament.bottom-right::before {
    width: 2px;
    height: 90px;
    right: 0;
    bottom: 0;
}

.corner-ornament.bottom-right::after {
    width: 90px;
    height: 2px;
    right: 0;
    bottom: 0;
}

/* Intricate corner decorations */
.intricate-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    opacity: 0.6;
}

.intricate-corner::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50% 0 0 0;
}

.intricate-corner.top-left {
    top: 20px;
    left: 20px;
    animation: elegantGlow 4s ease-in-out infinite;
}

.intricate-corner.top-right {
    top: 20px;
    right: 20px;
    transform: rotate(90deg);
    animation: elegantGlow 4s ease-in-out infinite 1s;
}

.intricate-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    transform: rotate(-90deg);
    animation: elegantGlow 4s ease-in-out infinite 2s;
}

.intricate-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(180deg);
    animation: elegantGlow 4s ease-in-out infinite 1.5s;
}

.intricate-corner::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 1px solid var(--gold);
    border-radius: 50% 0 0 0;
    top: 8px;
    left: 8px;
}

@keyframes elegantGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02) rotate(2deg);
    }
}

/* Floral decorative elements */
.floral-ornament {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.5;
    animation: floatFloral 6s ease-in-out infinite;
}

.floral-ornament::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, transparent 40%, var(--gold) 41%, var(--gold) 43%, transparent 44%),
        radial-gradient(circle at center, transparent 60%, var(--gold) 61%, var(--gold) 63%, transparent 64%);
}

.floral-ornament::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, transparent 50%, var(--gold) 51%, var(--gold) 53%, transparent 54%);
}

@keyframes floatFloral {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-10px) rotate(10deg); 
        opacity: 0.7;
    }
}

.floral-1 {
    top: 30%;
    left: 8%;
    animation-delay: 0s;
}

.floral-2 {
    top: 70%;
    right: 8%;
    animation-delay: 2s;
}

.floral-3 {
    bottom: 15%;
    left: 12%;
    animation-delay: 4s;
}

/* Diamond pattern ornaments */
.diamond-ornament {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    opacity: 0.5;
    animation: diamondPulse 5s ease-in-out infinite;
}

.diamond-ornament::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    background: 
        radial-gradient(circle at center, transparent 70%, var(--gold) 71%, var(--gold) 73%, transparent 74%);
}

.diamond-ornament::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

@keyframes diamondPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.diamond-1 {
    top: 25%;
    right: 10%;
    animation-delay: 1s;
}

.diamond-2 {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

/* Elegant divider */
.elegant-divider {
    width: 80%;
    height: 2px;
    margin: 2rem auto;
    position: relative;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.elegant-divider::before,
.elegant-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.elegant-divider::before {
    left: 50%;
}

.elegant-divider::after {
    right: 50%;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 1.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hero {
    position: relative;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    bottom: -15px;
    z-index: 10;
    background: 
        radial-gradient(circle at center, transparent 30%, var(--gold) 31%, var(--gold) 35%, transparent 36%),
        radial-gradient(circle at center, transparent 50%, var(--gold) 51%, var(--gold) 55%, transparent 56%);
    animation: rotateSlow 20s linear infinite;
    border-radius: 50%;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero::before {
    left: -20px;
    bottom: 20px;
}

.hero::after {
    right: -20px;
    bottom: 20px;
}

/* Adjusting actual bottom corners on footer instead for better placement */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--gold);
    position: relative;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    bottom: 10px;
    background: 
        radial-gradient(circle at center, transparent 30%, var(--gold) 31%, var(--gold) 35%, transparent 36%),
        radial-gradient(circle at center, transparent 50%, var(--gold) 51%, var(--gold) 55%, transparent 56%);
    animation: rotateSlow 20s linear infinite reverse;
    border-radius: 50%;
}

footer::before {
    left: -20px;
}

footer::after {
    right: -20px;
}

footer .love {
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.copyright p {
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.8;
}

.copyright a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.copyright a:hover {
    opacity: 0.7;
}

footer p {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.hero .date {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.decorative-line {
    width: 100px;
    height: 2px;
    background-color: var(--gold);
    margin: 2rem auto;
}

section {
    margin-bottom: 4rem;
    text-align: center;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.couple-photo {
    margin-bottom: 2rem;
}

.photo-frame {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4/5;
    border: 3px solid var(--gold);
    padding: 10px;
    margin: 0 auto;
    border-radius: 20px 60px;
}

.couple-text {
    padding: 0 1rem;
}

.couple-text h3 {
    font-size: 1.3rem;
    color: var(--gold);
    font-family: 'Lato', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.couple-text p {
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1.8;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin: 1rem 0;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.couple-text p {
    color: var(--cream);
}

.detail-card {
    background-color: var(--deep-maroon);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    border: 2px solid var(--gold);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    text-align: left;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--gold);
    display: flex;
    align-items: flex-start;
    min-width: 30px;
}

.detail-item .icon svg {
    stroke: var(--gold);
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}

.detail-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--gold);
}

.detail-content p {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.8;
}

.btn-map {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    background-color: var(--maroon);
    color: var(--cream);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-map:hover {
    background-color: var(--light-maroon);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gold);
}

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

.gallery-item {
    aspect-ratio: 1;
    border: 2px solid var(--gold);
    padding: 8px;
    background: var(--deep-maroon);
    position: relative;
    z-index: 20;
    border-radius: 20px 0px 20px 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 0px 12px 0px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    background-color: rgba(253, 245, 230, 0.9);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-submit {
    background-color: var(--gold);
    color: var(--deep-maroon);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    z-index: 100;
}

.btn-submit:hover {
    background-color: var(--cream);
    transform: translateY(-2px);
}

#commentsContainer {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
    text-align: left;
}

.comment {
    background-color: var(--deep-maroon);
    padding: 1.2rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 2px solid var(--gold);
    color: var(--cream);
    position: relative;
    z-index: 15;
}

.comment h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--gold);
}

.comment p {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.6;
}

.comment small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gold);
    font-size: 0.8rem;
}

/* Image styling */
.couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px 50px;
}

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

/* Islamic Verse */
.islamic-verse {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    border: 2px solid var(--gold);
    color: var(--cream);
    line-height: 1.8;
    position: relative;
    z-index: 15;
}

.islamic-verse p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.islamic-verse .verse-ref {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--gold);
}
