/* Modern Portfolio CSS */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

/* CSS Variables for easy color management */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #4db8e8;
    --accent-color: #ff6b6b;
    --text-dark: #ffffff;
    --text-light: #a0a0a0;
    --text-muted: #666666;
    --background-dark: #0a0a0a;
    --background-card: #1a1a1a;
    --background-elevated: #252525;
    --border-color: #333333;
    --shadow-light: 0 4px 20px rgba(0, 102, 204, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 102, 204, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-secondary: linear-gradient(135deg, #4db8e8 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-dark);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow-light);
    background: rgba(10, 10, 10, 0.98);
}

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

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--background-card);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Bandeiras CSS */
.flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Bandeira do Brasil - Versão melhorada */
.pt-flag {
    background: #009739;
    position: relative;
}

.pt-flag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #FEDD00;
    border-radius: 1px;
}

.pt-flag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 3px;
    background: #012169;
    border-radius: 50%;
    z-index: 1;
}

/* Bandeira da Espanha */
.es-flag {
    background: linear-gradient(to bottom, 
        #C60B1E 0%, 
        #C60B1E 25%, 
        #FFC400 25%, 
        #FFC400 75%, 
        #C60B1E 75%, 
        #C60B1E 100%
    );
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: var(--background-elevated);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--background-dark);
    padding: 100px 0 50px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(77, 184, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(77, 184, 232, 0.5);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--secondary-color);
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: none;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.hero-social a {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--background-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.hero-social a:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

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

.image-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.image-container:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.image-container:hover::before {
    opacity: 0.5;
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--background-card);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--background-elevated);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

/* About Skills & Languages */
.about-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.skills-section h3,
.languages-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateX(5px);
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.skill-item:hover i {
    color: var(--background-dark);
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-item {
    padding: 1rem;
    background: var(--background-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.language-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.language-name {
    font-weight: 600;
    color: var(--text-dark);
}

.language-level {
    font-size: 0.9rem;
    color: var(--text-light);
}

.language-bar {
    height: 6px;
    background: var(--background-dark);
    border-radius: 3px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Skills Section */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category {
    background: var(--background-elevated);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(77, 184, 232, 0.5);
}

.category-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: inline-block;
}

.tech-item:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Experience Section */
.experience {
    background: var(--background-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-content {
    background: var(--background-elevated);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    border: 15px solid transparent;
    border-right-color: var(--background-elevated);
}

.timeline-item.current-role .timeline-content {
    background: var(--background-card);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.timeline-item.current-role .timeline-content::before {
    border-right-color: var(--background-card);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--background-dark);
    box-shadow: 0 0 0 4px var(--primary-color), 0 0 20px rgba(0, 102, 204, 0.5);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-header h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.current-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.timeline-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--background-elevated);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.education-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.education-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.education-info h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-date {
    display: inline-block;
    background: var(--background-dark);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.education-description {
    line-height: 1.6;
    color: var(--text-light);
}

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

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-elevated);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-light);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-elevated);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.2rem;
}

/* Form Styles */
.form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: transparent;
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .tech-items {
        gap: 0.5rem;
    }
    
    .tech-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background-dark);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .nav-link {
        color: var(--text-light);
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background: var(--background-elevated);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .flag-icon {
        width: 16px;
        height: 10px;
    }
    
    .pt-flag::before {
        width: 6px;
        height: 6px;
    }
    
    .pt-flag::after {
        width: 4px;
        height: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 120px 0 50px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }
    
    .hero-image {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
    
    /* Corrigir sobreposição do scroll-indicator com hero-social em mobile */
    .hero-social {
        position: relative;
        z-index: 10;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
        z-index: 5;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .image-container {
        width: 150px;
        height: 150px;
        margin: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }

    .skill-category {
        padding: 1.5rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-header i {
        font-size: 2.5rem;
    }
    
    .tech-list {
        gap: 1rem;
    }
    
    .tech-group {
        gap: 0.5rem;
    }
    
    .tech-items {
        gap: 0.5rem;
    }
    
    .tech-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline {
        padding-left: 0;
        max-width: 100%;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 5px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content::before {
        left: -12px;
        top: 20px;
        border-width: 12px;
    }
    
    .timeline-skills {
        gap: 0.25rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

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

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .education-icon {
        margin: 0 auto 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-link {
        flex-direction: row;
        padding: 0.75rem;
        justify-content: center;
        min-width: 120px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        padding: 1.5rem;
        top: 70px;
    }

    .hero {
        padding: 100px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .image-container {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }

    .about-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-stats {
        margin-top: 2rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.75rem;
    }

    .skill-category {
        padding: 1rem;
    }
    
    .category-header i {
        font-size: 2rem;
    }
    
    .category-header h3 {
        font-size: 1.25rem;
    }
    
    .tech-group-title {
        font-size: 0.9rem;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        left: 2px;
        width: 14px;
        height: 14px;
    }
    
    .timeline::before {
        left: 9px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content::before {
        left: -10px;
        border-width: 10px;
    }
    
    .timeline-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-header h4 {
        font-size: 1rem;
    }

    .education-card {
        padding: 1rem;
    }
    
    .education-info h3 {
        font-size: 1.1rem;
    }

    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 1rem 0;
    }
    
    .footer-text p {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Corrigir layout de idiomas em dispositivos móveis */
    .language-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .language-name {
        width: 100%;
        margin-bottom: 0.2rem;
    }
    
    .language-level {
        font-size: 0.85rem;
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
}

/* Correção específica para idiomas em telas pequenas */
@media (max-width: 768px) {
    .about-content .language-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .about-content .language-name {
        width: 100% !important;
        margin-bottom: 0.3rem !important;
        display: block !important;
    }
    
    .about-content .language-level {
        font-size: 0.8rem !important;
        margin-left: 0 !important;
        width: 100% !important;
        text-align: left !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .language-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .language-name {
        width: 100% !important;
        margin-bottom: 0.3rem !important;
        display: block !important;
    }
    
    .language-level {
        font-size: 0.8rem !important;
        margin-left: 0 !important;
        width: 100% !important;
        text-align: left !important;
        display: block !important;
        color: var(--text-light) !important;
    }
    
    .language-item {
        margin-bottom: 1.5rem !important;
    }
    
    /* Correção adicional para scroll-indicator em mobile muito pequeno */
    .hero-social {
        margin-bottom: 1.5rem !important;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 5px !important;
        opacity: 0.8;
    }
    
    .scroll-arrow {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Landscape orientation for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
        text-align: left;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .image-container {
        width: 160px;
        height: 160px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .image-container {
        width: 160px;
        height: 160px;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
}

/* Animation for skill bars on scroll */
.skill-bar.animate {
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--skill-level);
    }
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
