/* ===== 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;
}

/* ===== 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;
    }
} 