/* Premium Capital Sky Design */

:root {
    --primary: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --primary-solid: #dc2626;
    --secondary: linear-gradient(135deg, #000000 0%, #374151 100%);
    --accent: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --dark: #000000;
    --light: #ffffff;
    --red: #dc2626;
    --black: #000000;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(220,38,38,0.1);
    --shadow-hover: 0 30px 80px rgba(220,38,38,0.15);
}

/* Global Styles */
body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    min-height: 100vh;
}

/* Premium Navigation */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
    position: relative;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-solid) !important;
    transform: translateY(-2px);
}

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

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #dc2626 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/><circle fill="rgba(255,255,255,0.08)" cx="150" cy="300" r="70"><animateTransform attributeName="transform" type="translate" values="0,0; 40,25; 0,0" dur="5s" repeatCount="indefinite"/></circle><circle fill="rgba(255,255,255,0.06)" cx="850" cy="200" r="90"><animateTransform attributeName="transform" type="translate" values="0,0; -35,40; 0,0" dur="6.5s" repeatCount="indefinite"/></circle><circle fill="rgba(255,255,255,0.07)" cx="500" cy="600" r="55"><animateTransform attributeName="transform" type="translate" values="0,0; 30,-30; 0,0" dur="4.2s" repeatCount="indefinite"/></circle></svg>');
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

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

.display-4 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Premium Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
}

.card-img-top {
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Professional Trusted Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline-primary {
    background: white;
    border: 2px solid #dc2626;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: #dc2626;
    transform: translateY(-2px);
    border-color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
    min-width: 160px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 100px;
}



.btn-secure {
    background: linear-gradient(135deg, #dc2626 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.btn-secure:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #000000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.05;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary);
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover::before {
    opacity: 0.1;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
    border-color: var(--primary-solid);
}

/* Premium Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::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 1000 1000"><circle fill="rgba(255,255,255,0.05)" cx="200" cy="200" r="80"><animateTransform attributeName="transform" type="translate" values="0,0; 50,30; 0,0" dur="4.8s" repeatCount="indefinite"/></circle><circle fill="rgba(255,255,255,0.03)" cx="800" cy="600" r="120"><animateTransform attributeName="transform" type="translate" values="0,0; -30,50; 0,0" dur="6s" repeatCount="indefinite"/></circle><circle fill="rgba(255,255,255,0.04)" cx="400" cy="100" r="60"><animateTransform attributeName="transform" type="translate" values="0,0; 40,-20; 0,0" dur="3.6s" repeatCount="indefinite"/></circle></svg>');
    z-index: 1;
    pointer-events: none;
}

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

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .dropdown {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .carousel-item img {
        width: 60px;
        height: 60px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animations */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.pricing-card.featured {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.pricing-card:hover {
    border-color: var(--primary-solid);
    transform: translateY(-10px);
}

/* Contact Form Enhancements */
.contact-form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

/* Image Overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Language Switcher */
.dropdown-toggle {
    border: 1px solid #dc2626 !important;
    color: #dc2626 !important;
    background: white !important;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: #dc2626 !important;
    color: white !important;
    border-color: #dc2626 !important;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Footer Links */
.footer-link {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.footer-link:hover {
    color: #dc2626 !important;
    transform: translateX(5px);
}



/* RTL Icon Spacing for Arabic */
[dir="rtl"] .btn i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .d-flex.align-items-center i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .fas.me-2 {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .fas.me-1 {
    margin-left: 0.25rem;
    margin-right: 0;
}

/* RTL Navbar Menu Positioning */
[dir="rtl"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .navbar-collapse {
    text-align: right;
}

[dir="rtl"] .navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive Navbar Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 28px;
        max-width: 120px;
    }
}

/* Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}