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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Outfit', sans-serif;
}

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

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #B9FF66 0%, #FFFFFF 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D0FF88 0%, #FFFFFF 100%);
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #B9FF66;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #B9FF66 0%, #FFFFFF 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* RTL Support for nav-link */
[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

/* Language Toggle */
.lang-toggle {
    cursor: pointer;
}

/* Particles Canvas */
#particlesCanvas {
    width: 100%;
    height: 100%;
}

/* Section Spacing */
section {
    position: relative;
}

/* Service Cards */
.service-card {
    cursor: pointer;
}

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

/* Squad Accordion */
.squad-header {
    cursor: pointer;
}

.squad-arrow {
    transition: transform 0.3s ease;
}

.squad-item.active .squad-arrow {
    transform: rotate(180deg);
}

.squad-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 255, 102, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

/* Service Icons Animation */
.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(185, 255, 102, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(185, 255, 102, 0.5);
    transform: translateY(-5px);
}

/* Client Logos */
.client-logo {
    filter: grayscale(100%) brightness(0.5);
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Blog Cards */
.blog-card {
    background: #1A1A1A;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-card:hover {
    border-color: #B9FF66;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(185, 255, 102, 0.2);
}

.blog-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Contact Form */
.contact-input {
    background: #1A1A1A;
    border: 2px solid rgba(185, 255, 102, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #B9FF66;
    box-shadow: 0 0 0 4px rgba(185, 255, 102, 0.1);
}

.contact-input::placeholder {
    color: #666;
}

textarea.contact-input {
    min-height: 150px;
    resize: vertical;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #B9FF66 0%, #FFFFFF 100%);
}

[dir="rtl"] .timeline-item::before {
    left: auto;
    right: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B9FF66 0%, #FFFFFF 100%);
    box-shadow: 0 0 0 4px #111111;
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: -7px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #B9FF66 0%, #FFFFFF 50%, #B9FF66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #111111, #1A1A1A, #B9FF6615, #FFFFFF15);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(185, 255, 102, 0.5);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 1s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Up Animation */
.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #B9FF66 0%, #FFFFFF 100%);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(185, 255, 102, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #B9FF66;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(185, 255, 102, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 2rem;
    }

    [dir="rtl"] .timeline-item {
        padding-right: 2rem;
    }
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #B9FF66 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(185, 255, 102, 0.1);
    border: 1px solid rgba(185, 255, 102, 0.3);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #B9FF66 0%, #FFFFFF 100%);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #B9FF66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[dir="rtl"] #backToTop {
    right: auto;
    left: 2rem;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(185, 255, 102, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1A1A1A;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}