/* ===== Masjid Digital Landing Page - Premium Light Mode Design System ===== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.12);
    
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --text-light: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --gold: #b45309;
    --gold-glow: rgba(180, 83, 9, 0.1);
    --emerald: #15803d;
    
    --border: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(37, 99, 235, 0.3);
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

body.dark-theme {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --text-light: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.25);
    --emerald: #10b981;
    --border: rgba(75, 85, 99, 0.3);
    --border-hover: rgba(37, 99, 235, 0.5);
}

body.dark-theme .navbar.scrolled {
    background: rgba(3, 7, 18, 0.85);
}

body.dark-theme .gradient-text {
    background: linear-gradient(135deg, #f9fafb 30%, var(--primary) 70%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
}

body.dark-theme .btn-secondary {
    background: rgba(31, 41, 55, 0.6) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-light) !important;
}

body.dark-theme .btn-secondary:hover {
    background: rgba(55, 65, 81, 0.8) !important;
}

body.dark-theme .mockup-wrapper {
    border-color: #1f2937 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.05) !important;
}

body.dark-theme .deal-pricing {
    background: rgba(3, 7, 18, 0.6) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

.gradient-text {
    background: linear-gradient(135deg, #1e293b 30%, var(--primary) 70%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Gradients decoration */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}
.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}
.glow-2 {
    top: 40%;
    right: -10%;
    background: var(--gold);
}
.glow-3 {
    bottom: -10%;
    left: 20%;
    background: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    padding: 6px;
    border-radius: 8px;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

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

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

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.15);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

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

/* Interactive Preview Mockup */
.hero-mockup {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16/10;
    background: #0f172a;
    border: 8px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 40px rgba(13, 148, 136, 0.05);
    overflow: hidden;
}

/* Services / Features Section */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    transition: all 0.3s;
}

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

.service-desc {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin-bottom: 24px;
    min-height: 66px;
}

.service-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-light);
}

/* Bento/Featured Deal Card */
.deal-section {
    padding: 80px 0;
}

.deal-card {
    background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), rgba(13, 148, 136, 0.04)), var(--bg-card);
    border: 2px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.05), 0 0 50px rgba(217, 119, 6, 0.03);
}

.deal-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gold);
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deal-features {
    list-style: none;
    margin-top: 28px;
}

.deal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 15px;
}

.deal-features li svg {
    color: var(--emerald);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.deal-pricing {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.deal-price-sub {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.deal-price-main {
    font-size: 48px;
    font-weight: 850;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.deal-price-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(217, 119, 6, 0.08);
    color: var(--gold);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo-desc {
    max-width: 320px;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-mockup {
        order: -1;
    }

    .deal-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stat-item-val {
    font-size: 32px;
    font-weight: 850;
    color: var(--primary);
    line-height: 1.2;
}

.stat-item-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
}

/* ===== Steps Grid ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Testimonials Grid ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.author-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-light);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.04)), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    text-align: center;
    margin: 80px 0;
}

.cta-banner h2 {
    font-size: 32px;
    font-weight: 850;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .steps-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}
