/* Custom CSS for Arabic Landing Page */

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f9fafb;
}

.font-cairo {
    font-family: 'Cairo', sans-serif;
}

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

/* Hero Image Transition */
#hero-image {
    transition: opacity 0.5s ease-in-out;
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Optimize touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-slide-in {
    animation: slideIn 1s ease-out;
}

/* Logo Animation */
.logo-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.1);
}

/* CTA Button Enhancement */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 80px;
    color: rgba(99, 102, 241, 0.1);
    font-family: Georgia, serif;
}

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

/* Star Rating */
.star-rating {
    display: inline-flex;
    gap: 4px;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Pulse Animation for Urgency */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Price Display */
.price-badge {
    position: relative;
    display: inline-block;
}

.price-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 2px;
    background: currentColor;
    transform: rotate(-15deg);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success Message Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success:not(.hidden) {
    animation: slideDown 0.5s ease;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Button Hover Effects */
button,
a.cta-button,
a[href^="#"] {
    transition: all 0.3s ease;
}

/* Card Shadows */
.shadow-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.shadow-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #contact {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-indigo-600 {
        background-color: #4338ca;
    }
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* Hide on desktop, show only on mobile */
@media (min-width: 769px) {
    .whatsapp-float {
        display: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 16px;
        right: 16px;
    }
}

/* Product Gallery Items */
.product-gallery-item {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.product-gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.product-gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

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

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

/* Desktop Gallery Optimization */
@media (min-width: 769px) {
    /* Hero Image Gallery */
    #slideshow-container {
        max-width: 700px;
        margin: 0 auto;
    }
    
    #hero-image {
        max-height: 500px !important;
        object-fit: contain;
    }
    
    /* Product Gallery Section */
    #testimonials .grid-cols-2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-gallery-item img {
        height: 280px;
        object-fit: cover;
    }
    
    .product-gallery-item {
        border-radius: 12px;
    }
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-button {
    width: 100%;
    background: #fbbf24;
    color: #1f2937;
    font-weight: bold;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.sticky-cta-button:active {
    transform: scale(0.98);
}

/* Mobile Navigation Optimization */
@media (max-width: 768px) {
    nav {
        padding: 8px 0;
    }
    
    nav .container {
        padding: 0 12px;
    }
}

/* Image Loading Optimization */
img {
    loading: lazy;
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Review Stars */
.review-stars {
    color: #fbbf24;
    font-size: 16px;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
