/* Melhorias visuais para depoimentos */
.card-depoimento {
    background: linear-gradient(135deg, #232526 60%, #C0C0C0 100%);
    border: 2px solid #C0C0C0;
    border-radius: 18px;
    box-shadow: 0 4px 24px #C0C0C0;
    padding: 32px 24px;
    color: #232526;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInDepo 1.2s ease;
    margin-bottom: 16px;
}

.card-depoimento .depo-aspas {
    font-size: 3.2rem;
    color: #b74b4b;
    margin-bottom: 8px;
}

.card-depoimento .depo-texto {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 18px;
    margin-top: 8px;
    color: #fff;
    line-height: 1.5;
}

.card-depoimento .depo-nome {
    font-size: 1.2rem;
    color: #b74b4b;
    font-weight: bold;
    margin-bottom: 2px;
}
.card-depoimento .depo-cargo {
    font-size: 1.1rem;
    color: #232526;
    margin-bottom: 8px;
}
.card-depoimento .depo-selo {
    display: inline-block;
    background: #b74b4b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 12px;
    margin-top: 6px;
    box-shadow: 0 2px 8px #23252633;
}

@keyframes fadeInDepo {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Melhorias visuais para habilidades e formação */
.habilidades-cards {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: linear-gradient(120deg, #232526 60%, #b74b4b 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px #b74b4b55;
    padding: 24px;
    color: #fff;
    animation: fadeInCard 1.2s ease;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

.habilidades-cards h3 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 12px #23252699;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.habilidades-cards ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
}

.habilidades-cards ul li span {
    display: inline-block;
    min-width: 80px;
    padding: 2px 12px;
    border-radius: 8px;
    background: #b74b4b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px #23252633;
}

.formacao-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: linear-gradient(120deg, #232526 60%, #C0C0C0 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px #23252655;
    padding: 24px;
    color: #232526;
    animation: fadeInCard 1.2s 0.2s ease backwards;
}

.formacao-card h3 {
    color: #b74b4b;
    font-weight: 700;
    text-shadow: 0 2px 12px #23252699;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.formacao-card ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    padding-left: 8px;
    position: relative;
}
.formacao-card ul li:before {
    content: '•';
    color: #b74b4b;
    font-weight: bold;
    position: absolute;
    left: 0;
}
/* Background topo do site */
.top-background {
    width: 100%;
    min-height: 180px;
    background: url('background.png') center center/cover no-repeat;
    position: relative;
    z-index: 1;
}
/* Efeito de destaque nos cards do portfólio ao passar o mouse */
.card-portfolio {
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    padding: 16px;
    box-shadow: none;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-portfolio h3 {
    margin-bottom: 10px;
    text-align: center;
}
.card-portfolio p {
    margin-bottom: 18px;
    text-align: center;
}
.card-portfolio .btn {
    margin-top: auto;
    align-self: center;
    width: 90%;
}
.card-portfolio:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: none;
    z-index: 2;
    /* Mantém apenas o efeito de leve elevação, sem alterar tamanho ou layout */
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    padding-top: 7rem;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background: linear-gradient(90deg, #232526 0%, #C0C0C0 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border-bottom: 2px solid #b74b4b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 2.4rem;
    color: #C0C0C0;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav {
    background: rgba(35,37,38,0.85);
    backdrop-filter: blur(2px);
    border-radius: 1.2rem;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 8px #23252633;
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 2rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #C0C0C0;
}

@media(max-width:995px){
    header {
        flex-wrap: wrap;
        padding: 1rem 3%;
    }
    .menu-toggle {
        display: block !important;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
        z-index: 101;
    }
    nav {
        position: absolute;
        display: none;
        top: 5rem;
        right: 2rem;
        width: 60vw;
        border-left: 3px solid #C0C0C0;
        border-bottom: 3px solid #C0C0C0;
        border-bottom-left-radius: 2rem;
        padding: 2rem 1rem;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
        box-shadow: 0 4px 24px #23252633;
    }
    nav.active {
        display: block;
    }
    nav a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #C0C0C0;
    }
}

section{
    padding: 2.5rem 6% 2.5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: linear-gradient(120deg, #232526 0%, #b74b4b 100%), url('img/BackgroundAbstractLines.png') center center/cover no-repeat;
    animation: fadeInBg 1.2s ease;
}
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}
    /* Background da section home */
    .home {
        position: relative;
        background: url('img/BackgroundAbstractLines.png') center center/cover no-repeat;
        min-height: 100vh;
        z-index: 1;
    }

.home .home-content h1{
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #b74b4b;
    text-shadow: 0 2px 12px #23252699;
    letter-spacing: 2px;
}

span{
    color: #C0C0C0;
}

.home-content h3{
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #C0C0C0;
    text-shadow: 0 1px 8px #23252666;
}

.home-content p{
    font-size: 1.6rem;
    background: rgba(35,37,38,0.65);
    border-radius: 1.2rem;
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 16px #23252633;
    color: #fff;
    margin-bottom: 2rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    max-width: 400px;
    min-width: 220px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 64px 0 #232526, 0 0 32px 8px #b74b4b, 0 0 0 8px #232526;
    border: 6px solid #232526;
    cursor: pointer;
    transition: box-shadow 0.4s, border 0.4s, filter 0.4s;
    margin-top: 50px;
    filter: brightness(1.08) drop-shadow(0 0 24px #b74b4b);
}

.home-img img:hover{
    box-shadow: 0 0 96px 0 #b74b4b, 0 0 48px 12px #fff, 0 0 0 12px #232526;
    border: 8px solid #b74b4b;
    filter: brightness(1.18) drop-shadow(0 0 48px #fff);
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #C0C0C0;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #C0C0C0;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #C0C0C0;
    box-shadow: 0  0 25px #C0C0C0;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: linear-gradient(90deg, #232526 0%, #b74b4b 100%);
    border-radius: 4rem;
    font-size: 1.3rem; /* 21px */
    color: #fff;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    box-shadow: 0 2px 12px #23252655;
    transition: 0.3s ease, box-shadow 0.3s;
    cursor: pointer;
    animation: fadeInBtn 1.2s 0.3s backwards;
}
@keyframes fadeInBtn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn:hover{
    transform: scale3d(1.08);
    background: linear-gradient(90deg, #b74b4b 0%, #232526 100%);
    color: #fff;
    box-shadow: 0 4px 24px #b74b4b99;
    background-color: #C0C0C0;
    color: black;
    box-shadow: 0 0 25px #C0C0C0;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #C0C0C0;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
    border-left: 3px solid #C0C0C0;
    }
}

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Youtuber";
    }
    81%, 100%{
        content: "Script Writer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* Acessibilidade e conforto visual */
h1, h2, h3 {
    font-size: 2.2rem; /* 34px */
}
.btn {
    font-size: 1.3rem; /* 21px */
}
.card-portfolio p, .card-servico p, .card-depoimento p, .formacao-card li, .habilidades-cards li {
    font-size: 1.2rem; /* 19px */
}
.home-content p, .servicos-section p, .portfolio-section p, .depoimentos-section p {
    font-size: 1.4rem; /* 22px */
}

@media (max-width: 600px) {
    body {
        font-size: 1.1rem;
        padding-left: 5vw;
        padding-right: 5vw;
    }
    section, .servicos-section, .portfolio-section, .depoimentos-section, .habilidades-section, .formacao-section, .experiencia-section, .contact-section {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
        box-sizing: border-box;
        max-width: 100vw;
    }
    .home-content, .servicos-cards, .portfolio-cards, .depoimentos, .habilidades-cards, .formacao-card {
        max-width: 100vw;
        word-break: break-word;
    }
    .menu-toggle {
        right: 3vw !important;
        top: 2rem !important;
    }
    nav {
        right: 3vw !important;
        top: 6rem !important;
        width: 90vw !important;
        padding: 2rem 1rem !important;
    }
    nav a {
        font-size: 1.2rem !important;
        margin: 1rem 0 !important;
        padding: 0.8rem 1rem !important;
    }
}

/* Responsividade para formulário de contato */
@media (max-width: 600px) {
    .contact-form {
        min-width: 90vw !important;
        max-width: 98vw !important;
        padding: 12px !important;
        gap: 8px !important;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 1rem !important;
        padding: 8px !important;
    }
    .contact-form button {
        font-size: 1rem !important;
        padding: 0.7rem 1.5rem !important;
    }
    .contact-form div {
        gap: 12px !important;
        font-size: 1.5rem !important;
    }
}

/* Scroll horizontal suave para portfólio */
.portfolio-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
}
.portfolio-cards {
    display: flex;
    gap: 32px;
    min-width: 100vw;
}

/* Esconder barra de rolagem em navegadores modernos */
.portfolio-carousel::-webkit-scrollbar {
    height: 8px;
    background: #232526;
}
.portfolio-carousel::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .home-img {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 2rem;
    }
    .home-img img {
        display: block;
        margin: 0 auto;
        width: 80vw;
        height: auto;
        box-shadow: 0 0 18px #C0C0C0;
    }
    .menu-toggle {
        right: 6vw !important;
        top: 2.5rem !important;
    }
}
