/* Variáveis globais */
:root {
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --accent-color: #64ffda;
    --secondary-color: #8892b0;
    --highlight-color: #233554;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

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

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

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

h1,
h2,
h3 {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Cabeçalho */
header {
    position: fixed;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Seção do código */
.code-intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.code-container {
    margin: 3rem 0;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
    padding: 20px;
    background-color: var(--highlight-color);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .code-intro {
        align-items: center;
        padding: 80px 1rem 0;
    }

    .code-container {
        max-width: 280px;
        margin: 1.5rem auto;
        padding: 15px;
        font-size: 12px;
    }

    .code-editor {
        height: 120px;
        font-size: 11px;
    }

    .code-text {
        font-size: 11px;
    }

    .container h2 {
        text-align: center;
    }

    .about-text p {
        font-size: 12px;
        text-align: left;
        margin-right: 10px;
    }

    .btn-cv {
        padding: 0.15rem 0.5rem;
        display: inline-flex;
        align-items: center;
        margin-right: 0.3rem;
        margin-top: 0.3rem;
        font-size: 0.6rem;
    }

    .btn-download {
        padding: 0.15rem 0.5rem;
        font-size: 0.6rem;
        margin-right: 0.3rem;
    }
}

.code-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.code-dot-red {
    background-color: #ff5f56;
}

.code-dot-yellow {
    background-color: #ffbd2e;
}

.code-dot-green {
    background-color: #27c93f;
}

.code-editor {
    position: relative;
    height: 200px;
    overflow: hidden;
    font-size: 16px;
    text-align: left;
}

.code-text {
    margin: 0;
    color: var(--text-color);
}

.code-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    vertical-align: middle;
}

.code-comment {
    color: #6A9955;
}

.code-keyword {
    color: #C586C0;
}

.code-string {
    color: #CE9178;
}

.code-function {
    color: #DCDCAA;
}

.typewriter-text {
    opacity: 0;
}

.cursor-line {
    display: flex;
    align-items: center;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Botão */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-weight: bold;
    margin-top: 2rem;
    transition: all 0.3s ease;
    background-color: var(--highlight-color);
}

.btn:hover {
    background-color: rgba(102, 255, 219, 0.1);
    transform: translateY(-5px);
}

/* Seção sobre */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

/* Habilidades */
.skills {
    margin-top: 3rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background-color: var(--highlight-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: rgba(35, 53, 84, 0.8);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.project-card {
    background-color: var(--highlight-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 200px;
    background-color: #233554;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--highlight-color);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(35, 53, 84, 0.8);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

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

/* Rodapé */
footer {
    background-color: var(--highlight-color);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 3rem 0;
    }

    .code-intro {
        padding-top: 100px;
    }

    .about {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.cv-card {
    margin-top: 2rem;
    background-color: var(--highlight-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

.cv-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    padding: 1rem;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    height: 5rem;
}

@media(max-width: 480px) {
    .cv-icon {
        margin-right: 10px;
    }

    .cv-card {
        padding-left: 15px;
        padding-right: 25px;
        justify-content: center;
    }
}

.cv-content {
    flex: 1;
}

.cv-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.cv-content p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.btn-cv,
.btn-download {
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media(max-width:480px) {
    .btn-cv,
    .btn-download{
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        display: flex;
        
    }
}

.btn-download {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-icon {
    margin-right: 0.5rem;
}