/* RAHIQ Academy - Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* RTL support */
[dir="rtl"] body {
    font-family: 'Tajawal', system-ui, sans-serif;
}

/* Container */
.container {
    max-width: 1280px;
}

/* Focus rings - accessibility */
*:focus-visible {
    outline: 2px solid #0F6E56;
    outline-offset: 2px;
}

/* Smooth animations */
* {
    transition-property: color, background-color, border-color, opacity, transform, box-shadow;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero pattern overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 20% 80%, rgba(15, 110, 86, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(250, 199, 117, 0.08) 0%, transparent 50%);
}

/* Card hover effect */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 300ms ease-in-out;
    max-height: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 500px;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tabler icons inline alignment */
.ti {
    display: inline-flex;
    vertical-align: middle;
    line-height: 1;
}

/* Hero gradient enhancement */
.bg-gradient-to-br {
    position: relative;
}

/* Float WhatsApp button bounce */
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.fixed.bottom-6 {
    animation: gentle-bounce 3s ease-in-out infinite;
}
.fixed.bottom-6:hover {
    animation: none;
}
