/* 2026 Aesthetics */
:root {
    --cursor-size: 20px;
}

body {
    background-color: #030305;
    cursor: default;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #030305;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

/* Neubrutalist Borders & Shadows */
.card-brutal {
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-brutal:hover {
    transform: translate(-2px, -2px);
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* 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);
}

/* Grain texture overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Button Micro-interactions */
.btn-press {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-press:active {
    transform: scale(0.95);
}

/* Topic Showcase Animations */
@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#topic-content {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.achievement-item {
    opacity: 0;
    animation: fadeSlideIn 0.5s ease-out forwards;
}

.workflow-step {
    opacity: 0;
    animation: fadeSlideIn 0.4s ease-out forwards;
}

/* Continuous workflow pulse and flow animations - sequential flow */
/* Total cycle: 12s, with each step getting ~1.5s of highlight time */
@keyframes workflowSequentialPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        transform: scale(1);
        opacity: 0.3;
    }

    5%,
    15% {
        box-shadow: 0 0 25px 4px rgba(99, 102, 241, 0.4);
        transform: scale(1.05);
        opacity: 1;
        border-color: rgba(99, 102, 241, 0.8);
    }

    20% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        transform: scale(1);
        opacity: 0.3;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes workflowArrowSequential {

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

    5%,
    15% {
        opacity: 1;
        transform: translateX(4px);
        color: rgba(99, 102, 241, 1);
    }

    20% {
        opacity: 0.2;
        transform: translateX(0);
    }
}

@keyframes codeTypeCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.workflow-step-pulse {
    animation: workflowSequentialPulse 12s ease-in-out infinite both;
    opacity: 0.3;
    /* Ensure default is dim */
}

.workflow-flow-step {
    animation: workflowSequentialPulse 12s ease-in-out infinite both;
    opacity: 0.3;
    /* Ensure default is dim */
}

.workflow-arrow-animate {
    animation: workflowArrowSequential 12s ease-in-out infinite both;
    opacity: 0.2;
    /* Ensure default is dim */
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: currentColor;
    margin-left: 2px;
    animation: codeTypeCursor 0.8s step-end infinite;
}

/* Workflow Flow Animations */
@keyframes workflowProgressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes workflowDotPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes workflowStepFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes workflowArrowBounce {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(3px);
        opacity: 1;
    }
}

.workflow-progress-bar {
    animation: workflowProgressFill 2s ease-out forwards;
}

.workflow-dot-pulse {
    animation: workflowDotPulse 2s ease-in-out infinite;
}

.workflow-step-animate {
    animation: workflowStepFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.workflow-arrow {
    animation: workflowArrowBounce 1.5s ease-in-out infinite;
}

.topic-pill {
    position: relative;
    overflow: hidden;
}

.topic-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.topic-pill:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

.progress-container {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #10b981);
    animation: progress 18s linear;
}

/* Arrow Down Animation */
@keyframes arrow-down {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
        transform: translateY(10px);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.animate-arrow-down {
    animation: arrow-down 2s ease-in-out infinite forwards;
}