html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.skill-circle {
    --percent: 0%;
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#000000 var(--percent), #e8e8ed var(--percent));
    transform: rotate(-90deg);
}

.skill-circle::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
}

.skill-circle i {
    z-index: 10;
    position: relative;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.square-pattern {
    background-color: #f1f5f9;
    background-image:
        linear-gradient(to right, #cbd5e1 1px, transparent 1px),
        linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.footer-pattern {
    background-color: #0f172a;
    background-image:
        linear-gradient(to right, #1e293b 1px, transparent 1px),
        linear-gradient(to bottom, #1e293b 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .skill-circle {
        width: 80px;
        height: 80px;
    }

    .skill-circle::after {
        width: 60px;
        height: 60px;
    }

    .animate-on-scroll {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .square-pattern {
        background-size: 30px 30px;
        opacity: 0.4;
    }

    .footer-pattern {
        background-size: 30px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .skill-circle::before {
        transition: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .animate-on-scroll.visible {
        animation: none;
    }
}