/* ==========================================================================
   AL-MUFRADUN LANDING & PRIVACY STYLESHEET
   Emerald Green & Muted Gold theme - Premium, Responsive, Accessibility-focused
   ========================================================================== */

/* Design Tokens & Theme Setup */
:root {
    --primary-color: #0c3e26;       /* Dark Emerald Green */
    --primary-light: #135d3a;       /* Lightened Emerald Green */
    --primary-dark: #072617;        /* Deeper Emerald Green */
    
    --secondary-color: #d4af37;     /* Muted Gold */
    --secondary-light: #f3df8a;     /* Light Gold accent */
    --secondary-hover: #bda031;     /* Darker Gold for hover states */
    
    --bg-color: #faf8f5;            /* Smooth Off-White / Light Cream background */
    --card-bg: #ffffff;             /* Pure White card backgrounds */
    
    --text-color: #1e2d24;          /* Greenish Charcoal for body text */
    --text-muted: #576d60;          /* Soft grey-green for captions and descriptions */
    
    --border-color: #e3ebec;        /* Subtle border dividers */
    --shadow-sm: 0 4px 6px -1px rgba(12, 62, 38, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(12, 62, 38, 0.1), 0 4px 6px -2px rgba(12, 62, 38, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(12, 62, 38, 0.15), 0 10px 10px -5px rgba(12, 62, 38, 0.1);
    
    --font-ui: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Amiri', serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ornamentation Details */
.bg-ornament {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(12, 62, 38, 0.03) 50%, rgba(250, 248, 245, 0) 100%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-ornament-top {
    top: -200px;
    right: -100px;
}

.bg-ornament-bottom {
    bottom: 200px;
    left: -200px;
}

/* Helper Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(12, 62, 38, 0.08);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(12, 62, 38, 0.12);
}

/* Navigation Menu */
.navbar-wrapper {
    position: sticky;
    top: 0;
    background-color: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: rotate(45deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-en {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.brand-ar {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light);
}

/* Lang toggle button */
.lang-switch-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 16px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(12, 62, 38, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 62, 38, 0.35);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 16px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 26px;
    font-size: 1rem;
}

.btn-outline:hover {
    background-color: rgba(12, 62, 38, 0.05);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero / Header Section */
.hero-section {
    padding: 60px 24px 100px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arabic-display {
    font-family: var(--font-arabic);
    color: var(--secondary-color);
    font-size: 4rem;
    font-weight: normal;
    line-height: 0.9;
    margin-top: 5px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* App Interactive Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Mobile Phone Frame Container */
.phone-frame {
    width: 320px;
    height: 640px;
    background: #0f172a;
    border: 12px solid #334155;
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(12, 62, 38, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #334155;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 100;
}

.phone-screen {
    flex: 1;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    user-select: none;
}

/* Inner App UI Styling */
.app-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
}

.status-icons {
    display: flex;
    gap: 4px;
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.app-nav-title {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    font-weight: 700;
}

.app-nav-icon {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.app-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* App Widget Card elements */
.app-widget {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 4px 10px rgba(12, 62, 38, 0.04);
    border: 1px solid rgba(12, 62, 38, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prayer-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
}

.prayer-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prayer-widget .widget-title {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 700;
}

.prayer-widget .widget-time {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.widget-progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.widget-progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: var(--radius-full);
}

.prayer-widget .widget-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Tasbih counter widget layout */
.dhikr-widget {
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.15);
}

.dhikr-title {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.dhikr-counter-display {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    background-color: var(--bg-color);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px double var(--secondary-color);
    transition: var(--transition-smooth);
}

.dhikr-counter-display.pulse {
    transform: scale(1.15);
    background-color: rgba(212, 175, 55, 0.1);
}

.dhikr-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dhikr-btn:hover {
    background-color: var(--primary-light);
}

.dhikr-btn:active {
    transform: scale(0.95);
}

.dhikr-reset {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

/* Features Grid Section */
.features-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
    background-color: #ffffff;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(12, 62, 38, 0.06);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 62, 38, 0.1);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Privacy Policy Layout */
.privacy-section {
    padding: 100px 0;
}

.privacy-card-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.privacy-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 4px solid var(--secondary-color);
}

.privacy-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-title {
    font-size: 2rem;
    font-weight: 900;
}

.privacy-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.package-code {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--secondary-light);
}

/* Tabs switcher styling */
.privacy-tabs {
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 6px;
    border-radius: var(--radius-md);
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    background-color: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Document content sections */
.policy-content {
    display: none;
}

.policy-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.policy-body {
    padding: 40px;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.policy-alert {
    background-color: rgba(212, 175, 55, 0.08);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    color: var(--primary-color);
}

.policy-content[dir="rtl"] .policy-alert {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

.policy-body h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 700;
}

.policy-body ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.policy-content[dir="rtl"] .policy-body ul {
    padding-left: 0;
    padding-right: 20px;
}

.policy-body li {
    margin-bottom: 10px;
}

/* Permission Blocks */
.permission-item {
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.permission-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.permission-detail {
    font-size: 0.95rem;
    color: var(--text-color);
}

.policy-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.contact-email {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 8px;
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.policy-content[dir="rtl"] .contact-email:hover {
    transform: translateX(-4px);
}

/* Download Banner Section */
.download-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.download-container {
    position: relative;
    z-index: 2;
}

.download-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.download-section p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Floating element background decoration inside download banner */
.download-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Footer layout */
footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* CSS Animations definitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .arabic-display {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-section {
        padding: 40px 24px 60px 24px;
    }

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

    .arabic-display {
        font-size: 3rem;
    }

    .privacy-header {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .tab-btn {
        flex: 1;
        padding: 8px 16px;
        text-align: center;
    }

    .policy-body {
        padding: 24px;
    }

    .download-section h2 {
        font-size: 2rem;
    }
}
