* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #d0af89 0%, #f5e7d4 30%, #fcecc4 60%, #d0af89 100%);
    color: #3d2818;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(252, 236, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 196, 137, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(164, 92, 30, 0.03) 2px, rgba(164, 92, 30, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(164, 92, 30, 0.03) 2px, rgba(164, 92, 30, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(252, 236, 196, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.4), 0 0 30px rgba(193, 39, 45, 0.3), 0 0 30px rgba(0, 98, 51, 0.3);
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(164, 92, 30, 0.1) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(164, 92, 30, 0.05) 8px, rgba(164, 92, 30, 0.05) 9px),
        radial-gradient(circle at 20% 50%, rgba(193, 39, 45, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 98, 51, 0.08) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.anniversary-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FFD700 50%, #FFA500 75%, #FFD700 100%);
    padding: 8px 25px;
    border-radius: 50px;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4), 0 0 20px rgba(193, 39, 45, 0.3), 0 0 20px rgba(0, 98, 51, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border: 2px solid #000;
    position: relative;
    z-index: 1;
    background-size: 200% 200%;
    animation: pulse 2s ease-in-out infinite, shimmer 3s ease-in-out infinite;
}


@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4), 0 0 20px rgba(193, 39, 45, 0.3), 0 0 20px rgba(0, 98, 51, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.6), 0 0 25px rgba(193, 39, 45, 0.4), 0 0 25px rgba(0, 98, 51, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.4);
    }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.anniversary-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #3d2818;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.anniversary-divider {
    margin: 0 15px;
    color: #3d2818;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(164, 92, 30, 0.6), 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3), 0 0 15px rgba(193, 39, 45, 0.4), 0 0 15px rgba(0, 98, 51, 0.4);
    position: relative;
    z-index: 1;
    padding: 0 20px;
}


.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: #aa7f5a;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(252, 236, 196, 0.5);
}

.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3), rgba(193, 39, 45, 0.2), rgba(0, 98, 51, 0.2));
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #3d2818;
    border: 2px solid #000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4), 0 0 15px rgba(193, 39, 45, 0.3), 0 0 15px rgba(0, 98, 51, 0.3);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.golden-anniversary-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(164, 92, 30, 0.6), 0 0 15px rgba(255, 215, 0, 0.5), 0 0 10px rgba(193, 39, 45, 0.4), 0 0 10px rgba(0, 98, 51, 0.4);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.image-slider-section {
    margin-bottom: 25px;
}

.image-slider-container {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4), 0 0 25px rgba(193, 39, 45, 0.3), 0 0 25px rgba(0, 98, 51, 0.3);
    border: 2px solid #000;
}


.image-slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.image-slide.active {
    opacity: 1;
    z-index: 2;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(164, 92, 30, 0.8);
    color: #fff;
    border: 2px solid #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.image-slider-btn:hover {
    background: rgba(164, 92, 30, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-slider-btn.prev {
    left: 15px;
}

.image-slider-btn.next {
    right: 15px;
}

.image-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.image-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: #FFD700;
    transform: scale(1.3);
    border-color: #000;
}

.hero-section {
    margin-bottom: 25px;
}

.hero-content {
    background: rgba(252, 236, 196, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.4), 0 0 25px rgba(193, 39, 45, 0.3), 0 0 25px rgba(0, 98, 51, 0.3);
    border: 2px solid #000;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(164, 92, 30, 0.03) 15px, rgba(164, 92, 30, 0.03) 16px),
        repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(164, 92, 30, 0.03) 15px, rgba(164, 92, 30, 0.03) 16px);
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

.anniversary-intro {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-radius: 15px;
    border: 2px solid #000;
}

.anniversary-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(164, 92, 30, 0.6), 0 0 15px rgba(255, 215, 0, 0.5);
}

.anniversary-subtitle {
    font-size: 1rem;
    color: #a45c1e;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(252, 236, 196, 0.5);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    color: #3d2818;
    text-shadow: 1px 1px 2px rgba(252, 236, 196, 0.5);
    position: relative;
    z-index: 1;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.content-section .card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.card {
    background: rgba(252, 236, 196, 0.5);
    backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4), 0 0 20px rgba(193, 39, 45, 0.25), 0 0 20px rgba(0, 98, 51, 0.25);
    border: 2px solid #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(164, 92, 30, 0.05) 10px, rgba(164, 92, 30, 0.05) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(164, 92, 30, 0.05) 10px, rgba(164, 92, 30, 0.05) 11px);
    pointer-events: none;
    z-index: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.4), 0 0 25px rgba(193, 39, 45, 0.35), 0 0 25px rgba(0, 98, 51, 0.35);
    background: rgba(252, 236, 196, 0.7);
    border-color: #000;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #a45c1e;
    text-shadow: 2px 2px 4px rgba(252, 236, 196, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}


.card p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: #3d2818;
    text-shadow: 1px 1px 2px rgba(252, 236, 196, 0.3);
    position: relative;
    z-index: 1;
}

.quote-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(250, 196, 137, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.4), 0 0 25px rgba(193, 39, 45, 0.3), 0 0 25px rgba(0, 98, 51, 0.3);
    border-right: 5px solid #000;
    border-left: 5px solid #000;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    position: relative;
    overflow: hidden;
}


blockquote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    color: #3d2818;
    text-shadow: 1px 1px 2px rgba(252, 236, 196, 0.5);
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

blockquote::before {
    content: '"';
    font-size: 2.5rem;
    position: absolute;
    top: -10px;
    right: 10px;
    color: rgba(164, 92, 30, 0.3);
}

blockquote::after {
    content: '"';
    font-size: 2.5rem;
    position: absolute;
    bottom: -25px;
    left: 10px;
    color: rgba(164, 92, 30, 0.3);
}

footer {
    text-align: center;
    padding: 20px 15px;
    background: rgba(252, 236, 196, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 25px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
    border: 1px solid #000;
}

.footer-main {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #3d2818;
    font-weight: bold;
}

.footer-sub {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(164, 92, 30, 0.5), 0 0 10px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

footer p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #3d2818;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.audio-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border: 2px solid #000;
    color: #3d2818;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.audio-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 165, 0, 0.5));
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5), 0 0 25px rgba(255, 0, 0, 0.4);
    border-color: #000;
}

.audio-btn:active {
    transform: scale(0.95);
}

#backgroundAudio {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 1rem;
    }
    
    blockquote {
        font-size: 1.2rem;
    }
    
    .content-section {
        grid-template-columns: 1fr;
    }
    
    .content-section .card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .image-slider-wrapper {
        height: 250px;
    }
    
    .image-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .date-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .hero-content {
        padding: 25px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .anniversary-badge {
        padding: 10px 25px;
    }
    
    .anniversary-text {
        font-size: 1rem;
    }
    
    .golden-anniversary-text {
        font-size: 1.2rem;
    }
    
    .anniversary-title {
        font-size: 1.5rem;
    }
    
    .anniversary-subtitle {
        font-size: 1rem;
    }
}

/* Moroccan-inspired decorative elements */
@keyframes moroccan-pattern {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.moroccan-border {
    position: relative;
}

.moroccan-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: repeating-linear-gradient(45deg, 
        transparent, transparent 8px, 
        rgba(164, 92, 30, 0.2) 8px, rgba(164, 92, 30, 0.2) 9px);
    border-radius: 20px;
    z-index: -1;
    animation: moroccan-pattern 20s linear infinite;
}

/* Decorative corner elements */
.decorative-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(164, 92, 30, 0.4);
}

.decorative-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}

.decorative-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 10px;
}

.decorative-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 10px;
}

.decorative-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}

