@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Prevent text selection and copying */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Allow text selection for specific elements if needed */
.allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Hide elements when DevTools is detected */
.devtools-hidden {
    display: none !important;
}

/* Prevent images from being dragged */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
}

/* Allow pointer events for interactive images */
img.interactive {
    pointer-events: auto !important;
}


.font-tajawal {
    font-family: 'Tajawal', sans-serif;
}

.text-gradient-primary {
    @apply text-transparent bg-clip-text bg-gradient-to-r from-[#4A90E2] to-[#60A5FA];
}

.text-gradient-secondary {
    @apply text-transparent bg-clip-text bg-gradient-to-r from-[#60A5FA] to-[#81A8F0];
}

.text-gradient-tertiary {
    @apply text-transparent bg-clip-text bg-gradient-to-r from-[#81A8F0] to-[#4A90E2];
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, 20px);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(0, 30px) rotate(5deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delay-2 {
    animation: float 9s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

.animate-scroll-down {
    animation: scroll-down 2s ease-in-out infinite;
}

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

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

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

.animate-gradient-x {
    animation: gradient-x 15s ease infinite;
    background-size: 200% auto;
}


@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }

    50% {
        border-radius: 40% 60% 30% 70%/60% 30% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 70% 30%/40% 70% 30% 60%;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    15% {
        transform: translateY(0);
        opacity: 1;
    }

    85% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.animate-morph {
    animation: morph 15s linear infinite;
}

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

.animate-gradient-fast {
    background-size: 200% auto;
    animation: gradient 4s linear infinite;
}

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

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

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

.shadow-neon {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1),
        0 0 40px rgba(34, 211, 238, 0.1);
}

.delay-1000 {
    animation-delay: 1s;
}



[x-cloak] {
    display: none !important;
}

body {
    font-family: 'Tajawal', sans-serif;
}

.gradient-text {
    background: linear-gradient(to right, #6366f1, #4f46e5, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
    background-size: 200% auto;
}

.hero-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #8b5cf6 100%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover {
    transition: all 0.3s ease;
}

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

.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}

.dark .nav-blur {
    background-color: rgba(17, 24, 39, 0.8);
}

/* WhatsApp Button Custom Styles */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-glow {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.whatsapp-glow:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3);
}

/* Pulse animation for notification badge */
@keyframes pulse-red {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.notification-pulse {
    animation: pulse-red 2s infinite;
}

/* Enhanced hover effects */
.whatsapp-float:hover .whatsapp-glow {
    animation: pulse-green 1s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
    }
}

/* Product card text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product image hover effects */
.product-image-hover {
    transition: transform 0.5s ease;
}

.product-image-hover:hover {
    transform: scale(1.1);
}

/* Category badge animation */
.category-badge {
    animation: slideIn 0.5s ease-out;
}

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

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

/* Portfolio Slider Styles */
.portfolio-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

/* Slider Navigation Arrows */
.slider-arrow {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.slider-arrow:hover {
    background: #4A90E2;
    transform: scale(1.1);
}

/* Project Card Hover Effects */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
}

/* Slider Indicators */
.slider-indicator {
    transition: all 0.3s ease;
}

.slider-indicator:hover {
    transform: scale(1.25);
}

/* Text truncation for project cards */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Swiper Custom Styles */
.projects-swiper {
    padding: 0 20px;
}

.projects-swiper .swiper-slide {
    height: auto;
}

.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #4A90E2;
    transition: all 0.3s ease;
}

.projects-swiper .swiper-button-next:hover,
.projects-swiper .swiper-button-prev:hover {
    background: #4A90E2;
    color: white;
    transform: scale(1.1);
}

.projects-swiper .swiper-button-next::after,
.projects-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.projects-swiper .swiper-pagination {
    bottom: -40px;
}

.projects-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #D1D5DB;
    opacity: 1;
    transition: all 0.3s ease;
}

.projects-swiper .swiper-pagination-bullet-active {
    background: #4A90E2;
    transform: scale(1.2);
}

/* RTL Support for Swiper */
[dir="rtl"] .projects-swiper .swiper-button-next {
    right: auto;
    left: 10px;
}

[dir="rtl"] .projects-swiper .swiper-button-prev {
    left: auto;
    right: 10px;
}

/* Responsive adjustments */
.projects-swiper {
    padding: 0 10px;
}

.projects-swiper .swiper-button-next,
.projects-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
}

.projects-swiper .swiper-button-next::after,
.projects-swiper .swiper-button-prev::after {
    font-size: 14px;
}

/* Testimonials Slider Styles */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    background: rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 14px;
    color: #4A90E2;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: rgba(74, 144, 226, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #4A90E2;
    transform: scale(1.2);
}

.partner-logo-container {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
}

.partner-logo-container:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    max-height: 64px;
    width: auto;
    transition: all 0.3s ease;
    filter: none;
}

.partner-logo.dark-filter {
    filter: brightness(0) contrast(200%) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-logo.light-filter {
    filter: brightness(0) saturate(100%) contrast(300%) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.partner-logo.enhanced-filter {
    filter: brightness(1) contrast(100%) saturate(100%) drop-shadow(0 5px 5px rgba(0, 0, 0, 1));
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Loading state */
.partner-logo-loading {
    opacity: 0.7;
    filter: blur(1px);
}


/* Preloader Styles */
#preloader {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dark #preloader {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Preloader Logo Animation */
@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

#preloader .animate-spin {
    animation: logoSpin 3s linear infinite;
}

/* Preloader Progress Bar Animation */
@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
    }
}

#progress-bar {
    animation: progressGlow 2s ease-in-out infinite;
}

/* Preloader Text Animation */
@keyframes textFade {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

#preloader h3 {
    animation: textFade 2s ease-in-out infinite;
}

/* Preloader Particles Animation */
@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 0.8;
    }
}

#preloader .absolute.-top-2.-right-2 {
    animation: particleFloat 2s ease-in-out infinite;
}

#preloader .absolute.-bottom-2.-left-2 {
    animation: particleFloat 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

#preloader .absolute.-top-1.-left-1 {
    animation: particleFloat 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Preloader Loading Dots Animation */
@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

#preloader .space-x-2>div {
    animation: dotPulse 1.5s ease-in-out infinite;
}

#preloader .space-x-2>div:nth-child(1) {
    animation-delay: 0s;
}

#preloader .space-x-2>div:nth-child(2) {
    animation-delay: 0.2s;
}

#preloader .space-x-2>div:nth-child(3) {
    animation-delay: 0.4s;
}

/* Preloader Fade Out Animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

#preloader.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Responsive Preloader */
@media (max-width: 768px) {
    #preloader .relative.w-24.h-24 {
        width: 5rem;
        height: 5rem;
    }

    #preloader .w-48 {
        width: 12rem;
    }

    #preloader h3 {
        font-size: 1.125rem;
    }

    #preloader p {
        font-size: 0.875rem;
    }
}
