/* ===================================
   General Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c8f9e;
    --accent-color: #ff6b35;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

body[dir="ltr"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ===================================
   Preloader
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-img {
    max-width: 150px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section / Slideshow
   =================================== */
.hero-section {
    margin-top: 0;
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-section .carousel {
    height: 100%;
}

.hero-section .carousel-inner {
    height: 100%;
}

.hero-section .carousel-item {
    height: 100%;
    position: relative;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-section .carousel-caption h1 {
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-section .carousel-caption p {
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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%);
    transition: all 0.3s ease;
}

.hero-section .carousel-control-prev {
    right: 30px;
}

.hero-section .carousel-control-next {
    left: 30px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.4);
}

.hero-section .carousel-indicators {
    bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1rem;
}

.company-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.company-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 2rem;
    min-width: 50px;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item span {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===================================
   Vision, Mission, Goals Section
   =================================== */
.vision-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vision-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.vision-card .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--white);
}

.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.8rem;
}

.vision-card p {
    color: var(--text-color);
    line-height: 1.8;
    text-align: justify;
}

/* ===================================
   Services Section
   =================================== */
.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.8rem;
}

.service-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-form-card,
.contact-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-form-card h3,
.contact-info-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-form-card .form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 122, 0.25);
}

.contact-form-card .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form-card .form-control.is-valid {
    border-color: #28a745;
}

.contact-form-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
}

.contact-form-card .btn-primary:active {
    transform: translateY(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details {
    flex: 1;
}

.contact-details h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--primary-color);
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #1877f2;
    color: var(--white) !important;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.facebook-link:hover {
    background: #1565c0;
    color: var(--white) !important;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color) !important;
    padding: 30px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-weight: 600;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .company-info-card {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .service-image {
        height: 250px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .vision-card,
    .service-content {
        padding: 25px 20px;
    }
    
    .contact-item {
        padding: 20px;
    }
}

/* ===================================
   Smooth Scroll
   =================================== */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===================================
   Language Switcher
   =================================== */
.language-switcher {
    margin-right: 10px;
    margin-left: 10px;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

body[dir="ltr"] .language-switcher {
    margin-right: 10px;
    margin-left: 0;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

body[dir="ltr"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

