* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    font-family: sans-serif;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #000000;
}
body a{
    text-decoration: none;
    color: #2777b9;
    padding:1px 1px;
}
main {
    flex: 1;
    padding: 0 100px;
    padding-top: 80px;
}
.title-p {
    padding: 20px 0;
    opacity: 0;
    color: #e9ecef;;
}
.title-p h1 {
    font-weight: lighter;
}
.title-p p {
    padding: 20px 150px;
    font-size: 20px;
}
main h2 {
    width: 100%;
    height: 10vh;
    padding: 50px 0;
    color: #e9ecef;;
}
footer {
    background-color: #13001f;
    opacity: 0.8;
    color: #e9ecef;;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    letter-spacing: 1px;
    width: 100%;
}
.hero-section {
    background-image: url('images/plano de fundo roxo.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 250vh;
    z-index: -1;
    overflow: hidden;
}
header {
    background-color: #13001f;
    opacity: 0.8;
    color: #e9ecef;;
    padding: 10px 0;
    font-size: 17px;
    text-align: center;
    letter-spacing: 1px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 400px;
}
header i {
    color: whitesmoke;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    margin: 0 10px;
}
header .blog-a {
    color: whitesmoke;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    position: fixed;
    right: 100px;
    top: 10px;
}
.about-me {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    padding: 15px 0;
    margin: 20px auto;
    width: 100%;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.about-me img {
    width: 25%;
    height: auto;
    border-radius: 7px;
}
.about-text {
    width: 60%;
    height: auto;
    padding: 20px;
    background-color: #e9ecef;;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.about-me h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #13001f;
}
.about-me p {
    font-size: 16px;
    line-height: 1.5;
    color: #13001f;
    line-height: 25px;
}
.icones {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
}

.icones-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  background-color: #e9ecef; /* Essa é a cor de fundo cinza claro */
  padding: 20px; /* Reduzi para apenas 20px para não ser redundante */
  border-radius: 7px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-item i {
  font-size: 40px;
  margin-bottom: 5px;
}

.tech-item .tech-name {
  font-size: 15px;
  color: #333;
  font-family: Arial, sans-serif;
}
.chat {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    color: #13001f;
    padding: 70px;
    margin: 20px auto;
    width: 80%;
    border-radius: 7px;
    z-index: 100;
}
.chat p {
    font-size: 17px;
    color: #13001f;
    margin-bottom: 4px;
    text-align: center;
}
.chat-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, visibility 0s linear 0.6s;
}
.chat-container.visivel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.chat-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: gainsboro;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: 90vh;
    border-radius: 7px;
    box-shadow: 0 1px 5px #13001f;
}
.chat .chat-container h3 {
    font-size: 25px;
    margin-bottom: 15px;
}
#chat-messages {
    width: 100%;
    height: 400px;
    overflow-y: auto;
    border: 1px solid whitesmoke;
    padding: 15px;
    background-color: whitesmoke;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.user-message {
    background-color: whitesmoke;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}
.ai-message {
    background-color: whitesmoke;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    margin-right: auto;
}
.message strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.85em;
    color: #555;
    font-weight: 600;
}
.message.thinking {
    font-style: italic;
    color: #666;
    background-color: transparent;
    box-shadow: none;
    align-self: flex-start;
}
.message.error {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    align-self: flex-start;
}
.chat-container form {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 10px;
}
.chat-container textarea {
    flex-grow: 1;
    height: 60px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #13001f;
    font-size: 16px;
    font-family: sans-serif;
    resize: none;
    margin: 0;
}
.chat-container textarea ::placeholder{
    color: #13001f;
}
.chat-container button {
    background-color: #26053a;
    color: #e9ecef;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.chat-container button:hover {
    background-color: #13001f;
}
.tech-carousel-container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 15px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}
.tech-carousel-scroll-area {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.tech-carousel-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}
.tech-carousel-track:hover {
    animation-play-state: paused;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    margin: 0 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 1em;
    color: #13001f;
    text-align: center;
}
.tech-item i,
.tech-item img {
    font-size: 1.5em;
    vertical-align: middle;
}
.what-i-learn{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    margin: 0 auto;
    z-index: 100;
}
.what-i-learn p{
    width: 100%;
    padding: 30px 20px;
    border-radius: 7px;
    text-align: center;
    font-size: 17px;
    letter-spacing: 1px;
    color: #e9ecef;
    background-color: #13001f;
    opacity: 0.8;
    margin-top: 30px;
}
.projects{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    z-index: 100;
}
.projects h2{
    width: 100%;
    padding: 0;
    color: #e9ecef;;
}
.project-description {
    font-family: Arial, sans-serif;
    width: 80%;
    margin: 30px auto;
    padding: 25px;
    line-height: 1.7;
    color: #333;
}
.project-description h2 {
    color: #e9ecef;
    font-size: 1.8em;
    padding-bottom: 10px;
}
.project-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3em;
}
.project-card p {
    width: 100%;
    padding: 10px 50px;
    margin-bottom: 15px;
    color: #e9ecef;
    text-align: center;
    z-index: 1000;
}
.project-card ul {
    list-style-type: square;
    padding: 0 50px;
    margin-bottom: 20px;
    text-align: left;
}
.project-card li {
    margin-bottom: 10px;
    color: whitesmoke;
}
.project-card li strong {
    color: wheat;
    margin-right: 5px;
}
.project-card img{
    width: 90%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 7px;
}
.project-card{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 0;
    background-color: #13001f;
    opacity: 0.8;
    border-radius: 7px;
    color: whitesmoke;
}
.project-card h3{
    font-size: 24px;
    color: whitesmoke;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}
.contact{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    padding-bottom: 100px;
    border-radius: 7PX;
    backdrop-filter: blur(10px);
    color: whitesmoke;
    margin-bottom: 50PX;
}
.contact p{
    width: 50%;
    padding: 20px 0;
    font-size: 17px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.contact-fields{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}
.contact-fields a{
    width: 100%;
    text-decoration: none;
    color: #13001f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    background-color: whitesmoke;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.credits{
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 25px;
    color: whitesmoke;
    font-size: 16px;
    background-color: #13001f;
    opacity: 0.8;
    padding: 50px 0;
}
.credits h2{
    padding: 20PX 0;
}
.credits a{
    text-decoration: none;
    color: blueviolet;
}
.credits a:hover{
    color: #ccc;
    transition: 0.3s ease;
}
.redes-sociais-fixo{
    width: 50px;
    position: fixed;
    bottom: 70px;
    right: 70px;
    z-index: 9999;
}
.whatsapp{
    display: flex;
    flex-direction: column;
    width: 50px;
    filter: sepia(0.7);
    transition: 0.3s ease;
}
.whatsapp:hover{
    filter: sepia(0);
    transform: scale(1.2);
}
.whatsapp img{
    width: 50px;
    border-radius: 50%;
    margin: 5px 0;
}
.whatsapp a{
    width: 50px;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@keyframes presentation {
    0% {
        opacity: 0;
        transform: translatey(30px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
.presentation{
    animation: presentation 1.5s ease-in-out forwards;
}

@media (max-width: 600px) {
    .hero-section {
    background-repeat: repeat;
    }
    body {
        background-size: cover;
        padding: 0;
    }
    main {
        padding: 0 10px;
        padding-top: 60px;
    }
    main h2 {
        height: auto;
        padding: 70px 10px;
        padding-bottom: 20px;
        font-size: 1.8em;
    }
    header {
        padding: 10px 0;
        font-size: 15px;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 10px;
    }
    header i {
        font-size: 22px;
        margin: 0 5px;
    }
    header .blog-a {
        position: static;
        font-size: 18px;
        font-weight: bold;
        right: auto;
        top: auto;
    }
    header .dark-mode-box {
        width: auto;
        left: auto;
        right: 10px;
        top: 20%;
    }
    .hero-section{
        opacity: 0.8;
        height: 220vh;
    }
    .title-p{
        width: 100%;
        padding: 50px 0;
        padding-bottom: 0;
    }
    .title-p h1{
        font-size: 2em;
        padding: 10px 10px;
        font-weight: normal;
    }
    .title-p p{
        width: 100%;
        padding: 20px 20px;
        font-size: 20px;
        padding-bottom: 0;
    }
    .about-me {
        flex-direction: column;
        align-items: center;
        width: 95%;
        padding: 10px;
        text-align: center;
    }
    .about-me img {
        width: 70%;
        max-width: 250px;
        margin-bottom: 30px;
        padding-top: 0;
        margin-top: 0;
    }
    .about-text {
        width: 100%;
        text-align: left;
        padding: 10px;
    }
    .about-me h2{
        font-size: 20px;
        text-align: center;
        color: #26053a;
        padding: 10px;
    }
    .about-me p {
        font-size: 18px;
        line-height: 1.5;
    }
    .icones-tech {
        gap: 35px;
        padding: 10px 0; 
    }
    .tech-item .tech-name {
    white-space: pre-wrap;
    max-width: 70px; 
  }
    .chat {
        width: 95%;
        padding: 30px 10px;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .chat .chat-container h3{
        font-size: 20px;
        margin-bottom: 10px;
    }
    .chat p {
        font-size: 18px;
    }
    .chat-container {
        padding: 10px;
        
    }
    #chat-messages {
        padding: 10px;
    }
    .message {
        max-width: 95%;
    }
    .chat-container form {
        flex-direction: column;
        gap: 8px;
    }
    .chat-container textarea {
        height: 50px;
        font-size: 15px;
    }
    .chat-container button {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
    }
    .tech-carousel-container {
        width: 100%;
        margin: 10px auto;
    }
    .tech-item {
        padding: 8px 20px;
        margin: 0 10px;
        font-size: 0.9em;
    }
    .tech-item i,
    .tech-item img {
        font-size: 1.3em;
    }
    .what-i-learn h2{
        margin-top: -10px;
    }
    .what-i-learn p{
        width: 100%;
        font-size: 18px;
    }
    .projects{
        width: 100%;
        padding: 20px 0;
    }
    .projects h3{
        padding: 0 15px;
    }
    .project-description{
        width: 95%;
        padding: 20px 0;
    }
    .project-card{
        padding: 10px 0;
    }
    .contact{
        padding: 0;
    }
    .contact p{
        width: 75%;
        padding: 50px 0;
        font-size: 16px;
    }
    .contact-fields{
        width: 80%;
    }
    .credits{
        width: 100%;
        height: auto;
        padding: 20px 20px;
        font-size: 14px;
    }
    .credits h2{
        font-size: 18px;
        padding: 5px 0;
    }
    .credits a{
        font-size: 14px;
    }
    footer {
        font-size: 12px;
        padding: 8px 0;
    }
    .redes-sociais-fixo{
        left: 30px;
        z-index: 9999;
    }
}