:root {
    --text-color: #ffffff;
    --link-color: #7bd5f5;
    --background-color: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

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

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

    position: sticky;
    top: 0px;

    background-color: var(--background-color);
}

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

    background: linear-gradient(to right,
        #7bd5f5, #4adede, #1ca7ec, 
        #787ff6, #1ca7ec, #7bd5f5);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 5s linear infinite;
}

nav .right a {
    color: var(--link-color);
    font-size: 22px;
    margin: 0 10px;
    transition: 0.2s;

    &:hover {
        color: var(--text-color);
    }
}

/* SECTION 1: Introduction */
.introduction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    gap: 40px;
    margin-bottom: 40px;
}

.introduction .text {
    flex: 5;
    color: var(--text-color);
}

.introduction .text h2 {
    font-size: 45px;
}

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

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

    &:hover {
        color: var(--text-color);
        border: 2px solid var(--text-color);
    }
}

.introduction .text .links a i {
    margin-right: 5px;
}

.introduction .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.introduction .headshot img {
    border-radius: 50%;
    width: 375px;
}

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

.skills-section h2 {
    text-align: center;
    font-size: 35px;
    color: var(--text-color);
    margin-top: 40px;
}

.skills-section .text {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}

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

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

    color: var(--text-color);
    font-size: 18px;
}

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

/* SECTION 3: Contact Me */
.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.contact-section h2 {
    font-size: 35px;
    color: var(--text-color);
    margin-bottom: 20px;
}


.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .left-side .contact-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.contact-section .group .left-side .contact-buttons button {
    font-size: 16px;
    font-family: 'Poppins', 'sans-serif';
    color: #ffffff;
    background-color: var(--link-color);
    filter: brightness(.85);

    border: none;
    border-radius: 10px;
    height: 50px;
    padding: 10px 20px;

    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    &:hover {
        filter:brightness(1);
    }
}

.contact-section .group .text {
    flex: 8;
    color: var(--text-color);
}

.contact-section .group form {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', 'sans-serif';
    color: var(--text-color);
    border: 2px solid var(--link-color);
    border-radius: 5px;
    background-color: transparent;

    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.contact-section .group form button {
    font-size: 16px;
    font-family: 'Poppins', 'sans-serif';
    color: #ffffff;
    background-color: var(--link-color);
    filter: brightness(0.85);
   
    border: none;
    border-radius: 10px;
    height: 50px;
    
    cursor: pointer;
    transition: 0.2s;

    &:hover {
        filter: brightness(1);
    }
}

.contact-section .group form button i {
    margin-left: 5px;
}

/* CV.HTML */

/* TITLE */
.cv-content nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 50px;
    height: 100px;
    position: relative;

    background-color: var(--background-color);

    margin-bottom: 50px;
}

.cv-content nav .cv-left {
    color: var(--link-color);
    font-size: 20px;
    font-weight: 400;

    padding-top: 25px;
}

.cv-content nav .cv-left a {
    transition: 0.2s;

    &:hover {
        color: var(--text-color);
    }
}

.cv-content nav .cv-center {
    color: var(--text-color);
    font-size: 40px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* PDF Viewer */
.cv-content main .pdf-section {
    width: 100%;
    height: 80vh;
    margin: 0;
    padding: 0;
}

.cv-content main .pdf-section iframe {
    width: 80%;
    height: 120%;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Projects.HTML */
.projects-content nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 50px;
    height: 100px;
    position: relative;

    background-color: var(--background-color);

    margin-bottom: 50px;
}

.projects-content nav .projects-left {
    color: var(--link-color);
    font-size: 20px;
    font-weight: 400;

    padding-top: 25px;
}

.projects-content nav .projects-left a {
    transition: 0.2s;

    &:hover {
        color: var(--text-color);
    }
}

.projects-content nav .projects-center {
    color: var(--text-color);
    font-size: 40px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

.projects-content .projects .project-cells .project-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 400px;
    padding: 10px 20px;
    margin: 20px;
    border: 3px solid #d3d3d3;
    border-radius: 5px;
    gap: 5px;

    color: var(--text-color);
    font-size: 30px;

    transition: 0.4s;

    &:hover {
        border: 3px solid #787ff6;   
                color: #eeeeee;
    }

    &:hover h2 {
        color: #eeeeee;
    }

    &:hover p {
        color: #dddddd;
    }
}

.projects-content .projects .project-cells .project-cell .icon-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects-content .projects .project-cells .project-cell .icon-link img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
}

.projects-content .projects .project-cells .project-cell .icon-link a {
    transition: 0.4s;
    &:hover {
        color: var(--text-color);
    }
}

.projects-content .projects .project-cells .project-cell h2 {
    font-size: 25px;
    color: #cccccc
}

.projects-content .projects .project-cells .project-cell p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #bbbbbb
}



/* smaller screen dimensions (tablet optimized)*/
@media (max-width: 1000px) {
    /* NAVBAR */
    nav {
        padding: 0 30px;
    }

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

    nav .right a span{
        display: none;
    }

    /* SECTION 1: INTRODUCTION */
    .introduction {
        flex-direction: column-reverse;
        padding: 0 30px;
    }

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

    .introduction .headshot img {
        width: 300px;
    }

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

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

    /* SECTION 3: Contact Me */
    .contact-section {
        padding: 0 20px;
    }

    .contact-section .group {
        flex-direction: column;
    }
}

/* smaller screen dimensions (phone optimized)*/
@media (max-width: 600px) {
    nav {
        height: 100px;
    }
    nav .right a i {
        font-size: 32px;
    }
}

/* animations */
@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}


