@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Variáveis)
   ============================================================ */
:root {
  /* Cores principais */
  --clr-bg: #F4F3F1;
  --clr-bg-2: #F8F7F5;
  --clr-surface: #FCFBFA;
  --clr-border: #DDD8D3;
  --clr-border-hover: #CFC8C2;

  /* Cores de Destaque */
  --clr-duck-yellow: #FFE066;
  --clr-duck-orange: #FFB042;
  --clr-primary: #FFB8D1;
  /* Rosa suave */
  --clr-secondary: #A7C7E7;
  /* Azul bebê */

  /* Texto */
  --clr-text: #374151;
  --clr-text-muted: #6B7280;
  --clr-text-dim: #9CA3AF;
  --clr-white: #FFFFFF;

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #FFE066, #FFB8D1);
  --grad-hero: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);

  /* Navbar */
  --navbar-h: 70px;

  /* Tipografia */
  --font-main: 'Poppins', sans-serif;

  /* Tamanhos fluidos */
  --fs-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 2vw, 1rem);
  --fs-base: clamp(1rem, 2.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 3vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 3.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 4vw, 2rem);
  --fs-3xl: clamp(2rem, 5vw, 2.5rem);
  --fs-4xl: clamp(2.5rem, 6vw, 3rem);
  --fs-hero: clamp(3rem, 8vw, 4rem);

  /* Espaçamentos */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Sombras Suaves */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.03);

  /* Transições (Rápidas e discretas) */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

/* ============================================================
   RESET E BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   SCROLLBAR CUSTOMIZADA
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.section-title span {
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--clr-duck-yellow);
  z-index: -1;
  opacity: 0.6;
  border-radius: 4px;
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   ILUSTRAÇÕES DUCK
   ============================================================ */
.duck-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.duck-hero {
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Primário (Amarelo Pato) */
.btn-primary {
  background: var(--clr-duck-yellow);
  color: #4B5563;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #FDE047;
  /* Ligeiramente mais forte */
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ghost / Outline */
.btn-ghost {
  background: var(--clr-white);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  background: #F9FAFB;
  border-color: var(--clr-border-hover);
}

/* Pequeno */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
}

/* ============================================================
   BADGES DE TECNOLOGIA
   ============================================================ */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin: var(--sp-sm) 0;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--clr-bg);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: all var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-text-muted);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-text);
  font-weight: 500;
}

/* CTA na nav */
.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--clr-duck-yellow);
  color: #4B5563;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: transform var(--transition-base);
}

.nav-cta:hover {
  transform: scale(1.02);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu móvel */
.nav-mobile {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile .nav-link {
  padding: var(--sp-sm);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  display: block;
  color: var(--clr-text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  padding-top: var(--navbar-h);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-3xl);
  padding: var(--sp-3xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}

.hero-role {
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-md);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   CARDS DE PROJETO (Clean UI)
   ============================================================ */
.destaque-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-xl);
}

.card-projeto {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-projeto:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Imagem do card */
.card-img-wrap {
  height: 200px;
  background-color: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Corpo do card */
.card-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-icon {
  font-size: 1.25rem;
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
}

.card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-md);
}

/* Ações do card */
.card-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-top: auto;
}

/* ============================================================
   PAGE HEADER (topo das páginas internas)
   ============================================================ */
.page-header {
  padding: calc(var(--navbar-h) + var(--sp-3xl)) 0 var(--sp-3xl);
  text-align: center;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.page-header-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}

.page-header-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   SEÇÃO SOBRE MIM
   ============================================================ */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-4xl);
  align-items: center;
}

.sobre-foto {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.sobre-content h2 {
  font-size: var(--fs-3xl);
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.sobre-content p {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

/* Skills / Tecnologias */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--sp-md);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--sp-md) var(--sp-sm);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

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

.skill-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* Experiência Timeline */
.timeline {
  margin-top: var(--sp-2xl);
  border-left: 2px solid var(--clr-border);
  padding-left: var(--sp-xl);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-2xl);
}

.timeline-dot {
  position: absolute;
  left: calc(var(--sp-xl) * -1 - 7px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--clr-duck-yellow);
  border-radius: 50%;
  border: 2px solid var(--clr-white);
}

.timeline-period {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-dim);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text);
}

.timeline-company {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* ============================================================
   PROJETOS PAGE - Categorias
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-3xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: var(--clr-white);
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--clr-text);
  color: var(--clr-white);
  border-color: var(--clr-text);
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato-section {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-3xl);
  border: 1px solid var(--clr-border);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contato-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
  margin-top: var(--sp-xl);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
  max-width: 300px;
}

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer-links a,
.footer-links span {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

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

.footer-bottom {
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.hero-photo {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
}


/* Banner de vídeo */
.video-banner {
  width: 90%;
  height: 750px;
  overflow: hidden;
  position: relative;
  margin: 2rem auto; /* Centraliza horizontalmente */
  background: #1f2937;
  border-radius: 16px;
}

.video-banner video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .video-banner {
    width: 95%;
    height: 250px;
  }
}
