@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --green-madina: #1a472a;
    --green-light: #2a5a3a;
    --black-kaaba: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --cream: #FEF9E6;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: #2c2c2c;
    overflow-x: hidden;
}

/* Typography */
.arabic-font {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--green-madina);
}

.gold-text {
    color: var(--gold);
}

.bg-gold {
    background: var(--gold);
    color: #000;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8922a);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.5);
    color: #000;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.35);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-carousel .carousel-caption {
    bottom: 25%;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 30px;
    max-width: 70%;
    margin: 0 auto;
    left: 15%;
    right: 15%;
}

.hero-carousel .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Navigation - Sticky & Responsive */
.sticky-nav {
    background: var(--green-madina);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    background: var(--gold);
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-madina), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header .divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto;
    border-radius: 10px;
}

/* Cards Grid */
.islamic-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.islamic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.islamic-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Footer */
.footer-modern {
    background: linear-gradient(135deg, #0a2a1a, #1a472a);
    color: #eee;
    padding-top: 60px;
    margin-top: 60px;
}

.footer-modern a {
    color: var(--gold);
    text-decoration: none;
    transition: 0.3s;
}

.footer-modern a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-carousel .carousel-caption {
        max-width: 90%;
        left: 5%;
        right: 5%;
        bottom: 15%;
        padding: 15px;
    }
    
    .hero-carousel .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* =================== MODERN FOOTER =================== */
.modern-footer {
    background: linear-gradient(135deg, #0a1f0e 0%, #0a2a1a 100%);
    color: #f0f0f0;
    margin-top: 80px;
    position: relative;
    border-top: 3px solid rgba(212, 175, 55, 0.3);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #1a472a, #D4AF37);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo {
    height: 65px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #D4AF37;
    margin-right: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: #D4AF37;
    color: #0a2a1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: #D4AF37;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #D4AF37;
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links ul li a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: #D4AF37;
}

.footer-links ul li a:hover {
    color: #D4AF37;
    transform: translateX(5px);
    display: inline-block;
}

/* Newsletter Glass Card */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.footer-newsletter:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: 1;
}

.btn-newsletter {
    background: linear-gradient(135deg, #D4AF37, #b8922a);
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-title {
        text-align: center;
        display: block;
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .btn-newsletter {
        width: 100%;
        padding: 10px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Dargah Introduction Card */
.dargah-intro-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    transition: transform 0.3s;
}
.dargah-intro-card:hover {
    transform: translateY(-5px);
}
.golden-border {
    border: 2px solid #D4AF37;
    pointer-events: none;
    opacity: 0.5;
}

.glass-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(212,175,55,0.2);
}
.glass-card:hover {
    transform: translateY(-3px);
    border-color: #D4AF37;
}

.timeline-card {
    background: #fef9e6;
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212,175,55,0.1);
}
.timeline-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.1);
    border-radius: 50%;
    transition: 0.3s;
}
.timeline-card:hover .timeline-icon {
    background: rgba(212,175,55,0.2);
    transform: scale(1.05);
}

