/*
 * ┌─────────────────────────────────────────────┐
 * │           LAERTON COSTA — DEV WEB           │
 * │─────────────────────────────────────────────│
 * │  Autor   : Laerton Costa                    │
 * │  Site    : laertoncosta.dev                 │
 * │  E-mail  : contato.laertcosta@gmail.com     │
 * │  GitHub  : github.com/laertoncosta          │
 * │  Versão  : 1.0.0                            │
 * │  Data    : 2025                             │
 * │─────────────────────────────────────────────│
 * │  Desenvolvido com dedicação e muito redbull ☕  │
 * └─────────────────────────────────────────────┘
 */

/* © 2025 Laerton Costa — Todos os direitos reservados */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ═══════════════ RESET ═══════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ═══════════════ VARIÁVEIS ═══════════════ */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --text: #f0ede8;
  --text-muted: #888;
  --accent: #e8c547;
  --accent2: #f0a500;
  --border: rgba(255,255,255,0.08);
  --card-bg: #141414;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════ BASE ═══════════════ */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════ CURSOR ═══════════════ */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(232, 197, 71, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.dot {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ═══════════════ HAMBURGER ═══════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════ MENU MOBILE ═══════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.2s; }
.hero-title .line:nth-child(3) { animation-delay: 0.3s; }

.hero-title .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.5s both;
}

/* ═══════════════ BOTÕES ═══════════════ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 197, 71, 0.25);
}

.btn-ghost {
  display: inline-block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  transition: color var(--transition);
}

.btn-ghost:hover {
  color: var(--accent);
}

/* ═══════════════ HERO DECORAÇÃO ═══════════════ */
.hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.deco-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232,197,71,0.12), transparent 70%);
  border: 1px solid rgba(232,197,71,0.1);
  animation: spin 20s linear infinite;
}

.deco-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(232,197,71,0.2);
  position: absolute;
  top: 50px;
  left: 50px;
  animation: spin 15s linear infinite reverse;
}

.floating-badge {
  position: absolute;
  bottom: 40px;
  right: -10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.badge-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s ease 1s both;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease infinite;
}

/* ═══════════════ UTILITÁRIOS ═══════════════ */
.section-tag {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

/* ═══════════════ SOBRE ═══════════════ */
.sobre {
  padding: 8rem 0;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.sobre-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0 auto 2rem;
}

.sobre-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.stat {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  flex: 1;
}

.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-l {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sobre-texto p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.skill {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  transition: var(--transition);
}

.skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════ SERVIÇOS ═══════════════ */
.servicos {
  padding: 8rem 0;
  background: var(--bg2);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.servico-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.servico-card::before {
  content: attr(data-num);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  letter-spacing: 0.05em;
}

.servico-card:hover {
  border-color: rgba(232, 197, 71, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.servico-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.servico-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.servico-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.servico-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.servico-card ul li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.servico-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ═══════════════ PROJETOS ═══════════════ */
.projetos {
  padding: 8rem 0;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.projeto-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.projeto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 197, 71, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.projeto-grande {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.projeto-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projeto-grande .projeto-img {
  height: 100%;
  min-height: 260px;
}

.projeto-emoji {
  font-size: 4rem;
  opacity: 0.9;
}

.projeto-info {
  padding: 1.75rem;
}

.projeto-tipo {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projeto-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0.4rem 0 0.6rem;
}

.projeto-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.projeto-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.projeto-tech span {
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  color: var(--text-muted);
}

.projeto-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.projeto-link:hover {
  letter-spacing: 0.04em;
}

/* ═══════════════ CTA BANNER ═══════════════ */
.cta-banner {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1400, #0a0a0a);
}

.cta-inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.cta-inner p {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  font-size: 1rem;
}

/* ═══════════════ CONTATO ═══════════════ */
.contato {
  padding: 8rem 0;
  background: var(--bg2);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contato-info p {
  color: var(--text-muted);
  margin: 1.25rem 0 2rem;
  line-height: 1.8;
}

.contato-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: var(--transition);
}

.contato-item:hover {
  border-color: rgba(232, 197, 71, 0.3);
  color: var(--accent);
}

.contato-icon {
  font-size: 1.1rem;
}

/* ═══════════════ FORMULÁRIO ═══════════════ */
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(232, 197, 71, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.form-success {
  display: none;
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.3);
  color: var(--accent);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ═══════════════ ANIMAÇÕES ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════ FADE IN (SCROLL) ═══════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVO ═══════════════ */
@media (max-width: 900px) {
  .navbar { padding: 1.25rem 1.5rem; }
  .navbar.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 6rem 1.5rem 4rem; flex-direction: column; }
  .hero-deco { display: none; }

  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-img-wrap { text-align: center; }

  .projetos-grid { grid-template-columns: 1fr; }
  .projeto-grande { grid-column: span 1; display: block; }
  .projeto-grande .projeto-img { height: 200px; }

  .contato-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .servicos-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-title { letter-spacing: -2px; }
  .sobre-stats { gap: 0.75rem; }
}