@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #00AEEF; 
    --primary-dark: #0077cc;
    --bg-color: #f8fafc; 
    --surface-color: #ffffff; 
    --text-primary: #0f172a; 
    --text-secondary: #64748b; 
    --footer-bg: #0f172a;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--primary-color); }
.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: #f1f5f9; }
.mt-4 { margin-top: 30px; }

/* Botões */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: all var(--transition-speed) ease; cursor: pointer; font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary-color); color: #ffffff !important; border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.3);
}
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: #ffffff !important; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-primary); border: 2px solid #e2e8f0; }
.btn-secondary:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Navegação */
.navbar { padding: 20px 0; position: sticky; top: 0; background-color: rgba(248, 250, 252, 0.9); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-primary); }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 600; margin-left: 30px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

/* Hero Section */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; padding: 60px 0; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; }
.hero-content { flex: 1; max-width: 600px; }

.hero-greeting { font-size: 1.2rem; color: var(--primary-color); font-weight: 600; margin-bottom: 15px; }
.wave { display: inline-block; animation: wave-animation 2.5s infinite; transform-origin: 70% 70%; }
.hero-title { font-size: 3.5rem; line-height: 1.1; font-weight: 800; color: var(--text-primary); margin-bottom: 24px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }

.social-links-hero { display: flex; flex-wrap: wrap; gap: 15px; }
.social-links-hero a { 
    display: flex; align-items: center; justify-content: center; 
    width: 45px; height: 45px; border-radius: 50%; 
    background-color: var(--surface-color); color: var(--text-secondary); 
    font-size: 1.2rem; text-decoration: none; transition: 0.3s; border: 1px solid #e2e8f0; 
}
.social-links-hero a:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-3px); }

/* Ícone de Scroll Animado */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-indicator a {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.scroll-indicator a:hover { opacity: 1; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Imagem e Selos */
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.image-wrapper { 
    position: relative; width: 100%; max-width: 400px; aspect-ratio: 1/1; 
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
}
.profile-img { width: 90%; height: 90%; object-fit: cover; border-radius: 50%; z-index: 2; }
.tech-badge { 
    position: absolute; width: 50px; height: 50px; background: white; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 3; animation: float 6s ease-in-out infinite; 
}
.badge-1 { top: 5%; left: 0%; color: #61DAFB; animation-delay: 0s; }
.badge-2 { bottom: 15%; right: -5%; color: #777BB4; animation-delay: 2s; }
.badge-3 { bottom: 5%; left: 10%; color: #336791; animation-delay: 4s; }
.badge-4 { top: 15%; right: -5%; color: #68A063; animation-delay: 1s; }
.badge-5 { top: 45%; left: -15%; color: #FFD43B; animation-delay: 3s; }
.badge-6 { top: 55%; right: -15%; color: #F7DF1E; animation-delay: 5s; }

/* Sobre Mim & Stats */
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-top: -30px; margin-bottom: 50px; }

.about-content { display: flex; flex-direction: column; gap: 40px; }
.about-text p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 20px; text-align: justify; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { 
    background: var(--surface-color); padding: 30px 20px; border-radius: var(--border-radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; 
    text-align: center; transition: transform 0.3s; 
}
.stat-box:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* Stack Técnico */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card { 
    background: var(--surface-color); padding: 40px 30px; border-radius: var(--border-radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; 
    transition: 0.3s; position: relative; overflow: hidden; 
}
.skill-card::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; 
    background-color: var(--primary-color); transform: scaleX(0); transform-origin: left; 
    transition: transform 0.4s ease; 
}
.skill-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 174, 239, 0.1); border-color: transparent; }
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.skill-card h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-primary); }
.skill-list { list-style: none; }
.skill-list li { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.skill-list li i { color: var(--text-primary); width: 20px; text-align: center; }

/* Projetos */
.category-title { font-size: 1.5rem; color: var(--text-primary); margin: 60px 0 25px 0; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media screen and (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.project-card { background: var(--surface-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: 0.3s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 174, 239, 0.15); }
.project-image { width: 100%; height: 220px; background-color: #f8fafc; padding: 20px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e2e8f0; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; transition: transform 0.5s ease; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-content { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.project-content h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 15px; }
.project-description { color: var(--text-secondary); margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6; flex: 1; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tech-tags span { background-color: #f1f5f9; color: var(--primary-dark); font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid #e2e8f0; }
.project-links { display: flex; gap: 15px; flex-wrap: wrap; margin-top: auto; }
.project-links a, .project-links span.btn-secondary { padding: 10px 20px; font-size: 0.9rem; flex: 1; text-align: center; }

/* Contato e Footer */
.contact-container { max-width: 600px; margin: 0 auto; background: var(--surface-color); padding: 40px; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--text-primary); background-color: #f8fafc; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); background-color: #ffffff; box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1); }
.form-status { margin-top: 15px; font-size: 0.95rem; font-weight: 600; text-align: center; border-radius: 8px; display: none; }
.form-status.success { display: block; color: #15803d; background: #dcfce7; padding: 15px; }
.form-status.error { display: block; color: #b91c1c; background: #fee2e2; padding: 15px; }

.footer { background-color: var(--footer-bg); color: white; padding: 80px 0 30px 0; }
.footer-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
.footer-subtitle { font-size: 1.1rem; color: #94a3b8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.footer-social { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: white; font-size: 1.2rem; text-decoration: none; transition: 0.3s; }
.footer-social a:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; color: #64748b; font-size: 0.9rem; }

/* Animações */
@keyframes wave-animation { 0% { transform: rotate(0.0deg) } 10% { transform: rotate(14.0deg) } 20% { transform: rotate(-8.0deg) } 30% { transform: rotate(14.0deg) } 40% { transform: rotate(-4.0deg) } 50% { transform: rotate(10.0deg) } 60% { transform: rotate(0.0deg) } 100% { transform: rotate(0.0deg) } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; transform: translateY(30px); }
.delay-1 { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   AJUSTES RESPONSIVOS AVANÇADOS (MOBILE FIRST)
   ========================================== */

/* Tablets */
@media screen and (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 992px) {
    .hero { padding: 40px 0; min-height: auto; } /* Solta a altura no tablet */
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.8rem; }
    .hero-cta, .social-links-hero { justify-content: center; }
    .nav-links { display: none; }
    
    .image-wrapper { max-width: 250px; margin: 0 auto; }
    .tech-badge { width: 40px; height: 40px; font-size: 1.1rem; }
    .badge-1 { left: -10px; } .badge-2 { right: -10px; } .badge-4 { right: -10px; } .badge-5 { left: -15px; } .badge-6 { right: -15px; }

    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .contact-container { padding: 25px; }
}

/* Celulares (Ajustes para Primeira Dobra de Tela e 2 Colunas) */
@media screen and (max-width: 768px) {
    /* Compressão da primeira dobra */
    .hero { padding: 20px 0 60px 0; } /* Ajuste fino para caber os botões sem rolar */
    .hero-title { font-size: 2.1rem; margin-bottom: 12px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
    .hero-cta { margin-bottom: 20px; gap: 10px; }
    .hero-greeting { margin-bottom: 8px; font-size: 1rem; }
    .hero-container { gap: 30px; }
    
    /* Imagem menor para sobrar espaço */
    .image-wrapper { max-width: 200px; }
    .tech-badge { width: 35px; height: 35px; font-size: 0.9rem; }
    
    /* Força os Cards "Sobre" a ficarem 2 por linha */
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-box { padding: 15px 10px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.8rem; }
    
    .skills-grid { grid-template-columns: 1fr; }
}

/* Celulares muito pequenos */
@media screen and (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-cta a { width: 100%; text-align: center; }
    
    /* Garante que os cards continuam 2 por linha mesmo em telas minúsculas */
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}