/* Paleta de cores inspirada no One Piece com toque moderno */
:root {
    --primary: #1E3D59;
    /* Azul do mar - mais escuro */
    --secondary: #FFC947;
    /* Amarelo dourado do tesouro */
    --accent: #D72323;
    /* Vermelho do chapéu de palha */
    --dark: #0A192F;
    /* Azul marinho escuro */
    --light: #F8F9FA;
    /* Branco suave */
    --text: #333333;
    /* Cor do texto principal */
    --text-light: #6C757D;
    /* Cor do texto secundário */
}

/* Modo Escuro */
:root .dark-mode {
    --primary: #0A192F;
    --secondary: #FFC947;
    --accent: #D72323;
    --dark: #121212;
    --light: #0A192F;
    --text: #E0E0E0;
    --text-light: #B0B0B0;
}

/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text);
}

img {
    max-width: 100%;
    height: auto;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(215, 35, 35, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.dark-mode .btn-outline {
    border-color: var(--text);
    color: var(--text);
}

.dark-mode .btn-outline:hover {
    background-color: var(--text);
    color: var(--primary);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.dark-mode .navbar,
.dark-mode .navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.dark-mode .navbar-brand {
    color: var(--text) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 50px;
}

.dark-mode .nav-link {
    color: var(--text) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--text);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.dark-mode .hero-title {
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.dark-mode .hero-text {
    color: var(--text-light);
}

.text-accent {
    color: var(--accent);
    font-weight: 600;
}

.hero-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03);
}

.tech-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.tech-badge.python {
    background: linear-gradient(135deg, #3776AB, #FFD43B);
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.tech-badge.powerbi {
    background: linear-gradient(135deg, #F2C811, #E67E22);
    bottom: -20px;
    left: -20px;
    animation-delay: 1s;
}

.tech-badge.sql {
    background: linear-gradient(135deg, #00758F, #F29111);
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Seções */
.section-py {
    padding: 80px 0;
}

.bg-light {
    background-color: rgba(248, 249, 250, 0.5);
}

.dark-mode .bg-light {
    background-color: rgba(10, 25, 47, 0.7) !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.dark-mode .section-title {
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Cards */
.about-card,
.skills-card,
.project-card,
.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .about-card,
.dark-mode .skills-card,
.dark-mode .project-card,
.dark-mode .testimonial-card {
    background-color: var(--primary);
    color: var(--text);
}

.about-card:hover,
.skills-card:hover,
.project-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--secondary);
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.dark-mode .timeline-content h4 {
    color: var(--text);
}

.timeline-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.dark-mode .timeline-content p {
    color: var(--text-light);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(215, 35, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.skill-info h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.dark-mode .skill-info h5 {
    color: var(--text);
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.dark-mode .progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    background-color: var(--accent);
}

/* Projetos */
.project-card {
    padding: 0;
    overflow: hidden;
}

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

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

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 61, 89, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark-mode .project-links {
    background-color: rgba(10, 25, 47, 0.8);
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.project-content {
    padding: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tech span {
    font-size: 0.75rem;
    background-color: rgba(215, 35, 35, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.dark-mode .project-title {
    color: var(--text);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.dark-mode .project-description {
    color: var(--text-light);
}

/* Tecnologias */
.tech-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    text-align: center;
    width: 120px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: all 0.3s ease;
}

.dark-mode .tech-icon {
    background-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon img {
    max-height: 50px;
    object-fit: contain;
}

.tech-item h5 {
    font-size: 1rem;
    color: var(--primary);
}

.dark-mode .tech-item h5 {
    color: var(--text);
}

/* Depoimentos */
.testimonial-card {
    padding: 25px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    margin-right: 15px;
}

.testimonial-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.dark-mode .testimonial-info h5 {
    color: var(--text);
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.testimonial-rating {
    color: var(--secondary);
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 2rem;
    color: rgba(215, 35, 35, 0.2);
}

/* Seção de Contato */
.social-container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.dark-mode .social-container {
    background-color: var(--primary);
}

.social-intro {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.social-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.dark-mode .social-intro p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(215, 35, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    background-color: var(--accent);
    color: white;
}

.social-link span {
    color: var(--primary);
    font-weight: 500;
}

.dark-mode .social-link span {
    color: var(--text);
}

/* Footer */
.footer-section {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.dark-mode .footer-section {
    background-color: var(--primary) !important;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(215, 35, 35, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsividade */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .section-py {
        padding: 60px 0;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 15px 0;
    }

    .hero-section {
        text-align: center;
        padding: 90px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        margin-top: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .project-title,
    .project-description {
        text-align: center;
    }

    .btn-project {
        margin: 0 auto;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 80px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 8px 20px;
    }

    .tech-item {
        width: 100px;
    }

    .tech-icon {
        width: 70px;
        height: 70px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 70px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .social-link span {
        font-size: 0.8rem;
    }
}
