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

:root {
  --primary-color: #00d4d4;
  --secondary-color: #0a0e27;
  --dark-bg: #0f1419;
  --card-bg: rgba(26, 31, 46, 0.92);
  --text-light: #eaf0f7;
  --text-dim: #9aa6b2;
  --border-color: rgba(0, 212, 212, 0.35);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 24px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(0, 212, 212, 0.1), transparent 28%),
    linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 56px;
  animation: slideDown 0.6s ease-out;
}

.header__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 212, 0.12);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header p {
  font-size: 1.08rem;
  color: var(--text-dim);
  font-weight: 400;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 212, 0.08), transparent 45%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 212, 0.75);
  box-shadow:
    0 24px 48px rgba(0, 212, 212, 0.16),
    var(--shadow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0e27;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.06);
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
}

.project-card h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}

.project-card p {
  font-size: 0.96rem;
  color: var(--text-dim);
  line-height: 1.6;
  transition: var(--transition);
}

.project-card:hover h2 {
  color: var(--primary-color);
}

.project-card:hover p {
  color: var(--text-light);
}

.project-card:focus-visible {
  outline: 3px solid rgba(0, 212, 212, 0.6);
  outline-offset: 4px;
}

/* Animações */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    padding: 28px 16px;
  }

  .header {
    margin-bottom: 36px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card__content {
    padding: 18px 18px 20px;
  }

  .project-card h2 {
    font-size: 1.15rem;
  }

  .project-card p {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .header h1 {
    letter-spacing: 1px;
  }

  .projects-grid {
    gap: 14px;
  }

  .project-card__media {
    aspect-ratio: 16 / 11;
  }
}
.back-home-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.88);
  border: 1px solid rgba(0, 212, 212, 0.35);
  color: #eaf0f7;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 212, 0.7);
  background: rgba(10, 14, 39, 0.96);
  box-shadow: 0 18px 40px rgba(0, 212, 212, 0.12), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.back-home-btn:focus-visible {
  outline: 3px solid rgba(0, 212, 212, 0.55);
  outline-offset: 4px;
}

.back-home-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 212, 212, 0.12);
  color: #00d4d4;
  font-size: 1rem;
  line-height: 1;
}

.back-home-btn__text {
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 640px) {
  .back-home-btn {
    right: 14px;
    bottom: 14px;
    padding: 11px 13px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .back-home-btn__text {
    display: none;
  }

  .back-home-btn__icon {
    width: 30px;
    height: 30px;
  }
}