/* Main CSS File */

/* Custom RTL direction overrides */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* Custom spacing for RTL UI */
.space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Primary color variables */
:root {
    --primary-color: #ff9857;
    --primary-dark: #e87a38;
    --primary-light: #ffc2a3;
}

/* Enhanced navbar styles */
.navbar-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
    border-radius: 1px;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active::after {
    width: 100%;
}

.navbar-link.active {
    font-weight: 700;
}

/* Add a subtle hover effect to the navbar */
nav {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

/* Glassmorphism effects */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Logo hover effect */
.logo-animation img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-animation:hover img {
    transform: scale(1.08);
}

/* Button hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Custom components */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero section styles */
.hero {
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, rgba(255, 152, 87, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--primary-light);
    opacity: 0.1;
    filter: blur(40px);
    z-index: 0;
}

/* تحسينات جديدة للعنوان الرئيسي */
.hero-main-title {
    position: relative;
    z-index: 1;
}

.hero-main-title span:first-child {
    font-weight: 900;
    background: linear-gradient(to left, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    text-shadow: 1px 1px 1px rgba(255, 152, 87, 0.2);
    position: relative;
    display: inline-block;
}

.hero-main-title span:nth-child(2) {
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.5px;
}

.hero-main-title span:last-child {
    font-weight: 700;
    color: #2563eb;
}

/* تنسيق عناصر الميزات */
.feature-item {
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 152, 87, 0.2);
    transform: translateX(-3px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 152, 87, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-left: 0.5rem;
    color: var(--primary-color);
}

/* أزرار الدعوة للعمل */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(255, 152, 87, 0.15);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 152, 87, 0.2);
}

.cta-button.primary::before {
    background-color: var(--primary-dark);
}

.cta-button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cta-button.secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 152, 87, 0.2);
}

.cta-button.secondary::before {
    background-color: var(--primary-color);
}

.cta-button:hover::before {
    width: 100%;
}

/* تنسيقات صورة الهيرو */
.hero img {
    transition: transform 0.5s ease;
}

.hero .md\:w-1\/2:hover img {
    transform: scale(1.02);
}

/* عناصر الرسوم المتحركة */
@keyframes float {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes float-delay-1 {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-8px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes float-delay-2 {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-6px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes float-delay-3 {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-8px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes float-delay-4 {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
    will-change: transform;
}

.animate-float-delay-1 {
    animation: float-delay-1 4.5s ease-in-out infinite;
    animation-delay: 0.3s;
    will-change: transform;
}

.animate-float-delay-2 {
    animation: float-delay-2 5s ease-in-out infinite;
    animation-delay: 0.6s;
    will-change: transform;
}

.animate-float-delay-3 {
    animation: float-delay-3 5.5s ease-in-out infinite;
    animation-delay: 0.9s;
    will-change: transform;
}

.animate-float-delay-4 {
    animation: float-delay-4 6s ease-in-out infinite;
    animation-delay: 1.2s;
    will-change: transform;
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
    will-change: transform;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
    will-change: transform;
}

/* Code line styling */
.code-line {
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
}

/* Card styles */
.service-card {
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Enhanced pricing card styles */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

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

.pricing-card .bg-white {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.pricing-card img {
    transition: transform 0.5s ease;
    max-height: 130px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.pricing-card:hover img {
    transform: scale(1.05) rotate(3deg);
}

.pricing-card h3 {
    position: relative;
    display: inline-block;
}

.pricing-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.pricing-card:hover h3::after {
    width: 100%;
}

.pricing-card .flex-shrink-0 {
    transition: all 0.3s ease;
}

.pricing-card:hover .flex-shrink-0 {
    background-color: var(--primary-color);
    color: white;
}

.pricing-card a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.pricing-card:hover a::before {
    left: 100%;
}

/* Custom middle card styles */
.pricing-card.group.relative.transform.md\:scale-105.md\:-translate-y-2 {
    z-index: 20;
}

.pricing-card.group.relative.transform.md\:scale-105.md\:-translate-y-2::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-color), #3b82f6, var(--primary-color));
    border-radius: 18px;
    z-index: 5;
    opacity: 0.6;
    filter: blur(5px);
    transition: opacity 0.4s ease;
}

.pricing-card.group.relative.transform.md\:scale-105.md\:-translate-y-2:hover::before {
    opacity: 0.8;
}

/* Custom badge animation */
.pricing-card .absolute.-top-5.-right-4.z-20 span {
    animation: badgePulse 2s infinite alternate;
    position: relative;
    box-shadow: 0 0 15px 5px rgba(255, 152, 87, 0.3);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.pricing-card .absolute.-top-5.-right-4.z-20::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.4;
        filter: blur(5px);
    }
    100% {
        opacity: 0.7;
        filter: blur(10px);
    }
}

.pricing-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-body {
    padding: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pricing-feature svg {
    color: var(--primary-color);
    margin-left: 0.75rem;
}

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid #eaeaea;
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding-top: 1rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Contact form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
}

.contact-form textarea {
    min-height: 150px;
}

/* Gallery styles */
.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Price tag styling */
.price-tag {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    padding: 5px 20px;
    background: linear-gradient(135deg, rgba(255, 152, 87, 0.1) 0%, rgba(255, 152, 87, 0.2) 100%);
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(255, 152, 87, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.price-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.pricing-card:hover .price-tag {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 152, 87, 0.2);
    background: linear-gradient(135deg, rgba(255, 152, 87, 0.15) 0%, rgba(255, 152, 87, 0.3) 100%);
}

.price-tag-featured {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    padding: 5px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 152, 87, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.price-tag-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #fff, transparent);
    opacity: 0.3;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.pricing-card:hover .price-tag-featured {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 152, 87, 0.4);
}

/* تأثيرات الظهور التدريجي */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeInRight 0.8s ease-in-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInRight 0.8s ease-in-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* تأثيرات عند مرور المؤشر */
.hero-main-title span {
    display: inline-block;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-main-title span:hover {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-main-title span:first-child:hover {
    background: linear-gradient(to right, var(--primary-color), #fd7e14, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
} 