/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    filter: brightness(1.1);
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-image {
    position: relative;
}

.phone-mockup {
    position: relative;
    display: inline-block;
}

.logo-showcase {
    position: relative;
    display: inline-block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-logo {
    width: 200px;
    height: 200px;
    max-width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3)) brightness(1.1);
    transition: transform 0.3s ease;
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.screen-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ===== HERO ROW ===== */
.hero-row {
    min-height: 100vh;
}

/* Mobile hero row optimization */
@media (max-width: 768px) {
    .hero-row {
        min-height: auto;
    }
    
    .hero-wave svg {
        width: 100%;
        height: auto;
        max-height: 40px;
    }
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    margin-right: auto;
    margin-left: auto;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ===== STEP CARDS ===== */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ===== BENEFITS SECTION ===== */
.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.benefit-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.benefits-image {
    position: relative;
}

.benefits-image i {
    animation: bounce 2s ease-in-out infinite;
}

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

/* ===== SUPPORT SECTION ===== */
.support-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #fbbf24;
    width: 40px;
    text-align: center;
}

.contact-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    opacity: 0.9;
}

.support-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-form .form-control,
.support-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.support-form .form-control:focus,
.support-form .form-select:focus {
    background: white;
    border-color: #fbbf24;
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

.support-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== DOWNLOAD SECTION ===== */
.download-buttons a {
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.download-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color) !important;
}

footer img {
    filter: brightness(1.2);
    border-radius: 6px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

footer h5:hover img {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-icon {
        font-size: 2rem;
    }
    
    .benefits-image i {
        font-size: 6rem !important;
    }
    
    .hero-logo {
        width: 150px !important;
        height: 150px !important;
        padding: 1rem !important;
        background: #ffffff !important;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
        object-fit: contain !important;
    }
    
    .logo-glow {
        width: 180px !important;
        height: 180px !important;
    }
    
    .logo-showcase {
        padding: 1.5rem !important;
    }
    
    .support-form-container {
        margin-top: 2rem;
    }
    
    .download-buttons a {
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .step-card {
        padding: 1.5rem;
    }
    
    .support-form-container {
        padding: 1.5rem;
    }
}

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

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

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

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

/* ===== LOADING ANIMATION ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-body {
    border-radius: 15px;
}

/* ===== SCROLL STYLES ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .feature-list li::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .benefit-item {
    text-align: right;
}

[dir="rtl"] .contact-item {
    text-align: right;
}

[dir="rtl"] .step-number {
    right: auto;
    left: 20px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .support-section,
    .download-section,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .feature-card,
    .step-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ===== ALTERNATIVE SIMPLE LOGO STYLES ===== */
/* إذا كنت تريد شعار أبسط، أضف class "simple-logo" للعنصر */
.simple-logo .hero-logo {
    background: #ffffff !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important;
}

.simple-logo .logo-glow {
    display: none !important;
}

.simple-logo .logo-showcase {
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    padding: 1rem !important;
}

/* ===== PRICING SECTION ===== */
.pricing-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #e2e8f0;
}

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

.pricing-card.featured {
    transform: scale(1.05);
    z-index: 2;
    border: 2px solid var(--primary-color);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.pricing-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.pricing-body {
    padding: 0 1.5rem 2rem;
}

.price-display {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.price-display .currency {
    font-size: 1rem;
    color: #6c757d;
    vertical-align: top;
}

.price-display .amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.price-display .period {
    font-size: 1rem;
    color: #6c757d;
}

/* Original price (crossed out) */
.original-price {
    margin-bottom: 0.5rem;
}

.original-price .currency {
    font-size: 0.9rem;
    color: #999;
}

.amount-crossed {
    font-size: 1.5rem;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
    margin: 0 0.25rem;
}

/* Discounted price */
.discounted-price {
    margin-bottom: 0.5rem;
}

.discounted-price .currency {
    font-size: 1rem;
    color: #6c757d;
    vertical-align: top;
}

.discounted-price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.discounted-price .period {
    font-size: 1rem;
    color: #6c757d;
}

/* Discount badge */
.discount-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* TBD Price */
.tbd-price .amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    width: 20px;
    font-size: 1rem;
}

.pricing-features li .text-muted {
    color: #999 !important;
    opacity: 0.7;
}

.pricing-footer {
    text-align: center;
}

/* Disabled pricing card styles */
.pricing-card.featured .pricing-badge {
    background: #6c757d !important;
    color: white !important;
}

.pricing-card.featured .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.pricing-note {
    border: 2px solid var(--primary-color);
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pricing-note::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

/* ===== RESPONSIVE PRICING ===== */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .price-display .amount,
    .discounted-price .amount {
        font-size: 2.5rem;
    }
    
    .amount-crossed {
        font-size: 1.2rem;
    }
    
    .discount-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .pricing-badge {
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .pricing-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .pricing-body {
        padding: 0 1rem 1.5rem;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Touch-friendly buttons and interactive elements */
.btn {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .btn {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 18px;
        font-weight: 600;
    }
    
    .btn-lg {
        min-height: 56px;
        padding: 16px 32px;
        font-size: 20px;
    }
}

/* Mobile navigation improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(37, 99, 235, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        font-size: 18px;
        font-weight: 500;
        border-radius: 8px;
        margin: 4px 0;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .navbar-toggler {
        border: none;
        padding: 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }
}

/* Enhanced mobile typography */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    p, .lead {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 19px;
        font-weight: 400;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.9rem !important;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .lead {
        font-size: 17px;
    }
    
    p {
        font-size: 16px;
    }
}

/* Mobile-optimized spacing */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Enhanced hero section for mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 6rem 0 2rem;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-logo {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 1rem;
    }
    
    .logo-showcase {
        margin: 0 auto;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 5rem 0 1.5rem;
    }
    
    .hero-logo {
        width: 150px !important;
        height: 150px !important;
    }
    
    .logo-showcase {
        max-width: 240px;
        padding: 1rem !important;
    }
}

/* Mobile-optimized feature cards */
@media (max-width: 768px) {
    .feature-card {
        text-align: center;
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 20px;
    }
    
    .feature-icon {
        margin: 0 auto 1.5rem;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .feature-list {
        text-align: right;
        margin-top: 1.5rem;
    }
    
    .feature-list li {
        padding: 0.8rem 0;
        font-size: 16px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .feature-list li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile-optimized pricing cards */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
        border-radius: 20px;
        overflow: hidden;
    }
    
    .pricing-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .pricing-body {
        padding: 1.5rem;
    }
    
    .price-display {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .pricing-features {
        margin-bottom: 2rem;
    }
    
    .pricing-features li {
        padding: 1rem 0;
        font-size: 16px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .pricing-features li:last-child {
        border-bottom: none;
    }
    
    .discount-badge {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .support-form-container {
        padding: 2rem;
        border-radius: 20px;
        margin-top: 2rem;
    }
    
    .form-control {
        min-height: 50px;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid #e2e8f0;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-label {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--dark-color);
    }
}

@media (max-width: 576px) {
    .support-form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

/* Mobile contact improvements */
@media (max-width: 768px) {
    .contact-item {
        text-align: center;
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        transition: transform 0.2s ease;
        color: #1e293b; /* إضافة لون النص الأساسي */
    }
    
    .contact-item:hover {
        transform: translateY(-2px);
    }
    
    .contact-item i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--primary-color) !important; /* لون الأيقونة أزرق */
    }
    
    .contact-item h6 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1e293b !important; /* لون العنوان غامق وواضح */
    }
    
    .contact-item p {
        font-size: 16px;
        margin: 0;
        color: #64748b !important; /* لون النص الوصفي رمادي واضح */
    }
}

/* Mobile footer improvements */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 2rem 0 1rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Better mobile footer layout */
    footer .col-lg-4 {
        order: 1;
        margin-bottom: 2rem;
    }
    
    footer .col-lg-2,
    footer .col-lg-3 {
        order: 2;
    }
    
    footer .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile footer lists */
    footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    footer ul li {
        margin: 0;
    }
    
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: #fbbf24;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 20px;
        transition: all 0.2s ease;
    }
    
    /* Footer bottom section mobile */
    footer .row.align-items-center {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer .row.align-items-center .col-md-6 {
        text-align: center !important;
    }
}

/* Download buttons mobile optimization */
@media (max-width: 768px) {
    .download-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .download-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 24px;
        border-radius: 15px;
        text-decoration: none;
        transition: all 0.2s ease;
        min-height: 60px;
        font-weight: 600;
    }
    
    .download-buttons a:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .download-buttons img {
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .hero-section::before,
    .logo-glow,
    .screen-glow {
        display: none;
    }
    
    .feature-card:hover,
    .pricing-card:hover,
    .step-card:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Exception: Keep benefits icon animation smooth */
    .benefits-image i {
        animation-duration: 3s !important;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid rgba(37, 99, 235, 0.5);
        outline-offset: 2px;
    }
    
    /* Larger touch targets */
    .navbar-toggler {
        min-width: 48px;
        min-height: 48px;
    }
    
    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* High contrast for better readability */
    .text-muted {
        color: #64748b !important;
    }
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ensure content doesn't break out */
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* Fix any potential overflow issues */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile-first loading states */
@media (max-width: 768px) {
    .loading::after {
        width: 24px;
        height: 24px;
        margin: -12px 0 0 -12px;
        border-width: 3px;
    }
}

/* Dark mode support for mobile (disabled - was causing confusion) */
/*
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .feature-card,
    .pricing-card,
    .contact-item {
        background: #1e293b;
        color: #f8fafc;
        border: 1px solid #334155;
    }
    
    .form-control {
        background: #334155;
        border-color: #475569;
        color: #f8fafc;
    }
}
*/

/* Mobile sticky elements */
@media (max-width: 768px) {
    .navbar {
        backdrop-filter: blur(10px);
        background: rgba(37, 99, 235, 0.95) !important;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero-logo {
        width: 120px !important;
        height: 120px !important;
    }
    
    .logo-showcase {
        padding: 1rem !important;
    }
}

/* Very small screens (< 375px) */
@media (max-width: 374px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem !important;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1rem;
    }
    
    .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .hero-logo {
        width: 120px !important;
        height: 120px !important;
    }
}

/* PWA mobile optimizations */
@media (max-width: 768px) {
    /* Safe area insets for notched devices */
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .hero-section {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
    
    /* Touch action optimizations */
    .btn,
    .nav-link,
    .card {
        touch-action: manipulation;
    }
} 