* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0e7c32;
    --dark-green: #064e1f;
    --light-green: #e8f5e9;
    --gold: #d4a017;
    --dark-gold: #b8860b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-bg: #f9fafb;
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.nav-brand i {
    margin-right: 10px;
    color: var(--gold);
}

.nav-brand .highlight {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(6,78,31,0.9), rgba(14,124,50,0.9)), url('https://images.unsplash.com/photo-1584551246679-258d75b1f0d7?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .highlight {
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "☪";
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-bottom: 3px solid var(--gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* Verse of Day */
.verse-of-day {
    background: linear-gradient(135deg, var(--light-green), var(--white));
    padding: 60px 0;
}

.verse-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.verse-card i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.verse-card p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.verse-ref {
    color: var(--gold);
    font-weight: 600;
}

/* Pillars Section */
.pillars {
    padding: 80px 0;
    background-color: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.pillar-item {
    text-align: center;
    padding: 2rem;
    background: var(--gray-bg);
    border-radius: 12px;
    transition: all 0.3s;
}

.pillar-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.pillar-number {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.pillar-item h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.pillar-item small {
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

/* Prayer Times Section */
.prayer-times-section {
    padding: 60px 0;
}

.prayer-times-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.location-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.manual-location {
    display: flex;
    gap: 0.5rem;
}

.manual-location input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.prayer-time-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-green);
    border-radius: 10px;
}

.prayer-time-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.prayer-time-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-green);
}

.prayer-time-item p {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
}

.next-prayer {
    text-align: center;
    padding: 1rem;
    background: var(--gold);
    color: var(--white);
    border-radius: 10px;
}

/* Quran Browser */
.quran-browser {
    padding: 60px 0;
}

.quran-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.translation-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.surah-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid var(--gold);
}

.surah-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.surah-number {
    color: var(--gold);
    font-weight: bold;
}

.surah-name {
    font-size: 1.1rem;
    margin: 5px 0;
}

.surah-english {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.disclaimer {
    background-color: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-green);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .manual-location {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--primary-green);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}