/* 
 * Karkea Corporate Site - Custom Styles
 * Most styles are handled by Tailwind CSS classes in HTML.
 * This file contains specific animations and advanced styling.
 */

@layer utilities {
    .border-text {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
        color: transparent;
    }
}

/* Base custom selection */
::selection {
    background-color: #ffffff;
    color: #0a0a0a;
}

::-moz-selection {
    background-color: #ffffff;
    color: #0a0a0a;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Animations */
@keyframes bounceSlow {

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

    50% {
        transform: translateY(10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

/* Fade In Up Animation for Intersection Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger menu styles */
#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}