/* Custom CSS for Welcome Page - Only animations and styles not available in Tailwind */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Font Cairo for Arabic */
body {
    font-family: 'Cairo', sans-serif;
}

/* Navbar scrolled state */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    33% {
        transform: translateY(-30px) translateX(20px);
    }

    66% {
        transform: translateY(30px) translateX(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delayed-2 {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Slow Spin Animation */
@keyframes spin-slow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease forwards;
}

/* Section Reveal Animation */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll To Top Button */
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: 0;
        width: 100vw;
        min-height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 10;
        overflow-y: auto;
        display: flex !important;
    }

    .dark .nav-links {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

/* Gradient Text Support for older browsers */
.gradient-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}