:root {
    --background-color: #f3f7f5;
    --primary-color: rgb(212, 179, 175);
    --text-color: black;
    --button-color: black;
    --secondary-color: #b2708b;
  }
  
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family:Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    display: flex;
    padding: 5% 20% 0px;
}

@media screen and (max-width: 1080px) {
    .container {
        padding: 5% 10% 4rem;
    }
}


button {
    cursor: pointer;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    width:100%;
    font-family: 'Courier New';
}

h2::before {
    content: "";
    height:0.8px;
    background: black;
    position: absolute;
    width: 200px;
    top: 50%;
    margin-left: -205px;
}

h2::after {
    content: "";
    height:0.8px;
    background: black;
    width: 200px;
    position: absolute;
    top: 50%;
    margin-left: 5px;
}

@media screen and (max-width: 1080px) {
    h2::before {
        width: 100px;
        margin-left: -105px;
    }
    h2::after {
        width: 100px;
        margin-left: 5px;
    }
}



/*  NAVBAR  */
nav {
    display: flex;
    position: fixed;
    width: 100%;
    z-index: 20;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

nav ul {
    flex: 1;
    list-style-type: none;
    overflow: hidden;
}

nav li {
    list-style: none;
    float: right;
    padding: 12px 16px;
    font-size: 16px;
}

nav a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    color: #555555;
}

.active {
    color: var(--primary-color)
}

/*  HOME SECTION  */
#home .container {
    background-image: url(./img/photo-1453928582365-b6ad33cbcf64.jpeg);
    box-shadow: inset 0 0 0 1000px rgba(212, 179, 175,0.8);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items:center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.home-text {
    animation-name: leftToRight;
    animation-duration: 1s;
    margin-bottom: 20%;
}

.name {
    font-size: 2.3rem;
    font-weight: bold;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: normal;
}


@keyframes leftToRight {
    0% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(0);
    }
}

@media screen and (max-width: 1080px) {
    .home-text{
        text-align: left;
    }

    .name {
        font-size: 1.8rem;
    }
}

/* SKILLS SECTION */
.skills .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skills-container {
    width:100%;
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.skill {
    background-color: #eaeff1;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 0.7rem 1rem;
    margin: 0.5rem;
    font-size: 0.8rem;
    display:flex;
    align-items:center;
    gap: 10px;
    transition:all 0.3s ease;
    font-weight: bold;
}

.skill:hover {
    background-color: rgba(212, 179, 175, 0.5);
    transform: scale(1.1);
}



/* PROJECTS SECTION */
.projects .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5% 10% 0px;
}

.projects-container {
    width: 100%;
    display:grid;
    justify-content:center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    column-gap: 15px;
}

.project-row {
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block:1rem;
    background: #fcfdfd;
    margin-inline:auto;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.projects img {
    width:100%;
    height: 180px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.project-description {
    flex:1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.projects p {
    font-size: 0.9rem;
    text-align: justify;
    text-justify: inter-character;
}

.projects .tech {
    text-align: left;
    font-size: 0.8rem;
    font-weight: bold;
    font-style: italic;
    color: #555555;
}

.project-buttons {
    display: flex;
    align-items:flex-end;
    justify-content:right;
    gap: 0.5rem;
    margin-top: 1rem;
}

.projects a {
    text-decoration: none;
    color: #212121;
    padding: 0;
}

.projects i:hover {
    color: #404040;
}

.projects a i {
    font-size: 1rem;
    color: #212121;
    padding: 0;
}


/**CONTACT SECTION**/
.contact .container {
    padding: 5% 10% 0px;
    margin-top: 5%;
    flex-direction: column;
    align-items: center;
    padding: 0;
}


.contact-container {
    padding: 20px 10% 50px;
    width: 100%;
    display:grid;
    justify-content:center;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contact .col {
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    margin-bottom: 1rem;
    
}

.contact .col-container {
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    width: 250px;
    height: 100px;
    box-shadow: rgba(0, 0, 0, 0.05) 3px 3px 0px 0px;
}

@media (min-width: 600px) and (max-width: 1080px) {
    .col:nth-child(3) {
        /* align it to the middle*/ 
        grid-column: span 2; /* Make the third column span two columns */
    }
}


.contact a {
    text-decoration:none;
    color: #212121;
}

.contact h3 {
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.social {
    font-size: 1.3rem;
    margin: 5px;
}


footer  .container{
    background-color: var(--primary-color);
    padding: 1rem 5%;
    display: flex;
    font-size: 0.8rem; 
}
