* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f8f9fa;
    --second-bg-color: #ffffff;
    --text-color: #2c3e50;
    --second-color: #546e7a;
    --main-color: #e74c3c;
    --accent-color: #3498db;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-main: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 40px rgba(231, 76, 60, 0.2);
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
    --p-small-font: 0.9rem;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #0f0f0f;
    --second-bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --second-color: #a0a0a0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 15px 40px rgba(231, 76, 60, 0.3);
}

body.dark-mode .about-img img {
    border-color: #2a2a2a;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .home {
    background-image: url(../img/p.png);
}

body.dark-mode .about-hero {
    background-image: url(../img/p.png);
}

body.dark-mode header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .carousel-container {
    background: #000000;
}

body.dark-mode .box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .row {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .carousel-project {
    border-color: rgba(255, 255, 255, 0.05);
}


body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--main-color);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 22px 15%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .45s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

span {
    color: var(--main-color);
}

.navlist {
    display: flex;
}

.navlist a {
    color: var(--second-color);
    font-size: 17px;
    font-weight: 500;
    margin: 0 25px;
    transition: all .45s ease;
}

.navlist a:hover {
    color: var(--main-color);
}

.navlist a.active {
    color: var(--main-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

#darkmode-toggle {
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#darkmode-toggle:hover {
    color: var(--main-color);
    transform: rotate(20deg);
}

body.dark-mode #darkmode-toggle {
    transform: rotate(180deg);
}

#menu-icon {
    font-size: 35px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding: 160px 15% 120px;
}

.home {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide {
    margin-bottom: 20px;
}

.one {
    display: inline-block;
    margin-right: 15px;
    height: 32px;
    padding: 0 15px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background: var(--main-color);
    color: var(--text-color);
}

.two {
    display: inline-block;
    color: var(--second-color);
    font-size: 20px;
    font-weight: 500;
}

.home-text h1 {
    font-size: var(--big-font);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    margin: 0 0 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-text h3 {
    color: var(--text-color);
    margin: 0 0 35px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.link {
    color: rgb(0, 0, 0);
    transition: .5s;
}

.link:hover {
    transition: .5s;
    color: #e4ab32;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-main);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all .45s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    border-color: var(--main-color);
}

.btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 35px;
}

.btn2 span i {
    height: 55px;
    width: 55px;
    background: var(--main-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    border-radius: 50%;
    margin-right: 15px;
    transition: all .45s ease;
}

.btn2 span i:hover {
    transform: scale(0.9);
}

.socials {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 5em;
}

.btn-socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-right: 15px;
}

.btn-socials:nth-child(6) {
    margin-right: 0px;
}

.btn-socials span i {
    height: 55px;
    width: 55px;
    background: var(--main-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    border-radius: 50%;
    transition: all .45s ease;
}

.btn-socials span i:hover {
    transform: scale(0.9);
}

header.sticky {
    background: var(--bg-color);
    border-bottom: 1px solid #ffffff1a;
    padding: 12px 15%;
    height: 10vh;
}

.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.about-img img {
    max-width: 430px;
    height: 430px;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 5px solid #ffffff;
    transition: all 0.4s ease;
    object-fit: cover;
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.3);
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.3);
}

.about-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.about-text h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.7;
    margin: 15px 0 30px;
}

.about-text p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding: auto;
}

.services {
    background: var(--second-bg-color);
}

.main-text {
    text-align: center;
}

.main-text p {
    color: var(--second-color);
    font-size: 15px;
    margin-bottom: 15px;
}

.main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

/* ========== PÁGINA SOBRE MIM ========== */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100%;
    background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15%;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-hero-content h1 span {
    color: var(--main-color);
}

.about-hero-content p {
    font-size: 1.2rem;
    color: var(--second-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SEÇÃO INTRODUÇÃO PESSOAL ========== */
.about-intro {
    padding: 100px 15%;
    background: var(--bg-color);
}

.intro-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    width: 100%;
    position: relative;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--main-color);
    transition: all 0.4s ease;
}

.intro-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.intro-content h2 span {
    color: var(--main-color);
}

.intro-content p {
    font-size: 16px;
    color: var(--second-color);
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(231, 76, 60, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--second-color);
}

.contact-item i {
    font-size: 22px;
    color: var(--main-color);
    min-width: 22px;
}

.contact-item a {
    color: var(--second-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--main-color);
}

.about-details {
    padding: 100px 15% 80px;
    background: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--second-bg-color);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--main-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 35px;
    color: #ffffff;
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--second-color);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.about-card .card-detail {
    color: var(--main-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.about-card .card-description {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-stats-section {
    padding: 80px 15%;
    background: var(--second-bg-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 30px;
    color: #ffffff;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: var(--second-color);
    font-weight: 500;
}

.personal-skills {
    padding: 100px 15%;
    background: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--second-bg-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: var(--shadow-lg);
}

.skill-card i {
    font-size: 50px;
    color: var(--main-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 14px;
    color: var(--second-color);
    line-height: 1.7;
}

.cta-section {
    padding: 100px 15%;
    background: var(--second-bg-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--second-color);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--gradient-main);
    color: #ffffff;
}

/* ========== CARROSSEL DE TECNOLOGIAS ========== */
.tech-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 5rem 0 4rem;
    padding: 2rem 0;
    position: relative;
}

.tech-carousel-wrapper::before,
.tech-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--second-bg-color) 0%, transparent 100%);
}

.tech-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--second-bg-color) 0%, transparent 100%);
}

.tech-carousel {
    width: 100%;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.tech-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 140px;
    padding: 25px 20px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Cores oficiais das tecnologias */
.tech-javascript i {
    color: #F7DF1E;
}

.tech-javascript:hover {
    border-color: #F7DF1E;
}

.tech-typescript i {
    color: #3178C6;
}

.tech-typescript:hover {
    border-color: #3178C6;
}

.tech-react i {
    color: #61DAFB;
}

.tech-react:hover {
    border-color: #61DAFB;
}

.tech-html i {
    color: #E34F26;
}

.tech-html:hover {
    border-color: #E34F26;
}

.tech-css i {
    color: #1572B6;
}

.tech-css:hover {
    border-color: #1572B6;
}

.tech-nodejs i {
    color: #339933;
}

.tech-nodejs:hover {
    border-color: #339933;
}

.tech-java i {
    color: #007396;
}

.tech-java:hover {
    border-color: #007396;
}

.tech-spring i {
    color: #6DB33F;
}

.tech-spring:hover {
    border-color: #6DB33F;
}

.tech-php i {
    color: #777BB4;
}

.tech-php:hover {
    border-color: #777BB4;
}

.tech-postgres i {
    color: #4169E1;
}

.tech-postgres:hover {
    border-color: #4169E1;
}

.tech-mysql i {
    color: #00758F;
}

.tech-mysql:hover {
    border-color: #00758F;
}

.tech-prisma i {
    color: #2D3748;
}

.tech-prisma:hover {
    border-color: #2D3748;
}

.tech-docker i {
    color: #2496ED;
}

.tech-docker:hover {
    border-color: #2496ED;
}

.tech-git i {
    color: #F05032;
}

.tech-git:hover {
    border-color: #F05032;
}

.tech-item i {
    font-size: 50px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.tech-item:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* Soft Skills Grid */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    max-height: 300px;
    min-height: 200px;
    text-align: center;
    background: var(--bg-color);
    padding: 35px 45px;
    border-radius: 8px;
    transition: all .45s ease;
}

.s-icons i {
    font-size: 36px;
}

.box h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

.box:hover {
    transform: translateY(-8px);
}

.portfolio-content {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.row:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--main-color);
}

.row img {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
}

.row:hover img {
    transform: scale(1.1);
}

.layer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(231, 76, 60, 0.95) 100%);
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 40px;
    transition: height 0.4s ease;
}

.row:hover .layer {
    height: 100%;
}

.layer h5 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.layer p {
    color: #f8f9fa;
    font-size: var(--p-small-font);
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.layer i {
    color: var(--main-color);
    margin-top: 20px;
    font-size: 20px;
    background: var(--text-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Ajuste para o carrossel não herdar estilos conflitantes */
.carousel-project .carousel-container img {
    height: 580px;
    border-radius: 20px;
    transform: none !important;
}

.carousel-project:hover .carousel-container img {
    transform: none !important;
}

/* Layer aparece no hover do carrossel */
.carousel-project .layer {
    height: 0;
    z-index: 15;
}

.carousel-project:hover .layer {
    height: 100%;
}

.end {
    letter-spacing: 1px;
    text-align: center;
    padding: 20px 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--bg-color);
}

.last-text p {
    color: var(--second-color);
    font-size: var(--p-font)
}

#top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#top.hide-top {
    opacity: 0;
    visibility: hidden;
}

#top.show-top {
    opacity: 1;
    visibility: visible;
}

#top i {
    padding: 12px;
    border-radius: 50%;
    font-size: 24px;
    color: #ffffff;
    background: var(--gradient-main);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top i:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.experience {
    background-color: var(--second-bg-color);
}

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

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

.container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 32px;
    margin: 2rem;
}

.text-box {
    padding: 20px 20px;
    background: var(--bg-color);
    border-radius: 10px;
    color: var(--text-color);
    width: 60vw;
}

.text-box h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.text-box small {
    font-size: 14px;
    font-weight: 800;
}

.text-box p {
    letter-spacing: 1px;
    line-height: 1.8;
    font-size: var(--p-font);
    margin: 1rem 0;
}

@media (max-width: 1480px) {
    header {
        padding: 12px 2.5%;
        transition: .1s;
    }

    header.sticky {
        padding: 10px 2.5%;
        transition: .1s;
    }

    section {
        padding: 110px 3% 60px;
    }

    .end {
        padding: 15px 3%;
    }
}

@media (max-width: 1100px) {
    :root {
        --big-font: 4rem;
        --h2-font: 2rem;
        --p-font: 0.9rem;
        transition: .1s;
    }

    .home-text h3 {
        font-size: 1.6rem;
    }

    .home {
        height: 87vh;
    }

    .about-text h4 {
        font-size: var(--p-small-font)
    }
}

@media (max-width: 920px) {

    .about {
        grid-template-columns: 1fr;
    }

    .about-img {
        display: none;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 800px) {

    #menu-icon {
        display: block;
    }

    .navlist {
        position: absolute;
        top: -1000px;
        right: 0;
        left: 0;
        height: 90vh;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        text-align: center;
        justify-content: center;
        transition: all .45s ease;
    }

    .navlist a {
        display: block;
        margin: 17px;
        font-size: 20px;
        transition: all .45s ease;
        color: var(--text-color);
    }

    .navlist a:hover {
        color: var(--main-color);
    }

    .navlist.open {
        top: 100%
    }

    .home {
        position: relative;
        height: 87vh;
        width: 100%;
        background-image: url(../img/background.jpg);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .btn {
        font-size: 0.7rem;
    }

    .socials {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }

    .text-box {
        width: 100%;
    }

    .container img {
        display: none;
    }

    .home {
        height: 100vh;
    }

    #top {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .home-text p {
        color: var(--second-color);
        font-size: var(--p-font);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .link {
        color: rgb(0, 0, 0);
        transition: .5s;
    }

    .link:hover {
        transition: .5s;
        color: #e4ab32;
    }
}

/* ========== MELHORIAS NOS PROJETOS ========== */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.project-tags .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--main-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.project-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}

.project-btn i {
    font-size: 18px;
}

/* ========== CARROSSEL DE IMAGENS ========== */
.carousel-project {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.carousel-project:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--main-color);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 20px;
    background: #1a1a1a;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: rotateY(-90deg) scale(0.8);
    transform-origin: center;
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 20px;
}

.carousel-slide.active {
    opacity: 1;
    transform: rotateY(0) scale(1);
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    pointer-events: auto;
    opacity: 0.3;
}

.carousel-project:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--main-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-btn i {
    font-size: 30px;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: #ffffff;
    width: 30px;
    border-radius: 5px;
}

/* Badge "NOVO" no projeto */
.carousel-project::before {
    content: 'NOVO';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-main);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 11;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========== BOTÃO CV COM ÍCONE ========== */
.btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* ========== ANIMAÇÕES SUTIS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about,
.portfolio,
.services {
    animation: fadeInUp 0.8s ease-out;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 800px) {
    .project-links {
        flex-direction: column;
    }

    .project-btn {
        justify-content: center;
    }

    /* Carrossel de tecnologias mobile */
    .tech-carousel-wrapper {
        margin: 3rem 0 3rem;
        padding: 1.5rem 0;
    }

    .tech-carousel-wrapper::before,
    .tech-carousel-wrapper::after {
        width: 80px;
    }

    .tech-track {
        gap: 1.5rem;
        animation: scroll 20s linear infinite;
    }

    .tech-item {
        min-width: 110px;
        padding: 20px 15px;
        gap: 10px;
    }

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

    .tech-item span {
        font-size: 12px;
    }

    .soft-skills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== SEÇÃO DE EXPERIÊNCIA ========== */
.experience {
    background-color: var(--second-bg-color);
    padding: 100px 15% 120px;
}

.experience .main-text {
    text-align: center;
    margin-bottom: 4rem;
}

.experience .main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--main-color);
    border: 4px solid var(--second-bg-color);
    border-radius: 50%;
    top: 24px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12.5px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12.5px;
}

.timeline-date {
    display: inline-block;
    padding: 8px 15px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content {
    padding: 25px;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.timeline-content h3 {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h4 {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-end;
}

.timeline-tags .tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--main-color);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== SEÇÃO DE CERTIFICAÇÕES ========== */
.certifications {
    background-color: var(--bg-color);
    padding: 100px 15% 120px;
}

.certifications .main-text {
    text-align: center;
    margin-bottom: 4rem;
}

.certifications .main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.certifications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--second-bg-color);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
    border-color: var(--main-color);
}

.cert-icon {
    flex-shrink: 0;
}

.cert-icon i {
    font-size: 50px;
    color: var(--main-color);
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.cert-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.cert-issuer {
    font-size: 14px;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cert-description {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 1.6;
    margin-bottom: 12px;
}

.cert-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ========== SEÇÃO DE BLOG ========== */
.blog {
    background-color: var(--second-bg-color);
    padding: 100px 15% 120px;
}

.blog .main-text {
    text-align: center;
    margin-bottom: 1rem;
}

.blog .main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.blog-subtitle {
    text-align: center;
    color: var(--second-color);
    font-size: var(--p-font);
    margin-bottom: 4rem;
}

.blog-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
    border-color: var(--main-color);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 20px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.blog-info {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--second-color);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--main-color);
}

.blog-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-info p {
    font-size: var(--p-font);
    color: var(--second-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tags span {
    font-size: 12px;
    color: var(--main-color);
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
}

.blog-link i {
    font-size: 20px;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

.blog-cta p {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========== RESPONSIVIDADE DAS NOVAS SEÇÕES ========== */
@media (max-width: 920px) {

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 17.5px;
        right: auto;
    }

    .timeline-tags {
        justify-content: flex-start !important;
    }

    .certifications-content {
        grid-template-columns: 1fr;
    }

    .blog-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .experience,
    .certifications,
    .blog {
        padding: 80px 5% 80px;
    }

    .cert-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .blog-image {
        height: 200px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVIDADE PÁGINA SOBRE ========== */
@media (max-width: 920px) {
    .about-hero {
        height: 50vh;
        padding: 0 10%;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .about-hero-content p {
        font-size: 1rem;
    }

    .about-intro {
        padding: 70px 10%;
    }

    .intro-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .intro-content h2 {
        font-size: 2rem;
    }

    .about-details,
    .about-stats-section,
    .personal-skills,
    .cta-section {
        padding: 70px 10%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item h4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .about-hero {
        height: auto;
        min-height: 350px;
        padding: 0 5%;
    }

    .about-hero-content h1 {
        font-size: 2rem;
    }

    .about-hero-content p {
        font-size: 0.95rem;
    }

    .about-intro {
        padding: 50px 5%;
    }

    .intro-image {
        max-width: 280px;
    }

    .intro-image img {
        border: 3px solid var(--main-color);
    }

    .intro-content h2 {
        font-size: 1.75rem;
    }

    .intro-content p {
        font-size: 15px;
    }

    .intro-contact {
        margin-top: 25px;
        padding-top: 25px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item i {
        font-size: 20px;
    }

    .about-details,
    .about-stats-section,
    .personal-skills,
    .cta-section {
        padding: 50px 5%;
    }

    .about-card {
        padding: 25px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 30px;
    }

    .about-card h3 {
        font-size: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card i {
        font-size: 40px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
    }
}