/* font import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* css variables */
:root {
    --header-height: 3.5rem;
    --first-color: hsl(271, 76%, 53%);
    --first-color-alt: hsl(271, 76%, 63%);
    --title-color: hsl(0, 0%, 95%);
    --text-color: hsl(0, 0%, 80%);
    --body-color: hsl(240, 10%, 4%);
    --container-color: hsla(240, 10%, 15%, 0.6);
    --border-color: hsla(0, 0%, 100%, 0.15);

    --body-font: 'Poppins', sans-serif;
    
    --biggest-font-size: 4rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 1rem;

    --font-medium: 500;
    --font-semi-bold: 600;
    --z-fixed: 100;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

#ai-background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* layout + classes */
.container {
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.section__subtitle {
    display: block;
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* header + nav */
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background-color .3s, box-shadow .3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav__link {
    color: #fff;
    font-weight: var(--font-medium);
    transition: color .3s;
    padding: 0 0.5rem;
}

.nav__link:hover, .nav__link.active-link {
    color: var(--first-color);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__list li + li::before {
    content: '|';
    color: var(--text-color);
    opacity: 0.5;
    margin-right: 2rem;
}

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
.nav__toggle { color: #fff; }

.scroll-header {
    background-color: hsla(240, 10%, 15%, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px hsla(0, 0%, 4%, .3);
}

/* Home Section */
.home__container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home__content h1 {
    font-size: var(--biggest-font-size);
    margin-bottom: 3rem;

}  

.home__content h3 {
    margin-top: 0rem;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.title-line-1 {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    display: block;
}

.title-line-2 {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    font-weight: var(--font-medium);
    display: block;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.home__description {
    line-height: 1.7;
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.home__cta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.home__social {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.home__social-icon {
    font-size: 1.75rem;
    color: #fff;
    transition: color .3s, transform .2s;
}

.home__social-icon:hover {
    color: var(--first-color);
    transform: translateY(-2px);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background-color: var(--first-color);
    color: #fff;
    padding: .85rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: background-color .3s, transform .2s;
}
.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
}
.button--ghost {
    background-color: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}
.button--ghost:hover {
    background-color: hsla(271, 76%, 53%, 0.1);
}
.button--link {
    color: var(--first-color);
    font-weight: var(--font-medium);
}

.project__card,
.about__container,
.skills__container,
.contact__container,
.about-website__container {
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: left; 
}

/* Projects Section */
.projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 5rem;
}

.project__card {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;

}

.project__card:hover {
    background-color: hsla(240, 10%, 15%, 0.7);
    border-color: hsla(0, 0%, 100%, 0.25);
}

.project__description,
.skills__group li {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
}

.project__stack {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.stack__item {
    background-color: hsla(271, 76%, 53%, 0.15);
    color: var(--first-color-alt);
    padding: .25rem .75rem;
    border: 1px solid hsla(271, 76%, 53%, 0.3);
    border-radius: .25rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.project__features {
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project__features li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
}

.project__features .fa-check-circle {
    color: var(--first-color);
    margin-top: 4px;
}

.project__links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

/* About Section */
.about__container {
    align-items: center;
    gap: 3rem;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
}
.about__img {
    width: 100%;
    max-width: 350px;
    border-radius: 1.5rem;
    justify-self: center;
}
.about__data p {
    line-height: 1.6;
    margin-bottom: 1rem; 
}
.about__data p:last-child {
    margin-bottom: 0;
}

.skills__container {
    display: flex;           
    flex-wrap: wrap;         
    justify-content: center;
    gap: 5rem;
}

.skills__group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills__group h3 {
    border-bottom: 2px solid var(--first-color);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}
.skills__group ul {
    list-style-type: none;
    padding-left: 0;
    text-align: center;
}

/* Contact & About Website Sections */
.contact__container,
.about-website__container {
    text-align: center;
}

.about-website__container p {
    margin-bottom: 1rem;
}
.about-website__container p:last-of-type {
    margin-bottom: 0;
}


.contact__container p {
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.contact__socials {
    margin-top: 2rem;
}
.contact__socials a {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color .2s;
}
.contact__socials a:hover {
    color: var(--first-color);
}

/* footer */
.footer {
    padding: 2rem 0;
    background-color: transparent;
    color: hsl(0, 0%, 50%);
    text-align: center;
    font-size: var(--small-font-size);
}

/* scroll animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MEDIA QUERIES */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: hsla(240, 10%, 15%, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -2px 0 4px hsla(0, 0%, 4%, .1);
        padding: 4rem 2rem;
        transition: .3s;
    }
    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
    }
    .nav__link {
        color: var(--title-color);
    }
    .nav__list li + li::before {
        content: none;
    }
    .nav__toggle, .nav__close {
        display: block;
    }
    .nav__toggle {
        position: absolute;
        right: 1.5rem;
    }
    .nav__close {
        color: #fff;
    }
    .show-menu {
        right: 0;
    }
    .about__container {
        grid-template-columns: 1fr;
    }
}