:root {
    --primary-color: #4BAED5; /* Logo blue */
    --secondary-color: #ffffff;
    --accent-color: #75c7e5; /* Lighter blue accent */
    --dark-color: #333333; /* Logo text color */
    --light-color: #f8f9fa;
    --light-bg: #f9fafb;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 6px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}



.divider {
    height: 3px;
    width: 70px;
    background-color: var(--accent-color);
    margin: 0 auto 30px;
}

.divider.left-align {
    margin: 0 0 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Header Styles */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    position: relative;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
    border-radius: 5px;
}

.navbar.scrolled .navbar-brand img {
    height: 45px;
}

.navbar .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    margin: 0 12px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    font-size: 16px;
}



.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
    box-shadow: none;
    width: 40px;
    height: 40px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(75, 174, 213, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* WhatsApp button in navbar */
.navbar .whatsapp-btn {
    background-color: var(--primary-color);
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar .whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background-color: #25d366; /* WhatsApp green */
}

/* Add this after the whatsapp-btn styling */
.navbar .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #1877f2;  /* Facebook blue color */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .social-btn:hover {
    background-color: #1877f2;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Twitter/X specific color */
.navbar .social-btn:nth-child(2) {
    color: #1da1f2;
}

.navbar .social-btn:nth-child(2):hover {
    background-color: #000000;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    margin-top: 85px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1582653291997-079a1c04e5a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Remove the wave-like before element */
.hero-section::before {
    display: none;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Call to Action Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover:before {
    left: 0;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Services button styling */
.services-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.services-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(75, 174, 213, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: white;
    position: relative;
}

/* Remove the wave-like before and after elements */
.stats-section::before,
.stats-section::after {
    display: none;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
    border-radius: 10px;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}



.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
}

.service-card {
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    background-color: white;
    border-bottom: 4px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: translateY(0);
}

.service-card:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(75, 174, 213, 0.05);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

}

.service-card:hover:before {
    height: 100%;
}


.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}



/* Economic Departments Section */
.departments-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.department-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
}

.department-card:hover {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.department-icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: rgba(75, 174, 213, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.department-icon {
    font-size: 40px;
    color: var(--primary-color);
    transition: var(--transition);
}

.department-card:hover .department-icon-wrapper {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.department-card:hover .department-icon {
    color: white;
    transform: rotateY(180deg);
}

.department-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
    transition: var(--transition);
}

/* Remove the wave-like before element */
footer::before {
    display: none;
}

/* Footer Styling */
footer {
    background-color: #222;
    color: #fff;
    padding: 70px 0 30px;
    position: relative;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-links h5 {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}



.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
    transition: var(--transition);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-right: 15px;
    display: block;
}



.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-card, .project-card, .department-card {
        margin-bottom: 30px;
    }

    .stat-item {
        margin-bottom: 30px;
    }
}

/* Enhanced Form Styling */
.form-control {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
    color: #333;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(75, 174, 213, 0.25);
    background-color: #fff;
}

.input-group {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-group-text {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 0 15px;
}

.input-group .form-control {
    border-right: 1px solid #e0e0e0;
    border-left: none;
}

textarea.form-control {
    min-height: 120px;
    resize: none;
}

/* Contact form specific */
.contact-form .form-control {
    background-color: #f9fafb;
}

/* Form button */
.form-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

/* Form checkbox */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
    border-color: #aaa;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-right: 10px;
    cursor: pointer;
}

/* Form placeholder styling */
::placeholder {
    color: #999;
    opacity: 0.8;
}

/* Improve form fields appearance on focus */
.form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: var(--primary-color);
}

/* More even section spacing */
.services-section,
.departments-section,
.investment-section,
.projects-section,
.contact-section {
    padding: 80px 0;
}

/* Additional form feedback states */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

.form-message.error {
    color: #dc3545;
}

.form-message.success {
    color: #28a745;
}

/* Investment Features list styling */
.investment-features .d-flex {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.investment-features .d-flex:last-child {
    border-bottom: none;
}

.investment-features i {
    color: var(--primary-color);
    font-size: 18px;
    min-width: 25px;
}

/* Contact info styling */
.contact-info-header {
    background-color: var(--primary-color);
    padding: 40px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    color: white;
}

.contact-info-body {
    background-color: white;
    border-radius: 0 0 15px 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


a{
  text-decoration: none !important;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}



.about-content {
    position: relative;
    z-index: 1;
}

.divider {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 15px 0 25px;
}

.divider.right-align {
    margin-right: 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 10px;
}

.about-image {
    padding: 20px;
}

.about-img-box {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-img-box img {
    transition: transform 0.5s;
}

.about-img-box:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.experience-content .number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-content .text {
    font-size: 14px;
}

/* Add hover effect to stat items */
.stat-item:hover {
    transform: translateY(0);
}

/* Contact item hover effect */
.contact-item {
    transition: var(--transition);
    transform: translateY(0);
    padding: 10px;
    border-radius: 8px;
}



.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(75, 174, 213, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Contact Form Loading State */
.spinner-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* Form Button Hover/Focus States */
.form-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}



.form-button:active,
.form-button:focus {
    background-color: #003b7e;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.2);
    outline: none;
}

.form-button:disabled {
    background-color: #7eabd8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Inputs */
.input-group {
    margin-bottom: 1.2rem;
}

.input-group-text {
    border: none;
    background-color: #f8f9fa;
    border-radius: 50px 0 0 50px;
    padding: 12px 15px;
    color: var(--primary-color);
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 0 50px 50px 0;
    padding: 12px 20px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تحسينات قسم التواصل */
.contact-section {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-section .main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    margin-bottom: 20px;
}

.contact-section .divider {
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.contact-section .lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* تنسيق صندوق معلومات التواصل */
.contact-info {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.contact-info-header {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    background: linear-gradient(rgba(75, 174, 213, 0.85), rgba(59, 147, 183, 0.95)), url('https://images.unsplash.com/photo-1560179707-f14e90ef3623?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8YnVzaW5lc3MlMjBidWlsZGluZ3xlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=800&q=60');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.contact-header-icon {
    font-size: 2.5rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-header-text {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(75, 174, 213, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
}

.contact-item:hover .contact-icon i {
    color: white !important;
}

.social-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.social-connect {
    text-align: right;
    margin-top: 20px;
}

.social-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-align: right;
    margin-bottom: 15px;
}


.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: rgba(75, 174, 213, 0.1);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.social-whatsapp:hover {
    background-color: #25d366;
}

/* تنسيق نموذج التواصل */
.contact-form {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}


.form-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}



.form-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* تنسيق الحقول */
.custom-input-group {
    position: relative;
    margin-bottom: 20px;
}

.custom-input {
    border-radius: 10px !important;
    padding: 15px 15px 15px 45px !important;
    border: 1px solid #d0d0d0;
    background-color: #f8f9fa;
    font-size: 1rem;
    height: auto;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
}

.custom-input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 15px rgba(75, 174, 213, 0.2);
}

.form-floating > .form-control {
    padding: 1.5rem 0.75rem !important;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #555;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
    color: var(--primary-color);
    opacity: 1;
}

.form-control::placeholder {
    color: #777;
    opacity: 0.7;
}

/* Enhanced Dropdown/Select Styling */
.form-select {
    height: 58px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background-color: #f8f9fa;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234BAED5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 16px;
    padding-left: 50px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Adjust select for RTL */
.form-select {
    text-align: right;
    background-position: left 20px center;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(75, 174, 213, 0.25);
    background-color: #fff;
    outline: none;
}

.form-select:hover {
    border-color: #b8b8b8;
    background-color: #f5f5f5;
}

/* Style for dropdown options */
.form-select option {
    background-color: white;
    color: #333;
    padding: 12px;
    font-weight: 500;
}

/* Select field with floating label */
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

/* Fix for select with icons */
.custom-input-group .form-select {
    padding-left: 50px;
}

/* Make sure icons appear correctly */
.custom-input-group i.form-icon {
    z-index: 5;
    pointer-events: none;
}

.custom-textarea {
    height: 140px !important;
    resize: none;
    border-radius: 10px !important;
    padding: 15px !important;
}

/* تنسيق checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #555;
}

/* زر الإرسال */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d9ed0 100%);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(75, 174, 213, 0.3);
    width: 100%;
    text-align: center;
}

.btn-submit:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3d9ed0 0%, var(--primary-color) 100%);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(75, 174, 213, 0.5);
    color: white;
}

.btn-submit:hover:before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn-submit:focus,
.btn-submit:active {
    box-shadow: 0 5px 15px rgba(75, 174, 213, 0.4);
    transform: translateY(-1px);
    outline: none;
}

.form-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(75, 174, 213, 0.3);
    width: 100%;
}

.form-button:hover {
    background-color: #3d9ed0;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(75, 174, 213, 0.5);
    color: white;
}

.form-note {
    font-size: 0.85rem;
    color: #888;
}

/* Form Icons & Labels Styling */
.form-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.custom-input-group label i {
    color: var(--primary-color);
    margin-left: 5px;
}

/* Form field hover effects */
.custom-input:hover,
.form-control:hover,
.form-select:hover {
    border-color: #b8b8b8;
    background-color: #f5f5f5;
}

/* Form validation styling */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.5rem;
    padding-left: 2.5rem;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.5rem;
    padding-left: 2.5rem;
}

/* Form container styling */
.contact-form {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px; /* Left position for RTL layout */
    width: 60px;
    height: 60px;
    background-color: #25d366; /* WhatsApp green color */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.floating-whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive adjustment for mobile */
@media (max-width: 767px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
}

/* Responsive text sizes for mobile */
@media (max-width: 767px) {
    /* Headers */
    h1, .h1 {
        font-size: 1.8rem !important;
    }

    h2, .h2 {
        font-size: 1.4rem !important;
    }

    h3, .h3 {
        font-size: 1.2rem !important;
    }

    h4, .h4 {
        font-size: 1.2rem !important;
    }

    /* Paragraph text */
    p, .lead {
        font-size: 1rem !important;
    }

    /* Navigation */
    .navbar .nav-link {
        font-size: 14px !important;
    }

    /* Fix mobile navbar */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        padding: 15px !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px !important;
    }

    .navbar-nav .nav-link {
        padding: 8px 15px !important;
        border-radius: 5px !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(75, 174, 213, 0.1) !important;
    }

    /* Hero section */
    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content p.lead {
        font-size: 1rem !important;
    }

    /* Stats section */
    .stat-number {
        font-size: 2.5rem !important;
    }

    /* Service cards */
    .service-card h3 {
        font-size: 1.2rem !important;
    }

    .service-card p {
        font-size: 0.95rem !important;
    }

    /* Department cards */
    .department-name {
        font-size: 1.1rem !important;
    }

    /* Contact section */
    .contact-section .main-heading {
        font-size: 1.6rem !important;
    }

    .form-title {
        font-size: 1.4rem !important;
    }

    .form-subtitle {
        font-size: 0.9rem !important;
    }

    /* Footer */
    footer {
        font-size: 0.9rem !important;
    }

    /* Fix section layout issues */
    .section-padding {
        padding: 40px 0 !important;
    }

    .section-title {
        margin-bottom: 25px !important;
    }

    .section-title h2 {
        font-size: 1.4rem !important;
        margin-bottom: 10px !important;
    }

    .section-title p {
        font-size: 0.9rem !important;
    }

    /* Fix image responsive issues */
    .about-image {
        padding: 10px !important;
        margin-top: 20px !important;
    }

    .experience-badge {
        width: 90px !important;
        height: 90px !important;
        bottom: 20px !important;
    }

    .experience-content .number {
        font-size: 24px !important;
    }

    .experience-content .text {
        font-size: 12px !important;
    }

    /* Fix department cards */
    .department-card {
        margin-bottom: 15px !important;
    }

    .department-icon-wrapper {
        width: 70px !important;
        height: 70px !important;
    }

    .department-icon {
        font-size: 30px !important;
    }

    /* Fix contact info layout */
    .contact-info-header {
        padding: 25px 20px !important;
    }

    .contact-info-body {
        padding: 20px !important;
    }

    .contact-header-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }

    /* Fix padding on service cards */
    .service-card {
        padding: 25px !important;
    }

    /* Fix button sizes */
    .btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }

    .btn-lg {
        padding: 10px 25px !important;
        font-size: 16px !important;
    }

    /* Fix mobile spacing */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    h1, .h1 {
        font-size: 1.5rem !important;
    }

    h2, .h2 {
        font-size: 1.3rem !important;
    }

    h3, .h3 {
        font-size: 1.1rem !important;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
    }

    .btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    /* Fix row spacing */
    .row.g-5 {
        --bs-gutter-y: 1.5rem !important;
    }

    .contact-info {
        margin-bottom: 20px !important;
    }

    /* Additional card fixes */
    .service-card, .department-card {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
    }
}

/* إصلاح textarea في الموبايل */
@media (max-width: 767px) {
    .custom-textarea,
    textarea.form-control {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.95rem !important;
        padding: 12px !important;
        text-align: right !important;
        direction: rtl !important;
        box-sizing: border-box;
    }
    .form-floating > label {
        font-size: 0.95rem !important;
        white-space: normal !important;
        right: 0 !important;
        left: auto !important;
        width: 100% !important;
    }
}
