:root {
    
    --red: #E3646E;
    --purple: #BB72E9;
    --blue: #3996DB;
    --green: #82BC4F;
    --yellow: #EABD5F;

    
    --gray-100: #E2E4E9; 
    --gray-200: #C0C4CE; 
    --gray-300: #878EA1; 
    --gray-400: #292C34; 
    --gray-500: #16181D; 
    --gray-600: #0D0E11; 

   
    --font-title: 'Maven Pro', sans-serif;
    --font-subtitle: 'Inconsolata', monospace;
    --font-body: 'Asap', sans-serif;
}

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

body {
    background-color: var(--gray-500);
    color: var(--gray-200);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}


h1 {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 120%;
    margin-bottom: 24px;
}

h2 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 120%;
    margin-bottom: 40px;
}

h3 {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 120%;
}

.subtitle {
    font-family: var(--font-subtitle);
    font-size: 20px;
    font-weight: 400;
    color: var(--gray-200);
    line-height: 120%;
    margin-bottom: 8px;
}

.description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--gray-300);
}

.highlight-red {
    color: var(--red);
}

.section-label {
    font-family: var(--font-subtitle);
    color: var(--red);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}


/* =========================================
   HEADER / HERO SECTION
   ========================================= */
header {
    padding: 100px 0 60px;
    background-image: url('../images/assets/fundo-topo.png'); 
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

/* 
   TRUQUE DE CENTRALIZAÇÃO:
   Isso força tudo que está dentro do container do header 
   (foto, textos, tags) a ficar perfeitamente alinhado no centro.
*/
header .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center;
    text-align: center;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    /* Margem automática nas laterais para garantir */
    margin: 0 auto 32px; 
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid var(--red);
    object-fit: cover;
}

.code-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
}

/* Tags */
.tags-container {
    display: flex;
    justify-content: center; /* Garante que as tags fiquem no meio */
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    width: 100%; /* Garante que o container ocupe a largura para centralizar */
}


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

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px; 
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid var(--red);
    object-fit: cover;
}

.code-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
}


.tags-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.tag {
    background-color: var(--gray-400);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-subtitle);
    font-size: 14px;
    color: var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tag:hover {
    background-color: var(--gray-300);
}

.scroll-icon {
    margin-top: 20px;
    font-size: 24px;
    color: var(--gray-200);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}


#projects {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px; 
    
    justify-content: center; 
    margin: 0 auto;
}

.project-card {
    display: block; 
    background-color: var(--gray-400); 
    border-radius: 12px;
    border: 1px solid var(--gray-400); 
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-5px); 
}

.project-card .image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--gray-600);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center; 
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.2); 
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


#services {
    background-color: var(--gray-600);
    width: 100%;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--gray-600);
    border: 1px solid var(--gray-400);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: var(--gray-300);
}

.service-card i {
    font-size: 32px;
}

.service-info h3 {
    margin-bottom: 4px;
}

.service-info p {
    font-size: 14px;
    color: var(--gray-200);
}


#contact {
    padding: 80px 0 120px;
    
    background-image: url('../images/assets/fundo-contato.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}

.contact-desc {
    margin-bottom: 48px;
    color: var(--gray-200);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--gray-400);
    border: 1px solid var(--gray-400);
    padding: 20px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--gray-200);
    transition: 0.2s;
}

.contact-btn:hover {
    border-color: var(--blue);
    color: var(--gray-100);
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-left img {
    width: 24px;
    height: 24px;
}

.contact-btn i {
    color: var(--blue);
    font-size: 20px;
}


@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 20px; }
    
    header { background-size: cover; }
    #contact { background-size: cover; }
    
    .tags-container { gap: 8px; }
    .tag { padding: 6px 16px; font-size: 12px; }
}