:root {
    --primary-color: #ff6b00;
    /* Laranja principal */
    --primary-hover: #e66000;
    --bg-dark: #0f0f0f;
    --bg-body: #121212;
    --card-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilitários */
.container {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-light-section {
    background-color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    position: relative;
}

/* Botões */
.btn-main {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

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

.btn-sm {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-sm:hover {
    background: var(--primary-hover);
}

/* Navbar */
header {
    background: rgba(15, 15, 15, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;

}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white transition 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    margin-top: 70px;
    /* Desconto da navbar */
}

.profile-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
}

.profile-container:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.social-icons {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: var(--text-white);
    font-size: 1.8rem;
    margin: 0 15px;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Sobre Mim & Skills Atualizado */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.skills-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 80px;
    text-align: center;
}

.skill-icon img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.skill-icon img:hover {
    transform: scale(1.2) translateY(-5px);
}

.skill-icon span {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Forçar ícone do GitHub a ficar visível no fundo escuro */
.icon-dark {
    filter: invert(1) brightness(2);
}

/* Formação (Timeline adaptada para cards) */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card .institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card .status,
.card .date {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Projetos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.project-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 1.8rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    height: 45px;
    /* Alinha os botões */
    overflow: hidden;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.7rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Footer & Contato */
footer {
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 60px 10%;
}

/* Nova classe para o texto que você pediu */
.contact-description {
    font-size: 1.1rem;
    color: #aaa; /* Um tom levemente mais claro que o fundo */
    margin: 1.5rem auto; 
    max-width: 600px;
    line-height: 1.6;
}

.contact-email {
    font-size: 1.2rem;
    margin-bottom: 2rem; /* Aumentado para dar espaço aos ícones */
}

.contact-email a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.contact-email a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #555;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ESSENCIAL PARA FUNCIONAR NO CELULAR
   ========================================= */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid var(--border-color);
        padding-top: 50px;
    }

    .nav-links li {
        margin: 1.5rem 0;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .profile-container {
        width: 150px;
        height: 150px;
    }

    /* Grid adjustment */
    .timeline,
    .project-grid {
        grid-template-columns: 1fr;
        /* Uma coluna no mobile */
    }

    .skills-container {
        padding: 20px;
        gap: 15px;
    }

    .skill-icon {
        width: 70px;
    }
}

/* Correção do Menu Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Animação para o "X" quando a classe .toggle for adicionada */
#mobile-menu.toggle .bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu.toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu.toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ajuste da Navbar Mobile no Media Query */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}
