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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #07090e;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Header Fixo */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: #38bdf8;
}

/* Estrutura de Telas Cheias (100vh) */
.section {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 8% 4rem;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1100px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #f8fafc;
}

/* ==========================================================
   1. SEÇÃO INÍCIO (HERO)
   ========================================================== */
.hero-section {
  background: radial-gradient(circle at 75% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #050811 0%, #0d1b40 45%, #230838 100%);
}

.hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.2rem;
  letter-spacing: 1px;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
}

.link-item {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.link-item:hover {
  color: #38bdf8;
}

.profile-pic-placeholder {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: #1e293b;
  border: 4px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.profile-pic-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ==========================================================
   2. SEÇÃO BIO (DARK / GLASSMORPHISM)
   ========================================================== */
.bio-section {
  background: radial-gradient(circle at 30% 60%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #090c16 0%, #0c1322 100%);
}

.bio-container {
  max-width: 850px;
}

.bio-content-card {
  background: rgba(18, 26, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.8rem;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.bio-highlight {
  font-size: 1.2rem;
  color: #38bdf8;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.bio-content-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.bio-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #38bdf8;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================
   3. SEÇÃO TECNOLOGIAS (4 CATEGORIAS)
   ========================================================== */
.tech-section {
  background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #0c1322 0%, #070a12 100%);
}

.tech-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.tech-tag-top {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.tech-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.tech-category-card {
  background: rgba(18, 26, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tech-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.tech-category-card:hover::before {
  opacity: 1;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

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

.category-header h3 {
  font-size: 1.35rem;
  color: #f8fafc;
  font-weight: 600;
}

.category-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.badge-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, color 0.2s;
}

.badge-item:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ==========================================================
   4. SEÇÃO PROJETOS (4 CARDS / BOTÕES)
   ========================================================== */
.projects-section {
  background: radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #070a12 0%, #05070d 100%);
}

.projects-header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-tag-top {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.project-card {
  background: rgba(18, 26, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-number {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.project-card p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

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

.project-tech-badges span {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Botão de Ação do Projeto */
.btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-project:hover {
  background: #38bdf8;
  color: #05070d;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Ajuste Responsivo */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================================== */
@media (max-width: 900px) {
  .section {
    min-height: 100vh;
    height: auto;
    padding: 6rem 6% 3rem;
  }

  .hero-content-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-links {
    justify-content: center;
  }

  .profile-pic-placeholder {
    width: 220px;
    height: 220px;
  }

  .bio-stats {
    flex-direction: column;
    gap: 1.2rem;
  }

  .tech-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-menu {
    gap: 1.2rem;
    font-size: 0.85rem;
  }

  .header {
    padding: 1rem 1.5rem;
  }
}