:root {
    --primary-color: #0d7377;
    --secondary-color: #14a085;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
    text-decoration: none;
    color: #fff !important;
}

.logo-img {
    height: 65px;
    width: auto;
}

.brand-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1.2;
}

[dir="rtl"] .brand-text {
    margin-left: 0 !important;
    margin-right: 0.75rem;
}

[dir="ltr"] .brand-text {
    margin-right: 0 !important;
    margin-left: 0.75rem;
}

[dir="rtl"] .navbar-brand .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.75rem !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.lang-switch {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 600px;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    margin: 0;
}

[dir="rtl"] .carousel-caption {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(13, 115, 119, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* About Section */
.about-section {
    background: var(--light-color);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .info-card {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Services Preview */
.services-preview {
    background: #fff;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(13, 115, 119, 0.3);
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-card h4 {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Content */
.about-content {
    background: #fff;
}

.mission-vision-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.mission-vision-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-vision-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Services Content */
.services-content {
    background: var(--light-color);
}

.service-detail-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-detail-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: #fff;
}

.contact-form-card {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 115, 119, 0.25);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info-card h4 {
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    color: rgba(255,255,255,0.9);
}

.contact-info-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    margin: 0;
    opacity: 0.9;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 115, 119, 0.5);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    margin-top: 4rem;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer i {
    color: var(--secondary-color);
    margin-inline-end: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-inline-start: 5px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .brand-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .brand-text {
        font-size: 0.75rem;
        display: none;
    }
    
    .carousel-caption {
        width: 95%;
        padding: 1.5rem;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .hero-title {
        font-size: 2rem;
        margin: 0 auto 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .hero-section,
    .hero-section .carousel-item {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 52px;
    }
    
    .carousel-caption {
        width: 98%;
        padding: 1rem;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin: 0 auto 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin: 0 auto;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

