@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #c0a251; /* Gold */
    --text-color: #1A202C;
    --bg-light: #F7F9FC;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* Custom Shadows from Aqar */
.card-shadow {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200; /* Increased to be above modal (z-100) */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: white;
    color: #1A202C;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 90%;
    animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-right: 4px solid var(--primary-color);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
}

/* Infinite Scroll Marquee */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    direction: ltr;
}

.marquee-container .flex-none {
    direction: rtl;
}

.animate-scroll {
    animation: scroll 60s linear infinite;
    width: max-content;
}

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

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

/* Animations for Step Transitions */
.fade-in-right {
    animation: fadeInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out-left {
    animation: fadeOutLeft 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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