:root {
    --primary-color: #00a4e4;
    --secondary-color: #0077b6;
    --accent-gold: #cfb53b;
    --dark-bg: #0f172a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --font-quote: 'Amiri', serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #f9f9f9;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--dark-bg) url('../images/background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 45%;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.store-btn i {
    font-size: 2rem;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.store-btn .btn-text span:first-child {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-btn .store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 55%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Quote Section */
.quote-section {
    padding: 6rem 0;
    min-height: 50vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(#e0f2fe 1px, transparent 1px);
    background-size: 20px 20px;
}

.quote-section .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.quote-container {
    position: relative;
    display: inline-block;
    padding: 3rem 4rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    font-size: 2rem;
    color: #1e293b;
    opacity: 0.3;
    position: absolute;
}

.quote-icon.fa-quote-right {
    top: 1rem;
    right: 1.5rem;
}

.quote-icon.fa-quote-left {
    bottom: 1rem;
    left: 1.5rem;
}

.hadith-quote {
    font-family: var(--font-quote);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.8;
}

.hadith-quote span {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hadith-quote span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #d8222255;
    z-index: -1;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #1e293b, var(--dark-bg));
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    max-width: 70px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 300px;
}

.footer-heading {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.contact-list i {
    color: var(--primary-color);
    width: 20px;
}

.contact-list a {
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--primary-color);
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 164, 228, 0.4);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.95rem;
    opacity: 0.6;
}

/* --- NEW SECTIONS STYLING --- */

/* Utility & Typography enhancements */
.text-primary {
    color: var(--primary-color);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 164, 228, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* About Us Section */
.about-us {
    padding: 0 0 6rem 0;
    background: #fff;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.about-features .icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 164, 228, 0.3);
}

.section-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    padding: 1.5rem;
    background: #f8fafc;
    border-right: 4px solid var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual .glass-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about-visual .glass-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0, 164, 228, 0.1);
    border-radius: 50%;
    filter: blur(30px);
}

.about-visual .glass-card i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 164, 228, 0.3));
}

.about-visual .glass-card h3 {
    font-size: 1.8rem;
    color: #1e293b;
    font-weight: 800;
}

/* Donation Options */
.donation-options {
    padding: 6rem 0;
    background: #f8fafc;
}

.donation-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.donation-row:last-child {
    margin-bottom: 0;
}

.donation-row.reverse {
    flex-direction: row-reverse;
}

.donation-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
}

.donation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.donation-row:hover .donation-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.donation-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.option-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.option-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hadith-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.hadith-box i {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.15;
    font-size: 2.5rem;
}

.hadith-box p {
    font-family: var(--font-quote);
    font-size: 1.2rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hadith-box p strong {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.option-description {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
}

.option-list {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.option-list li {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-list li:first-child {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.option-summary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #e0f2fe;
    border-radius: 12px;
}

/* Why Suqya Section */
.why-suqya {
    padding: 6rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 164, 228, 0.2);
    border-color: rgba(0, 164, 228, 0.3);
    background: #fff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #e0f2fe;
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    z-index: 1;
}

.cta-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-content .download-buttons .store-btn {
    padding: 1rem 2rem;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-content .download-buttons .store-btn:hover {
    background: #1e293b;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Overrides for New Sections */
@media (max-width: 992px) {

    .about-content,
    .donation-row,
    .donation-row.reverse {
        flex-direction: column;
        gap: 3rem;
    }

    .about-visual {
        width: 100%;
    }

    .donation-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .donation-text {
        text-align: center;
        align-items: center;
    }

    .donation-row {
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .option-header h3 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-title {
        font-size: 2.8rem;
    }

    .hadith-quote {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 40px;
    }

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

    .hero-text {
        max-width: 100%;
        padding-left: 0;
        display: flex;
        text-align: center;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        order: 1;
        /* Text on Top (visually below image if not ordered) 
                   Wait. Flex column:
                   Item 1: Text
                   Item 2: Image
                   So Text is on Top.
                   User said: "on phone text should be on top of the mockup"
                   My HTML order: Text, then Image.
                   So flex-direction: column (as opposed to column-reverse) will put Text then Image. 
                   Which matches "Text on Top". 
                   Wait... "Top of the screen" or "Overlaid on top"?
                   Usually "On top of mockup" means:
                   [Text]
                   [Mockup]
                   So Text is visually above the mockup.
                   My HTML is:
                   <div text>
                   <div image>
                   So clean column flow is T, I.
                   Previous was column-reverse: I, T.
                   So user wants T, I.
                   */
        order: 1;
    }

    .hero-image {
        max-width: 100%;
        margin-bottom: 2rem;
        justify-content: center;
        order: 2;
        /* Image below text */
        margin-top: 2rem;
    }

    .hero-image img {
        max-width: 80%;
        /* Still restrain strictly on mobile so it doesn't overflow */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .download-buttons {
        justify-content: center;
        margin-top: 1rem;
    }

    .quote-container {
        padding: 2rem 1.5rem;
        width: 100%;
        border-width: 1px;
    }

    .hadith-quote {
        font-size: 1.8rem;
    }

    .quote-icon.fa-quote-right {
        top: 0.5rem;
        right: 0.5rem;
    }

    .quote-icon.fa-quote-left {
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand .footer-logo,
    .footer-bio,
    .footer-heading::after,
    .footer-links-group {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .footer-heading::after {
        left: 0;
        right: 0;
    }

    .contact-list li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        max-width: 90%;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-logo {
        max-width: 200px;
    }
}