/* ============================================
   Global Styles
   ============================================ */
:root {
    --primary-color: #188a96;
    --primary-dark: #297f91;
    --secondary-color: #243c48;
    --gray-azure: #548892;
    --light-gray: #d9d9d9;
    --text-color: #233b46;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --dark: #233b46;
    
    /* Override Bootstrap primary color */
    --bs-primary: #188a96;
    --bs-primary-rgb: 24, 138, 150;
    --bs-primary-dark: #297f91;
}

/* Override Bootstrap primary color classes */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #188a96;
    --bs-btn-border-color: #188a96;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #297f91;
    --bs-btn-hover-border-color: #297f91;
    --bs-btn-focus-shadow-rgb: 24, 138, 150;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #297f91;
    --bs-btn-active-border-color: #297f91;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #188a96;
    --bs-btn-disabled-border-color: #188a96;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(24, 138, 150, var(--bs-bg-opacity)) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(24, 138, 150, var(--bs-text-opacity)) !important;
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: rgba(24, 138, 150, var(--bs-border-opacity)) !important;
}

.btn-outline-primary {
    --bs-btn-color: #188a96;
    --bs-btn-border-color: #188a96;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #188a96;
    --bs-btn-hover-border-color: #188a96;
    --bs-btn-focus-shadow-rgb: 24, 138, 150;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #188a96;
    --bs-btn-active-border-color: #188a96;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #188a96;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #188a96;
    --bs-gradient: none;
}

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

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 0;
}

html[dir="rtl"] body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    font-size: 0.875rem;
    background-color: var(--secondary-color) !important;
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--white) !important;
}

/* ============================================
   Navigation
   ============================================ */
.navbar.sticky-top {
    top: 0;
}

body {
    padding-top: 0;
}

.top-bar + .navbar.sticky-top {
    top: 0;
}

.brand-logo {
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.logo-image{
    border-radius: 20px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar .btn-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ============================================
   Main Slider
   ============================================ */
#mainSlider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

#mainSlider .carousel-item {
    height: 85vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(24, 138, 150, 0.3) 0%, rgba(41, 127, 145, 0.3) 100%),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#mainSlider .carousel-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(84, 136, 146, 0.3) 0%, rgba(41, 127, 145, 0.3) 100%),
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#mainSlider .carousel-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(24, 138, 150, 0.3) 0%, rgba(35, 59, 70, 0.3) 100%),
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    padding: 2rem;
}

.slider-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.slider-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

.slider-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.4s ease;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 5%;
}

.carousel-indicators {
    z-index: 3;
}

.carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    opacity: 1;
}

@media (max-width: 768px) {
    #mainSlider {
        height: 60vh;
        min-height: 400px;
    }
    
    #mainSlider .carousel-item {
        height: 60vh;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .page-header {
        background-attachment: scroll;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-subtitle {
        font-size: 1.5rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============================================
   Service Cards - Modern Style
   ============================================ */
.section-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.service-card-modern {
    background: var(--white);
    box-shadow: 0 0 10px 0 rgba(0,0,0,.15);
    border: 0 solid #69727d;
    transition: transform 0.3s ease;
}

.service-card-modern:hover {
    background: var(--white);
    box-shadow: 0 0 10px 0 rgba(0,0,0,.15);
    transform: translateY(-5px);
}

.service-image-modern {
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 1rem;
}

.service-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-image-modern img {
    transform: scale(1.05);
}

.service-title-modern {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.service-link:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

html[dir="rtl"] .service-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* ============================================
   Video Section
   ============================================ */
#videoSection {
    background: var(--bg-light);
}

.video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Clients Section
   ============================================ */
.clients-text-box {
    background: var(--bg-light);
    height: 100%;
}

.clients-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clients-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.client-logo-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 5px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.client-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-placeholder {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.client-logo-item {
    position: relative;
}

@media (max-width: 768px) {
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Quote Section
   ============================================ */
#quoteSection {
    background: var(--white);
}

.quote-handwritten {
    text-align: center;
}

.quote-text-handwritten {
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    line-height: 1.2;
    transform: rotate(-2deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-text-box {
    background: var(--bg-light);
}

.quote-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

@media (max-width: 768px) {
    .quote-text-handwritten {
        font-size: 2.5rem;
    }
}

/* ============================================
   Infographic Section
   ============================================ */
.infographic-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(24, 138, 150, 0.6) 0%, rgba(41, 127, 145, 0.6) 100%),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.min-vh-50 {
    min-height: 400px;
}

/* ============================================
   Services Page
   ============================================ */
.service-buttons .btn {
    min-width: 150px;
    transition: all 0.3s ease;
}

.service-buttons .btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.service-detail {
    animation: fadeIn 0.5s ease;
}

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

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

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(24, 138, 150, 0.25);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--dark) !important;
}

footer a {
    transition: color 0.3s ease;
}

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

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 3px 3px 5px #666;
}

.whatsapp-float i {
    font-size: 32px;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    html[dir="rtl"] .whatsapp-float {
        left: 15px;
    }
}

/* ============================================
   RTL Support
   ============================================ */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3,
html[dir="rtl"] .me-4 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .text-lg-end {
    text-align: left !important;
}

html[dir="rtl"] .carousel-control-prev {
    left: auto;
    right: 0;
}

html[dir="rtl"] .carousel-control-next {
    right: auto;
    left: 0;
}

html[dir="rtl"] .bi-arrow-right::before {
    content: "\f138";
    transform: scaleX(-1);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .slider-title {
        font-size: 2.5rem;
    }
    
    .slider-subtitle {
        font-size: 1.5rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    
    
    #mainSlider {
        height: 70vh;
        min-height: 500px;
    }
    
    #mainSlider .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-subtitle {
        font-size: 1.3rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-buttons {
        flex-direction: column;
    }
    
    .service-buttons .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .page-header {
        min-height: 300px;
    }
    
    .min-vh-50 {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .slider-title {
        font-size: 1.5rem;
    }
    
    .slider-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .quote-text {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 138, 150, 0.3);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-consent .bi-cookie {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cookie-consent .btn-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 0;
    }
    
    .cookie-consent p {
        font-size: 0.85rem;
    }
}

