/* Custom CSS for InfocomSystem */

/* Animation keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Animation delays */
.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

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

/* Text gradient utilities */
.text-gradient {
    background: linear-gradient(135deg, #ea580c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadow utilities */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Backdrop blur fallback */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""],
img:not([src]) {
    opacity: 0;
}

/* Hover effects for cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Brand logo hover effects */
.brand-logo {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Navigation underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    transition: width 0.3s ease;
}

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

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #ea580c, #f97316);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 641px) {
    .text-responsive-xl {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .text-responsive-xl {
        font-size: 2.5rem;
        line-height: 3rem;
    }
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ea580c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Pulse animation for decorative elements */
.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

/* Text selection */
::selection {
    background-color: #ea580c;
    color: white;
}

::-moz-selection {
    background-color: #ea580c;
    color: white;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-muted-foreground {
        color: #000 !important;
    }
    
    .border-border {
        border-color: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-scroll {
        animation: none !important;
    }
}

/* RTL (Right-to-Left) support for Arabic */
.rtl {
    direction: rtl;
}

.rtl .flex {
    flex-direction: row-reverse;
}

.rtl .text-left {
    text-align: right;
}

.rtl .text-right {
    text-align: left;
}

.rtl .ml-auto {
    margin-left: 0;
    margin-right: auto;
}

.rtl .mr-auto {
    margin-right: 0;
    margin-left: auto;
}

.rtl .pl-4 {
    padding-left: 0;
    padding-right: 1rem;
}

.rtl .pr-4 {
    padding-right: 0;
    padding-left: 1rem;
}

/* RTL specific navigation adjustments */
.rtl .nav-link::after {
    left: auto;
    right: 0;
}

/* RTL dropdown positioning */
.rtl #language-dropdown {
    left: 0;
    right: auto;
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}
