/* #region Inicio: Resets, fontes e cores padrões da pagina */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #ebebeb;

    --text-primary: #ffffff;
    --text-secondary: #cfcfcf;
    --text-dark: #000000;

    --gray-100: #ebebeb;
    --gray-300: #cfcfcf;
    --gray-500: #4c4c4c;
    --gray-700: #3d3d3d;

    --border-light: rgba(182, 182, 182, 0.5);
    --border-dark: rgba(0, 0, 0, 0.5);

    --brand-instagram: #e1306c;
    --brand-linkedin: #0a66c2;
    --brand-github: #ffffff;

    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;

    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3rem;

    --line-xs: 1rem;
    --line-sm: 1.25rem;
    --line-md: 1.5rem;
    --line-lg: 2rem;
}

/* #endregion Final da aba resets, fontes e cores padrões */

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding-top: 70px;
}

section {
    margin-bottom: 40px;
}


/* #region Cabeçalho do site */
#home {
    height: calc(100dvh - 70px);
}

header {
    border-bottom: 1px solid var(--bg-light);
}

#header .content-width {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

header .logo img {
    height: 40px;
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#header.hide {
    transform: translateY(-100%);
}

#menu li {
    height: 30px;
    align-content: center;
    border-bottom: var(--border-light) solid 1px;
    margin: 0 1rem;
}

#menu li:hover {
    transition: var(--transition-normal);
}

#menu a {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-md);
    text-decoration: none;
}

#menu a:hover {
    color: var(--text-secondary);
}

#menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 70px;
    right: 0px;
    height: 0px;
    transition: .5s;
    z-index: 1000;
    text-align: center;
    list-style: none;
    background-color: var(--gray-500);
    visibility: hidden;
    overflow-y: hidden;
}

#nav.active #menu {
    height: calc(100vh - 70px);
    visibility: visible;
    overflow-y: auto;
}

#btn-mobile {
    display: flex;
    padding: .5rem 1rem;
    right: 0;
    font-size: var(--font-md);
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    gap: 10px;
}

#hamburguer {
    border-top: 2px solid var(--bg-light);
    width: 25px;
}

#hamburguer::after,
#hamburguer::before {
    content: '';
    display: block;
    border-top: 2px solid var(--bg-light);
    width: 25px;
    height: 2px;
    margin-top: 5px;
    transition: .3s;
}

#nav.active #hamburguer {
    border-top: transparent;
}

#nav.active #hamburguer::before {
    transform: rotate(135deg);
    position: relative;
    top: 2px;
    margin-left: -1px;
}

#nav.active #hamburguer::after {
    transform: rotate(-135deg);
    position: relative;
    top: -7px;
}

/* #endregion Cabeçalho do site */
/* #region Conteúdo da página HOME */
section #home {
    height: 100vh;
}

#home-content {
    padding-top: 15px;
    padding-left: 20px;
}

#home-content h1 {
    margin-top: 20px;
    font-size: var(--font-xl);
    line-height: var(--line-lg);
}

span {
    color: #729fdf;
    font-weight: 600;
}

#home-content p {
    margin: 20px 0 30px;
    font-size: var(--font-md);
    color: var(--text-secondary);
}

#home-image img {
    display: block;
    max-width: 90%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.social-links {
    margin-top: 40px;
    height: 70px;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 30px;
}

.social-links a {
    font-size: var(--font-3xl);
    color: var(--text-light);
    opacity: 0.7;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.social-links a:hover .fa-instagram {
    color: var(--brand-instagram);
}

.social-links a:hover .fa-linkedin {
    color: var(--brand-linkedin);
}

.social-links a:hover .fa-github {
    color: var(--brand-github);
}

/* #endregion Conteúdo da página HOME */
/* #region Conteúdo da página SOBRE MIM */
#about {
    font-size: var(--font-md);
    line-height: var(--line-md);
    color: var(--text-dark);
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 20px;
}

#about-content p {
    margin-bottom: 15px;
}

#about-image img {
    margin-top: 20px;
    width: 100%;
    border-radius: 20px;
    height: auto;
    box-shadow: #020202 10px 30px 20px -10px;
}

.title {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hard-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.skill {
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.skill img {
    width: 100%;
}

.skill span {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-sm);
    color: var(--text-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hard-skills:hover .skill {
    opacity: 0.3;
}

.hard-skills .skill:hover {
    opacity: 1;
    transform: translateY(-8px);
}

.skill:hover span {
    opacity: 1;
}

/* #endregion Conteúdo da página SOBRE MIM */
/* #region Conteúdo da página PROJETOS */
#projects {
    color: var(--text-primary);
    padding: 20px;
}

#projects img {
    border-radius: 15px;
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: cover;
    margin-top: 20px;
}

.project-info {
    color: var(--text-primary);
    padding: 20px;
}

.project-info h2 {
    font-size: var(--font-xl);
}

.project-info p {
    font-size: var(--font-sm);
    margin-top: 10px;
}

#contact {
    padding: 0 20px 0 20px;
}

#contact p {
    font-size: var(--font-md);
    line-height: var(--line-md);
    color: var(--text-light);
    margin-bottom: 10px;
    padding: 20px;
}

#contact img {
    display: block;
    border-radius: 15px;
    margin: 20px auto 0;
    max-width: 500px;
    width: 90%;
    height: 100%;
    object-fit: cover;
}

/* #endregion Conteúdo da página HOME */

footer {
    border-top: 1px solid var(--text-secondary);
    height: 50px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
}

/* #region Animação dos elementos da página */

.animate {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-up {
    transform: translateY(40px);
}

/* Delay utilities */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.4s;
}

.delay-4 {
    transition-delay: 0.5s;
}

.delay-5 {
    transition-delay: 0.6s;
}

.delay-6 {
    transition-delay: 0.7s;
}

.delay-7 {
    transition-delay: 0.8s;
}

.delay-8 {
    transition-delay: 1s;
}

/*projetos animados*/
.fade-scale {
    transform: scale(0.95);
}

.animate.show.fade-scale {
    opacity: 1;
    transform: scale(1);
}

/* #endregion Animação dos elementos da página */

/* Tablets (Portrait/Em pé) */
@media (min-width: 768px) {

    #btn-mobile {
        display: none;
    }

    #header .content-width {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    #menu {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        visibility: visible;
        background: none;
        overflow: visible;
    }

    #menu li {
        margin-left: 20px;
        width: auto;
        border: none;
        align-items: center;
        background-color: transparent;
    }

    #menu li a:hover {
        transition: var(--transition-normal);
        letter-spacing: 1px;
    }

    #menu li a::after {
        content: "";
        display: block;
        width: 0;
        border-bottom: 1px solid #ffffff;
        transition: width 0.3s ease;
    }

    #menu li a:hover::after {
        width: 100%;
    }

    .logo img {
        margin-left: 50px;
    }

    #home-content {
        padding: 20px;
    }

    #home-content h1 {
        margin-top: 20px;
        font-size: var(--font-2xl);
    }

    #home-content p {
        margin-top: 20px;
        font-size: var(--font-lg);
        line-height: var(--line-lg);
    }

    #home-image img {
        margin-top: 30px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .social-links {
        margin-top: 40px;
        gap: 50px;
    }

    .social-links a {
        font-size: var(--font-3xl);
    }

    #about {
        padding: 15px;
    }

    .about-text-box p {
        font-size: var(--font-lg);
        line-height: var(--line-lg);
    }

    .title,
    .project-info h2 {
        font-size: var(--font-2xl);
    }

    .project-info p {
        font-size: var(--font-lg);
        line-height: var(--line-lg);
    }

    #contact p {
        font-size: var(--font-lg);
        font-weight: var(--line-lg);
    }
}

/* Desktop comuns e iPads em modo paisagem  */
@media (min-width: 1024px) {
    #home-content h1 {
        font-size: var(--font-3xl);
    }

    #home-content p {
        font-size: var(--font-lg);
        line-height: var(--line-lg);
    }

    .social-links {
        gap: 70px;
    }

    .social-links a {
        font-size: var(--font-3xl);
    }

    #about-content {
        display: flex;
        justify-content: space-around;
    }

    #about-content h2 {
        margin-bottom: 40px;
    }

    .about-text-box {
        max-width: 500px;
        margin-top: 20px;
        font-size: var(--font-lg);
    }

    #about-image {
        max-width: 400px;
        border-radius: 50px;
    }

    #hard-skills-box h2 {
        margin: 40px 0 40px;
    }

    .hard-skills {
        align-items: center;
        height: 150px;
        border-top: 1px solid var(--border-dark);
        border-bottom: 1px solid var(--border-dark);
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .title {
        font-size: var(--font-3xl);
    }

    .project-info h2 {
        margin-top: 50px;
        font-size: var(--font-3xl);
    }

    .project-info p {
        margin-top: 50px;
        font-size: var(--font-lg);
    }

    #contact p {
        font-size: var(--font-lg);
    }

    #contact img {
        max-width: 600px;
    }

    footer {
        font-size: var(--font-sm);
    }
}

/* Telas grandes */
@media (min-width: 1440px) {

    .content-width {
        max-width: 1200px;
        margin: 0 auto;
    }

    #home-image img {
        margin-top: 70px;
        height: auto;
    }

    #home-content {
        margin: 40px;
    }

    #home-content h1 {
        font-size: var(--font-4xl);
    }

    .social-links {
        gap: 100px;
        margin-top: 70px;
        margin-bottom: 50px;
    }

    .social-links a {
        font-size: var(--font-4xl);
    }

    .about-text-box {
        max-width: 600px;
        font-size: var(--font-xl);
    }

    #hard-skills-box h2 {
        margin: 40px 0 40px;
    }

    #about-content h2 {
        margin-bottom: 40px;
    }

    #about-image {
        height: auto;
        max-width: 500px;
    }

    #projects h2 {
        margin-bottom: 50px;
    }

    .project-info h2 {
        margin-bottom: 30px;
        font-size: var(--font-4xl);
    }

    .project-info p {
        font-size: var(--font-lg);
    }

    #contact img {
        max-width: 900px;
        margin-bottom: 20px;
    }
}