/* General Styles */
:root {
    --primary-color: #ffd700; /* Gold */
    --secondary-color: #333;  /* Dark Gray */
    --background-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --font-cairo: 'Cairo', sans-serif;
    --font-tajawal: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-cairo);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-dark);
    direction: rtl;
    text-align: right;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%; /* Adjust for RTL */
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.dark-section {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://vid.alarabiya.net/images/2015/11/09/95423186-c28b-4890-ac79-65dceb13e5e6/95423186-c28b-4890-ac79-65dceb13e5e6_16x9_1200x676.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-tajawal);
}

.hero-content p {
    font-size: 1.8em;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #e6b800;
}

/* Biography Section */
.biography-content {
    display: flex;
    flex-direction: row-reverse; /* For RTL */
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.bio-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.biography-content p {
    font-size: 1.1em;
    line-height: 1.8;
    flex: 1;
}

/* Songs Section */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.song-item {
    background-color: #3f3f3f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.song-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
    font-family: var(--font-tajawal);
}

.song-item p {
    font-size: 1em;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Awards Section */
.awards-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.awards-list li {
    background-color: #4a4a4a;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    border-right: 5px solid var(--primary-color); /* For RTL */
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    right: 50%; /* Adjust for RTL */
    transform: translateX(50%);
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    right: 0; /* Adjust for RTL */
}

.timeline-item:nth-child(even) {
    right: 50%; /* Adjust for RTL */
}

.timeline-dot {
    height: 20px;
    width: 20px;
    background-color: var(--primary-color);
    position: absolute;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    right: -10px; /* Adjust for RTL */
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto; /* Reset for even item */
    left: -10px; /* Adjust for RTL */
    transform: translateX(-50%);
}

.timeline-date {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Quote Section */
blockquote {
    font-size: 1.5em;
    font-style: italic;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    color: var(--text-light);
    position: relative;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid transparent; /* For RTL adjustments */
}

blockquote::before {
    content: '“';
    font-size: 4em;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    right: 10px; /* Adjust for RTL */
    line-height: 1;
}

blockquote::after {
    content: '”';
    font-size: 4em;
    color: var(--primary-color);
    position: absolute;
    bottom: -20px;
    left: 10px; /* Adjust for RTL */
    line-height: 1;
}

blockquote p {
    margin-bottom: 20px;
}

blockquote footer {
    font-size: 0.8em;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 50px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .biography-content {
        flex-direction: column;
        text-align: center;
    }

    .bio-image {
        margin-bottom: 20px;
    }

    .timeline::after {
        right: 18px;
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
        padding-right: 40px;
    }

    .timeline-item:nth-child(even) {
        right: 0;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-dot {
        right: initial;
        left: -10px;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: initial;
        left: -10px;
        transform: translateX(-50%);
    }

    blockquote {
        font-size: 1.2em;
        padding: 20px;
    }

    blockquote::before {
        font-size: 3em;
        top: 5px;
        right: 5px;
    }

    blockquote::after {
        font-size: 3em;
        bottom: -15px;
        left: 5px;
    }

    h2 {
        font-size: 2em;
    }
}
