/* Custom CSS for Elmekkawy Express */

:root {
    --primary-color: #2353ac;
    --secondary-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    direction: rtl;
}

/* Navigation Styles */
.navbar-brand img {
    border-radius: 50%;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

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

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

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

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

.hero-image {
    position: relative;
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 250px !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 200px !important;
    }
}

/* Phone number styling */
.phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 30px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #e67e22);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #e67e22, var(--warning-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    color: white;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #1e3c72);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1e3c72, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 83, 172, 0.4);
}

/* WhatsApp Integration */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* Cards and Sections */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3c72 100%);
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(35, 83, 172, 0.25);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* FAQ Accordion */
.accordion-button {
    border-radius: 10px !important;
    background-color: #f8f9fa;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(45deg, var(--success-color), #2ecc71);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, var(--danger-color), #c0392b);
    color: white;
}

/* Logo Responsive */
.navbar-brand img {
    max-width: 40px;
    height: auto;
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 1rem !important;
    }
    
    .navbar-brand img {
        max-width: 30px;
    }
}
