/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== VARIÁVEIS ===== */
:root {
  --bg: #0a0a0a;
  --card: #141414;
  --primary: #007bff;
  --text: #ffffff;
  --subtext: #bfbfbf;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.logo:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.logo span {
  color: var(--primary);
}

/* ===== NAV ===== */
.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-list a:hover::after {
  width: 100%;
}

/* ===== MENU MOBILE ===== */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 70px;
}

.hero h1 {
  font-size: 2.9rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: var(--subtext);
  margin-bottom: 35px;
  font-size: 1.05rem;
}

/* ===== BOTÕES */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 28px;
  border-radius: 40px;
  background: linear-gradient(135deg, #007bff, #0056d2);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,123,255,0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,123,255,0.5);
}

/* ===== PROJETOS ===== */
.projects {
  padding: 110px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.9rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ===== CARD ===== */
.card {
  background: linear-gradient(180deg, #141414, #101010);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  transition: 0.35s ease;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* ✅ CARDS (sem esticar) */
.card img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.overlay span {
  color: #fff;
  font-weight: 500;
  background: rgba(0,123,255,0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.card:hover .overlay {
  opacity: 1;
}

.card:hover img {
  transform: scale(1.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
  border-color: rgba(0,123,255,0.3);
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--subtext);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* ===== PROJETOS INTERNOS (CORRIGIDO) ===== */
.project-page {
  padding: 140px 20px 80px;
  text-align: center;
}

.project-page img {
  max-width: 380px;
  width: auto;
  height: auto;
  margin: 25px auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: 0.3s;
}

.project-page img:hover {
  transform: scale(1.03);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 50px 20px;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer .social {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

footer .social a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

footer .social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {

  .nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    background: #000;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 20px;
  }

  .nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}
