/* Dar Al Nahda Academy - Main Stylesheet */

/* CSS Variables - Arabic/Quran Theme */
:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3d;
    --accent-color: #8b4513;
    --gold-color: #d4af37;
    --quran-green: #2d5016;
    --arabic-blue: #1e3a8a;
    --islamic-gold: #b8860b;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-quran: 0 8px 32px rgba(45, 80, 22, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --arabic-pattern: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="arabic" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10 0L20 10L10 20L0 10Z" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23arabic)"/></svg>');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Amiri', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Arabic Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--arabic-pattern);
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .nav-menu {
    flex-direction: row-reverse;
}

.rtl .hero-buttons {
    flex-direction: row-reverse;
}

.rtl .services-grid {
    direction: rtl;
}

.rtl .features-grid {
    direction: rtl;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: var(--bg-white);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.language-switcher a {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Header - Enhanced Arabic Theme */
.header {
    background: rgba(45, 80, 22, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text-container {
    flex: 1;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nav-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Login Button Styling */
.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.login-btn::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;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-quran);
    color: var(--bg-white) !important;
}

.login-btn:active {
    transform: translateY(0) scale(1);
}

.login-btn::after {
    display: none;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section - Enhanced with Moving Elements */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--quran-green) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--bg-white);
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.floating-patterns {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Enhanced Floating Elements */
.floating-pattern {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    font-size: 2rem;
    color: var(--islamic-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    pointer-events: none;
    z-index: 1;
}

.floating-pattern:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.floating-pattern:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.floating-pattern:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.floating-pattern:nth-child(4) {
    top: 50%;
    right: 5%;
    animation-delay: 4.5s;
    animation-duration: 6.5s;
}

.floating-pattern:nth-child(5) {
    bottom: 15%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 7.5s;
}

/* Quranic Calligraphy Elements */
.quranic-element {
    position: absolute;
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--islamic-gold);
    opacity: 0.2;
    animation: floatReverse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.quranic-element:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 12s;
}

/* Enhanced Cards and Sections */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--islamic-gold), var(--gold-color), var(--islamic-gold));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-quran);
    border-color: var(--islamic-gold);
}

/* Section Animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(even) {
    animation-delay: 0.2s;
}

.section:nth-child(odd) {
    animation-delay: 0.4s;
}

/* Service Cards Enhancement */
.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-quran);
    border-color: var(--islamic-gold);
}

.service-icon {
    font-size: 3rem;
    color: var(--islamic-gold);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Cards Enhancement */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-quran);
    border-color: var(--islamic-gold);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--islamic-gold);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.pattern {
    position: absolute;
    background: var(--gold-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.pattern-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pattern-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.pattern-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Enhanced Arabic Theme */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Amiri', 'Open Sans', sans-serif;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--islamic-gold) 0%, var(--gold-color) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-color) 0%, #b8941f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--islamic-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.whatsapp-btn {
    background: #25d366 !important;
    color: var(--bg-white) !important;
}

.whatsapp-btn:hover {
    background: #1da851 !important;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-vision {
    display: grid;
    gap: 2rem;
}

.mission, .vision {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 4rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--bg-white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Why Choose Us Section */
.why-choose {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

/* Registration Process */
.registration-process {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.registration-process h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.process-steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Hero Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.7) sepia(0.3) hue-rotate(90deg);
}

/* About Section Image */
.about-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-quran);
}

/* Service Images */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 1rem;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

/* Service Counters */
.service-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--islamic-gold);
}

.counter-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.counter-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--islamic-gold), var(--gold-color), var(--islamic-gold));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    font-family: 'Amiri', serif;
}

.counter-percent {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-left: 2px;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
}

.service-card:hover .counter-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-quran);
}

/* Facebook Links */
.facebook-link, .footer-facebook-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.facebook-link:hover, .footer-facebook-link:hover {
    color: #0d5bb8;
    transform: translateY(-2px);
}

.facebook-link::before, .footer-facebook-link::before {
    content: '\f09a';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 900;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-img {
        height: 250px;
    }
    
    .service-image {
        height: 150px;
    }
    
    .counter-circle {
        width: 60px;
        height: 60px;
    }
    
    .counter-number {
        font-size: 1.4rem;
    }
    
    .counter-percent {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px;
    }
    
    .language-switcher a {
        padding: 5px 8px;
        font-size: 0.9rem;
    }
}

/* Enhanced Service Card Styles */
.featured-card {
    position: relative;
    border: 2px solid var(--gold-color);
    box-shadow: var(--shadow-quran);
    transform: scale(1.02);
    z-index: 2;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-color), var(--islamic-gold), var(--gold-color));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.1;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold-color), var(--islamic-gold));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(45, 80, 22, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(45, 80, 22, 0.1);
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-features .feature-item i {
    color: var(--quran-green);
    width: 16px;
    text-align: center;
}

.learning-levels {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.learning-levels h4 {
    color: var(--quran-green);
    margin-bottom: 12px;
    font-size: 1rem;
    text-align: center;
}

.levels-grid {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.level-item.beginner {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.level-item.intermediate {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.level-item.advanced {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.level-item i {
    font-size: 1.2rem;
}

.level-item.beginner i { color: #22c55e; }
.level-item.intermediate i { color: #3b82f6; }
.level-item.advanced i { color: #ef4444; }

.level-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid rgba(45, 80, 22, 0.1);
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(45, 80, 22, 0.1));
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--quran-green);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.languages-supported {
    margin: 20px 0;
    padding: 15px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.languages-supported h4 {
    color: var(--arabic-blue);
    margin-bottom: 12px;
    font-size: 1rem;
    text-align: center;
}

.language-flags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.language-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.language-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    border-color: var(--arabic-blue);
}

.language-flag i {
    font-size: 1.2rem;
    color: var(--arabic-blue);
}

.language-flag span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

.service-cta {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(45, 80, 22, 0.1);
}

.service-cta .btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--quran-green);
    border: 2px solid var(--quran-green);
}

.btn-outline:hover {
    background: var(--quran-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Responsive Design for Enhanced Cards */
@media (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .levels-grid {
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .language-flags {
        gap: 8px;
    }
    
    .service-cta {
        flex-direction: column;
    }
    
    .featured-card {
        transform: none;
    }
}

@media (max-width: 480px) {
    .service-badge {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .language-flag {
        padding: 6px 10px;
    }
}

/* Elegant Hero Section Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-color), var(--islamic-gold));
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.5px;
}

.hero-badge-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-color), var(--islamic-gold));
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.5px;
    text-align: center;
    justify-content: center;
}

.hero-features-floating {
    position: relative;
    height: 400px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(45, 80, 22, 0.1);
    backdrop-filter: blur(10px);
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45, 80, 22, 0.2);
    animation-play-state: paused;
}

/* Individual card positioning and animation delays */
.card-1 {
    top: 50px;
    left: 10px;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: 10px;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 120px;
    left: 20px;
    animation-delay: 3s;
}

.card-4 {
    bottom: 60px;
    right: 20px;
    animation-delay: 4.5s;
}

/* Floating animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
    75% {
        transform: translateY(-20px) rotate(0.5deg);
    }
}

/* Alternative gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-10px) translateX(5px);
    }
    66% {
        transform: translateY(-5px) translateX(-3px);
    }
}

/* Apply gentle floating to cards */
.card-1 {
    animation: gentleFloat 8s ease-in-out infinite;
    animation-delay: 0s;
}

.card-2 {
    animation: gentleFloat 8s ease-in-out infinite;
    animation-delay: 2s;
}

.card-3 {
    animation: gentleFloat 8s ease-in-out infinite;
    animation-delay: 4s;
}

.card-4 {
    animation: gentleFloat 8s ease-in-out infinite;
    animation-delay: 6s;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--quran-green), #2d5016);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.hero-stats-clean {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(45, 80, 22, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item-clean {
    text-align: center;
    flex: 1;
}

.stat-number-clean {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--quran-green);
    margin-bottom: 5px;
    display: block;
}

.stat-label-clean {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-languages-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 30px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.languages-label-clean {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--arabic-blue);
    letter-spacing: 0.5px;
}

.language-flags-clean {
    display: flex;
    gap: 8px;
}

.language-flag-clean {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-flag-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    border-color: var(--arabic-blue);
    color: var(--arabic-blue);
}

.hero-buttons-clean {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-primary-clean {
    background: linear-gradient(135deg, var(--quran-green), #2d5016);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    border: none;
    min-width: 200px;
    justify-content: center;
}

.btn-primary-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
    color: white;
}

.btn-secondary-clean {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.btn-secondary-clean:hover {
    background: var(--quran-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

/* Service Loading Bars Styling */
.service-bars {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(45, 80, 22, 0.1);
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}

.bar-item {
    margin-bottom: 20px;
}

.bar-item:last-child {
    margin-bottom: 0;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(45, 80, 22, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--quran-green), #2d5016);
    border-radius: 4px;
    width: 0%;
    transition: none;
    position: relative;
    display: block;
    box-shadow: 0 2px 4px rgba(45, 80, 22, 0.3);
}


/* Add a subtle pulse effect during animation */
.progress-bar.animating {
    animation: progressPulse 0.5s ease-in-out infinite alternate;
}

@keyframes progressPulse {
    0% {
        box-shadow: 0 2px 4px rgba(45, 80, 22, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(45, 80, 22, 0.5);
    }
}

/* Responsive Design for Service Bars */
@media (max-width: 768px) {
    .service-bars {
        margin: 20px 0;
    }
    
    .bar-item {
        margin-bottom: 15px;
    }
    
    .bar-label {
        font-size: 0.85rem;
        text-align: right;
    }
    
    .progress-bar-container {
        height: 10px;
    }
    
}

/* Responsive Design for Floating Hero */
@media (max-width: 768px) {
    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero-features-floating {
        height: 500px;
        margin: 40px 0;
    }
    
    .floating-card {
        width: 240px;
        padding: 20px 15px;
    }
    
    .card-1 {
        top: 20px;
        left: 10px;
    }
    
    .card-2 {
        top: 100px;
        right: 10px;
    }
    
    .card-3 {
        bottom: 100px;
        left: 20px;
    }
    
    .card-4 {
        bottom: 20px;
        right: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .hero-stats-clean {
        gap: 20px;
        padding: 25px 20px;
        margin: 40px 0;
    }
    
    .stat-number-clean {
        font-size: 1.8rem;
    }
    
    .hero-languages-clean {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .hero-buttons-clean {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary-clean,
    .btn-secondary-clean {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-features-floating {
        height: 600px;
        margin: 30px 0;
    }
    
    .floating-card {
        width: 200px;
        padding: 15px 12px;
    }
    
    .card-1 {
        top: 15px;
        left: 5px;
    }
    
    .card-2 {
        top: 80px;
        right: 5px;
    }
    
    .card-3 {
        bottom: 80px;
        left: 15px;
    }
    
    .card-4 {
        bottom: 15px;
        right: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .floating-card h4 {
        font-size: 1rem;
    }
    
    .floating-card p {
        font-size: 0.8rem;
    }
    
    .hero-stats-clean {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .stat-number-clean {
        font-size: 1.6rem;
    }
    
    .language-flags-clean {
        gap: 6px;
    }
    
    .language-flag-clean {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}