/* General */
h2 {
    margin-bottom: 0.5rem;
}

/* Intro */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    height: 200px;
    background-color: rgb(242, 242, 242);
    text-align: center;
    padding: 2rem;
}

header h1 span {
    display:block;
    color: var(--dark-mid-text);
    font-weight: normal;
    font-size: 1.5rem;
}

@media screen and (min-width: 700px) {
    header {
        height: 700px;
        background: no-repeat center/cover url("/images/header-wide.png");
    }

}

/* What I do */
#what-i-do {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    background-color: var(--primary-accent);
}

#what-i-do p {
    color: var(--light-text);
}

.skills {
    width: 100%;
    display: grid;
    gap: 4rem;
}

.skill {
    text-align: center;
}

.skill img {
    height: 3.5rem;
    width: auto;
}

@media screen and (min-width: 700px) {
    /* On a wider screen skills are laid out in columns */
    .skills {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tools */
#tools {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tools-grid {
    display: grid;
    gap: 4rem;
}

.tool {
    display: flex;
}

.tool img {
    flex: 0 0 4rem;
    height: 4rem;
    width: auto;
    margin-right: 1.5rem;
}

.tool h3 {
    margin-top: 0;
}

.tool p {
    margin: 0;
}

@media screen and (min-width: 700px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Recommendations */
#recommendations {
    background-color: #0A66C2;
}

.recommendations .carousel {
    position: relative;
    margin: auto;
}

.recommendation {
    scroll-snap-align: start;
    padding: 0 2rem;
    color: var(--light-mid-text);  
    text-align: center; 
}

.recommendation blockquote {
    margin: 0;
    /* font-style: italic; */
}

.recommendation cite {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-style: italic;
}

.recommendation img {
    height: 7rem;
    width: auto;
    display: inline-block;
    border-radius: 50%;
    filter: grayscale(100%);
    margin: 0 0 1rem 0;
}


#recommendations .carousel-container:before {
    content: url('../images/quote-open.svg');
    position: absolute;
    top: -3rem;
    left: 0.5rem;
    opacity: 0.5;    
}

#recommendations .carousel-container:after {
    content: url('../images/quote-close.svg');
    position: absolute;
    bottom: 1.5rem;
    right: 0.5rem;
    opacity: 0.5;    
}

@media screen and (min-width: 700px) {
    .recommendation {
        padding: 0 2rem;
        font-size: 1rem;

    }
}


/* Clients */
.clients-grid, .more-clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: 3rem;
    scroll-snap-align: start;
}

.more-clients-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2rem;
}

.clients-grid img, .more-clients-grid img {
    padding: 0 2rem;
}

@media screen and (min-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .more-clients-grid {
        grid-template-columns: repeat(6, 1fr);
        column-gap: 2rem;
    }
    .clients-grid img, .more-clients-grid img {
        padding: 0 1rem;
    }
}

/* Contact */
#contact {
    background-color: var(--dark-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* min-height: 100vh; */
}

.profile-photo {
    height: 12rem;
    width: auto;
    display: block;
    margin-bottom: 2rem;
    border-radius: 50%;
}

.contact-links p {
    margin: 0;
}

.contact-links i {
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 0.5rem;
    line-height: 1rem;
    margin: 0 1rem 1rem 0;
}

#contact a {
    color: var(--light-mid-text)
}

#contact a:hover {
    color: var(--light-text)
}

#contact .copyright {
    margin-top: 2rem;
    font-size: 1rem;
}