/* projects/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #0f1117;
    color: #e6e6e6;
    line-height: 1.6;
}


/* Header */

header {
    padding: 50px 20px 35px;
    text-align: center;
}

.header-content {
    max-width: 900px;
    margin: auto;
}


header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin: 20px 0 10px;
    letter-spacing: -1px;
}


header p {
    color: #a9adb8;
    font-size: 1.1rem;
}


/* Back button */

.back-button {
    display: inline-block;

    background: #171a22;
    border: 1px solid #272c38;

    color: #e6e6e6;
    text-decoration: none;

    padding: 10px 18px;
    border-radius: 10px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}


.back-button:hover {
    background: #222735;
    border-color: #3d7cff;
    transform: translateY(-2px);
}


/* Divider */

hr {
    border: none;
    height: 1px;
    background: #292d38;

    max-width: 1100px;
    margin: 20px auto;
}


/* Projects */

main {
    padding: 0 20px;
}


.projects-container {
    max-width: 1100px;
    margin: 40px auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;
}


/* Project cards */

.project-cont {
    background: #171a22;

    border: 1px solid #272c38;
    border-radius: 18px;

    padding: 30px;

    min-height: 170px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.project-cont:hover {
    transform: translateY(-6px);

    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}


.project-cont a {
    text-decoration: none;
    color: inherit;

    display: block;
}


.textcontent {
    transition: color 0.2s ease;
}


.project-cont h2 {
    color: #ffffff;
    font-size: 1.5rem;

    margin-bottom: 12px;
}


.project-cont h5 {
    color: #8f95a3;
    font-size: 0.9rem;

    font-weight: 500;
}


.project-cont:hover h2 {
    color: #6ea8fe;
}


/* Animation */

.page-load {
    animation: fadeIn 0.6s ease-out;
}


@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

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


/* Footer */

footer {
    text-align: center;
    color: #8b8f99;

    padding: 30px 20px;
}


/* Mobile */

@media (max-width: 600px) {

    header h1 {
        font-size: 2.2rem;
    }


    .project-cont {
        padding: 25px;
    }

}

/* Search */

.search-container {

    max-width: 1100px;

    margin: 35px auto 15px;

}

.search-bar {

    width: 100%;

    padding: 16px 20px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 16px;

    color: #ffffff;

    font-size: 1rem;

    font-family: inherit;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;

}

.search-bar::placeholder {

    color: #8f95a3;

}

.search-bar:focus {

    border-color: #3d7cff;

    box-shadow:
        0 0 0 4px rgba(61,124,255,.12);

    background: #1b1f29;

}

.no-projects {

    max-width: 900px;

    margin: 40px auto;

    padding: 35px 25px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 18px;

    text-align: center;

    opacity: 0;

    transform: translateY(15px);

}


.no-projects.show {

    animation: searchFadeIn 0.25s ease forwards;

}


.no-projects h2 {

    color: white;

    margin-bottom: 10px;

}


.no-projects p {

    color: #a9adb8;

}

.project-cont.search-result {

    opacity: 0;

    transform: translateY(15px);

    animation: searchFadeIn 0.25s ease forwards;

}


@keyframes searchFadeIn {

    from {

        opacity: 0;

        transform: translateY(15px);

    }


    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.project-cont.hide-result {

    animation: searchFadeOut 0.25s ease forwards;

}


@keyframes searchFadeOut {

    from {

        opacity: 1;

        transform: translateY(0);

    }


    to {

        opacity: 0;

        transform: translateY(15px);

    }

}