@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #0ea5e9;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #020617; /* slate-950 */
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9; /* sky-500 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8; /* sky-400 */
}

/* Page Loader */
#page-loader {
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background Pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Card Hover Elevation */
.hover-elevate {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-elevate:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.1), 0 8px 10px -6px rgba(14, 165, 233, 0.1);
}

/* Text Gradients */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #38bdf8, #67e8f9);
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Pulse glow animation */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(14, 165, 233, 0.5); }
    50% { opacity: .7; box-shadow: 0 0 5px rgba(14, 165, 233, 0.2); }
}

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

/* Print Styles */
@media print {
    #main-nav, 
    footer, 
    #page-loader,
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
