/* ========================================
   Mosquée Al Firdaws - Styles Globaux
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #0D3B66;
    --secondary-color: #FFA500;
    --dark-blue: #1A237E;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(13, 59, 102, 0.15);
    --shadow-lg: 0 8px 40px rgba(13, 59, 102, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.95) 0%, rgba(26, 35, 126, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1564769662533-4f00a87b4056?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 20px 40px;
}

.hero-content h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-content .description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 165, 0, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 80px 20px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.section-title i {
    color: var(--secondary-color);
    margin-right: 15px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.charity-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

.charity-info strong {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Donation Section */
.donation {
    background: white;
}

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

.donation-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.donation-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.donation-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.donation-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-bottom strong {
    color: var(--secondary-color);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.03) 0%, rgba(255, 165, 0, 0.03) 100%);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header h1 {
    color: var(--primary-color);
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.header-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-home {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 59, 102, 0.2);
}

.btn-home:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 59, 102, 0.3);
}

.btn-donate {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.legal-content h2 {
    color: var(--primary-color);
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content strong {
    color: var(--primary-color);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content ul li {
    list-style: disc;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.update-date {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 15px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .language-toggle {
        top: 15px;
        right: 15px;
        z-index: 1001;
        scale: 0.9;
    }
    
    .legal-container {
        padding: 25px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
}
