:root {
    --emphasis: #00C9C8;
    --lightGray: #1D1D1D;
    --darkGray: #131313;
}

body {
    background-color: black;
    color: white;
}

#home {
    background-image: url('./images/sep09.jpg');
    background-size: cover;
}

/* Header */
.desktop {
    display: none;
}

.mobile {
    display: flex;
    justify-content: space-between;
    padding: 4%;
    align-items: center;
    font-size: 20px;
}

a {
    color: white;
}

.header-text {
    text-align: center;
    padding: 10%;
}

.header-text h2 {
    margin-top: 10px;
}

h1 {
    font-size: 25px;
}

h2 {
    font-size: 15px;
}

h3 {
    font-size: 10px;
}

.emphasis {
    color: var(--emphasis);
}

svg {
    color: white;
    height: 25px;
}

/* Portfolio */
#portfolio {
    background-color: var(--darkGray);
}

.section-header {
    text-align: center;
    padding: 5% 0 0;
    margin-bottom: 10px;
}

.card {
    width: 70%;
    margin: auto;
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.card p {
    padding: 5px;
}

.card p:nth-child(3) {
    font-size: 12px;
    padding-bottom: 20px;
}

.card img {
   width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--emphasis);
    padding: 10px;
    background-color: var(--lightGray);
    max-height: 100px; /* Limit maximum height */
}


/* About */
#about {
    background-color: var(--lightGray);
}

.description {
    text-align: center;
}

.description img {
    max-width: 70%;
    padding: 3%;
    border-radius: 50px;
}

.description p {
    font-size: 15px;
    padding: 0 30px 10px;
}

/* Contact*/
#contact {
    background-color: var(--darkGray);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

form input,
form textarea {
    background-color: transparent;
    border: 1px solid #393939;
    border-radius: 10px;
    padding: 5px;
    color: white;
    width: 90%;
}

form button {
    background-color: var(--emphasis);
    border: none;
    height: 30px;
    width: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: space-around;
    padding: 5%
}

@media screen and (min-width: 600px) {
    .desktop {
        display: flex;
        justify-content: space-between;
        padding: 2%;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 10px;
    }

    .section-header {
        padding: 0;
        padding-top: 15px;
    }

    .mobile {
        display: none;
    }

    .cardContainer {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .card {
        width: 30%;
        margin-top: 0;
        font-size: 18px;
        text-align: center;
    }

    .description {
        display: flex;
        align-items: center;
    }

    .description div {
        flex: 1;
    }

    .description img {
        max-width: 100%;
    }

    .description p {
        flex: 2;
        font-size: 18px;
    }

    #about {
        padding: 0 30px;
    }

    form {
        padding: 0 10%;
    }

    .card p:nth-child(3) {
        font-size: 15px;
    }

    footer {
        padding: 2%
    }
}

@media screen and (min-width: 1000px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 15px;
    }
    #portfolio {
        padding: 0 10%;
    }

    .card {
        font-size: 23px;
    }

    .card p:nth-child(3) {
        font-size: 19px;
    }

    .description p {
        font-size: 23px;
    }

    .description img {
        max-width: 60%
    }

    form {
        padding: 0 20%;
    }
}

@media screen and (min-width: 1400px) {
    .desktop {
        padding: 0 15%;
    }

    .description {
        padding: 0 10%;
    }

    .description img {
        max-width: 60%
    }
}
