/* ==========================================================================
   Root Variables & Resets
   ========================================================================== */
   :root {
    --primary: #10b981;       /* Emerald 500 */
    --primary-dark: #059669;  /* Emerald 600 */
    --primary-light: #d1fae5; /* Emerald 100 */
    --secondary: #0f172a;     /* Slate 900 */
    
    --text-main: #334155;     /* Slate 700 */
    --text-muted: #64748b;    /* Slate 500 */
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;      /* Slate 50 */
    
    --font-sans: 'Outfit', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background-color: var(--bg-light); }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--bg-light);
    height: 76px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-download {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background-color: var(--primary);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    display: flex;
    flex-direction: column;
}

.mobile-link {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-light);
}

.mobile-link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-main);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-light);
}

.badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   Services Section (Layanan)
   ========================================================================== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-main);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-light);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.sc-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.sc-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sc-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Prayer Section
   ========================================================================== */
.prayer-section {
    padding: 100px 0;
}

.prayer-wrapper {
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.prayer-header {
    margin-bottom: 2.5rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.prayer-card {
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.prayer-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.prayer-card.next-prayer {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.prayer-card.next-prayer .p-time {
    color: white;
}

.p-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.p-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.prayer-date {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Skeletons */
.skeleton {
    background: linear-gradient(-45deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400% 400%;
    animation: skeleton-load 1.5s ease infinite;
    min-height: 100px;
    border-radius: var(--radius-lg);
}

@keyframes skeleton-load {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ==========================================================================
   Store / Marketplace Section
   ========================================================================== */
.marketplace-section {
    padding: 100px 0;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.store-card {
    background-color: var(--bg-main);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.st-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.apk-icon { background-color: var(--primary); }
.shopee-icon { background-color: #ee4d2d; }
.tokped-icon { background-color: #03ac0e; }

.store-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.store-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-text-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.shopee-card:hover .btn-text-link { color: #ee4d2d; }
.tokped-card:hover .btn-text-link { color: #03ac0e; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-card-wrapper {
    background-color: var(--bg-main);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hoverable:hover .i-icon {
    background-color: var(--primary);
    color: white;
}

.i-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-item span {
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-tagline {
    color: #94a3b8;
    margin-bottom: 3rem;
}

.footer-copyright {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .prayer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }

    /* Ensure Download APK is very prominent always */
    .btn-download {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
    }
    
    .prayer-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .prayer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .btn-download .btn-text {
        display: inline;
    }
    .btn-download {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    .logo {
        font-size: 1.1rem;
    }
}
