/* ===== VARIÁVEIS ===== */
:root {
    /* Tema Padrão - Azul (default) */
    --primary-dark: #0a192f;
    --primary-light: #64ffda;
    --secondary-light: #ccd6f6;
    --text-light: #8892b0;
    --text-white: #e6f1ff;
    --card-bg: #112240;
    --shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Tema Roxo */
[data-theme="purple"] {
    --primary-dark: #2d1b3a;
    --primary-light: #6c5ce7;
    --secondary-light: #a8a4e6;
    --text-light: #b8b5d1;
    --text-white: #ffffff;
    --card-bg: #3a2a48;
    --shadow: 0 10px 30px -15px rgba(108, 92, 231, 0.3);
}

/* Tema Verde Escuro com Dourado */
[data-theme="green"] {
    --primary-dark: #1e3c3f;
    --primary-light: #c9a959;
    --secondary-light: #d4b87a;
    --text-light: #a8b8b9;
    --text-white: #f5f5f5;
    --card-bg: #2a4a4d;
    --shadow: 0 10px 30px -15px rgba(201, 169, 89, 0.3);
}

/* Tema Escuro Neutro */
[data-theme="dark"] {
    --primary-dark: #1a1a1a;
    --primary-light: #e0e0e0;
    --secondary-light: #b0b0b0;
    --text-light: #a0a0a0;
    --text-white: #ffffff;
    --card-bg: #2d2d2d;
    --shadow: 0 10px 30px -15px rgba(255,255,255,0.1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
    position: relative;
}
.logo img {
    width: 45px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-light);
    transition: var(--transition);
}

/* ===== SEÇÕES ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-light);
}

/* ===== HOME ===== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.home-content {
    max-width: 800px;
}

.home-subtitle {
    color: var(--primary-light);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.home-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.home-job {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.home-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.home-description strong {
    color: var(--primary-light);
}

.home-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(204, 214, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== SOBRE ===== */
.about {
    background-color: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text p:last-of-type {
    margin-top: 2rem;
    color: var(--text-white);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: linear-gradient(145deg, var(--card-bg), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    border: 1px solid var(--primary-light);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.image-placeholder:hover::before {
    transform: translateX(100%);
}

.image-profile {
    width: 100%;
}

/* ===== HABILIDADES ===== */
.skills-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.skill-card.featured {
    border-left: 3px solid var(--primary-light);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-card h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== PROJETOS ===== */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-card.featured {
    border: 1px solid var(--primary-light);
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.project-image .image-placeholder {
    height: 100%;
    min-height: 300px;
    border-radius: 0;
}

.project-image img {
    width: 500px;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 3rem 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card.small {
    display: block;
    padding: 1.5rem;
    margin-bottom: 0;
}

.project-card.small h4 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.project-card.small p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== CONTATO ===== */
.contact {
    background-color: var(--card-bg);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    color: var(--text-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-dark);
    border-radius: 8px;
    transition: var(--transition);
    width: fit-content;
    border: 1px solid transparent;
}

.contact-item:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-light);
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--card-bg);
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
}

/* ===== RESPONSIVIDADE ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image .image-placeholder {
        min-height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .home-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .project-card.small {
        padding: 1rem;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-content {
    animation: fadeIn 1s ease-out;
}

.skill-card, .project-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* ===== SELEÇÃO DE TEXTO ===== */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== SELETOR DE TEMAS ===== */
.theme-switcher {
    position: relative;
    margin-left: 1rem;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: rotate(30deg);
}

.theme-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 150px;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.theme-switcher:hover .theme-dropdown {
    display: flex;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    width: 100%;
    font-size: 0.9rem;
}

.theme-option:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--primary-light);
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.theme-option span:first-of-type {
    margin-right: -5px;
    z-index: 1;
}

/* Responsivo para o seletor de temas */
@media screen and (max-width: 768px) {
    .theme-switcher {
        margin: 1rem 0;
    }
    
    .theme-dropdown {
        position: static;
        display: none;
        margin-top: 0.5rem;
    }
    
    .theme-switcher:hover .theme-dropdown {
        display: flex;
    }
    
    .theme-btn {
        margin: 0 auto;
    }
}
