/* ================================
   Global Styles
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --muted-color: #6c757d;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* ================================
   Navigation Bar
   ================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: white !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1) !important;
    border-bottom: 2px solid white;
}

/* ================================
   Hero Section
   ================================ */

.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 78, 137, 0.1) 100%);
    padding: 2rem 0;
}

.hero-section h1 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--muted-color);
}

.hero-section img {
    max-width: 100%;
    height: auto;
    animation: slideInRight 0.8s ease;
}

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

/* ================================
   Buttons
   ================================ */

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ================================
   Cards
   ================================ */

.card {
    border: none;
    transition: var(--transition);
    height: 100%;
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* ================================
   Service Cards
   ================================ */

.service-card {
    background: white;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2) !important;
    border-color: var(--primary-color);
}

.service-card i {
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1) rotate(10deg);
}

.service-card h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* ================================
   Project Cards
   ================================ */

.project-card {
    background: white;
    transition: var(--transition);
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* ================================
   Contact Section
   ================================ */

.contact-info {
    text-align: center;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    background-color: white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    color: var(--primary-color);
}

.contact-info h5 {
    color: var(--dark-color);
    margin-top: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline !important;
}

/* ================================
   Form Styles
   ================================ */

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ================================
   Footer
   ================================ */

footer {
    background-color: var(--dark-color);
    margin-top: 5rem;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer h5 {
    color: white;
    font-weight: 700;
}

footer .text-muted {
    color: #999 !important;
}

/* ================================
   Sections
   ================================ */

section {
    padding: 5rem 0;
}

section h2 {
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c42);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ================================
   Background Colors
   ================================ */

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

/* ================================
   Utilities
   ================================ */

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.rounded-3 {
    border-radius: 15px !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .service-card,
    .project-card {
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ================================
   Accessibility
   ================================ */

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ================================
   Loading Animation
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease;
}

/* ================================
   Smooth Scrolling
   ================================ */

html {
    scroll-behavior: smooth;
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .navbar,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
