/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Color Variables */
:root {
    --baby-blue: #89CFF0;
    --sky-blue: #00BFFF;
    --yellow: #FFD700;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro Animation Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--baby-blue), var(--sky-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.intro-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.intro-arabic {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 20px;
    font-weight: 600;
    direction: rtl;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.intro-translation {
    font-size: 1.2rem;
    color: var(--black);
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    background-color: var(--black);
    padding: 15px 0;
    border-bottom: 2px solid var(--baby-blue);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--baby-blue);
}

.logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--baby-blue);
}

/* Hero Section - Desktop Only */
.hero {
    background: linear-gradient(135deg, var(--baby-blue), var(--sky-blue));
    padding: 80px 0;
    text-align: center;
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--black);
    opacity: 0.8;
}

/* Hide hero on mobile */
@media (max-width: 768px) {
    .hero {
        display: none;
    }
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.main-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 50px;
    font-weight: 600;
}

/* Reciters Grid */
.reciters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reciter-card {
    background: var(--white);
    border: 2px solid var(--baby-blue);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reciter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
    border-color: var(--sky-blue);
}

.reciter-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--yellow);
}

.reciter-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

/* Reciter Page Styles */
.reciter-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--baby-blue), var(--sky-blue));
    border-radius: 15px;
    margin-top: 20px;
}

.reciter-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--yellow);
}

.reciter-title {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
    font-weight: bold;
}

.back-link {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #e6c200;
}

/* Surahs List */
.surahs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.surah-item {
    background: var(--white);
    border: 1px solid var(--baby-blue);
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.surah-item:hover {
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
    border-color: var(--sky-blue);
}

.surah-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.surah-number {
    background: var(--baby-blue);
    color: var(--black);
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.surah-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.audio-player {
    width: 300px;
    height: 40px;
}

.download-link {
    background-color: var(--yellow);
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.download-link:hover {
    background-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-arabic {
        font-size: 1.5rem;
    }
    
    .intro-translation {
        font-size: 1rem;
    }
    
    .main-heading {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .reciters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .reciter-card {
        padding: 20px;
    }
    
    .reciter-image {
        width: 100px;
        height: 100px;
    }
    
    .reciter-name {
        font-size: 1.1rem;
    }
    
    .reciter-title {
        font-size: 2rem;
    }
    
    .surah-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .surah-info {
        justify-content: center;
    }
    
    .audio-player {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .reciter-header {
        padding: 20px;
        margin: 10px;
    }
    
    .reciter-profile-image {
        width: 120px;
        height: 120px;
    }
    
    .reciter-title {
        font-size: 1.8rem;
    }
    
    .surah-item {
        padding: 15px;
    }
    
    .surah-name {
        font-size: 1rem;
    }
}

/* Additional Placeholder Pages Styles */
.placeholder-content {
    text-align: center;
    padding: 100px 20px;
}

.placeholder-title {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
}

.placeholder-text {
    font-size: 1.2rem;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: 30px;
}

.placeholder-link {
    display: inline-block;
    background-color: var(--sky-blue);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.placeholder-link:hover {
    background-color: #0099cc;
}

/* Footer Styling */
.footer {
  background-color: #121212; /* Deep black for elegance */
  color: #ffffff; /* White text for contrast */
  padding: 25px 15px;
  text-align: center;
  border-top: 2px solid #ffa500; /* Optional orange bar for branding */
  font-family: 'Arial', sans-serif;
  font-size: 15px;
}

.footer p {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .footer {
    font-size: 14px;
    padding: 20px 10px;
  }
}