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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0f19;
  color: #f5f5f5;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.logo span {
  color: #00c2ff;
}

nav ul {
  display: flex;
  gap: 24px;
}

nav ul li a {
  color: #f5f5f5;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #00c2ff;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(7, 10, 18, 0.75), rgba(7, 10, 18, 0.92)),
    url("img/fundo-hero.jpg") center/cover no-repeat;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-text {
  max-width: 700px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 999px;
  color: #00c2ff;
  background: rgba(0, 194, 255, 0.08);
  font-size: 0.95rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero h3 {
  font-size: 1.5rem;
  color: #00c2ff;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  color: #d9d9d9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #00c2ff, #0077ff);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.25);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 119, 255, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid #00c2ff;
  color: #00c2ff;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(0, 194, 255, 0.08);
}

section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title.center {
  text-align: center;
}

.section-title span {
  display: inline-block;
  color: #00c2ff;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #cfcfcf;
}

.sobre p {
  max-width: 850px;
  font-size: 1.08rem;
  color: #d9d9d9;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card {
  background: linear-gradient(180deg, #121826, #0f1522);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 194, 255, 0.35);
}

.skill-card h3 {
  color: #00c2ff;
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: linear-gradient(180deg, #121826, #0d131f);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.35s;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 194, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

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

.card-content {
  padding: 24px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.card p {
  color: #d0d0d0;
  margin-bottom: 20px;
}

.card a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
  font-weight: bold;
  transition: 0.3s;
}

.card a:hover {
  background: #00c2ff;
  color: #08111f;
}

.contato {
  text-align: center;
}

.links-contato {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.links-contato a {
  padding: 14px 22px;
  border-radius: 12px;
  background: #121826;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.3s;
  font-weight: bold;
}

.links-contato a:hover {
  background: #00c2ff;
  color: #08111f;
  transform: translateY(-4px);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 24px 10px;
  color: #bdbdbd;
  background: #090d15;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero {
    text-align: center;
  }

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

  .hero h2 {
    font-size: 2.3rem;
  }

  .hero h3 {
    font-size: 1.2rem;
  }

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

@media (max-width: 600px) {
  section {
    padding: 80px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
  .menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
  margin: 5px 0;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

  .card img {
    height: 200px;
  }
}
header.scrolled {
  background: rgba(7, 16, 29, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
nav ul li a.active {
  color: var(--text);
}

nav ul li a.active::after {
  width: 100%;
}
.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-box p + p {
  margin-top: 16px;
}
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.highlight-name {
  color: var(--primary);
}

.project-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #03111b;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}
@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 16, 29, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

.menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
.menu ul {
    flex-direction: column;
    gap: 18px;
  }
}
