* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root { /* Onde defines variaveis globais que podes usar em todo o CSS */
    --laranja: #CB6F2C; /* o -- indica que é uma variavel no CSS */
    --laranja-escuro: #8a4f14;
    --preto: #111111;
    --branco: #f5f0ea;
    --laranja-opaco: #ff6a0038;
    --cinzento: #9b9b9b ;
}

body {
    font-family: "Barlow Condensed";
    background: var(--preto);
    color: var(--branco);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

body::before { /* Before cria uma camada invisivel por cima do fundo sem adicionar HTML extra */
    content: ''; /* Necessario para o before funcionar, como nao queremos texto fica vazio */
    position: fixed; /* O elemento fica fixado no ecra mesmo quando se faz scroll */
    inset: 0; /* Ocupa o ecra inteiro */
    background:
    radial-gradient(ellipse at 20% 50% /* Oval posicionado a 20% da esquerda e 50% do topo */, rgba(201,122,32,0.12) /* Cor laranja com 12% de opacidade */ 0% /* Começa com essa cor no centro do gradiente */, transparent 60% /* Vai se desvanecendo ate ficar completamente transparante a 60% de distancia */),
    radial-gradient(ellipse at 80% 20%, rgba(201,122,32,0.07) 0%, transparent 50%);
    pointer-events: none; /* Garante que o elemento nao bloquei os eventos de rato */
}

/* Main container */
#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-container > * { /* Pega todos os elementos filhos de imediato, > garante que so pegue os filhos imediatos, tipo os header, sections (o que esta dentro destes nao) */
    opacity: 0; /* Elementos começam invisiveis */
    transform: translateY(30px); /* Posiciona os elementos 30px abaixo do local final */
    animation: fadeUp 0.8s ease-out forwards; /* Animaçao de subir e aparecer */
}

#main-container > :nth-child(1) { /* Seleciona o primeiro filho direto de main-container */
    animation-delay: 0.1s;
}

#main-container > :nth-child(2) { /* Seleciona o segundo filho direto de main-container */
    animation-delay: 0.1s;
}

#main-container > :nth-child(3) {
    animation-delay: 0.1s;
}

#main-container > :nth-child(4) {
    animation-delay: 0.1s;
}

#main-container > :nth-child(5) {
    animation-delay: 0.1s;
}

@keyframes fadeUp { /* Define a animação real */
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Container */
#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

#header-container h3 {
    font-weight: 400;
    text-transform: uppercase;
    padding: 5px 15px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid var(--laranja);
    font-size: 18px;
    color: var(--laranja);
    background-color: var(--laranja-opaco);
}

#header-container img {
    height: auto;
    width: 200px;
}

/* Linha decorativa */
.deco-line {
    width: 50px;
    height: 5px;
    background-color: var(--laranja);
    border-radius: 15px;
    margin: 25px 0;
}

/* Text Container */
#text-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#text-container h2 {
    font-size: 100px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1; /* Reduz o espaço entre linhas */
    letter-spacing: 0.1rem;
}

#text-container span {
    color: var(--laranja);
}

#text-container p {
    font-size: 20px;
    color: var(--cinzento);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Separador */
.sep {
    width: 100%;
    height: 1px;
    border-radius: 15px;
    background-color: #9b9b9b25;
    margin: 60px 0px;
}

/* Contact container */
#contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}

#contact-container h3 {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--cinzento);
    font-size: 20px;
}

#contact-container a {
    color: var(--laranja);
    text-decoration: none;
    border-bottom: 1px solid var(--laranja);
    transition: color 0.3s ease;
}

#contact-container p {
    font-size: 20px;
    line-height: 1.5;
}

#contact-container a:hover {
    color: #fd9952;
}

#copyright {
    position: fixed;
    bottom: 24px;
    color: #9b9b9b25;
}

/* Responsividade */

/* 4K monitors */
@media screen and (min-width: 2560px) {
    #header-container {
        gap: 90px;
    }

    #header-container h3 {
        font-size: 35px;
        padding: 10px 20px;
    }

    #header-container img {
        width: 500px;
    }

    .deco-line {
        width: 80px;
        height: 8px;
        margin: 40px 0;
    }

    #text-container {
        gap: 40px;
    }

    #text-container h2 {
        font-size: 200px;
    }

    #text-container p {
        font-size: 40px;
        letter-spacing: 1.4px;
    }

    #contact-container {
        gap: 25px;
    }

    #contact-container h3 {
        font-size: 35px;
    }

    #contact-container p {
        font-size: 35px;
    }

    #copyright {
        bottom: 32px;
        font-size: 30px;
    }
}

@media screen and (max-width: 425px) {
    #header-container img {
        width: 180px;
        height: auto;
    }

    #header-container h3 {
        font-size: 16px;
    }

    #text-container h2 {
        font-size: 80px;
    }

    #contact-container h3 {
        font-size: 16px;
    }

    #contact-container p {
        font-size: 16px;
    }

    #copyright p {
        font-size: 12px;
    }
}

@media screen and (max-width: 375px) {
    #header-container img {
        width: 150px;
        height: auto;
    }

    #header-container h3 {
        font-size: 14px;
    }

    #text-container h2 {
        font-size: 70px;
    }

    #text-container p {
        font-size: 17px;
    }
}

@media screen and (max-width: 320px) {
    #header-container {
        gap: 5px;
    }

    #text-container h2 {
        font-size: 60px;
    }

    #text-container p {
        font-size: 15px;
    }

    .sep {
        margin: 40px 0;
    }
}

