/* Islamic Landing Page CSS */
/* ======================== */

:root {
    --primary-light: #e8f5e8;
    --primary-soft: #c8e6c9;
    --accent-gold: #f9f7e8;
    --accent-blue: #e3f2fd;
    --accent-purple: #f3e5f5;
    --accent-orange: #fff3e0;
    --accent-pink: #fce4ec;
    --text-dark: #2e3440;
    --text-light: #5e81ac;
    --text-brown: #8b4513;
    --text-purple: #8e24aa;
    --text-pink: #e91e63;
    --text-orange: #ff9800;
    --border-light: #eceff4;
    --shadow-soft: rgba(46, 52, 64, 0.08);
    --gradient-primary: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    --gradient-gold: linear-gradient(135deg, #f9f7e8 0%, #fef6e7 100%);
    --gradient-blue: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --gradient-purple: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    --gradient-orange: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #fdfefe 0%, #f8f9fa 100%);
    overflow-x: hidden;
}

.arabic-font {
    font-family: 'Amiri', 'Noto Sans Arabic', serif;
    font-weight: 600;
}

/* Custom Text Colors */
.text-brown { color: var(--text-brown) !important; }
.text-purple { color: var(--text-purple) !important; }
.text-pink { color: var(--text-pink) !important; }
.text-orange { color: var(--text-orange) !important; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse-icon {
    animation: pulse 2s infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 0.5rem;
}

.dropdown-menu {
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px var(--shadow-soft);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    transform: translateX(5px);
}

/* Header */
.header {
    background: var(--gradient-primary);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(46,52,64,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 0 2px 10px rgba(46, 52, 64, 0.1);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Info Bar */
.info-bar {
    background: var(--gradient-gold);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 20px var(--shadow-soft);
}

.info-item {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 52, 64, 0.12);
}

.info-icon {
    color: var(--text-light);
    margin-left: 0.5rem;
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-light);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    width: 0%;
    transition: width 0.1s ease;
}

/* Section Styling */
.section {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-soft);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(46, 52, 64, 0.15);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.section:hover::before {
    left: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    text-align: center;
}

.section-title.h5 {
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #a8dadc, #457b9d);
    border-radius: 2px;
}

/* Card Styling */
.card-custom {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #a8dadc, #457b9d);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-custom:hover::before {
    transform: scaleX(1);
}

.card-custom:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 52, 64, 0.15);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Section Specific Colors */
.quran-section { 
    background: var(--gradient-primary); 
    border-left: 5px solid #2c5530;
}
.hadees-section { 
    background: var(--gradient-gold); 
    border-left: 5px solid #d4af37;
}
.sahabas-section { 
    background: var(--gradient-blue); 
    border-left: 5px solid #0277bd;
}
.ahle-bait-section { 
    background: var(--gradient-purple); 
    border-left: 5px solid #8e24aa;
}
.wali-section { 
    background: var(--primary-light); 
    border-left: 5px solid #388e3c;
}
.auliya-section { 
    background: var(--accent-orange); 
    border-left: 5px solid #ffa000;
}
.ambiyaa-section { 
    background: var(--accent-blue); 
    border-left: 5px solid #1976d2;
}
.iblis-section { 
    background: linear-gradient(135deg, #ffebee, #fce4ec); 
    border-left: 5px solid #d32f2f;
}
.malaik-section { 
    background: var(--primary-soft); 
    border-left: 5px solid #689f38;
}
.kalimas-section { 
    background: var(--gradient-purple); 
    border-left: 5px solid #c2185b;
}
.events-section { 
    background: linear-gradient(135deg, #e0f7fa, #e8f5e8); 
    border-left: 5px solid #00796b;
}

/* Prayer Times */
.prayer-card {
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 52, 64, 0.12);
}

.prayer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.prayer-icon {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

/* Event Items */
.event-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    box-shadow: 0 3px 15px var(--shadow-soft);
    border-left: 4px solid #4ecdc4;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(46, 52, 64, 0.12);
}

.event-date {
    font-weight: 600;
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.event-title {
    color: var(--text-dark);
    font-weight: 500;
}

/* Decorative Elements */
.islamic-decoration {
    text-align: center;
    font-size: 2rem;
    color: var(--text-light);
    margin: 2rem 0;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--text-light);
    animation: spin 1s ease-in-out infinite;
}

/* Footer Styles */
.footer {
    background: var(--gradient-primary);
    color: var(--text-dark);
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.footer h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-dark);
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--text-light);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.footer .social-links a:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title { 
        font-size: 2.5rem; 
    }
    
    .section { 
        padding: 1.5rem; 
        margin: 1rem 0; 
    }
    
    .section-title { 
        font-size: 1.6rem; 
    }
    
    .section-title.h5 {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .info-content {
        flex-direction: column;
    }
    
    .info-item {
        margin-bottom: 0.5rem;
    }
    
    .card-custom {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-title.h5 {
        font-size: 1.2rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e5e9f0;
        --text-light: #81a1c1;
        --border-light: #4c566a;
        --shadow-soft: rgba(0, 0, 0, 0.2);
    }
    
    body {
        background: linear-gradient(135deg, #2e3440 0%, #3b4252 100%);
    }
    
    .card-custom {
        background: #434c5e;
        color: var(--text-dark);
    }
    
    .section {
        background: rgba(67, 76, 94, 0.8);
    }
}