@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap');

*,
*::after,
*::before {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans Code', monospace;
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    width: 100%;
    left: 0px;
    top: 0px;
    z-index: 1000;
    padding: 20px 0px;
    background-color: #070d1f;
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
}

header p {
    color: #fbfbfb;
}

header nav a {
    position: relative;
    text-decoration: none;
    color: #fbfbfb;
    display: flex;
    align-items: center;
    gap: 5px;
}

header nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fbfbfb;
    transition: all 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

header nav a i {
    color: #fbfbfb;
    opacity: 0;
    transition: all 0.3s ease;
}

header nav a:hover i {
    opacity: 1;
    transform: scale(1.25) rotate(-45deg);
}

section { 
    width: 100%;
    min-height: 100vh;   
}

#home{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#home div {
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: flex-start;
    max-width: 650px;
}

#home h1 {
    margin-bottom: 20px;
}

#home p {
    margin-bottom: 20px;
}

#home a {
    text-decoration: none;
    color: #3664f4;
    background-color: #fbfbfb;
    padding: 10px 20px;
    border: solid 4px #3664f4;
    border-radius: 24px;
    transition: all 0.3s ease;
}

#home a:hover {
    color: #fbfbfb;
    background-color: #3664f4;
}

#home .img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 24px;
}

#home .img img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    z-index: 1;
}

#home .img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: solid 8px #000;
    border-radius: 24px;
    background-color: #fbfbfb;
    transition: all 0.3s ease;
}

#home .img:hover::after {    
    transform: translate(16px, 16px);
}

#about {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#about .img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 24px;
}

#about .img img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    z-index: 1;
}

#about .img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: solid 8px #000;
    border-radius: 24px;
    background-color: #fbfbfb;
    transition: all 0.3s ease;
}

#about .img:hover::after {    
    transform: translate(-16px, 16px);
}

#about div {
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: flex-start;
    max-width: 650px;
}

#about h1 {
    margin-bottom: 20px;
}

#services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#services h1 {
    margin-bottom: 20px;
}

#services div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

#services .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 450px;
    padding: 20px;
    background-color: #fbfbfb;
    border: solid 4px #3664f4;
    border-radius: 24px;
    transition: all 0.3s ease;
}

#services .card:hover {
    transform: translate(0px, -10px);
}

#services .card img {
    width: 80%;
    color: #3664f4;
    margin-bottom: 10px;
}

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#projects h1 {
    margin-bottom: 20px;
}

#projects div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

#projects .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 450px;
    padding: 20px;
    background-color: #fbfbfb;
    border: solid 4px #3664f4;
    border-radius: 24px;
    transition: all 0.3s ease;
}

#projects .card:hover {
    transform: translate(0px, -10px);
}

#projects .card img {
    width: 80%;
    color: #3664f4;
    margin-bottom: 10px;
}

#projects .card a {
    position: relative;
    text-decoration: none;
    color: #3664f4;
    display: flex;
    align-items: center;
    gap: 5px;
}

#projects .card a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3664f4;
    transition: all 0.3s ease;
}

#projects .card a:hover::after {
    width: 100%;
}

#projects .card a i {
    color: #3664f4;
    opacity: 0;
    transition: all 0.3s ease;
}

#projects .card a:hover i {
    opacity: 1;
    transform: scale(1.25) rotate(-45deg);
}

#contact {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#contact .img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 24px;
}

#contact .img img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    z-index: 1;
}

#contact .img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: solid 8px #000;
    border-radius: 24px;
    background-color: #fbfbfb;
    transition: all 0.3s ease;
}

#contact .img:hover::after {    
    transform: translate(-16px, 16px);
}

#contact div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    
    align-items: flex-start;
    max-width: 650px;
}

#contact h1 {
    margin-bottom: 20px;
}

#contact input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: solid 2px #3664f4;
    border-radius: 12px;
}

#contact textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: solid 2px #3664f4;
    border-radius: 12px;
    resize: none;
}

#contact button {
    width: 100%;
    padding: 15px;
    background-color: #3664f4;
    color: #fbfbfb;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact button:hover {
    background-color: #fbfbfb;
    color: #3664f4;
    border: solid 2px #3664f4;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #070d1f;
}

footer p {
    color: #fbfbfb;
}

footer nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
}

footer nav a {
    text-decoration: none;
    color: #fbfbfb;
    transition: all 0.3s ease;
}

footer nav a:hover {
    transform: translate(0px, -5px);
}
