/* Base Styles & Utility classes */
html {
    scroll-behavior: smooth;
}

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

/* Custom Selection */
::selection {
    background-color: #3b82f6;
    /* bg-blue-500 */
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f8fafc;
    /* bg-slate-50 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    /* bg-slate-300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    /* bg-slate-400 */
}

/* Clip Path for Hero Background */
.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

/* Animation Classes Used in Script Observer */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Transition Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Mobile Menu Transitions */
.mobile-menu-transition {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.mobile-menu-transition.open {
    max-height: 500px;
    /* arbitrary max height to allow smooth expanding */
    opacity: 1;
}

/* Pulse Animation using pure CSS for Hero */
@keyframes custom-pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: custom-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media print {

    body,
    html {
        overflow: visible !important;
        height: auto !important;
    }

    .print\:hidden {
        display: none !important;
    }

    .text-transparent {
        color: #0f172a !important;
        /* text-slate-900 */
        -webkit-text-fill-color: #0f172a !important;
        background: none !important;
    }

    /* Force all animations to be visible when printing */
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .mobile-menu-transition {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}