/*
 * Estilos Globais e Reset
 */
:root {
    --color-primary: #00FFFF; /* Ciano para destaque */
    --color-secondary: #007BFF; /* Azul para botões/links */
    --color-background: #121212; /* Fundo escuro moderno */
    --color-text: #FFFFFF; /* Texto principal branco */
    --color-text-secondary: #B0B0B0; /* Texto secundário/parágrafos */
    --spacing-unit: 8px;
}

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

html {
    scroll-behavior: smooth; /* Smooth scroll nativo e performático */
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal */
}

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

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

/*
 * Tipografia e Títulos
 */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: calc(2 * var(--spacing-unit));
}

.section-title {
    font-size: 2.5rem; /* Mobile first */
    text-align: center;
    padding-top: calc(8 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: calc(6 * var(--spacing-unit));
    color: var(--color-text-secondary);
}

.highlight {
    color: var(--color-primary);
}

/*
 * Header e Navegação
 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(2 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    background-color: rgba(18, 18, 18, 0.9); /* Fundo semi-transparente */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: none; /* Esconde no mobile por padrão */
    list-style: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: calc(2 * var(--spacing-unit)) 0;
}

.nav-links li {
    text-align: center;
    padding: var(--spacing-unit) 0;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: var(--spacing-unit) calc(4 * var(--spacing-unit));
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Mostra no mobile */
}

/*
 * Hero Section
 */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(10 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("./img/adrien-olichon-RCAhiGJsUUE-unsplash.jpg") center/cover no-repeat fixed;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    margin-bottom: calc(4 * var(--spacing-unit));
}

.hero-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-unit);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: calc(4 * var(--spacing-unit));
}

.hero-description {
    font-size: 1rem;
    margin-bottom: calc(6 * var(--spacing-unit));
}

.cta-button {
    display: inline-block;
    padding: calc(2 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    background-color: var(--color-primary);
    color: var(--color-background);
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #00D5FF;
    transform: translateY(-2px);
}

/*
 * About Section
 */
.about-section {
    padding: calc(4 * var(--spacing-unit));
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    margin-bottom: calc(3 * var(--spacing-unit));
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/*
 * Skills Section
 */
.skills-section {
    padding: calc(4 * var(--spacing-unit));
}

.skills-container {
    display: flex;
    flex-direction: column; /* Mobile: empilhado */
    gap: calc(4 * var(--spacing-unit));
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: calc(4 * var(--spacing-unit));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.skill-title {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-unit);
}

.skill-specialty {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: calc(2 * var(--spacing-unit));
}

.skill-list {
    list-style: disc;
    margin-left: calc(4 * var(--spacing-unit));
    color: var(--color-text-secondary);
}

/*
 * Projects Section
 */
.projects-section {
    padding: calc(4 * var(--spacing-unit));
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: calc(4 * var(--spacing-unit));
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.project-card a {
    display: block;
    padding: calc(2 * var(--spacing-unit));
    text-align: center;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: calc(2 * var(--spacing-unit));
}

.project-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

.project-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/*
 * Contact Section
 */
.contact-section {
    padding: calc(8 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(3 * var(--spacing-unit));
    margin-top: calc(4 * var(--spacing-unit));
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-unit);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: calc(1.5 * var(--spacing-unit));
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: var(--color-text);
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    padding: calc(2 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    background-color: var(--color-primary);
    color: var(--color-background);
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: #00D5FF;
    transform: translateY(-2px);
}

.social-links {
    margin-top: calc(6 * var(--spacing-unit));
}

.social-links a {
    font-size: 2rem;
    margin: 0 calc(2 * var(--spacing-unit));
    color: var(--color-text-secondary);
}

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

/*
 * Footer
 */
.footer {
    text-align: center;
    padding: calc(4 * var(--spacing-unit));
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/*
 * Media Queries (Responsividade)
 */

/* Tablet (768px e acima) */
@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }

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

    .skills-container {
        flex-direction: row; /* Tablet: lado a lado */
        justify-content: space-between;
    }

    .skill-card {
        flex: 1;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 colunas */
    }

    .menu-toggle {
        display: none; /* Esconde o botão de menu no tablet e desktop */
    }

    .nav-links {
        display: flex; /* Mostra os links no tablet e desktop */
        flex-direction: row;
        gap: calc(3 * var(--spacing-unit));
    }

    .nav-links.active {
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
    }
}

/* Desktop (1024px e acima) */
@media (min-width: 1024px) {
    .header {
        padding: calc(3 * var(--spacing-unit)) calc(8 * var(--spacing-unit));
    }

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

    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 colunas */
    }
}

/* Container da logotipo */
.logotipo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Imagem da logotipo */
.logotipo img {
    width: 4rem;          /* tamanho padrão */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efeito ao passar o mouse */
.logotipo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    -webkit-filter: brightness(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .logotipo img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .logotipo img {
        width: 70px;
    }
}
