/* Custom variables and utilities */
html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #0a0a0a;
}

/* Base link subtle styling */
a.nav-link {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}
a.nav-link:hover {
    transform: translateY(-1px);
}

/* CSS Noise overlay - extremely lightweight compared to SVG */
.css-noise-bg {
    background-image: url('assets/noise.png');
    background-repeat: repeat;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Navbar glassmorphism active state */
.nav-scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateZ(0); /* Hardware acceleration */
}

/* Animations for advantages motifs */
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
.radar-sweep {
    transform-origin: 0 50%;
    animation: radar-sweep 4s linear infinite;
    will-change: transform;
}
.diag-line div {
    will-change: transform;
}
@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Magnetic Button hover structure */
.magnetic-btn:hover .btn-bg {
    transform: translateY(0);
    border-radius: 9999px;
}
.magnetic-btn .btn-bg {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-radius 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
