/**
 * PORTFOLIO MODERNO - LUKAS GOMES
 * 
 * Arquivo: styles.css
 * Descrição: Estilos principais do portfólio inspirado no design sites web modernos
 * 
 * Características:
 * - Design moderno com gradientes azul/roxo
 * - Layout responsivo (mobile-first)
 * - Animações suaves e transições
 * - Tema escuro (dark mode)
 * - Cards interativos
 * 
 * Estrutura:
 * 1. Reset e Variáveis CSS
 * 2. Layout Base (Header, Navigation)
 * 3. Seções (Hero, Projects, Tech, About, Contact)
 * 4. Componentes (Cards, Buttons, Forms)
 * 5. Animações e Efeitos
 * 6. Responsividade Mobile
 */

/* ===== RESET E CONFIGURAÇÕES BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis CSS - Paleta de cores e valores reutilizáveis */
:root {
  /* Cores de fundo */
  --bg-primary: #0a0a0a; /* Fundo principal (preto) */
  --bg-secondary: #111111; /* Fundo secundário */
  --bg-card: #1a1a1a; /* Fundo dos cards */

  /* Cores de destaque */
  --accent-blue: #007aff; /* Azul principal (iOS style) */
  --accent-purple: #5856d6; /* Roxo secundário */

  /* Cores de texto */
  --text-primary: #ffffff; /* Texto principal (branco) */
  --text-secondary: #a1a1a6; /* Texto secundário (cinza) */

  /* Bordas e elementos */
  --border: #2c2c2e; /* Cor das bordas */

  /* Gradiente principal */
  --gradient: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== HEADER E NAVEGAÇÃO ===== */

/* Header fixo no topo com efeito glass */
.header {
  position: fixed; /* Fixo no topo */
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8); /* Fundo semi-transparente */
  backdrop-filter: blur(20px); /* Efeito de desfoque (glass) */
  border-bottom: 1px solid var(--border);
  z-index: 1000; /* Acima de outros elementos */
  transition: all 0.3s ease; /* Transição suave */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 122, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

/* Sections */
.section {
  padding: 5rem 0;
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-status {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 122, 255, 0.2);
  color: var(--accent-blue);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

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

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.project-link {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 122, 255, 0.1);
}

.project-link.primary {
  background: var(--gradient);
  border-color: transparent;
}

.project-link.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* Tech Skills */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.tech-category h3 {
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.tech-item:last-child {
  border-bottom: none;
}

.tech-name {
  font-weight: 500;
}

.tech-level {
  padding: 0.25rem 0.75rem;
  background: rgba(88, 86, 214, 0.2);
  color: var(--accent-purple);
  border-radius: 20px;
  font-size: 0.75rem;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

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

  .projects-grid,
  .tech-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .project-card {
    padding: 1rem;
  }
}
