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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
}

/* Arabic Font Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 400;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .welcome-text h1 {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 700;
}

[dir="rtl"] .section h2 {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .service-card h3, [dir="rtl"] .project-content h3 {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .logo {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 700;
}

[dir="rtl"] .nav-menu a {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 500;
}

[dir="rtl"] .cta-button {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .tech-tag {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 500;
}

[dir="rtl"] .current-price, [dir="rtl"] .old-price {
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    font-weight: 600;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.img-logo{
    width: 200px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3b82f6;
    text-decoration: none;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #3b82f6;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid #3b82f6;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #3b82f6;
    transition: 0.3s;
}

/* Welcome Section */
.welcome {
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%233b82f6" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.welcome-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text {
    color: #fff;
}

.welcome-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.welcome-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.welcome-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #3b82f6;
}

.projects h2 {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

/* Services Section */
.services {
    background: #111;
    color: #fff;
}

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

.service-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.service-card h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

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

/* Projects Section */
.projects {
    background: #000;
    color: #fff;
    width: 100%;
    max-width: none;
    padding: 5rem 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.project-image {
    height: 160px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    overflow: hidden;
}

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

.project-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: #3b82f6;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.project-content p {
    opacity: 0.9;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

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

.footer-section h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding-top: 1rem;
    opacity: 0.7;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pagination li {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.15);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 28px;
}

.pagination .page-link:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

.pagination .active .page-link {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.pagination .disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: 32px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-lang:hover {
    background: rgba(59, 130, 246, 0.2);
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Arabic Typography Enhancements */
[dir="rtl"] .welcome-text p {
    line-height: 1.8;
    font-size: 1.1rem;
}

[dir="rtl"] .service-card p, [dir="rtl"] .project-content p {
    line-height: 1.7;
    font-size: 0.95rem;
}

[dir="rtl"] .welcome-text h1 {
    line-height: 1.2;
    letter-spacing: -0.5px;
}

[dir="rtl"] .section h2 {
    line-height: 1.3;
    letter-spacing: -0.3px;
}

[dir="rtl"] .service-card h3, [dir="rtl"] .project-content h3 {
    line-height: 1.4;
    letter-spacing: -0.2px;
}

/* Arabic Button and Input Adjustments */
[dir="rtl"] .cta-button {
    padding: 1rem 2.5rem;
    letter-spacing: 0.5px;
}

[dir="rtl"] .search-input {
    text-align: right;
    padding-right: 1rem;
    padding-left: 1rem;
}

[dir="rtl"] .search-input::placeholder {
    text-align: right;
}

/* Arabic Navigation Adjustments */
[dir="rtl"] .nav-menu {
    gap: 1.5rem;
}

[dir="rtl"] .nav-menu a {
    letter-spacing: 0.3px;
}

/* Project Price Styles */
.project-price {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.1rem;
}


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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 180px;
    }

    .welcome-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    [dir="rtl"] .welcome-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .section h2 {
        font-size: 2rem;
    }
    
    [dir="rtl"] .section h2 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        padding: 0 1rem;
    }
    
    .projects h2 {
        padding: 0 1rem;
    }
    
    .pagination-wrapper {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .img-logo{
    width: 100px;
}

}
