:root {
    --bg-color: #fcfbf8; /* Very clean, warm light background */
    --primary-color: #0f4c3a; /* Deep elegant green */
    --secondary-color: #1a6b54;
    --gold: #b8860b; /* Dark Goldenrod */
    --light-gold: #d4af37;
    --text-main: #2d3748;
    --text-muted: #718096;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 76, 58, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

.islamic-pattern-bg {
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l.83.83v58.34l-.83.83H5.373l-.83-.83V.83l.83-.83h49.254zm-4.14 4.97H9.513v50.06h40.974V4.97z" fill="%230f4c3a" fill-opacity="0.03" fill-rule="evenodd"/></svg>');
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .brand, .footer-brand {
    font-family: 'Amiri', serif;
    color: var(--primary-color);
}

.gold-text {
    color: var(--gold) !important;
}

/* Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.custom-navbar .nav-link {
    color: var(--text-main);
    font-weight: 500;
    margin-left: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
    color: var(--primary-color);
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.custom-navbar .nav-link:hover::after, .custom-navbar .nav-link.active::after {
    width: 100%;
}

.navbar-spacer {
    height: 76px;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at center, rgba(15, 76, 58, 0.05) 0%, transparent 70%);
    position: relative;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn-custom {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(15, 76, 58, 0.2);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 76, 58, 0.4);
    color: #fff;
    background: var(--secondary-color);
}

.btn-custom-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(15, 76, 58, 0.08);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(15, 76, 58, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    background: rgba(184, 134, 11, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    border-top: 5px solid var(--gold);
}

.footer .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

.footer-brand {
    color: #fff !important;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--light-gold);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--light-gold);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--light-gold);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Namaz Vakitleri Card */
.prayer-time-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.prayer-time-card h4 {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.prayer-time-card .time {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Amiri', serif;
}

.prayer-time-card.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}
.prayer-time-card.active h4 {
    color: var(--light-gold);
}
.prayer-time-card.active .time {
    color: #fff;
}

/* Content Area Fixes */
.text-white.opacity-50 {
    color: var(--primary-color) !important;
    opacity: 0.1 !important;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 30px;
    }
    .card-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.8rem;
    }
    .prayer-time-card .time {
        font-size: 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 15px !important;
    }
}

/* Dazzling Glow Animations */
.glow-on-hover {
    transition: all 0.3s ease-in-out;
}
.glow-on-hover:hover {
    box-shadow: 0 0 20px var(--gold), 0 0 40px var(--light-gold) !important;
    transform: translateY(-3px);
    border-color: var(--gold) !important;
}
.hover-bg-light:hover {
    background-color: #f8f9fa;
}

/* Compact Prayer Widget for Homepage */
.compact-prayer-widget .prayer-time-card {
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}
.compact-prayer-widget .prayer-time-card h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.8);
}
.compact-prayer-widget .prayer-time-card .time {
    font-size: 1.3rem;
    color: #fff;
}
.compact-prayer-widget .prayer-time-card.active {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    border-color: var(--light-gold);
    transform: scale(1.02);
}
.compact-prayer-widget .prayer-time-card.active h4 {
    color: var(--primary-color);
}
.compact-prayer-widget .prayer-time-card.active .time {
    color: var(--primary-color);
}
