
/* ========================================
   VARIÁVEIS GLOBAIS
======================================== */
:root {
    /* Cores principais */
    --color-primary: #ffffff;
    --color-secondary: #000000;

    /* Cores de texto */
    --color-text: #222222;
    --color-text-light: #ffffff;
    --color-text-dark: #000000;

    /* Backgrounds */
    --color-background: #000000;
    --color-background-overlay: rgba(0, 0, 0, 0.8);
    --color-background-button: #ffffff;

    /* Bordas */
    --color-border: #ffffff;
    --color-border-dark: #000000;
    --color-border-transparent: rgba(255, 255, 255, 0.6);

    /* Efeitos */
    --color-hover: rgba(255, 255, 255, 0.6);
    --color-overlay-start: rgba(0, 0, 0, 1);
    --color-overlay-90: rgba(0, 0, 0, 0.9);
    --color-overlay-64: rgba(0, 0, 0, 0.64);
    --color-overlay-25: rgba(0, 0, 0, 0.25);
}

/* ========================================
   RESET BÁSICO
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

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

h2,
p {
    font-size: 1.25rem;
}

main {
    width: 100%;
}

/* ========================================
   BACKGROUND
======================================== */
.body-background {
    background-image: url('../assets/background-image.png');
    background-size: cover;
    background-position: top;
    height: 100%;
    max-height: 540px;
    width: 100%;
    position: absolute;
    z-index: -1;
}

.body-overlay {
    background: var(--color-background);
    background: linear-gradient(
        0deg,
        var(--color-overlay-start) 0%,
        var(--color-overlay-90) 25%,
        var(--color-overlay-start) 50%,
        var(--color-overlay-64) 60%,
        var(--color-overlay-25) 70%
    );
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    bottom: 0;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 100%;
    width: 1080px;
    margin: 0 auto;
}

/* ========================================
   SECTION
======================================== */
section {
    padding: 4rem 5%;
    color: var(--color-text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-section {
    padding-bottom: 0;
}

.links-section {
    padding-top: 1rem;
}

/* ========================================
   PROFILE
======================================== */
h1 {
    font-size: 2.5rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 2.5rem;
    margin-bottom: .5rem;
}

#imagem-perfil {
    width: 186px;
    height: 186px;
    border-width: 0.5rem;
    border-style: solid;
    border-color: var(--color-border);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

/* ========================================
   FOOTER
======================================== */
footer {
    padding: 1rem 5%;
    text-align: center;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    max-width: 60%;
    width: 1080px;
    margin: 0 auto;
}

footer p {
    font-size: 0.75rem;
}

/* ========================================
   BUTTON LINK
======================================== */
.button-link {
    width: 326px;
    max-width: 100%;
    background-color: var(--color-background-button);
    color: var(--color-text-dark);
    border-radius: 43px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    position: relative;
    margin-top: 1rem;
    font-weight: bold;
    border: 1px solid var(--color-border);
    transition: all ease-in-out .2s;
}

.button-link:hover,
.button-link:focus {
    background-color: var(--color-hover);
}

.button-link .icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-dark);
    padding: 8px;
    position: absolute;
    left: 16px;
}

.button-link p {
    flex: 1;
    font-size: 1rem;
}

/* ========================================
   SECTION SCROLL
======================================== */
h3#titulo-servicos {
    margin-bottom: 16px;
    color: var(--color-text-light);
    text-align: center;
}

.service-section {
    width: 100%;
    overflow-x: auto;
    padding-top: 0;
    margin-bottom: 64px;
    display: block;
}

.service-row {
    display: inline-flex;
    flex-direction: row;
}

.item-service {
    width: 262px;
    height: 262px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 24px;
    border: 4px solid var(--color-border-transparent);
}

.item-service:hover {
    border: 8px solid var(--color-border);
}

.item-service img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.item-service p {
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
    font-style: italic;
    font-size: 1rem;
}

.item-service::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 60px;
    background-color: var(--color-background-overlay);
    z-index: 1;
}

/* ========================================
   MOBILE
======================================== */
@media (max-width: 600px) {
    section {
        padding: 2.5rem 5%;
    }

    .service-section .service-row:nth-child(2) {
        margin-left: 64px;
    }
}


/* ========================================
   FADE IN ON SCROLL
======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Acessibilidade: respeita preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}