/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title */
h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 600;
}

/* Grid layout */
.projects-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

/* Card design */
.projects-list li {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.projects-list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* 🔥 4-side moving borders */
.projects-list li::before,
.projects-list li::after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, #12f7ff, #ff00ff);
}

/* Top border */
.projects-list li::before {
    height: 2px;
    width: 100%;
    top: 0;
    left: -100%;
    animation: moveRight 3s linear infinite;
}

/* Bottom border */
.projects-list li::after {
    height: 2px;
    width: 100%;
    bottom: 0;
    right: -100%;
    animation: moveLeft 3s linear infinite;
}



/* Keyframes */
@keyframes moveRight {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes moveLeft {
    0% {
        right: -100%;
    }

    100% {
        right: 100%;
    }
}

@keyframes moveDown {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes moveUp {
    0% {
        bottom: -100%;
    }

    100% {
        bottom: 100%;
    }
}

/* Card content */
.projects-list h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.projects-list p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
}