/* Base Settings */
body {
    background-color: #050505;
    color: white;
    overflow-x: hidden;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scroll Snapping */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Border Gradient Component */
.border-gradient {
    position: relative;
}
.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.0) 100%);
    pointer-events: none;
}

/* Shiny CTA */
.shiny-cta {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(#171717, #171717) padding-box,
        conic-gradient(from var(--gradient-angle, 0deg), transparent 0%, #4f46e5 5%, #818cf8 15%, #4f46e5 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    animation: border-spin 3s linear infinite;
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-spin {
    to {
        --gradient-angle: 360deg;
    }
}

.shiny-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

/* Animation On Scroll */
@keyframes animationIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animate {
    animation: animationIn 0.8s ease-out 0.1s both !important;
}

/* Nav Dot Active State */
.nav-dot.active {
    height: 2rem;
    background-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}