/* General Variables & Reset */
:root {
    --primary: #0E916C;
    --secondary: #2CDAA3;
    --accent: #17C08F;
    --bg-dark: #031d16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-rgb: 23, 192, 143;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo-wrapper svg {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Premium Language Selector Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.15);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    min-width: 140px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.dropdown-menu.open {
    display: flex;
}

.dropdown-menu li {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
}

.dropdown-menu li:hover {
    background: var(--primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #0f172a;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 80dvh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge-accent {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pas-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.pas-problem {
    color: #f1f5f9;
    font-weight: 500;
}

.pas-agitate {
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.pas-solve {
    color: #e2e8f0;
    font-weight: 500;
    background: rgba(var(--accent-rgb), 0.04);
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

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

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    border: 12px solid #334155;
    border-radius: 40px;
    background-color: #020617;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--accent-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background: radial-gradient(circle at top, rgba(var(--accent-rgb), 0.15), transparent);
    overflow-y: auto;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-app-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Scripture and Hadith Section */
.scripture-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.scripture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.scripture-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.scripture-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.08);
}

.card-tag {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 28px;
    line-height: 1.6;
    text-align: right;
    color: #ffffff;
    margin: 12px 0;
}

.translation-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-box {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.download-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.download-text {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    line-height: 1.6;
}

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

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 28px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.store-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.store-btn.disabled:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: none;
}

.store-icon {
    flex-shrink: 0;
}

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

.store-btn-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text strong {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background-color: rgba(15, 23, 42, 0.4);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

/* RTL Layout Adjustments (Arabic) */
html[dir="rtl"] .dropdown-menu {
    left: 0;
    right: auto;
}

html[dir="rtl"] .dropdown-menu li {
    text-align: right;
}

html[dir="rtl"] .arabic-quote {
    text-align: left;
}

html[dir="rtl"] .pas-agitate {
    border-left: none;
    border-right: 3px solid var(--primary);
    padding-left: 0;
    padding-right: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .badge-accent {
        align-self: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .scripture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mockup Components */
.mock-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.mock-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-align: left;
}

.mock-item.completed {
    color: #f8fafc;
}

.mock-item.completed .check-box {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mock-item.pending {
    color: var(--text-muted);
}

.check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.stats-title {
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 10px;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    height: 80px;
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar.active {
    background: var(--accent);
}

.bar-label {
    font-size: 9px;
    color: var(--text-muted);
    position: absolute;
    bottom: -15px;
}

.circular-display {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 120px;
}

.ring-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
}

.ring-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.ring-text p {
    font-size: 9px;
    color: var(--text-muted);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bookmark-label {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
}

.bookmark-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bookmark-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.translit-text {
    font-size: 12px;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 2px;
}

.translation-text {
    font-size: 11px;
    color: var(--text-muted);
}

.counter-display {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.counter-btn {
    width: 100%;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.time-display-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
}

.time-icon {
    font-size: 24px;
}

.time-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.time-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.mock-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.tab {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
}

.matsurat-arabic {
    font-family: 'Amiri', serif;
    font-size: 16px;
    color: white;
}

.mock-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
}

.doa-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.star-fav {
    color: var(--accent);
}

.doa-arabic {
    font-family: 'Amiri', serif;
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
}

.doa-translation {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

.rakaat-counter {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.rakaat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.rakaat-lbl {
    font-size: 14px;
    color: var(--text-muted);
}

.rawatib-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rawatib-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.rawatib-item.done {
    color: white;
}

.pray-detail {
    color: var(--accent);
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-app-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.grid-app-item span {
    font-size: 11px;
    color: var(--text-muted);
}

.project-preview-card {
    text-align: left;
}

.proj-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    color: var(--accent);
    margin-bottom: 8px;
}

.proj-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.proj-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tag-cloud {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-cloud span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
}
