:root {
  --bg: #0b1020;
  --brand: #f5c518;
  --fg: #e7e9ee;
  --muted: #9aa4b2;
  --panel: rgba(18, 24, 44, 0.85);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  height: 100vh;
  overflow: hidden;
}

/* LAYOUT */
.layout {
  display: flex;
  height: 100vh;
}

/* === PAINEL INTERATIVO === */
.interactive-panel {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(245,197,24,0.08), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(245,197,24,0.06), transparent 60%),
              var(--bg);
}

#energyField {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.icon {
  position: absolute;
  font-size: 1.9rem;
  color: var(--fg);
  pointer-events: auto;
  transition: transform 0.4s ease, color 0.3s ease, text-shadow 0.4s ease;
  text-shadow: 0 0 10px rgba(245,197,24,0.2);
}

.icon:hover {
  color: var(--brand);
  transform: scale(1.4);
  text-shadow: 0 0 25px rgba(245,197,24,0.9);
  cursor: pointer;
}

/* === PAINEL DE CONTEÚDO === */
.content-panel {
  flex: 0.9;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255,255,255,0.05);
  box-shadow: -6px 0 24px rgba(0,0,0,0.3);
}

/* === BLOCO DE PERFIL === */
.profile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  animation: fadeInUp 0.8s ease both;
}

.text-block {
  max-width: 480px;
}

.text-block h1 {
  color: var(--brand);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  margin-bottom: 12px;
}

.text-block p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.photo-block {
  flex-shrink: 0;
  position: relative;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(245,197,24,0.4);
  box-shadow: 0 0 25px rgba(245,197,24,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(245,197,24,0.35);
}

/* === ANIMAÇÃO === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVO === */
@media (max-width: 900px) {
  .profile-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .photo-block {
    margin-top: 20px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }
}


.content-inner h1 {
  color: var(--brand);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  margin-bottom: 14px;
}

.content-inner p {
  color: var(--muted);
  line-height: 1.6;
}

/* === MODAL POPUP === */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(18,24,44,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 60px;           /* mais espaço interno */
  max-width: 860px;             /* aumenta um pouco a largura */
  width: calc(100% - 120px);    /* deixa 60px de folga em cada lado */
  margin: 40px auto;            /* centraliza e afasta das bordas */
  box-shadow: 0 0 40px rgba(245,197,24,0.25);
  text-align: left;
  transform: scale(0.9);
  animation: modalIn 0.45s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}


@keyframes modalIn {
  to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
  color: var(--brand);
  margin-top: 0;
}

.modal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--brand);
}

/* === RODAPÉ === */
.credits {
  position: absolute;
  bottom: 12px;
  right: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .interactive-panel, .content-panel { flex: none; height: 50vh; }
  .content-panel { padding: 40px 24px; text-align: center; }
}
/* === GRID DE PROJETOS NO MODAL === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.project-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(245,197,24,0.25);
}

.project-card i {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 10px;
  display: inline-block;
}

.project-card h4 {
  color: var(--fg);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* === COVERFLOW DE ARTIGOS (versão otimizada) === */
.coverflow {
  position: relative;
  height: 260px;
  perspective: 1300px;
  margin-top: 30px;
  overflow: visible;
}

.cf-stage {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(12,16,32,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  color: var(--fg);
  transition: transform .45s ease, opacity .3s ease, box-shadow .3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  backface-visibility: hidden;
  overflow: hidden;
}

.cf-card:hover {
  background: rgba(20,26,48,1);
  box-shadow: 0 10px 28px rgba(245,197,24,0.25);
}

.cf-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--fg);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cf-card .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.cf-card .read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

.cf-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.cf-btn:hover {
  background: rgba(245,197,24,0.25);
  transform: translateY(-50%) scale(1.1);
}

.cf-btn.prev { left: -52px; }
.cf-btn.next { right: -52px; }

@media (max-width: 900px) {
  .cf-card { width: 180px; }
}

/* === GRID DE EXPERIÊNCIA === */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.exp-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(245,197,24,0.25);
}

.exp-card i {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 10px;
  display: inline-block;
}

.exp-card h4 {
  color: var(--fg);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.exp-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* === GRID DE SERVIÇOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(245,197,24,0.25);
}

.service-card i {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 10px;
  display: inline-block;
}

.service-card h4 {
  color: var(--fg);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* === CONTATO (cards clicáveis) === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(245,197,24,0.25);
  background: rgba(245,197,24,0.05);
}

.contact-card i {
  font-size: 1.8rem;
  color: var(--brand);
  flex-shrink: 0;
}

.contact-card h4 {
  color: var(--fg);
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.contact-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
/* === FORMULÁRIO DE CONTATO === */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 400px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(245,197,24,0.05);
}

.contact-form button {
  align-self: flex-start;
  background: var(--brand);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.contact-form button:hover {
  background: #ffd84d;
  transform: translateY(-1px);
}

.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}
/* === RESPONSIVIDADE AVANÇADA === */

/* --- Tablets e telas médias --- */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    height: auto;
  }

  .interactive-panel,
  .content-panel {
    flex: none;
    width: 100%;
    height: auto;
  }

  .content-panel {
    padding: 40px 24px;
    text-align: center;
    box-shadow: none;
    border-left: none;
  }

  .profile-content {
    flex-direction: column-reverse;
    gap: 28px;
    align-items: center;
    text-align: center;
  }

  .text-block {
    max-width: 100%;
  }

  .text-block h1 {
    font-size: 2rem;
  }

  .text-block p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .photo-block {
    margin-top: 12px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 16px;
  }

  /* --- Formulário responsivo --- */
  .contact-form {
    width: 100%;
    max-width: 480px;
    margin: 24px auto 0;
    align-items: stretch;
  }

  .contact-form label {
    text-align: left;
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 1rem;
  }

  .contact-form button {
    align-self: center;
  }
}

/* --- Smartphones pequenos --- */
@media (max-width: 600px) {
  .content-panel {
    padding: 28px 18px;
  }

  .text-block h1 {
    font-size: 1.6rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .contact-form {
    gap: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 9px 10px;
  }

  .contact-form button {
    width: 100%;
    font-size: 1rem;
  }

  .credits {
    position: static;
    text-align: center;
    margin-top: 20px;
  }
}
/* === MENU MOBILE === */
.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .mobile-nav {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 200;
    display: block;
  }

  .mobile-toggle {
    background: rgba(245,197,24,0.15);
    border: 1px solid rgba(245,197,24,0.35);
    color: var(--brand);
    font-size: 1.5rem;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-toggle:hover {
    background: rgba(245,197,24,0.3);
    transform: scale(1.05);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(11,16,32,0.96);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 300;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.active {
    display: flex;
    animation: fadeInMenu 0.35s ease forwards;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
  }

  .mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--brand);
    font-size: 1.6rem;
    cursor: pointer;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .mobile-menu a {
    color: var(--fg);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-menu a:hover {
    color: var(--brand);
    transform: scale(1.05);
  }
}
.social-links {
      margin: 15px 0;
    }

    .social-links a {
      text-decoration: none;
      margin: 0 8px;
      color: #555;
      transition: color 0.3s;
    }

    .social-links a:hover {
      color: #0a66c2; /* LinkedIn azul */
    }

    .social-links a[aria-label="Instagram"]:hover {
      color: #e1306c;
    }

    .social-links a[aria-label="GoTree"]:hover {
      color: #16a34a;
    }