@charset "UTF-8";

/* ========================================
   IMPORTS E FONTES
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ========================================
   VARIÁVEIS CSS (CUSTOM PROPERTIES)
======================================== */
:root {
    /* Cores principais */
    --primary-color: #00ff08;
    --secondary-color: #353535;
    --text-color: #fff;
    --background-color: #000;
    --overlay-color: rgba(0, 0, 0, 0.88);

    /* Transições */
    --transition-speed: 0.3s;

    /* Espaçamentos */
    --section-padding: 60px 0;
    --container-padding: 0 5%;
    --border-radius: 15px;

    /* Sombras */
    --box-shadow-light: 0 2px 10px rgba(255, 255, 255, 0.1);
    --box-shadow-primary: 0 10px 30px rgba(0, 255, 8, 0.2);
}

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

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

/* ========================================
   COMPONENTES UTILITÁRIOS
======================================== */

/* Skip Link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 8px;
    z-index: 100;
    transition: top var(--transition-speed);
}

.skip-link:focus {
    top: 0;
}

/* Container principal */
.container {
    width: 100%;
    padding: var(--container-padding);
    margin: 0 auto;
}

/* Botão CTA */
.cta-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary-color);
}

/* ========================================
   TIPOGRAFIA
======================================== */
h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h2 span {
    color: var(--primary-color);
}

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

/* ========================================
   HEADER E NAVEGAÇÃO
======================================== */

/* Header principal */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow-light);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

/* Logo */
.header-logo img {
    width: 40px;
    height: 40px;
}

/* Navegação mobile */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--background-color);
    border-left: 2px solid var(--primary-color);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
    display: block;
}

.main-nav.menu-open {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 255, 8, 0.2);
}

/* Lista de navegação */
.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.nav-item {
    width: 100%;
    margin: 10px 0;
}

.nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 255, 8, 0.2);
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text-color);
}

/* Botão do menu mobile */
.mobile-menu-button {
    display: block;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.mobile-menu-button:hover {
    color: var(--text-color);
}

/* Overlay do menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   ANIMAÇÕES
======================================== */

/* Animação do menu */
.menu-open .nav-item {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.5s forwards;
    animation-delay: calc(0.1s * var(--item-index, 0));
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Índices para animação escalonada */
.nav-item:nth-child(1) {
    --item-index: 1;
}

.nav-item:nth-child(2) {
    --item-index: 2;
}

.nav-item:nth-child(3) {
    --item-index: 3;
}

.nav-item:nth-child(4) {
    --item-index: 4;
}

.nav-item:nth-child(5) {
    --item-index: 5;
}

/* ========================================
   SEÇÃO HERO
======================================== */
.hero-section {
    padding: 100px 0 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow-primary);
    margin: 0 auto;
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ========================================
   SEÇÃO DE HABILIDADES
======================================== */
.skills-section {
    padding: var(--section-padding);
}

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

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

.skill-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-light);
}

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

.skill-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   SEÇÃO SOBRE
======================================== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--background-color);
    color: var(--text-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-content p {
    line-height: 1.6;
}

/* Listas de habilidades e diferenciais */
.skills-highlight h3,
.diferentials h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.skills-list,
.differentials-list {
    list-style-type: none;
    padding-left: 1rem;
}

.skills-list li,
.differentials-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.skills-list li::before,
.differentials-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.commitment {
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

/* Links sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: transform var(--transition-speed);
}

.social-link:hover {
    transform: scale(1.1);
}

/* ========================================
   SEÇÃO PORTFÓLIO
======================================== */
.portfolio-section {
    padding: var(--section-padding);
}

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

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-caption {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-in-out;
}

.portfolio-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.5em;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.portfolio-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.portfolio-caption p {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* ========================================
   SEÇÃO CONTATO
======================================== */
.contact-section {
    padding: var(--section-padding);
}

.contact-form {
    width: 100%;
    margin: 0 auto;
}

/* Formulário */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Feedback do formulário */
.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.form-feedback.success {
    background-color: rgba(0, 255, 8, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-feedback.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.form-feedback.loading {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-color: var(--text-color);
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
    padding: 40px 0 20px;
    background-color: #111;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 60px;
    height: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   COMPONENTES ESPECIAIS
======================================== */

/* Botão "Voltar ao topo" */
#backToTopBtn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
    border: none;
    background-color: rgba(0, 255, 8, 0.58);
    color: #fff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#backToTopBtn.show {
    opacity: 1;
}

#backToTopBtn:hover {
    transform: scale(1.1);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVIDADE
======================================== */

/* Tablets - 768px e acima */
@media (min-width: 768px) {
    .container {
        padding: 0 4%;
    }

    /* Tipografia */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero */
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .hero-text {
        text-align: left;
    }

    /* Habilidades */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Sobre */
    .about-content {
        flex-direction: row;
        gap: 3rem;
    }

    .about-text h2 {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Portfólio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contato */
    .contact-form {
        max-width: 600px;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop - 1024px e acima */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Header */
    .main-header {
        padding: 20px 0;
    }

    .header-logo img {
        width: 50px;
        height: 50px;
    }

    /* Navegação desktop */
    .mobile-menu-button {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        border-left: none;
        padding: 0;
        overflow-y: visible;
        display: block;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav-item {
        width: auto;
        margin: 0;
    }

    .nav-link {
        padding: 0;
        font-size: 1rem;
        border-bottom: none;
    }

    /* Tipografia */
    h1 {
        font-size: 2.625rem;
    }

    h2 {
        font-size: 2.375rem;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 12px 40px;
    }

    .skills-section,
    .about-section,
    .portfolio-section,
    .contact-section {
        padding: 80px 0;
    }

    /* Habilidades */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill-icon {
        font-size: 3.5rem;
    }

    .skill-title {
        font-size: 1.5rem;
    }

    /* Portfólio */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-item {
        height: 400px;
    }

    .portfolio-caption h3 {
        font-size: 2rem;
    }

    .portfolio-caption p {
        font-size: 1.2rem;
    }

    /* Footer */
    .main-footer {
        padding: 60px 0 30px;
    }
}