/* ===== VARIABLES ===== */

:root {
    --primary-color: #FFD700; /* Amarelo Dourado */
    --secondary-color: #1a1a1a; /* Cinza Escuro (quase preto) */
    --accent-color: #FFFFFF;
    --background-color: #121212; /* Fundo Principal Escuro */
    --surface-color: #1E1E1E; /* Cor de superfície para cards, etc. */
    --text-color: #E0E0E0; /* Texto Principal (cinza claro) */
    --text-light: #A0A0A0; /* Texto Secundário (cinza mais suave) */
    --border-color: #2c2c2c;
    --gradient: linear-gradient(135deg, var(--primary-color), #f5b80b);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--accent-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== NAVIGATION ===== */

.navbar {
    background: rgba(18, 18, 18, 0.85) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: rgba(30, 30, 30, 0.95) !important;
    box-shadow: var(--shadow);
}

.navbar-brand .navbar-logo {
    height: 40px;
    transition: var(--transition);
}
.navbar-brand .navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.5rem 0 !important;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    background: none !important;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 215, 0, 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 215, 0, 0.8 )' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

.hero-content .text-primary {
    color: var(--primary-color) !important;
}
.hero-content .text-muted {
    color: var(--text-light) !important;
}

.profile-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border: 7px solid var(--surface-color);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
}
.hero-buttons .btn-primary:hover {
    background: var(--gradient);
    border-color: #FFC700;
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}
.hero-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
section:nth-child(odd) {
    background: var(--surface-color);
}
#home {
    border-bottom: none;
}

/* ===== ABOUT & RESUME SECTION ===== */
.about-content p, .timeline-content p {
    color: var(--text-light);
}

.skills-section .progress {
    height: 8px;
    border-radius: 10px;
    background: #2c2c2c;
    overflow: hidden;
}
.skills-section .progress-bar {
    background: var(--gradient);
}

.soft-skill-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.soft-skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}
.soft-skill-card i {
    color: var(--primary-color) !important;
}

/* ===== PROJECTS SECTION ===== */
.project-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--surface-color);
    box-shadow: none;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}
.project-card .card-body {
    background-color: var(--surface-color);
}
.project-card .card-title {
    color: var(--accent-color);
}
.project-card .card-text {
    color: var(--text-light);
}
.project-overlay {
    background: rgba(18, 18, 18, 0.85);
}
.project-tech .badge {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 500;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-marker {
    position: absolute;
    left: -2px;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--surface-color);
}
.timeline-content {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}
.timeline-content h5 {
    color: var(--accent-color);
}
.timeline-content .text-muted {
    color: var(--text-light) !important;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background-color: var(--background-color);
}

.contact-form .form-control {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    padding: 0.85rem 1.2rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: var(--surface-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
}

.contact-form .form-control::placeholder {
    color: var(--text-light);
}

/* Estilo unificado para todos os ícones de contato e social */
.contact-item {
    display: inline-block; /* Permite que o item se comporte como um bloco mas fique em linha */
    text-decoration: none; /* Remove o sublinhado do link */
    color: var(--text-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px); /* Efeito de levantar ao passar o mouse */
    color: var(--primary-color); /* Muda a cor do texto (h6) no hover */
}

.contact-item h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
    color: var(--primary-color); /* Cor inicial do ícone */
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color); /* Cor do ícone no hover */
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    /* Adiciona espaçamento lateral em todas as seções para tablets e celulares */
    section .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Reduz o tamanho da fonte dos títulos principais em telas de tablet */
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Centraliza o conteúdo da seção Hero e ajusta o texto */
    .hero-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content h2 {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .hero-section {
        padding-top: 100px; /* Adicionado para evitar que a navbar cubra a imagem */
    }

    .hero-image {
        margin-top: 2rem; /* Adicionado para empurrar a imagem para baixo */
    }

    .profile-img {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem; /* Adiciona espaço abaixo da foto de perfil */
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center; /* Centraliza os links no menu mobile */
    }
    
    .hero-buttons .btn {
        margin: 0.5rem 0;
    }

    .about-content p, .timeline-content p, .hero-content p{
        text-align: justify;
    }

    .contact-item {
        margin-left: 0.3rem !important; /* Reduz um pouco mais a margem lateral */
        margin-right: 0.3rem !important; /* Reduz um pouco mais a margem lateral */
    }

    .contact-icon {
        width: 50px; /* Reduz a largura do círculo do ícone */
        height: 50px; /* Reduz a altura do círculo do ícone */
    }

    .contact-icon .fa-2x { /* Alvo específico para o tamanho do ícone Font Awesome */
        font-size: 1.5em; /* Reduz o tamanho do ícone Font Awesome */
    }

    .contact-item h6 {
        font-size: 0.85rem; /* Reduz o tamanho do texto abaixo do ícone */
    }
}

@media (max-width: 576px) {
    /* Reduz o padding das seções para telas muito pequenas */
    section {
        padding: 4rem 0;
    }

    /* Adiciona espaçamento lateral extra no corpo do site */
    body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-section {
        padding-top: 120px; /* Ajuste adicional para telas muito pequenas */
    }

    .hero-image {
        margin-top: 2.5rem; /* Ajuste adicional para telas muito pequenas */
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }

    /* Ajusta o tamanho dos ícones de contato para caberem melhor na tela */
    .contact-item {
        margin-left: 0.3rem !important;
        margin-right: 0.3rem !important;
    }

    .about-content p, .timeline-content p, .hero-content p {
        text-align: justify;
    }

    .contact-icon {
        width: 30px; /* Reduz a largura do círculo do ícone */
        height: 30px; /* Reduz a altura do círculo do ícone */
    }

    .contact-icon .fa-2x { /* Alvo específico para o tamanho do ícone Font Awesome */
        font-size: 1em; /* Reduz o tamanho do ícone Font Awesome */
    }

    .contact-item h6 {
        font-size: 0.70rem; /* Reduz o tamanho do texto abaixo do ícone */
    }
    .footer-text {
        font-size: 0.8rem; /* Ajuste este valor conforme necessário */
    }
    .hero-buttons {
        display: flex;          /* Ativa o Flexbox */
        justify-content: center;/* Centraliza os botões na horizontal */
        align-items: center;    /* Alinha os botões na vertical (útil se tiverem alturas diferentes) */
        gap: 1rem;              /* Cria um espaço de 16px entre os botões */
    }

    /* 2. Reduz o tamanho de cada botão dentro do contêiner */
    .hero-buttons .btn {
        padding: 0.5rem 1rem;   /* Diminui o preenchimento interno do botão */
        font-size: 0.9rem;      /* Diminui o tamanho da fonte do texto do botão */
    }
}

/* ===== LOADING ANIMATION ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient);
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-hover-custom {
    box-shadow: var(--shadow-hover);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

