/************ GLOBAL STYLES ************/
* {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html, body {
    overflow-x: hidden; 
    overflow-y: auto;
}

/************ ROOT VARIABLES ************/
:root {
    /* NAVBAR COLORS */
    --nav-gradient: linear-gradient(to right, #ffffff, #5e5e55, #ffffff);
    --nav-link-color: #1a1a1a;
    --nav-link-hover-bg: #9a9d4e33;
    --nav-link-hover-color: white;
    --nav-link-hover-shadow: #9a9d4e80;

    /* TEXT SELECTION */
    --selection-bg: #9a9d4e33;
    --selection-color: black;

    /* LOADING SCREEN */
    --loading-bg: linear-gradient(black, #1a1a1a);
    --loading-shadow: #9a9d4e;

    /* MAIN BODY */
    --main-bg: linear-gradient(to right, #000000, #1a1a1a, #000000);

    /* HEADER */
    --logo-shadow: #ffffff;

    /* FUTURO SOFTWARE TEXT */
    --futuro-bg: #1a1a1a;
    --futuro-color: green;

    /* DIV ABOUT */
    --div-about-bg: #5e5e55cc;
    --div-about-shadow: #5e5e55;
    --div-about-color: white;

    /* IMAGES */
    --img-shadow: #5e5e55;

    /* PROJETOS */
    --projeto1-hover-shadow: #ffffff;
    --projeto2-hover-shadow: #ffffff;
    --button-bg: #1a1a1a;
    --button-hover-bg: #000000;

    /* EXPERIÊNCIA */
    --exp-bg: #1f1f1f;
    --exp-hover-shadow: #ffffff;
    --exp-hover-filter: #dc3523;
    --exp-color: white;
    --exp-competencia-bg: #ffffff;
    --exp-competencia-color: black;

    /* CONTATO */
    --contato-bg: #1a1a1a;
    --contato-color: green;
    --contato-hover-shadow: #23dc2c;

    /* FOOTER */
    --footer-bg: linear-gradient(to right, #ffffff, #5e5e55, #ffffff);
    --footer-link-color: #1a1a1a;
    --footer-link-hover-color: white;
    --footer-link-hover-bg: #9a9d4e33;
    --footer-link-hover-shadow: #9a9d4e80;
}

/************ NAVBAR ************/
.nav {
    background: var(--nav-gradient);
    height: 90px; 
    padding: 0 20px;  
    align-items: center;
    box-shadow: 0 2px 10px #0000004d;
}

.nav a {
    color: var(--nav-link-color);
    text-decoration: none;
    padding: 5px 30px 5px 30px;
    font-weight: bold;
    font-size: 15pt;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
}

.nav a:hover {
    color: var(--nav-link-hover-color);
    background: var(--nav-link-hover-bg);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--nav-link-hover-shadow);
}

.nav-list {
    list-style: none;
    display: flex;
    margin-left: 20px;
    padding: 5px 30px 5px 30px;
}

/************ TEXT SELECTION ************/
::selection {
    color: var(--selection-color);
    background-color: var(--selection-bg);
}

/************ LOADING SCREEN ************/
#loading-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--loading-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.anima {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 4px 0 0 var(--loading-shadow);
    animation: anima 1s linear infinite;
}

.loading-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    color: var(--loading-shadow);
    position: fixed;
    text-transform: uppercase;
    text-align: center;
    line-height: 300px;
    font-size: 32px;
    background: url("../arq/img/Thauã-Logo-GPT.png") no-repeat center/cover;
    box-shadow: 0 0 5px var(--loading-shadow);
}

@keyframes anima {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/************ MAIN BODY ************/
.Current-body {
    background: var(--main-bg);
    min-height: 100vh;
    margin-bottom: 100px;
}

/************ HEADER ************/
header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title { /**TULIO-THAUA-DUTRA**/
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 5px;
    filter: drop-shadow(0 0 15px var(--logo-shadow));
}

.logo { /**MENU**/
    border: none;
    font-size: 15pt;
    cursor: pointer;
    padding: 5px 30px 5px 30px;
    font-weight: bold;
    letter-spacing: 5px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 15px var(--logo-shadow));
}

.logo:hover {
    color: var(--nav-link-hover-color);
    background: var(--nav-link-hover-bg);
    transition: all 0.3s ease-in-out; 
}


/************ FUTURO SOFTWARE ************/
.futuro-software {
    color: var(--futuro-color);
    font-weight: bold;
    font-size: 30px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    background-color: var(--futuro-bg);
    border-radius: 15px;
    width: fit-content;
    margin: 20px auto 0;
}

.blinking-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/************ DIV CONTAINER ************/
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 50px auto;
    max-width: 1000px;
}

/************ DIV ABOUT ME ************/
.div-about {
    animation: slideIn 3s forwards;
    margin: 50px;
    cursor: default;
    min-height: 300px; 
    max-height: 350px; 
    width: 500px;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    border-right: 10px solid var(--button-bg);
    border-bottom: 10px solid var(--button-bg);
    box-shadow: 0 0 10px var(--div-about-shadow);
    background-color: var(--div-about-bg);
    color: var(--div-about-color);
    border-radius: 20px;
    overflow: auto; 
    transition: all 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/************ IMAGEM TULIO ************/
.img-tulio {
    width: 100%; max-width: 270px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--img-shadow);
    border-left: 10px solid var(--button-bg);
    border-bottom: 10px solid var(--button-bg);
}

.img-tulio:active {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    border-left: 10px solid #ffffff85;
    border-bottom: 10px solid #ffffff85;
}

/************ DIV HABILIDADES ************/
#habilidades {
    text-align: center; 
    color: white; 
    background-color: #000000; 
    border-radius: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px;
}

#div-habilidades {
    text-align: center;
    gap: 20px;
    padding: 20px;
}

#div-habilidades img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#div-habilidades img:hover {
    transform: scale(1.2);
    text-align: center;
}

/************ DIV PROJETOS ************/
#projetos {
    text-align: center; 
    color: white;
    background-color: #000000; 
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px;
}

#div-projetos {
    margin: 0;
    gap: 50px;
    display: flex;
    justify-content: center;
}

.projeto1 {
    color: white;
    border: white 3px solid;
    gap: 20px;
    padding: 20px;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.projeto2 {
    color: white;
    border: white 3px solid;
    width: 300px;
    height: 350px;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.projeto1 h3 {
    padding: 5px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    background-color: var(--projeto1-hover-shadow);
}

.projeto2 h3 {
    padding: 5px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    background-color: var(--projeto2-hover-shadow);
}

.projeto1:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px var(--projeto1-hover-shadow);
    cursor: default;
}

.projeto2:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px var(--projeto2-hover-shadow);
    cursor: default;
}

.projeto1:active,.projeto2:active {
    background-color: var(--contato-bg);
}

.projeto1 img, .projeto2 img {
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/************ BOTÃO VER PROJETO ************/
.button-link {
    background-color: var(--button-bg);
    display: inline-block;
    line-height: 40px;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    padding: 5px;
    border-left: 8px solid white;
    border-right: 8px solid white;
    border-bottom: 8px solid var(--div-about-shadow);
    transition: all 0.3s ease-in-out;
}

.button-link:hover {
    transform: scale(1.1);
    background-color: var(--button-hover-bg);
    opacity: 0.8;
    cursor: pointer;
    border-right: 10px solid var(--footer-link-color);
    border-left: 10px solid var(--footer-link-color);
    border-bottom: 10px solid var(--footer-link-color);
}

/************ DIV EXPERIÊNCIA ************/
#experiencia {
    text-align: center; 
    color: white; 
    background-color: #000000;
    margin-top: 100px;
    margin-bottom: 50px;
    padding: 20px;
} 

#div-experiencia {
    margin: 0;
    gap: 50px;
    display: flex;
    margin-top: 10px;
    justify-content: center;
}

.exp1 {
    height: auto;
    width: 300px;
    padding: 30px;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
    border-radius: 20px;
    color: var(--exp-color);
    border: gray 5px solid;
    background-color: var(--exp-bg);
    transition: all 0.3s ease-in-out;
}

.exp1:hover {
    cursor: crosshair;
    transform: scale(1.03);
    box-shadow: 0 0 10px gray;
}

.exp1 h3 {
    font-size: 17pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.exp1 img {
    width: 100px; 
    margin: 0 auto;
    display: block;
    border-radius: 20%;
}

.exp1-competencia {
    gap: 10px; 
    display: flex; 
    flex-wrap: wrap; 
    margin-top: 10px;
}

.exp1-competencia p {
    display: flex;
    font-size: 10pt;
    padding: 5px 10px;
    text-align: center; 
    border-radius: 20px;
    justify-content: center;
    color: var(--exp-competencia-color);
    background-color: var(--exp-competencia-bg);
}

/************ DIV CONTATO ************/
#helloWorld {
    color: var(--contato-color);
    font-weight: bold;
    font-size: 30px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    background-color: var(--contato-bg);
    border-radius: 15px;
    width: fit-content;
    margin: 80px auto 0;
}

.div-contatos {
    text-align: center;
    gap: 50px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 10px auto;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.div-contatos img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.div-contatos img:hover {
    transform: scale(1.2);
    text-align: center;
    filter: drop-shadow(0 0 10px var(--contato-hover-shadow));
}

/************ FOOTER ************/
footer {
    background: var(--footer-bg);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}

footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
    color: var(--footer-link-color);
    font-style: italic;
    height: 100%;
    font-weight: bold;
    transition: all 0.5s ease-in-out;
}

footer a:hover {
    color: var(--footer-link-hover-color);
    background: var(--footer-link-hover-bg);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--footer-link-hover-shadow);
}

/************ MEDIA QUERIES ************/

/* --- Ajuste Desktop --- */
.nav-desktop {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
  max-width: 1100px;
  padding-right: 180px;
  flex-wrap: nowrap;
  margin: 0 auto;
}

.nav-mobile,
.nav-menu {
  display: none;
}

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

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

  .hamburger {
    cursor: pointer;
    font-weight: bold;
    font-size: 15pt;
    color: var(--nav-link-color);
    transition: all 0.3s ease-in-out;
  }

  .hamburger:hover {
    color: var(--nav-link-hover-color);
  }

  /* Painel lateral */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 230px;
    height: 100vh;
    background: var(--button-bg);
    box-shadow: -2px 0 10px #00000090;
    z-index: 1000;
    padding: 30px;
    animation: slideMenu 0.3s ease-in-out;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
  }

  .nav-links {
    list-style: none;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16pt;
    font-weight: bold;
  }

  .nav-links a:hover {
    color: var(--nav-link-hover-color);
    background: var(--nav-link-hover-bg);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--nav-link-hover-shadow);
    transition: all 0.3s ease-in-out;
  }

  @keyframes slideMenu {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
}
