:root {
  --bg-primary: #0f172a;
  --bg-secondary: #020617;
  --bg-card: #1e293b;

  --color-primary: #3656e4;
  --color-accent: #38bdf8;
  --color-highlight: #f59e0b;

  --text-primary: #ffffff;
  --text-secondary: #cbd5f5;

  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  width: 100%;
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.header ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.header a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.header a:hover {
  color: var(--color-accent);
}

.about {
  min-height: 70vh;
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: left;
}

.about img {
  width: 180px;
  border-radius: 50%;
  border: 3px dashed var(--color-highlight);
  transition: 0.3s;
}

.about img:hover {
  transform: scale(1.05);
}

.aboutInfos {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aboutInfos h1 {
  font-size: 2rem;
}

.aboutInfos p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* PROJECTS */
.projects {
  padding: 60px 0;
  text-align: center;
}

.projects h2 {
  font-size: 1.8rem;
}

.containerProjects {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  justify-content: center;
}

.project {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  width: 300px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.project p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project a {
  margin-top: 10px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  margin-top: 60px;
  color: var(--text-secondary);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .aboutInfos {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .header ul {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
  }
}
