/*
Theme Name: Marketipro
Theme URI: https://marketipro.com
Author: Marketipro
Author URI: https://marketipro.com
Description: ثيم ووردبريس مخصص لموقع Marketipro - خدمات التسويق الرقمي
Version: 1.0
Text Domain: marketipro
*/

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #0d6efd;
    background-color: #f8f9fa;
    padding-top: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0d6efd;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: 2px solid #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-secondary {
    background-color: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-secondary:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Header Styles */
#header {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 3px solid #0d6efd !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000;
    transition: all 0.3s ease;
    margin: 0 !important;
}

#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

#header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px !important;
}

#header .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 85px;
    padding: 0 !important;
    position: relative;
}

#header .logo {
    order: 1 !important;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1;
    color: #0d6efd !important;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#header .logo:hover {
    transform: scale(1.05);
}

#header .custom-logo-link,
#header .custom-logo {
    display: block;
}

#header .custom-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

#header nav {
    order: 2 !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    justify-content: center;
}

#header nav > ul {
    display: flex !important;
    align-items: center !important;
    gap: 32px;
    margin: 0;
    padding: 0;
}

#header nav > ul > li {
    margin: 0 !important;
    position: relative;
}

#header nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 10px 0 !important;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

#header nav a:hover,
#header nav a.active {
    color: #0d6efd !important;
}

#header nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7) !important;
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#header nav > ul > li > a.active::after,
#header nav > ul > li > a:hover::after {
    transform: scaleX(1);
}

/* Dropdown Menu Styles */
#header .dropdown {
    position: relative;
}

#header .dropdown > a,
#header .submenu > a {
    display: inline-flex;
    align-items: center;
}

#header .dropdown i,
#header .submenu i {
    font-size: 10px;
    margin: 0 0 0 4px !important;
    transition: transform 0.3s ease;
}

#header .dropdown:hover > i,
#header .submenu:hover > i {
    transform: rotate(180deg);
}

/* Submenu/Dropdown List */
#header .dropdown > ul,
#header .submenu > ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

#header .dropdown:hover > ul,
#header .submenu:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#header .dropdown > ul > li,
#header .submenu > ul > li {
    margin: 0 !important;
    padding: 0;
}

#header .dropdown > ul > li > a,
#header .submenu > ul > li > a {
    display: flex;
    padding: 10px 20px !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

#header .dropdown > ul > li:last-child > a,
#header .submenu > ul > li:last-child > a {
    border-bottom: none;
}

#header .dropdown > ul > li > a:hover,
#header .submenu > ul > li > a:hover {
    background: #f8f9fa;
    color: #0d6efd !important;
    padding-right: 25px !important;
}

#header .dropdown > ul > li > a::after,
#header .submenu > ul > li > a::after {
    display: none;
}

#header .menu-toggle {
    display: none;
    order: 3 !important;
    background: transparent;
    border: 0;
    font-size: 24px;
    color: #0d6efd;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#header .menu-toggle:hover {
    transform: scale(1.1);
}

#header .menu-toggle.active i {
    transform: rotate(90deg);
}

/* Add padding to body to compensate for fixed header */
body {
    padding-top: 88px !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Overview Section */
.services-overview {
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: #fff;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.read-more {
    color: #0d6efd;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0b5ed7;
}

/* Why Choose Us Section */
.why-us {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 24px;
    color: #fff;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature p {
    color: #7f8c8d;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.author-info p {
    font-size: 14px;
    color: #7f8c8d;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(11, 94, 215, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0d6efd;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0d6efd;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: #0d6efd;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-contact p i {
    margin-right: 10px;
    color: #0d6efd;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-icons a i {
    color: #fff;
    font-size: 16px;
}

.social-icons a:hover {
    background-color: #0d6efd;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 14px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/page-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
}

/* Services Detailed Section */
.services-detailed {
    padding: 80px 0;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.service-content p {
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-features .feature {
    display: flex;
    align-items: center;
    text-align: left;
}

.service-features .feature i {
    color: #0d6efd;
    margin-right: 10px;
    font-size: 16px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #0d6efd;
}

.pricing-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    font-size: 20px;
}

.price .currency {
    font-size: 24px;
    vertical-align: top;
}

.price .amount {
    font-size: 48px;
    font-weight: 700;
}

.price .period {
    font-size: 16px;
    color: #bdc3c7;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

.pricing-features ul li i {
    margin-right: 10px;
}

.pricing-features ul li i.fa-check {
    color: #2ecc71;
}

.pricing-features ul li i.fa-times {
    color: #e74c3c;
}

.pricing-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.8;
}

.contact-details {
    margin-top: 30px;
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-details div i {
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-right: 15px;
}

.contact-details div p {
    margin-bottom: 0;
}

.contact-form h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .service-item {
        flex-direction: column;
    }

    .service-item:nth-child(even) {
        flex-direction: column;
    }

    .service-image,
    .service-content {
        flex: none;
        width: 100%;
    }

    .service-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 78px !important;
    }

    #header .header-content {
        justify-content: space-between !important;
        gap: 16px;
        min-height: 75px;
    }

    #header .logo {
        font-size: 1.8rem !important;
    }
    
    #header .custom-logo {
        max-height: 45px;
    }

    #header .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #header nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 16px 24px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(13, 110, 253, 0.1);
        display: none;
        z-index: 1000;
    }

    #header nav.active {
        display: flex;
    }

    #header nav > ul {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0;
        width: 100%;
    }

    #header nav > ul > li {
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #header nav > ul > li:last-child {
        border-bottom: none;
    }

    #header nav a {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0 !important;
        font-size: 1.05rem !important;
    }

    #header nav > ul > li > a::after {
        display: none;
    }

    /* Mobile Dropdown */
    #header .dropdown > ul,
    #header .submenu > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        display: none;
        background: #f8f9fa;
    }

    #header .dropdown.active > ul,
    #header .submenu.active > ul {
        display: block;
    }

    #header .dropdown > ul > li > a,
    #header .submenu > ul > li > a {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

    #header .dropdown > ul > li > a:hover,
    #header .submenu > ul > li > a:hover {
        padding-right: 20px !important;
    }

    html[dir="ltr"] #header nav a {
        text-align: left;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }
}

/* Blog Styles */
.blog-section {
    padding: 80px 0;
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.blog-meta span i {
    margin-right: 5px;
    color: #0d6efd;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    margin-bottom: 20px;
    color: #666;
}

.blog-content .read-more {
    color: #0d6efd;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.blog-content .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-content .read-more:hover i {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Testimonials Styles */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-image {
    flex: 0 0 100px;
    margin-right: 30px;
}

.client-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.client-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.client-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* FAQ Styles */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #eef2f7;
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: #2c3e50;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd;
}

.faq-answer {
    padding: 0 30px 20px;
    color: #666;
    line-height: 1.6;
}

/* Process Steps Styles */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Technologies Section */
.technologies-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-item i {
    font-size: 48px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.tech-item h4 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(11, 94, 215, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.portfolio-overlay .btn {
    background-color: #fff;
    color: #0d6efd;
}

/* LTR Support */
html[dir="ltr"] header .container {
    flex-direction: row;
}

html[dir="ltr"] .header-content {
    flex-direction: row;
}

html[dir="ltr"] .logo {
    order: 1;
}

html[dir="ltr"] nav {
    order: 2;
}

html[dir="ltr"] .menu-toggle {
    order: 3;
    margin-right: 0;
    margin-left: -8px;
}

html[dir="ltr"] nav ul li {
    margin-left: 0;
    margin-right: 0;
}

html[dir="ltr"] #header .dropdown i,
html[dir="ltr"] #header .submenu i {
    margin: 0 0 0 4px !important;
}

html[dir="ltr"] #header .dropdown > ul,
html[dir="ltr"] #header .submenu > ul {
    right: auto;
    left: 0;
}

/* RTL Support (Arabic) */
html[dir="rtl"] #header .logo {
    order: 3;
}

html[dir="rtl"] #header nav {
    order: 2;
}

html[dir="rtl"] #header .menu-toggle {
    order: 1;
    margin-right: 0;
    margin-left: -8px;
}

html[dir="rtl"] #header nav a {
    text-align: right;
}

html[dir="rtl"] #header .dropdown i,
html[dir="rtl"] #header .submenu i {
    margin: 0 4px 0 0 !important;
}

html[dir="rtl"] #header .dropdown > ul,
html[dir="rtl"] #header .submenu > ul {
    right: 0;
    left: auto;
}

html[dir="rtl"] #header .dropdown > ul > li > a:hover,
html[dir="rtl"] #header .submenu > ul > li > a:hover {
    padding-right: 20px !important;
    padding-left: 25px !important;
}

html[dir="ltr"] .footer-links,
html[dir="ltr"] .footer-services,
html[dir="ltr"] .footer-contact,
html[dir="ltr"] .blog-content,
html[dir="ltr"] .testimonial-content,
html[dir="ltr"] .client-info {
    text-align: left;
}

html[dir="ltr"] .footer-contact p i,
html[dir="ltr"] .blog-meta span i,
html[dir="ltr"] .service-features li i,
html[dir="ltr"] .faq-question h3 i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="ltr"] .blog-content .read-more i {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="ltr"] .blog-content .read-more:hover i {
    transform: translateX(-5px);
}

html[dir="ltr"] .client-image {
    margin-right: 0;
    margin-left: 30px;
}

html[dir="ltr"] .social-icons {
    justify-content: flex-start;
}

/* Responsive Styles for New Sections */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        flex-direction: column;
        text-align: center;
    }

    .client-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    html[dir="ltr"] .client-image {
        margin-left: 0;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-item i {
        font-size: 36px;
    }
}
