/* Reset Básico e Definição de Variáveis CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3aa9ef;
  --primary-dark: #2a8bc7;
  --primary-light: #5bb8f2;
  --secondary: #1a1a1a;
  --accent: #ff6b6b;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos Globais do Body */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

/* Estilos do Cabeçalho */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: 700;
}

.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--primary); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

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

.nav-menu a:hover { color: var(--primary); }

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Estilos da Seção Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 { width: 300px; height: 300px; background: var(--primary); top: 10%; left: -10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--accent); top: 60%; right: -5%; animation-delay: -7s; }
.shape-3 { width: 150px; height: 150px; background: var(--primary-light); bottom: 20%; left: 60%; animation-delay: -14s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(-20px) rotate(240deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

.floating-devices {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.device-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(58, 169, 239, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(58, 169, 239, 0.3);
  font-size: 16px;
  animation: rotate-float 25s infinite linear;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(58, 169, 239, 0.1);
  opacity: 0.5;
}

.device-1 { top: 10%; left: 5%; animation-delay: 0s; }
.device-2 { top: 15%; right: 8%; animation-delay: -6s; }
.device-3 { bottom: 25%; left: 8%; animation-delay: -12s; }
.device-4 { bottom: 20%; right: 10%; animation-delay: -18s; }

@keyframes rotate-float {
  0% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.5; }
  25% { transform: translateY(-10px) rotate(90deg) scale(1.05); opacity: 0.3; }
  50% { transform: translateY(-5px) rotate(180deg) scale(1); opacity: 0.5; }
  75% { transform: translateY(-12px) rotate(270deg) scale(1.05); opacity: 0.3; }
  100% { transform: translateY(0px) rotate(360deg) scale(1); opacity: 0.5; }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(58, 169, 239, 0.1);
  border: 1px solid rgba(58, 169, 239, 0.2);
  border-radius: 50px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item { text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.code-window {
  width: 100%;
  max-width: 500px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: var(--transition);
}
.code-window:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.window-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #1e293b; border-bottom: 1px solid #334155; }
.window-controls { display: flex; gap: 8px; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }
.window-title { color: #94a3b8; font-size: 14px; }
.code-content { padding: 24px; font-family: "Fira Code", monospace; font-size: 14px; line-height: 1.6; }
.code-line { display: flex; margin-bottom: 4px; }
.line-number { color: #64748b; margin-right: 24px; user-select: none; width: 20px; }
.keyword { color: #c084fc; }
.variable { color: #60a5fa; }
.property { color: #34d399; }
.string { color: #fbbf24; }
.code-text { color: #e2e8f0; }

/* Seção Sobre */
.about { padding: 120px 0; background: var(--bg-primary); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-badge { display: inline-flex; align-items: center; padding: 8px 16px; background: rgba(58, 169, 239, 0.1); border: 1px solid rgba(58, 169, 239, 0.2); border-radius: 50px; color: var(--primary); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.section-title { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; color: var(--text-primary); }
.title-accent { color: var(--primary); }
.about-description { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.about-highlights { display: flex; flex-direction: column; gap: 24px; }
.highlight-item { display: flex; align-items: flex-start; gap: 16px; }
.highlight-icon { width: 48px; height: 48px; background: rgba(58, 169, 239, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex-shrink: 0; }
.highlight-content h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.highlight-content p { color: var(--text-secondary); font-size: 14px; }

.profile-card { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.profile-image { position: relative; margin-bottom: 24px; }
.profile-image img { width: 100%; border-radius: var(--radius-lg); }
.profile-status { position: absolute; bottom: 16px; left: 16px; background: var(--bg-primary); padding: 8px 12px; border-radius: 50px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; box-shadow: var(--shadow); }
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.tech-stack h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--bg-secondary); border-radius: var(--radius); transition: var(--transition); }
.tech-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tech-item i { font-size: 24px; color: var(--primary); }
.tech-item span { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* Seção de Funcionalidades (Serviços) */
.services { padding: 120px 0; background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.service-card { background: var(--bg-primary); padding: 40px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); position: relative; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.service-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.featured-badge { position: absolute; top: -12px; left: 32px; background: var(--primary); color: white; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.service-icon { width: 64px; height: 64px; background: rgba(58, 169, 239, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 28px; margin-bottom: 24px; }
.service-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.service-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.service-tech { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tech span { padding: 4px 12px; background: var(--bg-secondary); border-radius: 50px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* Seção de Demonstração (Portfólio) */
.portfolio {
  padding: 120px 0;
  background: var(--bg-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 48px;
}

.project-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9; 
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .portfolio-img {
  transform: scale(1.05);
}

.project-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(58, 169, 239, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  align-self: flex-start;
}

.project-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tech span {
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1001;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
  font-size: 28px;
}

.whatsapp-btn span {
  font-size: 16px;
  white-space: nowrap;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Rodapé */
.footer { background: var(--bg-dark); color: white; padding: 80px 0 32px; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 48px; }
.footer-brand p { color: #94a3b8; margin: 16px 0 24px; line-height: 1.6; }
.social-links { display: flex; gap: 16px; }
.social-links a { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.link-group h4 { color: white; font-weight: 600; margin-bottom: 16px; }
.link-group a, .link-group span { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 8px; transition: var(--transition); }
.link-group a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 32px; text-align: center; color: #64748b; }

/* Animações de Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Design Responsivo */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 24px;
    transition: var(--transition);
  }

  .nav-menu.active { left: 0; }
  .nav-toggle { display: flex; }
  .hero-container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-title { font-size: 48px; }
  .section-title { font-size: 36px; }
  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 48px; }

  .whatsapp-btn span {
    display: none;
  }

  .whatsapp-btn {
    padding: 14px;
    min-width: 56px;
    min-height: 56px;
  }
  .whatsapp-btn i {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .hero-description { font-size: 16px; }
  .code-window { transform: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
}