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

html {
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #001F2C;
    --bg-secondary: #002d3f;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --accent: #F9E054;
    --accent-hover: #cfbe5f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 31, 44, 0.85);
    --footer-bg: rgba(0, 0, 0, 0.6);
}

body {
    margin: 0;
    padding: 0;
    background: url('../assets/mosque.png') 50% 100% no-repeat fixed,
        url('../assets/islamic_pattern_bg4.png') center center fixed;
    background-size: 100%, 25%;
    background-color: var(--bg-primary);
    font-family: 'Poppins';
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* For Light Mode, we want the pattern to be more subtle if needed, 
   but for now we'll keep the same assets but with a color filter if needed */
[data-theme="light"] body {
    /* Potential future refinements for light mode background */
}


.loading-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.container {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
}

.loading-section .container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.app-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.app-slogan {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.9;
}

.app-logo {
    width: 120px;
    height: 120px;
    display: block;
    margin: 20px auto;
}

/* Loader */
.loader {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), black 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), black 0);
    background: conic-gradient(#F9E054 0deg, rgba(217, 217, 217, 0) 360deg);
    animation: spin 2s linear infinite;
    margin: 30px auto 40px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Zikr Texts */
.zikr-ar {
    font-size: 20px;
    font-weight: 600;
    margin-top: 70px;
    color: #fff;
}

.zikr-en {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-top: 10px;
}

/* Bottom Mosque Image */
/* .mosque-img-wrapper {
    display: block;
    position: absolute;
    inset: auto 0 -4%;
    width: 100%;
    margin: 0 auto;
    max-height: 90vh;
    overflow: hidden;
}
.mosque-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
} */
/* Responsive */
@media(max-width:768px) {
    body {
        background-size: 100%, 50%;
    }

    .loading-section {
        padding: 80px 0;
    }

    .app-title {
        font-size: 30px;
    }

    .app-slogan {
        font-size: 16px;
    }

    .loader {
        width: 100px;
        height: 100px;
        margin: 20px auto 30px;
    }

    .zikr-ar,
    .zikr-en {
        font-size: 16px;
    }

    .mosque-img-wrapper {
        max-height: 30vh;
    }
}

@media(max-width:520px) {
    body {
        background-size: 100%, 75%;
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #001F2C;
    color: var(--text-secondary);
    text-align: center;
    padding: 25px 10px;
    font-size: 14px;
    z-index: 1000;
    border-top: 1px solid var(--card-border);
}

.footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive footer */
@media(max-width:768px) {
    .footer {
        font-size: 12px;
        padding: 10px;
    }
}

@media(max-width:480px) {
    .footer {
        font-size: 11px;
        padding: 8px;
    }
}

.navbar-nav,
.navbar-nav .dropdown-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Sticky header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #001F2C !important;
    border-bottom: 1px solid var(--card-border);
}



body {
    padding-top: 70px;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centers content vertically */
    min-height: calc(100vh - 70px - 70px);
    /* adjust 70px to actual header/footer height */
    padding: 0 10px;
    /* optional horizontal padding */
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    margin-right: 8px;
    border-radius: 4px;
}

.navbar-nav .nav-item {
    margin-left: 1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary) !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #F9E054 !important;
}

.dropdown-menu {
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: #cfbe5f;
    color: #FEFEFE;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
}

.highlight {
    color: var(--accent) !important;
}


/* --- Modern Landing Page Styles --- */

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary-custom {
    background: var(--accent);
    color: #001F2C;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #001F2C;
}

.btn-outline-custom {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(249, 224, 84, 0.1);
    transform: translateY(-3px);
    color: var(--accent);
}


/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

/* Download Section */
.download-section {
    padding: 80px 0;
    text-align: center;
}

.download-hub {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px 40px;
    border: 1px solid var(--card-border);
}


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

.store-btn {
    transition: transform 0.3s ease;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn img {
    height: 50px;
}

/* --- Minimalist Adhkar Display --- */
.adhkar-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.adhkar-display {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    transition: opacity 0.8s ease-in-out;
}

.zikr-ar {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
}

.adhkar-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 30px auto;
    opacity: 0.5;
}

.zikr-en {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Smooth Fading States */
.adhkar-fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.adhkar-fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .zikr-ar {
        font-size: 2.2rem;
    }

    .zikr-en {
        font-size: 1rem;
    }

    .adhkar-section {
        padding: 60px 0;
    }
}

/* Utility */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

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

    .hero-cta {
        flex-direction: column;
    }
}

/* Impact (Stats) Section */
.impact-section {
    padding: 80px 0;
    background: rgba(249, 224, 84, 0.03);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.stat-card {
    padding: 20px;
    border-radius: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scholar Spotlight */
.spotlight-section {
    padding: 100px 0;
}

.scholar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.scholar-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.scholar-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.scholar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.scholar-card:hover .scholar-img-wrapper img {
    transform: scale(1.08);
}

.scholar-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #001F2C;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.scholar-info {
    padding: 30px;
}

.scholar-info h4 {
    margin-bottom: 10px;
    font-weight: 700;
}

.scholar-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.scholar-meta i {
    color: var(--accent);
    margin-right: 5px;
}

/* Verification Section Style */
.verification-badge-container {
    background: rgba(249, 224, 84, 0.05);
    border: 2px dashed var(--accent);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.5s ease;
}

.verification-badge-container:hover {
    transform: rotate(5deg) scale(1.05);
    background: rgba(249, 224, 84, 0.1);
}

.text-accent {
    color: var(--accent) !important;
}

.tracking-widest {
    letter-spacing: 0.2em;
}