/* This is a CSS file for a portfolio website, defining styles for various sections including navigation, hero section, skills, and projects.*/
:root {
    --link-color: #4f1bec;
    --background-color: #f8f9fa;
    --text-color: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: poppins, sans-serif;
    background-color: var(--background-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAV BAR */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    height: 80px;
    align-items: center;

}

nav .left {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

nav .right {
    color: var(--text-color);
    margin: 0 10px;

}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}


/* SECTION1 - HERO section */
.hero-section {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin: 50px;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
}

.hero-section .text {
    flex: 5;
}

.hero-section .head-shot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .text h2 {
    font-size: 50px;

}

.hero-section .text .links {
    margin-top: 25px;
}

.hero-section .text .links a {
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}

.hero-section .text .links a:hover {
    border: solid 2px var(--text-color);
    color: var(--text-color);
}

.hero-section .head-shot img {
    width: 250px;
    height: auto;
    border-radius: 50%;

}


/* SECTION 2: Skills */
.skills-section {
    margin-bottom: 100px;
    padding: 0 50px;
}

.skills-section h2 {
    text-align: center;
    font-size: 40px;
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-section .cells .cell {
    width: 200px;
    padding: 10px 20px;
    border: 1.5px solid lightgrey;
    border-radius: 5px;
    margin: 10px;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;

}

.skills-section .cells .cell span {
    font-size: 18px;
}

/* SECTION 3: Projects */
.project-section {
    margin-bottom: 100px;
    padding: 0 50px;
}

.project-section h2 {
    text-align: center;
    font-size: 40px;
}

.project-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.project-cells {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.project-cell {
    width: 300px;
    padding: 10px 20px;
    border: 1.5px solid lightgrey;
    border-radius: 5px;
    margin: 10px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-cell img {
    width: 300px;
    height: 150px;
    object-fit: contain;
    border-radius: 2px;

}
.project-cell a{
    color: var(--text-color);
    font-weight: 600;
    margin-top: 10px;
}
.project-cell a:hover {
    color: var(--link-color);
}

/* SECTION 4 CONTACT */
.contact-section{
    margin-bottom: 100px;
    padding: 0 50px;
}
.contact-section h2 {
    
    font-size: 40px;
}
.contact-section .group{
    display: flex;
    gap: 50px;
}
.contact-section .group .text{
    flex: 3;
    margin-top: 20px;
}
.contact-section .group form{
    flex: 3;
    display: flex;
    flex-direction: column;
}
.contact-section .group form input,
.contact-section .group form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid lightgrey;
    border-radius: 5px;
    font-size: 16px;
    font-family: poppins, sans-serif;
    outline: none;
    resize: none;
}
.contact-section .group form button{
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--link-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-section .group form button:hover {
    filter: brightness(0.9);
}



@media (max-width:850px) {

    /* SECTION 1 HERO */
    .hero-section .text h2 {
        font-size: 35px;

    }
}

@media (max-width:750px) {

    /* SECTION 1 HERO */
    .hero-section {
        font-size: 35px;
        flex-direction: column-reverse;

    }

    .hero-section .head-shot img {
        width: 300px;
    }
    /* SECTION 2 SKILLS */
    .skills-section .cells .cell {
        width: 150px;
    }
    .skills-section .cells .cell span {
        font-size: 14px;
    }
    /* SECTION 3 PROJECTS */
    .project-section .project-cells {
        flex-direction: column;
        align-items: center;
    }   
    .project-section .project-cell {
        width: 90%;
        max-width: 400px;
    }
    .project-section .project-cell img {
        width: 100%;
        height: auto;
    }
    .project-section .project-cell a {
        font-size: 18px;
    }
    .project-section .project-cell span {
        font-size: 16px;
    }
    /* SECTION 4 CONTACT */
    .contact-section .group {
        flex-direction: column;
    }
    .contact-section .group .text {
        margin-bottom: 20px;
    }
    .contact-section .group form {
        width: 100%;
    }
    .contact-section .group form input,
    .contact-section .group form textarea {
        width: 100%;
    }
    .contact-section .group form button {
        width: 100%;
    }
    /* NAVBAR */
    nav {
        padding: 0 20px;
    }
    nav .right a {
        font-size: 22px;
    }
    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }
    nav .right a span {
        display: none;
    }

}



@media (max-width: 600px) {

    /* NAVBAR */
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span {
        display: none;

    }

    /* SECTION 1: Hero */
    .hero-section {
        padding: 0 20px;
    }

    .hero-section .text h2 {
        font-size: 30px;
    }

    /* SECTION 2: Skills */
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: 16px;
    }

    /* SECTION 3: Projects */
    .project-section {
        padding: 0 20px;
    }

    .project-section .cells .cell span {
        font-size: 16px;
    }
    /* SECTION 4: Contact */
    .contact-section {  
        padding: 0 20px;
    }
    .contact-section .group {
        flex-direction: column;
    }
    .contact-section .group .text {
        margin-bottom: 20px;
    }
    .contact-section .group form {
        width: 100%;
    }
    .contact-section .group form input,
    .contact-section .group form textarea {
        width: 100%;
    }

}
@media (max-width: 400px) {

    /* NAVBAR */
    nav {
        padding: 0 10px;
    }

    nav .right a {
        font-size: 20px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    /* SECTION 1: Hero */
    .hero-section {
        padding: 0 10px;
    }

    .hero-section .text h2 {
        font-size: 25px;
    }
    .hero-section .head-shot img {
        width: 250px;
    }
    /* SECTION 2: Skills */
    .skills-section {
        padding: 0 10px;
    }
    .skills-section .cells .cell {
        width: 120px;
    }
    .skills-section .cells .cell span {
        font-size: 14px;
    }
    /* SECTION 3: Projects */
    .project-section {
        padding: 0 10px;
    }
    .project-section .project-cells {
        flex-direction: column;
        align-items: center;
    }
    .project-section .project-cell {
        width: 90%;
        max-width: 350px;
    }
    .project-section .project-cell img {
        width: 100%;
        height: auto;
    }
    .project-section .project-cell a {
        font-size: 16px;
    }
    .project-section .project-cell span {
        font-size: 14px;
    }
    /* SECTION 4: Contact */
    .contact-section {
        padding: 0 10px;
    }
    .contact-section .group {
        flex-direction: column;
    }
    .contact-section .group .text {
        margin-bottom: 20px;
    }
    .contact-section .group form {
        width: 100%;
    }
    .contact-section .group form input,
    .contact-section .group form textarea {
        width: 100%;
    }
    .contact-section .group form button {
        width: 100%;
    }

}

