:root {
    --primary: #ae6d6b;
    --secondary: #CDACA1;
    --accent1: #CDD6DD;
    --accent2: #ffffff;
    --text-dark: #333;
}


/* Sections */

nav {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary);
    color: var(--accent2);
    flex-wrap: wrap;
}

nav a {
    color: var(--accent2);
    font-weight: bold;
    padding: 0 12px;
}

.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    /* margin: 0 auto;
    display: block;
    width: 50%; */
}

main {
    margin: 0 auto;
    /* display: block;
    width: 50%; */
    text-align: center;
}


/*  */

.menu-btn {
    height: 50px;
    background: none;
    border: none;
}

#logo {
    width: 50px;
}

a {
    padding: 0px 10px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 4px;
    background-color: var(--accent2);
    margin: 5px 0;
    transition: 0.7s ease-in-out;
}

.menu {
    display: none
}

.menu.show {
    display: block;
}

.change .bar1 {
    transform: translate(0, 7px) rotate(-45deg);
    transition: 0.7s ease-in-out;
}
.change .bar2 {
    opacity: 0;
    transition: 0.7s ease-in-out;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
    transition: 0.7s ease-in-out;
}

.hero-img {
    order: 2;
    width: 180px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

.hero h2 {
    display: flex;
    justify-content: center;
    font-family: "Sour Gummy", sans-serif;
    color: var(--primary);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    order: 1;
}

.hero-text h2 {
    order: 1;
}

.hero-text p {
    order: 3;
}

.hero p {
    order: 3;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* Search */

button.search-button {
    background-image: url('search.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    color: transparent;
    border-radius: 2px;
}

.search {
    order: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent2);
    border: 2px solid var(--accent1);
    border-radius: 10px;
    padding: 6px 10px;
    max-width: 500px;
    margin: 20px auto; 
}


.search input {
    border: none;
    outline: none;
    font-size: 16px;
    flex: 1;
    /* padding: 6px 10px;
    max-width: 450px; */
}

.search .search-button {
    background-image: url('search.svg');
    background-position: center;
    background-size: 20px;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    border: none;
    cursor: pointer;
    background-color: var(--secondary);
}

/* Project cards */


.project-card {
    width: 300px;
    padding: 15px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background-color: var(--accent2);
    text-align: left;
}

.project-image {
    width: 100%;
    border-radius: 6px;
}

.project-card h3 {
    margin-top: 10px;
    color: var(--primary);
}

.project-card p {
    color: var(--text-dark);
}

.project-card button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: var(--secondary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Mobile */

@media screen and (max-width: 1000px){
    #project-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }  
}


/* Desktop */

@media screen and (min-width: 1000px) {
    .menu {
        display: flex;
        gap: 20px;
    }

    .menu-btn {
        display: none;
    }

    #project-container {
        margin: 40px auto;
        display: grid;
        gap: 40px;
        grid-template-columns: repeat(3, 300px);
        justify-content: center;
    }

    .hero {
        /* display: flex;
        justify-content: space-between;
        align-items: center; */
        flex-direction: row;
        text-align: left;
        max-width: 1000px;
        margin: 40px auto;
        gap: 40px;
    }

    .hero-text {
        flex: 1;
        order: 1;
        text-align: left;
    }

    .hero-img {
        width: 250px;
        /* flex-shrink: 0; */
        margin: 0;
        order: 2;
    }
}