/* Variáveis para cores - Mantendo consistência com o site principal */
:root {
    --primary-color: #5d3fd3;
    --secondary-color: #4b0082; 
    --accent-color: #8a2be2;
    --text-color: #e0e0e0;
    --bg-color: #0d0d2b; 
    --card-bg: #1a1a36;
    --card-border: #2c2c54;
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-2: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

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

html {
    scroll-behavior: smooth;
    /* CORREÇÃO: Previne scroll horizontal */
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    /* CORREÇÃO: Previne scroll horizontal */
    overflow-x: hidden;
    position: relative;
    /* CORREÇÃO: Garante que o body não exceda a largura da viewport */
    max-width: 100vw;
}

/* Animação de Fundo (Estrelas) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--bg-color) 0%, #000 100%);
    z-index: -1;
    animation: star-fall 30s linear infinite;
    opacity: 0.8;
    /* CORREÇÃO: Previne que a animação cause overflow */
    overflow: hidden;
}

@keyframes star-fall {
    from {
        transform: translateY(-20%);
    }
    to {
        transform: translateY(20%);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* CORREÇÃO: Garante que o container não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

/* Header - Adaptado do design da Ubistart */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(13, 13, 43, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  /* CORREÇÃO: Garante que o header não cause overflow */
  box-sizing: border-box;
}

.header.scrolled {
  background: rgba(13, 13, 43, 0.95);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  height: 100%;
  /* CORREÇÃO: Garante que o container do header não exceda a viewport */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  /* CORREÇÃO: Permite quebra de linha se necessário */
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

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

.nav-link:hover {
  color: #ffffff;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.language-selector:hover {
  color: #ffffff;
}

.flag-brazil {
  font-size: 16px;
}

.contact-btn {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  /* CORREÇÃO: Previne quebra de linha */
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Section About */
.hero-about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 90px 0 80px;
    background: radial-gradient(circle at 70% 30%, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0) 60%), 
                radial-gradient(circle at 30% 70%, rgba(75, 0, 130, 0.2) 0%, rgba(75, 0, 130, 0) 60%);
    position: relative;
    overflow: hidden;
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    /* CORREÇÃO: Garante que o conteúdo não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neon-glow 2s ease-in-out infinite alternate;
    /* CORREÇÃO: Permite quebra de linha em telas pequenas */
    word-wrap: break-word;
    hyphens: auto;
}

@keyframes neon-glow {
    from {
        filter: drop-shadow(0 0 5px var(--accent-color));
    }
    to {
        filter: drop-shadow(0 0 20px var(--accent-color));
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
    hyphens: auto;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

/* Nossa História - Timeline */
.nossa-historia {
    padding: 100px 0;
    position: relative;
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    /* CORREÇÃO: Garante que a timeline não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 3%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    /* CORREÇÃO: Garante que os itens não excedam a viewport */
    width: 100%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 3%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.timeline-icon {
    font-size: 1.5rem;
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    margin: 0 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* CORREÇÃO: Garante que o conteúdo não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    max-width: calc(100% - 80px);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.timeline-content p {
    line-height: 1.7;
    opacity: 0.9;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

/* Nossa Missão */
.nossa-missao {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.missao-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* CORREÇÃO: Garante que o conteúdo não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.missao-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.missao-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.missao-pillars {
    display: grid;
    gap: 20px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: transform 0.3s ease;
    /* CORREÇÃO: Garante que os pillars não excedam a viewport */
    width: 100%;
    box-sizing: border-box;
}

.pillar:hover {
    transform: translateX(10px);
}

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

.pillar h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.pillar p {
    font-size: 0.9rem;
    opacity: 0.8;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.missao-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
    /* CORREÇÃO: Garante que o visual não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.mission-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    /* CORREÇÃO: Garante que o gráfico não exceda a viewport */
    max-width: 100%;
    max-height: 100%;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    animation: orbit 20s linear infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.orbit-item:nth-child(2) { animation-delay: -5s; }
.orbit-item:nth-child(3) { animation-delay: -10s; }
.orbit-item:nth-child(4) { animation-delay: -15s; }

@keyframes orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* Nossos Valores */
.nossos-valores {
    padding: 100px 0;
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* CORREÇÃO: Garante que o grid não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.valor-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* CORREÇÃO: Garante que os cards não excedam a viewport */
    width: 100%;
    box-sizing: border-box;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.valor-card:hover::before {
    opacity: 0.05;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
    border-color: var(--accent-color);
}

.valor-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.valor-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.valor-card p {
    line-height: 1.6;
    opacity: 0.9;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

/* Nossa Equipe */
.nossa-equipe {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.equipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    /* CORREÇÃO: Garante que o conteúdo não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.equipe-text {
    min-width: 400px;
    /* CORREÇÃO: Permite flexibilidade em telas menores */
    width: 100%;
    box-sizing: border-box;
}

.equipe-text h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.equipe-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.team-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.team-stat {
    text-align: center;
}

.team-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.team-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.equipe-skills {
    min-width: 400px;
    /* CORREÇÃO: Permite flexibilidade em telas menores */
    width: 100%;
    box-sizing: border-box;
}

.equipe-skills h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: all 0.3s ease;
    /* CORREÇÃO: Garante que os skills não excedam a viewport */
    width: 100%;
    box-sizing: border-box;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 2s ease;
}

/* Tecnologias */
.tecnologias {
    padding: 100px 0;
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* CORREÇÃO: Garante que o grid não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.tech-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    /* CORREÇÃO: Garante que as categorias não excedam a viewport */
    width: 100%;
    box-sizing: border-box;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.1);
}

.tech-category h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-color);
    text-align: center;
}

.tech-icon:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-1);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* CORREÇÃO: Garante que a seção não exceda a viewport */
    width: 100%;
    box-sizing: border-box;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
    animation: float 10s ease-in-out infinite;
}

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

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* CORREÇÃO: Permite quebra de linha */
    word-wrap: break-word;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* CORREÇÃO: Previne quebra de linha */
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Section - OTIMIZADO PARA MOBILE */
.contact-section {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.contact-info h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
    word-wrap: break-word;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    word-wrap: break-word;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.contact-method i {
    font-size: 20px;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.contact-method p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.btn-submit {
    width: 100%;
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

/* Footer - OTIMIZADO PARA MOBILE */
.footer {
    background: var(--secondary-color);
    padding: 80px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    word-wrap: break-word;
}

.footer-section h3 {
    font-size: 24px;
}

.footer-section h4 {
    font-size: 18px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
    word-wrap: break-word;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* === MENU HAMBÚRGUER === */

/* Botão Hambúrguer */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.hamburger-menu:hover {
  color: var(--accent-color);
}

/* Menu de navegação mobile */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 13, 43, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  /* CORREÇÃO: Garante que o menu mobile não cause overflow */
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
  /* CORREÇÃO: Centraliza o texto */
  text-align: center;
}

.mobile-nav-link:hover {
  color: var(--accent-color);
}

.mobile-contact-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
}

.mobile-contact-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Media Queries para responsividade - MELHORADAS */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-about {
        padding: 100px 20px 50px;
    }

    .hero-about h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row;
        left: 0;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 0px;
        transform: translateY(-50%);
    }

    .timeline-content {
        /* CORREÇÃO: Ajusta a margem para tablets */
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }

    .missao-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .missao-text {
        text-align: center;
    }

    .missao-text h2 {
        text-align: center;
    }

    .missao-text p {
        text-align: center;
    }

    .missao-pillars {
        grid-template-columns: 1fr;
    }

    .missao-visual {
        height: 300px;
        margin-top: 40px;
    }

    .mission-graphic {
        width: 250px;
        height: 250px;
    }

    /* CORREÇÃO: Ajuste da animação orbit para tablets */
    @keyframes orbit {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateX(80px) rotate(-360deg);
        }
    }

    .center-circle {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }

    .orbit-item {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .equipe-content {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .equipe-text,
    .equipe-skills {
        min-width: unset;
        width: 100%;
        max-width: 500px;
    }

    .equipe-text h3 {
        text-align: center;
    }

    .equipe-text p {
        text-align: center;
    }

    .team-stats {
        justify-content: center;
    }

    .team-stat {
        align-items: center;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .nav, .header-right {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .header .container {
        justify-content: space-between;
        padding: 15px 20px;
    }

    .mobile-nav {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .hero-about {
        padding: 90px 15px 40px;
    }

    .hero-about h1 {
        font-size: 2.5rem;
    }

    .hero-about p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

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

    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-content {
        padding: 20px;
        /* CORREÇÃO: Ajusta a margem para mobile */
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .missao-content {
        gap: 30px;
    }

    .missao-text h2 {
        font-size: 1.8rem;
    }

    .missao-text p {
        font-size: 0.95rem;
    }

    .missao-pillars {
        gap: 20px;
    }

    .pillar h4 {
        font-size: 1.1rem;
    }

    .pillar p {
        font-size: 0.85rem;
    }

    .missao-visual {
        height: 250px;
        margin-top: 30px;
    }

    .mission-graphic {
        width: 200px;
        height: 200px;
    }

    /* CORREÇÃO: Ajuste da animação orbit para mobile */
    @keyframes orbit {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateX(60px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateX(60px) rotate(-360deg);
        }
    }

    .center-circle {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }

    .orbit-item {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .valores-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .valor-card {
        padding: 30px 20px;
    }

    .valor-card h3 {
        font-size: 1.3rem;
    }

    .valor-card p {
        font-size: 0.9rem;
    }

    .equipe-content {
        gap: 30px;
    }

    .equipe-text h3 {
        font-size: 1.6rem;
    }

    .equipe-text p {
        font-size: 0.9rem;
    }

    .team-stats {
        gap: 25px;
    }

    .team-stat .stat-number {
        font-size: 2rem;
    }

    .team-stat .stat-label {
        font-size: 0.8rem;
    }

    .equipe-skills h4 {
        font-size: 1.3rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .tech-categories {
        gap: 30px;
    }

    .tech-category {
        padding: 25px 20px;
    }

    .tech-category h3 {
        font-size: 1.3rem;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER */
    .contact-info h2 {
        font-size: 32px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }

    /* CORREÇÃO: Ajusta o WhatsApp float para mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* Mobile Pequeno (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .hero-about {
        padding: 80px 10px 30px;
    }

    .hero-about h1 {
        font-size: 2rem;
    }

    .hero-about p {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
    }

    .timeline-icon {
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 15px;
        /* CORREÇÃO: Ajusta a margem para mobile pequeno */
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .missao-text h2 {
        font-size: 1.6rem;
    }

    .missao-text p {
        font-size: 0.9rem;
    }

    .pillar {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .pillar-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .missao-visual {
        height: 200px;
    }

    .mission-graphic {
        width: 180px;
        height: 180px;
    }

    /* CORREÇÃO: Ajuste da animação orbit para mobile pequeno */
    @keyframes orbit {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateX(50px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateX(50px) rotate(-360deg);
        }
    }

    .center-circle {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }

    .orbit-item {
        font-size: 0.5rem;
        padding: 3px 6px;
    }

    .valor-card {
        padding: 25px 15px;
    }

    .valor-card h3 {
        font-size: 1.2rem;
    }

    .valor-card p {
        font-size: 0.85rem;
    }

    .equipe-text h3 {
        font-size: 1.4rem;
    }

    .equipe-text p {
        font-size: 0.85rem;
    }

    .team-stats {
        flex-direction: column;
        gap: 15px;
    }

    .team-stat .stat-number {
        font-size: 1.8rem;
    }

    .team-stat .stat-label {
        font-size: 0.75rem;
    }

    .equipe-skills h4 {
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 0.75rem;
    }

    .tech-category {
        padding: 20px 15px;
    }

    .tech-category h3 {
        font-size: 1.2rem;
    }

    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 0.6rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER - MOBILE PEQUENO */
    .contact-info h2 {
        font-size: 28px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 14px;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 13px;
    }

    /* CORREÇÃO: WhatsApp float ainda menor */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
}

/* CORREÇÃO: Media query adicional para telas muito pequenas */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .header .container {
        padding: 10px;
    }

    .logo {
        font-size: 16px;
    }

    .hero-about h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 12px;
        margin: 0 8px;
        max-width: calc(100% - 16px);
    }

    .missao-text h2 {
        font-size: 1.4rem;
    }

    .mission-graphic {
        width: 150px;
        height: 150px;
    }

    .center-circle {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    @keyframes orbit {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateX(40px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateX(40px) rotate(-360deg);
        }
    }

    .valor-card {
        padding: 20px 10px;
    }

    .tech-category {
        padding: 15px 10px;
    }

    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 0.5rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* MELHORIAS ESPECÍFICAS PARA FORMULÁRIO E FOOTER - MOBILE MUITO PEQUENO */
    .contact-info h2 {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 13px;
    }

    .footer {
        padding: 50px 0 25px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .whatsapp-float {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 10px;
        right: 10px;
    }
}