@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins',sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.heading {
    max-width: fit-content;
    font-size: 40px;
    margin: 3rem auto 3rem;
}

.heading span {
    color: var(--main-color);
}

.wrapper {
   min-height: 70vh;
   width: 90%;
   margin: 2rem auto 2rem;
   padding: 0 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   background-color: var(--second-bg-color);
   border-radius: 2rem;
}

.text-container {
    width: 35%;
}

.text-container h4 {
    font-size: 2rem;
    margin-bottom: .5rem;
    border-bottom: 3px solid var(--main-color);
    border-bottom-right-radius: 20px ;
}

.photo-container {
    width: 60%;
    height: 400px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
}

.card {
    width: 80px;
    border-radius: 2rem;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    margin: 0 10px;
    display: flex;
    align-items: flex-end;
    transition: .6s cubic-bezier(.28,-0.03,0,.99);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    opacity: 0.5;
}


input {
    display: none;
}

input:checked + label {
    width: 500px;
    opacity: 1;
}

.card[for = "c1"] {
    background-image: url(./img/project1-1.png);
}
.card[for = "c2"] {
    background-image: url(./img/project1-2.png);
}
.card[for = "c3"] {
    background-image: url(./img/project1-3.png);
}
.card[for = "c4"] {
    background-image: url(./img/project2-1.png);
}
.card[for = "c5"] {
    background-image: url(./img/project2-2.png);
}
.card[for = "c6"] {
    background-image: url(./img/project2-3.png);
}
.card[for = "c7"] {
    background-image: url(./img/project3-1.png);
}
.card[for = "c8"] {
    background-image: url(./img/project3-2.png);
}
.card[for = "c9"] {
    background-image: url(./img/project3-3.png);
}

.btn {
    display: block;
    width: fit-content;
    margin: 2rem 0 0;
    padding: .5rem 1.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1rem;
    color: var(--second-bg-color);
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
    background-color: var(--second-bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--main-color);
    font-size: 28px; 
    z-index: 1000;
    background: transparent; 
    padding: 0; 
    border-radius: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
    transform: scale(1.2);
    color: #0ff; 
}

@media(max-width:950px){

    .text-container h4 {
        font-size: 1.5rem;
    }

    .wrapper {
        padding: 3rem 2rem ;
        flex-direction: column; 
    }
    
    .text-container {
        margin-bottom: 3rem;
        width: 100%;
        
    }

    .photo-container {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1,1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .card {
        width: 100%;
        height: 5vh;
        margin: 0 0.2rem;
    }
    input:checked + label {
        height: 300px;
        width: 100%;
    }
}


