/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e3382f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c02e26;
}

/* Base Styles */
body {
    font-family: 'Tajawal', sans-serif;
}

/* Scroll Reveal Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Grid Items */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Glassmorphism for Navbar when scrolled */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-scrolled a {
    color: #1a1a1a;
}

.nav-scrolled .text-white {
    color: #1a1a1a !important;
}

/* Dark Mode Nav Overrides */
.dark .nav-scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
}

.dark .nav-scrolled a {
    color: #ffffff;
}

.dark .nav-scrolled .text-white {
    color: #ffffff !important;
}

.dark #navbar img {
    filter: brightness(0) invert(1);
}

.nav-scrolled .bg-primary {
    background-color: #e3382f !important;
    color: white !important;
}

.clip-path-polygon {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.dir-ltr {
    direction: ltr;
}