*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", serif;
    font-weight: 500;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/*------------------- Aux Clases ----------------------*/

.container{
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2%;
}

.clear{
    clear: both;
}

.center{
    text-align: center;
}

.appear{
    animation: appear linear forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 38%;
}
.w50{
    width: 50%;
    float: left;
    padding: 0 10px;
}

.w100{
    width: 100%;
    padding: 0 10px;
}

.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FFFF; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    opacity: 1;
    animation: fadeOut 0.5s ease-out 1s forwards; /* Animation */
}

.loader img{
    width: 40%;
    height: auto;
}

main.main-index{
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.loader2{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FFFF; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    opacity: 1;
    animation: fadeOut 0.5s ease-out 0.5s forwards;
}

main.main-project, main.main-contact, main.main-about{
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}
/*------------------- Aux Clases ----------------------*/

/*------------------- Header ----------------------*/

header{
    padding: 30px 0 0 0;
    background-color: #FFFF;
    width: 100%; 
}

.logo-container{
    float: left;
    width: 170px;
    height: 60px;
    /* background-color: red; */
    background-image: url(Images/logoNew.PNG);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.logo-container img{
    width: 100%;
    height: 100%;
}

.nav-menu{
    float: right;
    padding-top: 5px;
}

.nav-menu ul{
    position: relative;
}

.nav-menu li{
    display: inline-block;
    padding: 5px;
}

.nav-menu li a {
    display: inline-block; /* Importante: transform não funciona bem em elementos 'inline' */
    color: #2D4059;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
    font-size: 20px;
}

.nav-menu li a:hover {
    color: #D4A373;
    transform: scale(1.2); /* Aumenta o tamanho em 20% */
}

.nav-menu li a:active {
    transform: scale(0.95); /* Dá um leve 'pulo' para baixo ao clicar */
}

.header-btn{
    padding: 5px;
    /* border: 1px solid #D4A373; */
    color: #D4A373;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-btn:hover{
    cursor: pointer;
    /* background: #D4A373; */
    /* color: #F8F6F4; */
    transition: 0.5s;
    text-decoration: underline;
    /* box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4), 
              -4px -4px 10px rgba(255, 255, 255, 0.1); */
    
}
/*------------------- Header ----------------------*/

/*------------------- Horizontal Menu ----------------------*/

.horizontal-menu {
    background-color: rgba(255, 255, 255, 0.8); /* Efeito translúcido */
    backdrop-filter: blur(10px); /* Desfoque atrás do menu */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(45, 64, 89, 0.1);
    padding: 15px 0;
}

.horizontal-menu .container {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.menu-links {
    display: flex;
    gap: 40px; /* Espaço entre os itens na horizontal */
    margin-bottom: 15px;
}

.horizontal-menu a {
    text-decoration: none;
    color: #2D4059;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap
}

/* Números (Tech Style) */
.horizontal-menu a span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #D4A373;
    margin-right: 8px;
}

/* O Ponto (Dot) no Hover agora aparece ACIMA do texto */
.horizontal-menu a::before {
    content: '';
    position: absolute;
    top: -8px; /* Ajustado para aparecer em cima */
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background-color: #D4A373;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.horizontal-menu a:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.horizontal-menu a:hover {
    color: #D4A373;
}


.line-horizontal {
    width: 100%;
    max-width: 600px; 
    height: 1px;
    background-color: #D4A373;
    opacity: 0.4;
}

/*------------------- Horizontal Menu ----------------------*/


/*------------------- Main Banner ----------------------*/

section.main-banner {
    padding: 60px 0;
    min-height: auto;
    background-color: #FFFF; 
}

section.main-banner > .container{
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    min-height: 60vh; /* Ensures full viewport height */
    text-align: center; /* Ensures text alignment */
}

.items-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0; 
}

.call-container{
    width: 50%;
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

.call-container span {
    font-size: 14px;
    color: #D4A373; /* Tom dourado para o convite */
    font-weight: 700;
    letter-spacing: 3px; /* Espaçamento entre letras para ar moderno */
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.call-container h1 {
    color: #2D4059;
    font-size: 54px; /* Aumentado para ser o centro das atenções */
    font-weight: 900; /* Peso máximo para autoridade */
    line-height: 1.1;
    margin-bottom: 15px;
}

.call-container h2 {
    /* Fonte monoespaçada para remeter a código/dados */
    font-family: 'Courier New', Courier, monospace; 
    color: #2D4059;
    opacity: 0.85;
    font-size: 20px;
    background: #f4f4f4; /* Fundo cinza claro para destacar o cargo */
    display: inline-block;
    padding: 5px 12px;
    border-left: 4px solid #D4A373; /* Detalhe lateral de design */
    font-weight: 600;
}

.call-container p {
    padding: 10px 0;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    max-width: 580px;/
}

.call-container p strong {
    color: #2D4059;
    font-weight: 700;
    position: relative;
    padding: 0 2px;
    background: linear-gradient(120deg, rgba(212, 163, 115, 0.15) 0%, rgba(212, 163, 115, 0.15) 100%);
    border-radius: 3px;
}

.main-menu{
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.main-menu li{
    list-style: none;
    margin-bottom: 30px;
}

.main-menu ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Garante que a lista também se alinhe à direita */
}

a.main-btn {
    width: 280px; 
    padding: 20px;
    border: 1px solid #D4A373;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    background-color: #D4A373;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden; 
    transition: all 0.3s ease;
}

a.main-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF; /* Cor destaque */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

a.main-btn:hover {
    color: #D4A373;
    border-color: #D4A373;
    transform: translateX(8px);
}

a.main-btn:hover::after {
    left: 0; 
}

#typewriter-name{
    color: #2D4059;
    font-size: 62px;
    font-weight: 900;
    display: inline-block; /* Importante para o cursor ficar colado na letra */
    min-height: 70px; /* Evita que o parágrafo abaixo suba enquanto não há texto */
}

/* Efeito do cursor piscando */
#typewriter-name::after {
    content: '|';
    margin-left: 8px;
    color: #D4A373;
    font-weight: 300;
    animation: blink 0.8s infinite;
}

/*------------------- Main Banner ----------------------*/

/*------------------- Projects ----------------------*/

section.projects{
    min-height: auto;
    padding: 80px 0;
    background-color: #FFFF;
    color: #2D4059;
}

main.main-projects{
    flex: 1 0 auto; /* O 1 faz crescer, o auto mantém o tamanho do conteúdo */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.call-projects::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #D4A373;
    margin: 20px 0 40px 0;
    border-radius: 2px;
}

.call-projects h1 {
    color: #2D4059;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.call-projects h1{
    font-size: 50px;
    font-weight: 300;
}

.call-projects span {
    color: #D4A373; /* Usando seu dourado para o subtítulo */
    font-weight: 600;
    letter-spacing: 1px;
}

.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-wrp {
    background-color: #FFFFFF; /* O card fica branco para contrastar com o fundo cinza */
    border: 1px solid #EAE0D5;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(45, 64, 89, 0.05); /* Sombra muito suave */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    opacity: 0; /* Começam invisíveis */
    animation: slideInUp 0.6s ease-out forwards;
}

.project-wrp:hover{
    scale: 1.05;
    transition: 0.4s ease;

}

.project-wrp:nth-child(1) {
    animation-delay: 0.7s; /* Aparece logo após o loader sumir */
}

.project-wrp:nth-child(2) {
    animation-delay: 0.9s; /* Aparece 200ms depois do primeiro */
}

.project-wrp:nth-child(3) {
    animation-delay: 1.1s; /* Aparece 200ms depois do primeiro */
}


.project-wrp:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 163, 115, 0.15); /* Sombra brilha em dourado */
}

.project-wrp img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.github-icon-link {
    color: #2D4059;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10; /* Garante que fique acima do link do card */
    position: relative;
    display: inline-block; 
    padding: 5px;
}

.github-icon-link:hover {
    color: #D4A373; 
    transform: scale(1.2);
}

.project-wrp p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 5px;
}

.project-wrp h3 {
    color: #2D4059;
    font-size: 20px;
    margin-bottom: 10px;
}

.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: rgba(212, 163, 115, 0.1); /* Fundo dourado transparente */
    color: #D4A373;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.project-link{
    text-decoration: none; 
    color: #F8F6F4;
}

a.project-link:visited{
    text-decoration: none;
    color: #FFFF;
    
}
/*------------------- Projects ----------------------*/

/*------------------- Footer ----------------------*/

section.footer{
    padding: 20px 0;
    background-color: #2D4059;
    display: flex;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-icons{
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.footer-icons li{
    display: inline-block;
    padding: 10px;
    transition: transform 0.5s ease;
}

.footer-icons li a{
    color: #F8F6F4;
    text-decoration: none;
    transition: color 0.3s ease;
    border: 1.5px solid #F8F6F4;
    border-radius: 50px;
    padding: 8px;
    transition: 0.5s ease;
}

.footer-icons li a:hover{
    background-color: #F8F6F4;
    border: 1.5px solid #F8F6F4;
    color: #1B2A41;
    
}

.footer-icons li:hover{
    transform: translateY(-5px);
}

/*------------------- Footer  ----------------------*/

/*------------------- Contact ----------------------*/

section.contact{
    min-height: 100%;
    padding: 10px 0;
    background-color: #FFFF;
    color: #2D4059;
}

section.contact > .container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0; /* Padding fixo em cima e embaixo */
    min-height: auto; /* REMOVA o 82.3vh */
}

.contact-call-banner{
    padding-top: 60px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    background-color: #FFFF;
}

.contact-call-banner h1{
    font-size: 25px;
    color: #1B2A41;
}

.form-box{
    width: 100%;
    max-width: 800px;
    background-color: #FFFF;
    margin: 0 auto;

}

form label{
    font-weight: 300;
}

form input{
    outline: none;
    padding: 18px;
    margin-bottom: 30px;
}


form input[type=text]{
    width: 100%;
    padding: 18px;
    border: 1px solid #ccc;
    padding-left: 8px;
}

form input[type=email]{
    width: 100%;
    padding: 18px;
    border: 1px solid #ccc;
    padding-left: 8px;
}

form textarea{
    width: 100%;
    padding: 18px;
    height: 300px;
    outline: none;
    border: 1px solid #ccc;
    resize: vertical;
}

.submit-btn-container {
    background-color: transparent; /* Removemos o fundo do container */
    margin: 20px auto;
    height: auto;
    width: 200px;
    border: none; /* A borda agora será do botão, não do container */
}

form button {
    width: 100%;
    height: auto;
    padding: 15px 30px;
    background-color: transparent;
    border: 1px solid #D4A373; /* Borda igual aos botões da home */
    color: #ffff;
    background-color: #D4A373;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Garante que o preenchimento não saia do botão */
    transition: all 0.3s ease;
}

form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

form button:hover {
    color: #D4A373;
    border-color: #D4A373;
    transform: translateX(8px); /* No contato, ele sobe levemente em vez de ir pro lado */
}

form button:hover::after {
    left: 0;
}

/*------------------- Contact ----------------------*/

/*------------------- About ----------------------*/

section.about .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 0;
}

/* Controla o Lado a Lado */
.about-top-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

.about-text-wrp {
    flex: 1; /* Faz o texto ocupar o espaço da esquerda */
}

.about-text-wrp p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* Controla a Imagem */
.about-img-wrp {
    flex-shrink: 0;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    position: relative;
    border: 2px solid #D4A373;
    padding: 10px;
    background: #FFFFFF;
    transition: all 0.4s ease; /* Transição suave para a foto toda */
    cursor: pointer;
    z-index: 1;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Sombra/Borda de fundo da foto */
.profile-img::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #2D4059;
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease; /* Transição suave para a borda */
}

.profile-img:hover::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-color: #D4A373; /* Muda a cor da borda de trás para combinar */
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
}

/* Bloco de Skills (Largura Total) */
.skills-container {
    width: 100%;
    border-top: 1px solid #EAE0D5;
    padding-top: 40px;
}

.skills-container h3 {
    font-size: 22px;
    color: #2D4059;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas na horizontal */
    gap: 15px;
}

.skill-item {
    background: #fdfdfd;
    border: 1px solid #EAE0D5;
    padding: 12px 15px;
    font-size: 13px;
    color: #2D4059;
    font-family: 'Courier New', monospace;
    border-left: 4px solid #D4A373;
    transition: 0.3s;
}

.skill-item:hover {
    transform: translateX(5px);
    background: #fff;
}

/*------------------- About ----------------------*/

/*------------------- Success ----------------------*/
section.success-msg{
    padding: 80px 0;
    min-height: auto;
    background-color: #FFFF;
}

.success-msg-wrp{
    width: 80%;
    padding: 40px;
    height: 100%;
    margin: 0 auto;
    text-align: left;
    border-radius: 12px;
    background-color: #2D4059;
    color: #F8F6F4;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.8), 
                -10px -10px 20px rgba(255, 255, 255, 0.2);
}

.success-msg-wrp h1{
    font-size: 50px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.success-msg-wrp h1 i{
    padding-left: 10px;
    animation: popIn 1.5s ease-out,
                fadeInUp 1s ease-out;
}

.success-msg-wrp p{
    font-size: 23px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;    
}

.success-msg-wrp a{
    text-decoration: none;
    color: #F8F6F4;
    border: 1px solid #F8F6F4;
    padding: 15px 30px;
}

.success-msg-wrp a:hover{
    text-decoration: none;
    color: #2D4059;
    border: 1px solid #F8F6F4;
    background-color: #F8F6F4;
    transition: 0.3s ease-in ;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.8), 
                -10px -10px 20px rgba(255, 255, 255, 0.2);
}
/*------------------- Success ----------------------*/

/*------------------- KeyFrames ----------------------*/

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(80px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp{
    0%{
        background-color: #2D4059;
    }
    100%{
        background-color: #F8F6F4;
    }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*------------------- KeyFrames ----------------------*/

/*------------------- Media Querrys ----------------------*/

/* 1. Desktop Médio / Tablets Grandes (até 1200px) */
@media screen and (max-width: 1200px) {
    .call-container h1 {
        font-size: 42px;
    }
    
    #typewriter-name {
        font-size: 48px;
    }
}

/* 2. Tablets e iPads (até 1024px) - Onde seu layout quebrou */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    /* Ajuste do Banner Principal */
    .items-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .call-container {
        width: 100%;
        text-align: center; 
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .call-container p {
        margin: 0 auto;
    }

    #typewriter-name {
        font-size: 46px;
        min-height: auto;
    }

    /* Ajuste do Menu de Botões */
    .main-menu {
        width: 100%;
        align-items: center;
    }

    .main-menu ul {
        align-items: center;
        padding: 0;
    }

    .main-menu li {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    a.main-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Ajuste da Seção About */
    .about-top-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Smartphones Grandes (até 768px) */
@media screen and (max-width: 768px) {
    header {
        padding: 20px 0;
    }

    /* Remove o float do logo para centralizar */
    .logo-container {
        float: none;
        margin: 0 auto 0 auto;
    }

    .nav-menu {
        display: none;
    }

    .call-container {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .call-container h1, #typewriter-name {
        font-size: 36px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }
}

/* 4. Celulares Pequenos (até 500px) */
@media screen and (max-width: 500px) {
    .call-container h1, #typewriter-name {
        font-size: 28px;
    }

    .call-container h2 {
        font-size: 16px;
    }

    .horizontal-menu .menu-links {
        gap: 15px;
    }

    .horizontal-menu a {
        font-size: 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}