/* Modern Minimal Design - أساس البرمجيات */

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1030;
    position: relative;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section - Slider */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
}

.hero-section .carousel {
    height: 100vh;
    margin-top: 0;
    padding-top: 0;
}

.hero-section .carousel-inner {
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-section .carousel-item {
    height: 100vh;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 64, 175, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .text-primary {
    color: #60a5fa !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    opacity: 0.8;
}

.hero-section .carousel-control-prev {
    right: 30px;
    left: auto;
}

.hero-section .carousel-control-next {
    left: 30px;
    right: auto;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(37, 99, 235, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.hero-section .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-image {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
}

.icon-box-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    margin: 0 auto;
}

.service-icon {
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Divider */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Services */
.service-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
}

/* Social Links */
.social-link {
    color: var(--text-light);
    transition: var(--transition);
    display: inline-block;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Form */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Footer */
footer {
    background-color: #0f172a !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-section .carousel-control-prev {
        right: 15px;
    }
    
    .hero-section .carousel-control-next {
        left: 15px;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 35px;
        height: 35px;
        opacity: 0.6;
    }
    
    .hero-section .carousel-indicators {
        bottom: 20px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Additional Modern Touches */
.text-primary {
    color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Scroll to Top Button (optional) */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

