/* CSS global para o portfólio */

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #0d1117;
}

/* Variáveis CSS */
:root {
  --primary-color: #1193d4;
  --primary-dark: #0e7ab5;
  --secondary-color: #1a2b34;
  --accent-color: #92b7c9;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: #374151;
  --bg-primary: #0d1117;
  --bg-secondary: #111c22;
  --bg-card: #1a2b34;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.skill-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.skill-bar-container {
  width: 100%;
  height: 0.5rem;
  background: var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 0.25rem;
  transition: width 1s ease-in-out;
}

/* Cards de habilidade com cor personalizada */
.skill-card.react {
  background: #23293a;
  border: 1.5px solid #8b5cf6;
}

.skill-card.react-native {
  background: #23293a;
  border: 1.5px solid #06b6d4;
}

.skill-icon.react {
  color: #8b5cf6;
}

.skill-icon.react-native {
  color: #06b6d4;
}

.skill-name.react {
  color: #8b5cf6;
}

.skill-name.react-native {
  color: #06b6d4;
}

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .skill-card {
    padding: 1rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .skill-card.react,
  .skill-card.react-native {
    padding: 1rem;
  }
}

/* Tags de tecnologia */
.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Links de projeto */
.project-link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Cards de projeto - efeitos usados nas páginas */
.project-card {
  transition: all 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease-in-out;
}

.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

/* Links sociais */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 147, 212, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Links do footer */
.footer-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Navegação */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .skill-card {
    padding: 1rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .skill-card.react,
  .skill-card.react-native {
    padding: 1rem;
  }
}

/* Utilitários */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alias para manter compatibilidade com HTML existente */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
