* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

:root {
    --pale-yellow: #fffde7;
    --black: #000000;
    --mint-green: #00ff94;
}



/*------------------------------*/
a {
    text-decoration: none;
    color: var(--pale-yellow);
}

body {
    font-size: 16px;
    line-height: 1.5;
    background: var(--black);
    color: var(--pale-yellow);
    overflow-x: hidden;
}

hr {
    height: 0; 
    border: 0; 
    border-top: 1px solid var(--pale-yellow);
}

img {
    max-width: 100%;
}

video {
    max-width: 100%;
}

ul {
    list-style: none;
}



/*---------ANIMATIONS FOR SECTIONS---------*/
.hidden-animation {
    opacity: 0;
    filter: blur(2px);
    transition: all 1.5s;
}

@media(prefers-reduced-motion) {
    .hidden-animation {
        transition: none;
    }
}

.show {
    opacity: 1;
    filter: blur(0);
}



/*---------NAVIGATION BAR---------*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    display: flex;
    align-items: center;
}

.navbar .main-menu ul li a {
    padding: 10px 20px;
    display: block;
    font-weight: 600px;
    transition: 0.5s;
    color: var(--pale-yellow);
}

.navbar .logo li {
    padding: 10px;
}

.navbar .main-menu ul li a:hover {
    color: var(--mint-green);
}

.navbar ul li a i {
    margin-left: 15px;
}

.navbar .resize {
    width: 50px;
    height: 50px;
    clip-path: circle(50% at center);
}

/*Dropdown for projects list*/
.navbar .main-menu ul li {
    position: relative;
}

.navbar .dropdown-menu {
    display: none;
}

.navbar ul li:hover .dropdown-menu {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.navbar .dropdown-menu ul {
    display: block;
}

.navbar .dropdown-menu ul:before{
    content: "";
    display: block;
    margin: 0 auto;
    width: 75%;
    padding-top: 10px;
    border-top: 1px solid var(--pale-yellow); 
}



/*---------HOME---------*/
.home {
    background: 
        linear-gradient(to right, var(--black) 50%, transparent), 
        url('../images/linesofcode-haroldvasquez.jpg') no-repeat;
    background-position: center center;
    background-size: cover;
    
    animation: home-image-animation linear;
    animation-timeline: view();
    animation-range: exit;
}

.home .container-sm-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home .home-text {
    width: 50%;
    margin-bottom: 7%;
}

.home i {
    font-size: 3rem;
    padding-right: 30px;
    transition: 0.5s;
}

.home i:hover {
    color: var(--mint-green);
}



/*---------ABOUT ME---------*/
.about-me .about-me-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-column-gap: 40px;
}

.about-me .am-group .am-group-header {
    position: relative;
    cursor: pointer;
}

.about-me .am-group .am-group-header i {
    position: absolute;
    right: 0;
    top: 7px;
    font-size: 1.5rem;
}

.about-me h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.about-me h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: normal;
    padding: 10px 0;
}

.about-me hr {
    margin: 20px 0;
}

.about-me .am-group .am-group-body {
    display: none;
}

.about-me .am-group .am-group-body.open {
    display: block;
}

.about-me img {
    clip-path: circle(50%);
}

.about-me .profile {
    display: flex;
    align-items: center;
    padding-bottom: 60px;
}

.about-me .profile-body {
    padding-left: 40px;
}

.about-me .profile-text {
    width: 60%;
}

.about-me .about-me-description {
    padding-bottom: 5px;
}

.about-me .skills-list ul li {
    display: inline-flex;
}

.about-me ul li {
    /*padding-top, padding-right, padding-bottom, padding-left*/
    margin: 5px 5px 5px 0;
}

.about-me ul {
    padding-bottom: 10px;
}

.about-me ul:last-child {
    margin-bottom: 20px;
}



/*---------PROJECT LIST---------*/
.projects .project-list {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-column-gap: 30px;
    padding: 10px 0 80px 0;
}

.projects .project-list:last-child {
    padding-bottom: 50px;
}

.projects .project-description {
    display: grid;
    grid-template-columns: 1fr 4.5fr;
    grid-column-gap: 15px;
    padding: 5px 0;
}

.projects .project-image {
    align-self: center;
    justify-self: center;
}

.projects .project-image ul li {
    display: inline-flex;
}

.projects .project-image ul li {
    /*padding-top, padding-right, padding-bottom, padding-left*/
    margin: 5px 5px 5px 0;
}

.projects h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: normal;
    margin-bottom: 15px;
}

.projects h4 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: normal;
}

.projects h5 {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 200;
    margin-top: 30px;
}

.projects .skill-list {
    padding-top: 20px;
    padding-left: 10px;
}

.projects p {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 300;
}

.projects a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/*slide-in animation for each project*/
.projects .hidden-animation {
    transform: translateX(-100%);
}

.projects .show {
    transform: translateX(0);
}



/*---------CONTACT PAGE---------*/
.contact-page {
    padding: 30px;
}

.contact-page h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 500;
}

.contact-page .contact-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-column-gap: 40px;
}

.contact-page a {
    text-decoration: underline;
}

.contact-page .email-form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    float: right;
}

.contact-page .contact-inputs {
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    border-radius: 50px;
    background-color: var(--pale-yellow);
}

.contact-page .email-form textarea {
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
}

.contact-page .contact-inputs:focus {
    border: 2px solid var(--mint-green);
}

.contact-page .contact-inputs::placeholder {
    color: #a9a9a9;
}

.contact-page button {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 0.9rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(270deg, var(--mint-green), var(--pale-yellow));
    cursor: pointer;
}

.contact-page button i {
    margin-left: 10px;
}



/*---------FOOTER---------*/
/*
.footer {
    background-image: radial-gradient(#00ff94 5%, #000000);
}*/

.footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 40px;
}



/*---------UTILITY CLASSES---------*/
/*Animations*/
@keyframes home-image-animation {
    70%, 100% { opacity: 0;
                scale: 1.2; }
}

/*Containers*/
.container {
    max-width: 95%;
    margin: 0 auto;
}

.container-full {
    max-width: 95%;
    margin: 0 auto;
    /*padding-top, padding-right, padding-bottom, padding-left*/
    padding: 90px 30px 0px 30px;
    min-height: 100dvh;
}

.container-sm-full {
    max-width: 75%;
    margin: 0 auto;
    height: 100dvh;
}

/*Buttons*/
.btn {
    background: #373737;
    border-radius: 50px;
    padding: 6px 15px;
    width: fit-content;
    font-size: 0.9rem;
    font-weight: 300;
}

/*Text Classes*/
.text-xxl {
    font-size: 3rem;
    line-height: 1.5;
    font-weight: 600;
    margin: 40px 0 20px;
}

.text-xl {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 40px 0 20px;
}

.text-lg {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 500;
    /*padding-top, padding-right, padding-bottom, padding-left*/
    margin: 0 20px 20px 0;
}

.text-md {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 20px 0 10px;
}

.text-sm {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: normal;
    margin: 10px 0 5px;
}

.text-right {
    text-align: right;
}