/* Desktop vs Mobile Menu */
.desktop-menu { display: block; }
.mobile-menu { display: none; }

@media (max-width: 991px) {
    .desktop-menu { display: none !important; }
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #23272f;
        z-index: 99999;
        overflow-y: auto;
        padding-top: 80px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }
    .mobile-menu.active {
        display: block;
    }
    body.menu-open {
        overflow: hidden;
    }
}
@media (max-width: 991px) {
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        padding: 0;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: #23272f;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 99999;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-toggle {
        display: flex;
    }
    .navbar .container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }
}
/* Dark Theme Overrides */
/* Add dark theme styles */
body {
    background-color: #181818;
    color: #e0e0e0;
}



.hero-overlay {
    background: rgba(18, 18, 18, 0.8);
}

.hero-description {
    color: #e0e0e0;
}


.stat-number {
    color: #9370DB;
}

.stat-label {
    color: #aaa;
}

.about-preview {
    background: #1e1e1e;
}



.experience-years {
    color: #9370DB;
}

.experience-text {
    color: #aaa;
}

.skill-item {
    background: #222;
}

.section-title {
    color: #ffffff;
}

.section-description {
    color: #aaa;
}

/* Update other elements */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p {
    color: #e0e0e0;
}

.navbar {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    color: #ffffff;
}

.nav-brand i {
    color: #9370DB;
}

.nav-link {
    color: #e0e0e0;
}

.nav-link:hover,
.nav-link.active {
    color: #9370DB;
}

.nav-link::after {
    background: #9370DB;
}

.nav-toggle .bar {
    background: #e0e0e0;
}



.hero-role {
    color: #aaa;
}

.btn-outline {
    color: #9370DB;
    border: 2px solid #9370DB;
}

.btn-outline:hover {
    background: #9370DB;
}

/* Update service cards */
.service-card {
    background: #222;
    border: 1px solid #333;
}

.service-icon {
    background: linear-gradient(135deg, #9370DB 0%, #B19CD9 100%);
}

.service-title {
    color: #ffffff;
}

.service-description {
    color: #e0e0e0;
}

.service-link {
    color: #9370DB;
}

/* Update logo slider */
.logo-slider {
    background: #1e1e1e;
}

.logo-slide {
    background: #222;
}

/* Update project cards */
.project-card {
    background: #222;
}

/* Update other sections */
.logo-slider, 
.about-preview,
.latest-blogs {
    background: #1e1e1e;
}

/* Dark Theme Overrides */
/* .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background set by dark theme above
} */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* background set by dark theme above */
}
.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    /* color set by dark theme above */
}
.stat-label {
    font-size: 0.9rem;
    /* color set by dark theme above */
}
.about-preview {
    padding: 80px 0;
    /* background set by dark theme above */
}
.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.experience-years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    /* color set by dark theme above */
}
.experience-text {
    font-size: 0.9rem;
    /* color set by dark theme above */
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* background set by dark theme above */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* color set by dark theme above */
}
.section-description {
    font-size: 1.1rem;
    /* color set by dark theme above */
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #aca8a8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #ffc800;
    color: #181818;

}

.btn-primary:hover {
    transform: translateY(-2px);

}

.btn-outline {
   background: transparent;
    color: #ffc800;
    border: 2px solid #ffc800;
}

.btn-outline:hover {
    background: #ffc800;
    color: #181818;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
  
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
   /* background: rgba(255, 255, 255, 0.98); */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    
}

.nav-brand i {
    color: #667eea;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffc800;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffc800;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    /* position: relative; */
    padding-top: 15vh;

    align-items: center;
    overflow: hidden;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text {
    padding-bottom: 10vh;
}
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.hero-greeting {
    font-size: 1.2rem;
    color: #aca8a8;
    font-weight: 500;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffc800 !important;
    background-clip: text;
    padding-bottom: 1rem;
}

.hero-role {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #aca8a8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-container {
    /* position: relative; */
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 400px;
    height: 600px;
    object-fit: cover;
}



.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #181818;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;

}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-preview-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}



.experience-years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.experience-text {
    font-size: 0.9rem;
    color: #666;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-skills {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #a49c90;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-item i, 
.skill-item span {
    color: #1e1e1e;
    padding: 0 10px;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffc800;
    margin-top: 0;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #667eea;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

.services-cta {
    text-align: center;
}

/* Logo Slider */
.logo-slider {
    padding: 60px 0;
    overflow: hidden;
}

.logo-slider .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    animation: slide 30s linear infinite;
    gap: 3rem;
}

.logo-slide {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.logo-slide:hover .logo-img {
    filter: grayscale(0%);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Projects Grid */
.recent-projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    /*height: 250px;*/
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffc8008c;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.project-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
}

.projects-cta {
    text-align: center;
}

/* Blog Grid */
.latest-blogs {
    padding: 80px 0;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.date-month {
    font-size: 0.8rem;
    color: #666;
}

.blog-content {
    padding: .5rem;
}
.blog-title {
    margin-top: 0;
}
.blog-title a {
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-title a:hover {
    color: #ffc800;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    color: #ffc800;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
}

.blogs-cta {
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    margin-top: 0;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #282828;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: #667eea;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
  width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc800;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffc800;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    margin-top: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.contact-item i {
    color: #ffc800;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #667eea;
}

/* Responsive Design */

/* About Page Styles */
.about-hero {
    padding: 120px 0 80px;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffc800;
    margin-top: 0;
}

.about-subtitle {
    font-size: 1rem;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-hero-img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 0px;
    background: #ffc800;
    padding: 1rem 1.5rem;
    border-radius: 15px;
}

.badge-text {
    font-weight: 600;
    color: #333;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background: #1e1e1e;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    text-align: center;
}

.skill-category {
    background: #2a2a2a;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skill-category-title {
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #aca8a8;
}

.skill-category-title i {
    color: #667eea;
    font-size: 1.8rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
}

.skill-name {
    min-width: 140px;
    font-weight: 500;
    color: #333;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.skill-percentage {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* Experience Timeline */
.experience-section {
    padding: 80px 0 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 120px;
    text-align: center;
    font-weight: 600;
    color: #ffc800;
    background: #333;
    padding: 0.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: #333;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 2rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #aca8a8;
    margin-top: 0;
}

.timeline-company {
    color: #ffc800;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* Achievements Section */
.achievements-section {
    padding: 80px 0;
    background: #1e1e1e;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.achievement-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.achievement-description {
    color: #666;
    line-height: 1.6;
}

/* Services Page Styles */
.services-hero {
    padding: 70px 0 40px 0;
}

.services-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.services-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.services-detailed {
    padding: 80px 0;
}

.service-detailed {
    margin-bottom: 6rem;
}

.service-detailed-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detailed-content.reverse {
    direction: rtl;
}

.service-detailed-content.reverse > * {
    direction: ltr;
}

.service-detailed-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-detailed-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-detailed-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;

    color: #666;
}

.features-list i {
    color: #667eea;
    font-size: 0.9rem;
}

.service-detailed-image {
    display: flex;
    justify-content: center;
}

.service-img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Process Section */
.process-section {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    background: #a49c90;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1e1e1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.step-description {
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-currency {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features .features-list {
    text-align: left;
}

.pricing-features  {
    margin-bottom: 1rem;
}

/* Blog style */    
.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    color: var(--primary-color);
    position: relative;
    margin-top: 0;
}
.widget-title:after {
        content: '';
        position: absolute;
        bottom: -1px;
        right: 0;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
    }
/* أحدث المقالات */
    .recent-posts-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .recent-posts-list li {
        padding: 10px;
        background: #333;
        border-radius: 10px;
    }

    .recent-posts-list li:last-child {
        border-bottom: none;
    }

    .recent-post {
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--text-color);
        text-decoration: none;
    }

    .recent-post-content {
        flex: 1;
    }

    .recent-post-title {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 5px;
        line-height: 1.4;
        transition: all 0.3s ease;
    }

    .recent-post:hover .recent-post-title {
        color: var(--primary-color);
    }

    .recent-post-date {
        font-size: 12px;
        color: #777;
        display: flex;
        align-items: center;
        gap: 5px;
    }

.page-title,
.breadcrumb {
    text-align: center;
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #222;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .hero-text {
        padding: 0;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-img {
        display: none;
    }
    .hero {
        padding-bottom: 10vh;
    }
    .about-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .projects-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-hero-img {
        width: 300px;
        height: 400px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-date {
        position: absolute;
        width: 80px;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .service-detailed-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detailed-content.reverse {
        direction: ltr;
    }
    
    .service-detailed-title {
        font-size: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    .about-preview-text {
        text-align: center;
    }
    .footer-content {
        text-align: center;
    }
    .social-links, .contact-item {
        justify-content: center;
    }
    .footer-links {
        padding: 0;
    }
    .footer-bottom-links {
        margin: 0!important;
    }
    .footer-brand img {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-img {
        width: 250px;
        height: 390px;
    }
    
    .service-card,
    .project-card,
    .blog-card {
        margin: 0 10px;
    }
    
    .projects-grid,
    .blogs-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .logo-slide {
        width: 120px;
        height: 60px;
    }
    
    .slider-track {
        gap: 2rem;
    }
    
    .about-hero-img {
        width: 250px;
        height: 350px;
    }
    
    .skill-name {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .service-detailed-title {
        font-size: 1.8rem;
    }
}

/* RTL Specific Styles */
.timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
}

.pricing-badge {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    text-align: right;
}

.form-group label {
    text-align: right;
}

.skill-percentage {
    text-align: left;
}

.nav-toggle {
    margin-left: 0;
    margin-right: auto;
}

.footer-bottom-links {
    margin-left: 0;
    margin-right: auto;
}

/* Fix for Font Awesome icons in RTL */
.fa, .far, .fal {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Fix for input placeholders in RTL */
::placeholder {
    text-align: right;
}

/* Fix for list items in RTL */
ul, ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

/* Fix for blockquotes in RTL */
blockquote {
    border-left: none;
    border-right: 4px solid #667eea;
    padding-left: 0;
    padding-right: 1rem;
}