/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #262626;
    --dark-green: #6A7327;
    --medium-green: #818C30;
    --light-green: #E2F263;
    --light-yellow: #F2EB85;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark);
    color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--light-green);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--medium-green);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--medium-green);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(226, 242, 99, 0.3);
}

/* Header */
header {
    background-color: rgba(38, 38, 38, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(106, 115, 39, 0.3);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--light-yellow);
    margin-bottom: 5px;
}

.logo span {
    font-size: 0.9rem;
    color: var(--light-green);
    display: block;
}



nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--light-green);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--light-green);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: calc(100% - 40px);
}

.menu-toggle {
    color: var(--light-green);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Hero Section */

.flip-container {
    perspective: 1000px;
    width: 200px;  
    height: 200px;
    position: relative;
}

.flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
    
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    
    
}

.front {
    background: var(--medium-green);
    color: white;
}

.front .fa-code {
    font-size: 5rem;
}

.back {
    background: #f5f5f5;
    transform: rotateY(180deg);
    
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}
.hero {
    padding-top: 150px;
    background: linear-gradient(135deg, var(--dark-green), var(--dark));
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--light-yellow);
}

.hero-content h2::after {
    margin: 15px 0 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.code-icon {
    font-size: 10rem;
    color: var(--light-green);
    animation: float 3s ease-in-out infinite;
}



@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Projects Section */
.projects {
    background-color: var(--dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(38, 38, 38, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--dark-green);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(226, 242, 99, 0.1);
    border-color: var(--light-green);
}

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--light-green);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-info p {
    color: #ccc;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tags span {
    background-color: var(--dark-green);
    color: var(--light-yellow);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    color: var(--light-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--light-yellow);
}

.project-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* About Section */
.about {
    background-color: var(--dark);
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

.skills {
    margin-top: 20px;
    background-color: var(--dark);
    padding: 20px;
    border-radius: 10px;
}

.skills h3 {
    color: var(--light-yellow);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.1);
}

.skill-icon i {
    font-size: 2.8rem;
    margin-bottom: 8px;
    color: var(--light-green);
}

.skill-icon span {
    font-size: 0.9rem;
    color: var(--light-yellow);
    text-align: center;
    font-weight: 500;
}

.download-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.download-btn {
    background: linear-gradient(135deg, var(--dark-green), var(--medium-green));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(106, 115, 39, 0.4);
}

.download-btn i {
    margin-right: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 115, 39, 0.6);
    background: linear-gradient(135deg, var(--medium-green), var(--dark-green));
}

.download-count {
    margin-top: 20px;
    color: var(--light-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-count i {
    margin-right: 8px;
    color: var(--medium-green);
}

/* Efeito quando o download é concluído */
.download-btn.downloaded {
    background: linear-gradient(135deg, var(--light-green), var(--medium-green));
    color: var(--dark);
}

/* Responsividade */
@media (max-width: 768px) {
    .resume-card {
        flex-direction: column;
        text-align: center;
    }
    
    .resume-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .resume-stats {
        justify-content: center;
    }
}

/* Contact Section */
.contact {
    background-color: var(--dark);
}

.contact-content {
    display: flex;
    gap: 50px;
}

form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--dark-green);
    background-color: rgba(38, 38, 38, 0.7);
    color: #fff;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-green);
}

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

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--light-yellow);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: var(--light-green);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-green);
    color: var(--light-yellow);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--light-green);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(226, 242, 99, 0.3);
}

footer {
    text-align: center;
}

/* Responsividade */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-content h2 {
        text-align: center;
    }
    
    .hero-content h2::after {
        margin: 15px auto 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        padding: 20px 0;
        border-top: 1px solid var(--dark-green);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li a {
        padding: 15px 20px;
        display: block;
    }
    
    nav ul li a::after {
        left: 20px;
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .code-icon {
        font-size: 8rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
}