/* Custom CSS — Hafiz Khurshid Ahmad Website */

/* Nav Links */
.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4B5563;
    transition: all 0.2s;
}
.nav-link:hover,
.nav-link.active {
    background: #e8f6f1;
    color: #0D6A4E;
}
.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4B5563;
    transition: all 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #e8f6f1;
    color: #0D6A4E;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Bounce Gentle */
@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.animate-bounce-gentle {
    animation: bounce-gentle 3s ease-in-out infinite;
}

/* Card Hover */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0D6A4E, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Islamic Pattern Divider */
.pattern-divider {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D6A4E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}
.faq-icon {
    transition: transform 0.3s ease;
}

/* Timeline */
.timeline-dot {
    position: relative;
}
.timeline-dot::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0D6A4E;
    border: 3px solid #e8f6f1;
}

/* Pulse Ring */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Star Rating */
.stars { color: #F59E0B; letter-spacing: 2px; }
