:root {
  --primary: #00aaff;
  --secondary: #0077ff;
  --bg: #0b0e14;
  --bg-alt: #141821;
  --text-light: #e0e0e0;
  --text-muted: #8fa3bf;
  --card-bg: #1b1f2a;
  --border: #2a3244;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text-light);
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.3rem;
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 80vh;
  background: radial-gradient(circle at top left, var(--secondary), var(--bg));
}

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

.hero .highlight {
  color: var(--primary);
}

.hero p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* Link ativo */
header nav a.active {
  color: #4da3ff;
  font-weight: bold;
  border-bottom: 2px solid #4da3ff;
}

.btn:hover {
  background: var(--secondary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Seções ===== */
.section, .project-seection {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  border-radius: 12px;
}

.bg-alt {
  background: var(--bg-alt);
}

h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

p {
  color: var(--text-light);
}

.info a {
  color: var(--primary);
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* ===== Skills ===== */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.skills h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* ===== Contato ===== */
.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

#btn-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#btn-top:hover {
  transform: scale(1.1);
  background-color: #4da3ff;
}

.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

#projetos {
  padding: 80px 10%;
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #4da3ff;
  margin-bottom: 50px;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(77, 163, 255, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.project-content p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.status {
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
}

.status.concluido {
  background-color: #0d6efd33;
  color: #4da3ff;
}

.status.andamento {
  background-color: #ffc10733;
  color: #ffc107;
}

.techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.techs span {
  background-color: #1a2438;
  color: #4da3ff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
}

.btn-detalhes {
  display: inline-block;
  background-color: #0d6efd;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-detalhes:hover {
  background-color: #4da3ff;
}

.project-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #e0e0e0;
}

.project-hero {
    text-align: center;
    margin-bottom: 50px;
}

.project-hero h2 {
    font-size: 3rem;
    color: #4fc3f7;
}

.project-hero .status span.completed {
    color: #00e676;
    font-weight: bold;
}

.project-hero .status span.in-development {
    color: #ffca28;
    font-weight: bold;
}

.project-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #1e1e2f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.project-section h3 {
    color: #81d4fa;
    margin-bottom: 15px;
}

.project-section h4 {
    color: #4fc3f7;
    margin-top: 20px;
    margin-bottom: 10px;
}

.project-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.project-section ul li {
    margin-bottom: 8px;
}

.project-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-list span {
    background-color: #0288d1;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.back-link a:hover {
    color: #81d4fa;
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--bg-alt);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 70vh;
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}
