/* Estilos principais para portfólio Front-End */
:root {
  --bg: #02040a;
  --card: #0b1221;
  --text: #c9d1d9;
  --accent: #4d8bff;
  --accent-soft: rgba(51, 101, 194, 0.25);
  --border: rgba(100, 130, 170, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(130deg, #020613, #03070d 60%, #090f1c);
  line-height: 1.6;
}

.card {
  background: linear-gradient(145deg, #0f172e, #091121);
  border: 1px solid var(--border);
}

header,
footer {
  background: rgba(2, 5, 13, 0.8);
  border-radius: 12px;
  padding: 1.3rem;
}

header p,
.card p,
.card li {
  color: #d5deee;
}

.project-card:hover {
  box-shadow: 0 20px 30px rgba(20, 60, 130, 0.4);
  border-color: rgba(75, 135, 250, 0.6);
  transform: translateY(-3px);
}

.project-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

header h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.6rem;

}
header p {
  color: #8b949e;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-title {
  margin: 2.5rem 0 1rem;
  color: #adbac7;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.28);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.card p,
.card li {
  color: #c9d1d9;
}

.tech-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.tech-list li {
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: #58a6ff;
  font-weight: 600;
  text-align: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-list li:hover {
  background: rgba(38, 77, 170, 0.45);
  color: #e3f0ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 56, 120, 0.35);
  border-color: rgba(108, 174, 255, 0.75);
}

.project-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 28px rgba(10, 16, 40, 0.41);
  border-color: rgba(96, 144, 240, 0.65);
}

.project-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(88, 166, 255, 0.35);
  box-shadow: 0 10px 20px rgba(15, 30, 60, 0.35);
  object-fit: cover;
  max-height: 220px;
}

.project-tech {
  font-size: 0.9rem;
  color: #9eb9ff;
  margin: 0.35rem 0;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tech span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 149, 255, 0.45);
  background: rgba(30, 71, 152, 0.25);
  color: #dbe9ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-tech span:hover {
  background: rgba(30, 71, 152, 0.5);
  border-color: rgba(110, 170, 255, 0.8);
  transform: scale(1.04);
}

.project-bio {
  font-size: 0.9rem;
  color: #d1dbe8;
  margin-bottom: 0.5rem;
  flex: 1;
}

.project-list li h4 {
  margin-top: 0;
}

.project-list h4 {
  margin-bottom: 0.3rem;
}

.project-links a,
.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-links a:hover,
.contact-links a:hover {
  text-decoration: underline;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
}

.btn-primary {
  display: inline-block;
  background-color: #0a1b35;
  border: 1px solid rgba(58, 130, 255, 0.8);
  color: #dbe9ff;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.6rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #1a4b9e;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(22, 83, 180, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(10, 38, 80, 0.45);
}

.btn-primary:focus {
  outline: 3px solid rgba(88, 166, 255, 0.45);
  outline-offset: 2px;
}

footer {
  margin-top: 3.5rem;
  text-align: center;
  color: #8b949e;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(1) {
    grid-column: span 2;
  }

  header p {
    font-size: 1.05rem;
  }
}
