@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
  --bg1: #0f172a;
  --bg2: #1e293b;
  --card: #2d3748;
  --fg: #ffffff;
  --muted: #cbd5e1;
  --brand: #f1c40f;
  --brand-weak: rgba(241, 196, 15, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --error: #ef4444;
  --success: #22c55e;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--fg);
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #000;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

.profile {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  margin-bottom: 10px;
  object-fit: cover;
}

.profile h3 {
  margin: 0;
  font-size: 18px;
  color: var(--brand);
}

.profile p {
  font-size: 14px;
  color: var(--muted);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar li {
  padding: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--fg);
  background: linear-gradient(90deg, #0f172a, #1e293b);
  transition: background 0.3s, transform 0.2s;
}

.sidebar li i {
  color: var(--brand);
  font-size: 18px;
}

.sidebar li:hover {
  background: linear-gradient(90deg, #f1c40f, #d4ac0d);
  color: #000;
  transform: scale(1.05);
}

.sidebar li:hover i {
  color: #000;
}

.sidebar-footer {
  margin-top: 20px;
  text-align: center;
}

.btn-cv {
  display: inline-block;
  padding: 8px 10px;
  background: linear-gradient(90deg, #f1c40f, #d4ac0d);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-cv:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Conteúdo */
.content {
  flex: 1;
  background: var(--bg2);
  padding: 40px;
  font-size: 18px;
  line-height: 1.6;
  transition: opacity 0.3s;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--brand-weak);
  /* border-color: var(--brand-weak); */
}

.card .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-weak);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.card .icon i {
  font-size: 20px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--fg);
}

.card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

button {
  padding: 10px 16px;
  background: linear-gradient(90deg, #f1c40f, #d4ac0d);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-weak);
  border: 1px solid rgba(241, 196, 15, 0.35);
}

.chip i {
  font-size: 12px;
}

/* Formulário */
.form-card {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.form-title {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  color: var(--fg);
}

input,
textarea {
  background: #0b1322;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-weak);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.status {
  font-size: 14px;
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

/* Ícones diretos com tooltip */
.direct-links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}

.icon-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-weak);
  color: var(--brand);
  border-radius: 50%;
  font-size: 22px;
  position: relative;
  transition: 0.3s;
}

.icon-link:hover {
  background: linear-gradient(90deg, #f1c40f, #d4ac0d);
  color: #000;
  transform: scale(1.1);
}

.icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.icon-link:hover::after {
  opacity: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.show {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid var(--brand);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 6px solid var(--brand);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tema Claro */
.light-theme {
  --bg1: #f9f9f9;
  --bg2: #ffffff;
  --card: #f1f1f1;
  --fg: #000000;
  --muted: #555555;
  --brand: #f1c40f;
  --brand-weak: rgba(241, 196, 15, 0.15);
  --border: rgba(0, 0, 0, 0.08);
}
.social-icons a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

/* Efeito hover para dar mais vida */
.linkedin i:hover {
  color: #005582; /* Azul mais escuro no hover */
}

.github i:hover {
  color: #666; /* Cinza mais claro no hover */
}

.gitBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #fff;
  text-decoration: none;
  color: #000;
}

.img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
