/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #334155;
    direction: rtl;
    text-align: right;
    background: #fafbfc;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px; /* Base font size for better mobile readability */
    /* Improved typography */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Mobile-first improvements */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    max-width: 65ch; /* Optimal reading width */
}

/* Improved readability for links */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Better text contrast */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Improved Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
}

/* Hero Section Improvements */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.4);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #06B6D4;
}

/* Header - Modern & Compact */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(219, 234, 254, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: #1E3A8A;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.tagline {
    font-size: 0.7rem;
    color: #3B82F6;
    margin-top: 0.1rem;
    font-weight: 400;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-link.admin-link {
    color: #6366F1;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.admin-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #5B21B6;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(74, 144, 226, 0.1);
    border: none;
    font-size: 1.3rem;
    color: #4A90E2;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(74, 144, 226, 0.15);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4A90E2;
    transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
    background: #DBEAFE;
    color: #1E3A8A;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #3B82F6;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a:hover {
    color: #06B6D4;
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #06B6D4;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(30, 64, 175, 0.2);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px; /* Touch-friendly size */
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); /* Blue gradient */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25); /* Blue shadow */
    font-size: 0.9rem;
}

.cta-button:hover, .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5); /* Blue shadow */
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); /* Reversed blue gradient */
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); /* Blue gradient */
    color: white;
}

.btn-secondary {
    background: #1E3A8A;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Learning-Focused Animations */
@keyframes pulseSuccess {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

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

.stat-number {
    animation: pulseSuccess 2s infinite;
}

.feature-item {
    animation: slideInRight 0.6s ease-out;
}

.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }

/* Improved Card Layout */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Card Styles */
.card-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-subtitle {
    color: #1E3A8A;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #7C3AED 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: #059669;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.hero-guarantee {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.pricing-grid,
.testimonials-grid,
.features-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .pricing-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Mobile Responsive Design - Optimized for Smartphone Screens */
@media (max-width: 768px) {
    /* Base mobile font size optimization */
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Top bar mobile optimization */
    .top-bar {
        font-size: 0.75rem; /* Smaller for mobile */
        padding: 0.5rem 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-info {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.7rem;
    }
    
    /* Header mobile optimization */
    .header {
        padding: 0.5rem 0;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .header.scrolled {
        padding: 0.4rem 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .tagline {
        font-size: 0.65rem;
        display: none; /* Hide on mobile for cleaner look */
    }
    
    .brand-icon {
        height: 35px;
    }
    
    /* Navigation mobile optimization */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        border-top: 1px solid rgba(219, 234, 254, 0.5);
    }
    
    .nav-menu.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 0;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(74, 144, 226, 0.05);
        transform: translateX(5px);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero section mobile optimization */
    .hero {
        padding: 60px 0; /* Reduced padding for mobile */
    }
    
    .hero-content h1 {
        font-size: 2rem; /* Optimized for mobile screens */
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem; /* Better mobile readability */
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Button optimization for mobile */
    .cta-button, .btn-primary {
        font-size: 0.9rem;
        padding: 12px 24px; /* Touch-friendly size */
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .btn-secondary {
        font-size: 0.9rem;
        padding: 12px 24px;
        min-height: 44px;
    }
    
    /* Statistics section mobile optimization */
    .stat-number {
        font-size: 2rem; /* Reduced for mobile */
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Features section mobile optimization */
    .section-header h2 {
        font-size: 1.6rem; /* Mobile-optimized heading */
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .feature-item h3 {
        font-size: 1.1rem; /* Better mobile readability */
    }
    
    .feature-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Card content mobile optimization */
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-subtitle {
        font-size: 0.8rem;
    }
    
    .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Extra Small Mobile Devices (iPhone SE, small Android phones) */
@media (max-width: 480px) {
    .header {
        padding: 0.4rem 0;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        height: 32px;
    }
    
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .header-cta .btn-sm {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .nav-link {
        padding: 0.9rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* Hero section for small screens */
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Buttons for small screens */
    .cta-button, .btn-primary, .btn-secondary {
        font-size: 0.8rem;
        padding: 10px 20px;
        min-height: 40px;
    }
    
    /* Typography for small screens */
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
    
    /* Navigation for small screens */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* Contact info for small screens */
    .contact-info {
        font-size: 0.65rem;
    }
    
    .top-bar {
        font-size: 0.7rem;
    }
    
    /* Grid layouts for very small screens */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
}
    
/* Performance Optimizations */

/* Efficient Selectors */
.btn, .card, .form-input, .form-select, .form-textarea {
    will-change: transform;
}

/* Reduce repaints and reflows */
.hero, .pricing-card, .testimonial-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CSS Containment for better performance */
.card, .pricing-card, .testimonial-card {
    contain: layout style paint;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Improve font loading */
@font-face {
    font-family: 'Cairo';
    font-display: swap;
    src: local('Cairo');
}

/* Critical CSS inlined above the fold */
.critical-above-fold {
    display: block;
}

/* Non-critical CSS loaded asynchronously */
.non-critical {
    content: url('./non-critical.css');
}

/* Optimize transitions */
.btn, .card, .nav-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Only transition properties that actually change */
}

/* ===== MOBILE-FIRST OPTIMIZATIONS ===== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
    left: 0;
    right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 8px 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
    align-items: center;
        padding: 8px 12px;
        font-size: 0.75rem;
        color: #6b7280;
        text-decoration: none;
        transition: color 0.3s ease;
        min-width: 60px;
    }
    
    .nav-item.active,
    .nav-item:hover {
        color: #3b82f6;
    }
    
    .nav-item i {
    font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    /* Mobile CTA Improvements */
    .cta-mobile {
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        padding: 16px;
    text-align: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }
    
    .cta-mobile .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        font-size: 1.2rem;
        font-weight: 700;
        padding: 16px 24px;
    }
    
    /* Touch-Friendly Buttons */
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    }
    
    /* Mobile Typography - Optimized for smaller screens */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    margin-bottom: 1rem;
    }
    
    /* Mobile Hero Section Optimization */
    .hero-mobile h1 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero-mobile .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    /* Mobile Form Improvements */
    .form-mobile input,
    .form-mobile textarea {
        width: 100%;
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 16px;
        transition: border-color 0.3s ease;
    }
    
    .form-mobile input:focus,
    .form-mobile textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    /* Mobile Card Improvements */
    .card-mobile {
    background: white;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid #f3f4f6;
    }
    
    /* Mobile Stats */
    .stats-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 2rem 0;
    }
    
    .stat-item {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 16px 8px;
    text-align: center;
}

    .stat-number {
    font-size: 1.5rem;
        font-weight: 700;
        color: #60a5fa;
        display: block;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Mobile Spacing */
    .section-mobile {
        padding: 30px 0;
    }
    
    /* Mobile Reviews - 3 Column Horizontal Layout */
    .testimonials-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        overflow-x: auto;
        padding: 0 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-mobile {
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .testimonial-mobile .text {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    overflow: hidden;
}

    .testimonial-mobile .author {
        font-size: 0.7rem;
    font-weight: 600;
        color: #3b82f6;
    }
    
    .testimonial-mobile .rating {
        font-size: 0.6rem;
        color: #fbbf24;
        margin-bottom: 4px;
    }
    
    /* Mobile Pricing - 3 Column Layout */
    .pricing-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    gap: 8px;
        margin: 20px 0;
    }
    
    .pricing-card-mobile {
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .pricing-card-mobile.featured {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
    }
    
    .pricing-card-mobile .title {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 4px;
        color: #374151;
    }
    
    .pricing-card-mobile .price {
        font-size: 1.1rem;
    font-weight: 700;
        color: #3b82f6;
        margin-bottom: 4px;
    }
    
    .pricing-card-mobile .period {
        font-size: 0.6rem;
        color: #6b7280;
        margin-bottom: 8px;
    }
    
    .pricing-card-mobile .features {
        font-size: 0.7rem;
        color: #4b5563;
        margin-bottom: 8px;
    }
    
    .pricing-card-mobile .btn {
    width: 100%;
        padding: 6px 8px;
        font-size: 0.7rem;
        border-radius: 6px;
        min-height: 32px;
    }
    
    /* Mobile Hero Stats - Compact */
    .stats-mobile {
    display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 1rem 0;
    }
    
    .stat-item {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px 4px;
        text-align: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .stat-number {
    font-size: 1.1rem;
        font-weight: 700;
        color: #3b82f6;
        display: block;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    color: #6b7280;
        line-height: 1.2;
    }
    
    /* Mobile Buttons - Smaller */
    .btn-mobile {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 40px;
        border-radius: 8px;
    }
    
    /* Mobile CTA - Compact */
    .cta-mobile {
        padding: 12px;
    }
    
    .cta-mobile .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Mobile Navigation - Compact */
    .mobile-nav {
        padding: 6px 0;
    }
    
    .nav-item {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .nav-item i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    /* Mobile Text Selection */
    .selectable {
        -webkit-user-select: text;
        -khtml-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
    
    .cta-mobile {
        display: none;
    }
}
