/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Moroccan-inspired color palette */
    --primary-red: #C1272D;
    --deep-orange: #E85D04;
    --golden-yellow: #F4A261;
    --terracotta: #E76F51;
    --cream: #FAF3E0;
    --deep-blue: #264653;
    --teal: #2A9D8F;
    --olive: #8B7355;
    --burgundy: #7D1128;
    
    /* Gradient backgrounds */
    --gradient-warm: linear-gradient(135deg, var(--primary-red) 0%, var(--deep-orange) 50%, var(--golden-yellow) 100%);
    --gradient-cool: linear-gradient(135deg, var(--deep-blue) 0%, var(--teal) 100%);
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--cream);
    color: var(--deep-blue);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Moroccan Pattern Overlay */
.moroccan-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(193, 39, 45, 0.03) 35px, rgba(193, 39, 45, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(42, 157, 143, 0.03) 35px, rgba(42, 157, 143, 0.03) 70px);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--gradient-warm);
    color: white;
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 5px solid var(--burgundy);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: 40px 20px;
}

section {
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-red);
    border-right: 5px solid var(--teal);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-family: 'Pacifico', cursive;
    color: var(--primary-red);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--deep-blue);
}

.card ul,
.card ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.card li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--deep-blue);
}

.card ul li {
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.card ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Video Section */
.video-card {
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.05) 0%, rgba(244, 162, 97, 0.05) 100%);
    border: 3px solid var(--primary-red);
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Image Gallery Section */
.gallery-card {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05) 0%, rgba(232, 133, 4, 0.05) 100%);
    border: 3px solid var(--teal);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.image-caption {
    padding: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--deep-blue);
    text-align: center;
    font-weight: bold;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(244, 162, 97, 0.1) 100%);
    margin: 0;
}

.image-credit {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    color: var(--olive);
}

.image-credit a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.image-credit a:hover {
    color: var(--deep-orange);
    text-decoration: underline;
}

/* Audio Section */
.audio-card {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(244, 162, 97, 0.1) 100%);
    border: 3px solid var(--teal);
    text-align: center;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.audio-button {
    font-family: 'Dancing Script', cursive;
    background: var(--gradient-cool);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: bold;
}

.audio-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.audio-button:active {
    transform: scale(0.98);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--deep-blue);
}

#volumeSlider {
    width: 200px;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--gradient-cool);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-red);
}

footer p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-tagline {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    margin-top: 10px;
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .card h2 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    header {
        padding: 40px 20px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .audio-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .volume-control {
        flex-direction: column;
    }
}

/* Decorative Elements */
.intro-section .card {
    border-image: linear-gradient(135deg, var(--primary-red), var(--golden-yellow), var(--teal)) 1;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}
