@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Reset some default styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #262525;
    color: #fff;
    background-image: linear-gradient(-45deg, #3877ff, #262525 70%);
}


/* Navigation bar */

.nav_list {
    display: flex;
    gap: 3.5rem;
    height: 12vh;
    width: 100%;
    list-style: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    cursor: pointer;
}

.nav_list li {
    margin: 0 15px;
}

.nav_list li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fff;
    position: relative;
}

.nav_list li a::after {
    content: "";
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 2px;
    /* underline thickness */
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-in-out;
}

.nav_list li a:hover::after {
    transform: scaleX(1);
}

.portfolio {
    padding: 50px 20px;
    background: var(--bg-color);
    text-align: center;
}


/* Section Heading */

.portfolio .heading {
    font-size: 2.5rem;
    margin-top: 30px;
}


/* Grid Container */

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    margin-top: 2rem;
}

span {
    color: #3877ff;
}


/* Individual Portfolio Box */

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
    /* Fixed height for consistency */
    /* Fixed height for consistency */
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}


/* Project Images */

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Hover Effect */

.portfolio-box:hover img {
    transform: scale(1.05);
}


/* Overlay Layer */

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portfolio-layer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.portfolio-layer .btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}