:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --light-purple: #e0e0ff;
    --dark-purple: #4834d4;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #00b894;
    --info: #0984e3;
    --warning: #fdcb6e;
    --danger: #d63031;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    background-color: var(--gray-100);
    color: var(--gray-800);
}

#mainNav {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#mainNav .navbar-brand img {
    transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

#mainNav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#mainNav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

#mainNav .nav-link:hover::after {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    color: var(--white);
    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 width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-section img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-section img:hover {
    transform: scale(1.05) rotate(2deg);
}

.section-title {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.projects-section {
    padding: 80px 0;
    background-color: var(--white);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.project-status {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.status-in-progress {
    background-color: var(--warning);
    color: var(--gray-900);
}

.status-available {
    background-color: var(--success);
    color: var(--white);
}

.project-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: all 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
}

.project-details.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.project-details-content {
    padding: 2rem;
}

.project-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.project-details-title {
    color: var(--gray-800);
    font-weight: 700;
    margin: 0;
}

.close-project {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-project:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.project-gallery {
    margin-bottom: 2rem;
}

.project-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

.project-features {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 10px;
}

.project-features h6 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    color: var(--gray-700);
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--light-purple);
    transition: all 0.4s ease;
}

.team-member:hover .team-image img {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
    transform: scale(1.02);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
}

footer {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 2rem 0;
}

.language-switch .btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switch .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .team-image {
        width: 120px;
        height: 120px;
    }

    .project-details {
        width: 95%;
        max-height: 90vh;
    }
}

[dir="rtl"] .project-features li {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="rtl"] .project-features li::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .contact-info i {
    margin-left: 0;
    margin-right: 0.5rem;
}