@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    justify-content: center;
}

main {
    width: 1120px;
}

/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 0 #F9FAFB;
    background: #fff;
    max-width: 1120px;
    width: 100%;
}

.logo-home {
    font-size: 24px;
    font-weight: 500;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-link {
    cursor: pointer;
    text-decoration: none;
    color: rgb(107,57,245);
    padding: 13px 16px;
    font-size: 16px;
}

.nav-link:hover {
    background-color: #D9D9D9;
    opacity: 0.9;
    border-radius: 8px;
}

.menu-btn {
    display: none;
    cursor: pointer;
    color: rgb(107,57,245);
}

/* HOME */

section#home {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 20px;
}

.home-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

h2 {
    font-weight: 500;
    color: #42446E;
    font-size: 32px;
}

.name {
    font-size: 36px;
    font-weight: 700;
}

.name,
.logo-home {
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    background-clip: text;
    color: transparent;
}

.role {
    display: block;
    font-weight: 700;
    color: #42446E;
    font-size: 26px;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch;
    border-right: 2px solid #42446E;
    animation: mark 0.5s step-end infinite, write 6s steps(30, end) infinite;
}

@keyframes mark {
    50% {
        border-right: transparent;
    }
}

@keyframes write {
    20% {
        width: 31ch;
    }
    70% {
        width: 31ch;
    }
    85% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

.summary {
    color: #666666;
    font-size: 18px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
}

.social-links i {
    font-size: 28px;
    margin-bottom: 10px;
}

.social-links .instagram {
    color: #ee2a7b;
}

.social-links .linkedin {
    color: #0A66C2;
}

.social-links .github {
    color: #000;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.home-info button {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    width: 140px;
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    font-size: 16px;
    opacity: 0.9;
}

.home-info button.resume-btn {
    background: linear-gradient(315deg, #25A2EF 25%, #742DF6);
    width: 150px;
}

a {
    text-decoration: none;
}

.home-info button:hover {
    opacity: 1;
}

.home-info button a {
    color: #FFF;
}

.profile {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile img {
    width: 250px;
    height: 250px;
    animation: float 5s ease-in-out infinite;
    box-shadow: 0 10px 10px;
    border-radius: 50%;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* ABOUT */

section#about {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    padding: 5px 20px;
}

.about-info {
    width: 100%;
    margin-top: 12px;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.technology-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 200px;
    height: 80px;
    background: #F9FAFB;
    padding: 12px 12px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 24px 0 10px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out;
}

.technology-item img {
    width: 48px;
    height: 48px;
}

.technology-item h4 {
    margin-left: 12px;
    font-size: 16px;
}

.technologies .technology-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECTS */

section#projects {
    min-height: calc(100vh + 80px);
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 5px 20px;
}

.projects-info {
    width: 100%;
    margin-top: 12px;
}

.projects-summary {
    text-align: center;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 325px;
    height: 600px;
    background: #F9FAFB;
    padding: 0 12px 12px 0;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 24px 0 0 0;
}

.project-logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    object-position: center;
    margin-left: 100px;
}

.project h4 {
    margin: 12px 0 12px 0;
    font-size: 22px;
    padding-left: 12px;
}

.description,
.tech {
    padding-left: 12px;
    color: #666666;
    line-height: 1.5;
}

.tech {
    margin: 12px 0 12px 0;
}

.repository a {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.repository i {
    font-size: 26px;
    color: #000;
    margin-right: 6px;
}

.repository span {
    color: #000;
}

/* CONTACT */

section#contact {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 450px;
    width: 100%;
    padding: 5px 10px;
}

input,
textarea {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    border: none;
    padding: 16px;
    border-radius: 8px;
    outline: none;
    resize: none;
}

#contact form button {
    background: linear-gradient(315deg, #742DF6 25%, #25A2EF);
    color: #FFF;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.9;
    border: none;
    padding: 16px;
    border-radius: 8px;
    outline: none;
}

#contact form button:hover {
    opacity: 1;
}

/* FOOTER */

footer {
    padding: 20px;
    text-align: center;
    color: #42446E;
    font-size: 14px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.logo-footer {
    color: #42446E;
    font-size: 16px;
    font-weight: 600;
}

.social-links-footer {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

.social-links-footer i {
    font-size: 24px;
    color: #42446E;
}

/* DARK MODE */

.dark-mode, .dark-mode header {
    background:  #191919;
}

.dark-mode header {
    box-shadow: 0 1px 0 #A7A7A7;
}

.dark-mode .menu-btn {
    color: #A7A7A7;
}

.dark-mode .open {
    background:  #191919;
}

.dark-mode .nav-link {
    color: #A7A7A7;
}

.dark-mode .nav-link:hover {
    background-color: #42446E;
}

.dark-mode h2 {
    color: #D9D9D9;
}

.dark-mode .role {
    color: #D9D9D9;
    border-right: 2px solid #D9D9D9;
}

.dark-mode .summary {
    color: #A7A7A7;
}

.dark-mode .social-links .github {
    color: #fff;
}

.dark-mode .profile img {
    box-shadow: 0 10px 10px #A7A7A7;
}

.dark-mode .technology-item {
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode .project {
    background: #363636;
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode .title {
    color: #D9D9D9;
}

.dark-mode .description, .dark-mode .tech {
    color: #A7A7A7;
}

.dark-mode .repository i {
    color: #fff;
}

.dark-mode .repository span {
    color: #fff;
}

.dark-mode input, .dark-mode textarea {
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5);
}

.dark-mode footer {
    color: #A7A7A7;
}

.dark-mode .logo-footer {
    color: #A7A7A7;
}

.dark-mode .social-links-footer i {
    color: #A7A7A7;
}

/* Notification styles */
.notification {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

.success-message {
    background-color: #12d241;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
