/* style.css - Main stylesheet for Our Quran Academy */

:root {
    --primary-color: #2A486C;
    --secondary-color: #BE9552;
    --accent-color: #28a745;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.bg-primary {
  background-color: rgb(0, 0, 0) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
}

.hero-section h1 {
    font-weight: 800;
}

/* Course Cards */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.course-icon {
    color: var(--secondary-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-link {
    color: white;
    display: block;
    padding: 15px;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Trust Section */
.trust-item h3 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a365d;
    border-color: #1a365d;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .top-bar .contact-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .top-bar .social-links {
        text-align: center;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Enhanced CSS for Our Quran Academy - Add this to your existing style.css */

/* ==================== HERO SECTION ENHANCEMENTS ==================== */

.hero-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(190, 149, 82, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(40, 167, 69, 0.05) 0%, transparent 50%);
    animation: floatBg 15s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    border-radius: 20px;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.z-2 {
    position: relative;
    z-index: 2;
}

/* ==================== FEATURE ITEMS ==================== */

.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fw-500 {
    font-weight: 500;
}

/* ==================== COURSE CARDS ==================== */

.course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: white;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(190, 149, 82, 0.1) 0%, transparent 100%);
    transition: left 0.5s ease;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.course-badge.badge-secondary {
    background: #17a2b8;
}

.course-badge.badge-accent {
    background: var(--accent-color);
}

.course-icon {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotateZ(10deg);
    box-shadow: 0 15px 30px rgba(42, 72, 108, 0.3);
}

.course-features li {
    font-size: 0.95rem;
}

/* ==================== WHY CHOOSE US SECTION ==================== */

.why-choose-card {
    padding: 25px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-choose-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why-choose-card:hover .feature-circle {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8814a 100%);
    transform: scale(1.1) rotateZ(-10deg);
    box-shadow: 0 10px 25px rgba(190, 149, 82, 0.3);
}

.why-choose-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ==================== FAQ SECTION ==================== */

.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-item {
    border: 2px solid #e9ecef !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 10px 30px rgba(42, 72, 108, 0.1);
}

.accordion-button {
    background-color: #f8f9fa;
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.05rem;
    padding: 20px;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 25px;
    background-color: #ffffff;
    color: #555;
    line-height: 1.8;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button.collapsed::after {
    transform: rotate(0deg);
}

/* ==================== TRUST SECTION ==================== */

.trust-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
}

.trust-item {
    padding: 20px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.trust-item:hover {
    transform: translateY(-10px);
}

.trust-item h3 {
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.trust-item:hover h3 {
    font-size: 2.8rem;
}

.counter {
    display: inline-block;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
}

.cta-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(190, 149, 82, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
    animation: ctaFloat 20s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(15px, 5px); }
}

/* ==================== BUTTONS ==================== */

.btn {
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 12px;
}

.btn-primary:hover {
    background-color: #1a365d;
    border-color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(42, 72, 108, 0.3);
}

.btn-light {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 10px 28px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-link {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-link {
    transform: scale(1.1);
}

/* ==================== SECTION TITLES & SUBTITLES ==================== */

.section-title {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .btn {
        width: 100%;
        margin-top: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .course-card {
        border-radius: 15px;
    }

    .course-icon {
        width: 80px;
        height: 80px;
    }

    .why-choose-card {
        margin-bottom: 15px;
    }

    .feature-circle {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .trust-item h3 {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link {
        font-size: 28px;
    }

    .faq-item {
        margin-bottom: 15px;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .hero-image-wrapper {
        margin-top: 30px;
    }

    .hero-image {
        max-height: 300px;
    }

    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }

    .feature-item {
        margin-bottom: 15px;
    }

    .course-card {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .trust-item {
        padding: 15px;
    }

    .trust-item h3 {
        font-size: 1.8rem;
    }

    .trust-item p {
        font-size: 0.85rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }
}

/* ==================== ANIMATIONS & UTILITIES ==================== */

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Link styling for better SEO readability */
a {
    transition: all 0.3s ease;
}

/* Text selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}
