@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --primary-color: #1c1c2e;
  --accent-color: #f30872;
  --text-color: #f0f0f5;
  --background-color: #0f0f1a;
  --card-bg: #1e1e2f;
  --font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */

header {
  background-color: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  width: 48px;
}

.navbar {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-list li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  bottom: -4px;
  left: 0;
  transition: width 0.3s;
}

.nav-list li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Tela inicial */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
  border-bottom: 1px solid var(--card-bg);
  margin: 2rem;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.intro h2 {
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 400;
  margin-top: -1rem;
}

.intro strong {
  background: linear-gradient(to right, #ff5db1, #ffe2e4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 1rem;
}

.contacts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fone,
.email {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.fone img,
.email img {
  width: 1.5rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  flex: 1 1 auto;
  justify-content: center;
}

.button:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.button img {
  width: 20px;
  height: 20px;
}

/* Sobre */

.sobre {
  border-bottom: 1px solid var(--card-bg);
  margin: 2rem;
}

.sobre h2,
.projetos h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
}

.sobre article {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

/* Tecnologias */

.tecnologias {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.card-tecnologia {
  width: 100%;
  max-width: 240px;
  height: 200px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.card-tecnologia:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card-front {
  background-color: var(--card-bg);
}

.card-front img {
  width: 60px;
  margin-bottom: 1rem;
}

.card-front span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.card-back {
  background: linear-gradient(135deg, var(--accent-color), #ff5db1);
  color: #fff;
  transform: rotateY(180deg);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Projetos */

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-grow: 1;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  min-height: 12rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  flex: 1;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  flex: 1;
}

.card p {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  flex: 1;
}

.card a {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.card a:hover {
  background-color: #d62270;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  height: 200px;
  background-color: #1a1a2a;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

/* Footer */

footer {
  background-color: var(--primary-color);
  padding: 2rem 1rem;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--card-bg);
  margin-top: 4rem;
}

footer h2 {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 400;
}

footer h2 span {
  font-weight: 600;
  color: var(--accent-color);
}
