@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Oswald', sans-serif;
    background-color: #020617;
    /* slate-950 */
    color: #f8fafc;
    overflow-x: hidden;
    letter-spacing: 0.025em;
}

/* Static Alive Gradient (No Animation) */
.alive-text {
    background: linear-gradient(to right, #a3e635, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-transform: uppercase;
}

.top {
    object-position: top;
}

.alive-btn {
    background: linear-gradient(90deg, #a3e635 0%, #22d3ee 100%);
    color: #020617;
    transition: transform 0.2s ease, filter 0.2s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alive-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px -10px rgba(34, 211, 238, 0.5);
}

/* Consistent Section Styling */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a3e635, #22d3ee);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #84cc16, #06b6d4);
}

/* Alive Border Animation/Style */
.alive-border-hover {
    position: relative;
    z-index: 1;
}

.alive-border-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, #a3e635, #22d3ee);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.alive-border-hover:hover::before {
    opacity: 1;
}

/* For cards that need the background inside to mask the border center */
.alive-border-hover>* {
    /* Ensure content sits on top */
    position: relative;
    z-index: 2;
}

/* Ensure the card background covers the inner part of the gradient border */
.glass-panel,
.bg-slate-900 {
    background-clip: padding-box;
}

.alive-bg-hover:hover {
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    border-color: rgba(34, 211, 238, 0.5);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(163, 230, 53, 0.1);
}

/* Neon Glows */
.neon-text {
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.3);
}

.neon-box:hover {
    box-shadow: 0 0 25px rgba(163, 230, 53, 0.2);
    border-color: rgba(163, 230, 53, 0.5);
}

/* Text Stroke for big numbers */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

/* Clip Path for dynamic shapes */
.slant-clip {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #a3e635;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Up Button */
#scroll-up-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scroll-up-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}