:root {
    --primary: #e63946; /* Vermelho vibrante */
    --secondary: #1d3557; /* Azul escuro */
    --accent: #a8dadc; /* Azul claro */
    --dark: #121212; /* Preto */
    --light: #f1faee; /* Branco suave */
    --text: #333;
    --rock-red: #8b0000;
    --rock-blue: #00008b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)),
        url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rockGuitar {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
    margin-left: 0.5rem;
}

.logo .rock-icon {
    margin-left: 1rem;
    font-size: 1.5rem;
    color: var(--rock-red);
    animation: rockGuitar 2s infinite;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

nav ul li a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, rgba(18,18,18,0.9) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    animation: fadeIn 1s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary), var(--rock-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.typing-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    animation: fadeIn 1s ease-out 0.5s both;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
    border: 5px solid var(--primary);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(230, 57, 70, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background-color: rgba(29, 53, 87, 0.5);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: rgba(29, 53, 87, 0.1);
    backdrop-filter: blur(5px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    animation: fadeIn 1s ease-out;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.code-icon {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.7;
}

/* Skills Section */
.skills {
    padding: 5rem 2rem;
    background-color: rgba(18, 18, 18, 0.8);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background-color: rgba(29, 53, 87, 0.3);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 218, 220, 0.1);
    animation: fadeIn 1s ease-out;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.1);
    border-color: var(--primary);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Languages Section */
.languages {
    padding: 5rem 2rem;
    background-color: rgba(230, 57, 70, 0.05);
}

.language-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.language-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background-color: rgba(29, 53, 87, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.language-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.language-bar {
    height: 10px;
    background-color: rgba(168, 218, 220, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.language-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--rock-blue));
    border-radius: 5px;
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background-color: rgba(18, 18, 18, 0.9);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: rgba(29, 53, 87, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out;
    border: 1px solid rgba(168, 218, 220, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.2);
    border-color: var(--primary);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

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

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background-color: rgba(230, 57, 70, 0.2);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:first-child {
    background-color: var(--primary);
}

.project-links a:last-child {
    background-color: transparent;
    border: 1px solid var(--light);
}

.project-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(29,53,87,0.3));
    backdrop-filter: blur(5px);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--rock-red));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.footer-social a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    color: var(--accent);
    font-size: 0.9rem;
}

.rock-quote {
    margin-top: 2rem;
    font-style: italic;
    color: var(--accent);
    position: relative;
}

.rock-quote::before,
.rock-quote::after {
    content: '"';
    color: var(--primary);
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.95);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.8rem 2rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 8rem 1rem 4rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .typing-text {
        white-space: normal;
        animation: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .language-item {
        min-width: 100%;
    }
}



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

.additional-projects {
    display: none;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}