/* Global styles */
:root {
    --dark-bg: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #e6d5b8;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    flex-grow: 1;
    margin: 0 auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    margin-right: 1rem;
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    padding: 1rem;
    display: none;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Hero and Quote Sections */
.hero, .hero-quote {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before, .hero-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content, .quote-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.arabic-text, .arabic-quote {
    font-family: 'Traditional Arabic', serif;
    font-size: 3.5rem;
    margin: 2rem 0;
    text-align: center;
    direction: rtl;
    line-height: 1.4;
}

.quote-translation {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
}

.quote-author {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.section-description {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Toggle Sections */
.toggle-sections {
    max-width: 800px;
    margin: 2rem auto;
}

.toggle-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.toggle-button {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
}

.toggle-icon::after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
}

.toggle-item.active .toggle-icon::before {
    transform: rotate(90deg);
}

.toggle-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.toggle-item.active .toggle-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.toggle-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Events Section */
.events {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details p {
    margin-bottom: 0.5rem;
}

.location-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s;
    font-weight: bold;
}

.location-button:hover {
    opacity: 0.9;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-notice p {
    margin-bottom: 1rem;
}

.cookie-notice button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--dark-bg);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
    font-weight: bold;
}

.cookie-notice button:hover {
    opacity: 0.9;
}

/* Desktop Styles */
@media (min-width: 769px) {
    nav {
        position: static;
        display: block;
        background: none;
        padding: 0;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-title {
        margin: 0;
        text-align: left;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-content h2, .quote-translation {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .arabic-text, .arabic-quote {
        font-size: 2.8rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .toggle-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .toggle-item.active .toggle-content {
        padding: 0 1rem 1rem;
    }

    .cookie-notice {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        padding-top: 80px;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        padding-top: 2rem;
    }
}
