/* --- style.css --- */

/* --- VARIÁVEIS GERAIS --- */
:root {
  --bg-color: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0066cc;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- RESET & BODY --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  padding-bottom: 100px;
  overflow-x: hidden;
  position: relative;
}

/* --- ANIMAÇÕES --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes iconEntrance {
  from {
    opacity: 0;
    margin-top: 60px;
  }
  to {
    opacity: 0.3;
    margin-top: 0px;
  }
}

/* --- CLASSES UTILITÁRIAS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-apple);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- DECORAÇÃO DE FUNDO --- */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.color-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: moveBlob 25s infinite alternate;
}
.blob-1 {
  top: -15%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: #2d1468;
}
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: #31b0eb;
}

.bg-icon {
  position: absolute;
  opacity: 0.3;
  filter: grayscale(100%);
  transform: rotate(-15deg);
  animation: iconEntrance 1.5s var(--ease-apple) backwards;
}

/* Posições dos Ícones */
.icon-1 {
  top: 10%;
  left: 5%;
  width: 130px;
  transform: rotate(15deg);
}
.icon-2 {
  top: 25%;
  right: 8%;
  width: 110px;
  transform: rotate(15deg);
}
.icon-3 {
  bottom: 45%;
  left: 5%;
  width: 120px;
}
.icon-4 {
  bottom: 10%;
  right: 15%;
  width: 140px;
  transform: rotate(-10deg);
  animation-delay: 0.2s;
}
.icon-5 {
  top: 55%;
  left: 85%;
  width: 100px;
}
.icon-6 {
  top: 80%;
  left: 6%;
  width: 110px;
  transform: rotate(20deg);
}
.icon-7 {
  bottom: 5%;
  right: 70%;
  width: 90px;
  transform: rotate(5deg);
}
.icon-8 {
  top: 25%;
  left: 20%;
  width: 100px;
  transform: rotate(1deg);
}
.icon-9 {
  top: 38%;
  right: 20%;
  width: 110px;
  transform: rotate(-5deg);
}
.icon-10 {
  top: 50%;
  left: 15%;
  width: 120px;
  transform: rotate(1deg);
}
.icon-11 {
  top: 60%;
  left: 2%;
  width: 100px;
  transform: rotate(20deg);
}
.icon-12 {
  bottom: 5%;
  top: 78%;
  right: 5%;
  width: 90px;
  transform: rotate(15deg);
}
.icon-13 {
  top: 8%;
  right: 3%;
  width: 110px;
  transform: rotate(-8deg);
}

/* --- BARRA DE NAVEGAÇÃO --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-out;
}

.nav-content {
  width: 100%;
  max-width: 98%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-logo {
  max-height: 50px;
  width: auto;
  transform: scale(2.2);
  transform-origin: left center;
  margin-left: 10px;
  position: relative;
  z-index: 1002;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.7;
  transition: 0.3s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.mobile-menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.mobile-menu-icon .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.profile-thumb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  animation: popIn 1s var(--ease-apple) backwards;
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-apple) forwards;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #1d1d1f;
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin: 0 auto 40px;
  animation-delay: 0.4s;
}

.btn-container {
  animation-delay: 0.6s;
}

.btn-apple {
  background-color: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s var(--ease-apple);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.btn-apple:hover {
  transform: scale(1.05) translateY(-2px);
  background-color: #0055b3;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

/* --- BENTO GRID --- */
.grid-container {
  max-width: 1040px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease-apple),
    box-shadow 0.4s var(--ease-apple);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 102, 204, 0.3);
}

.span-2 {
  grid-column: span 2;
}
.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.card-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.destaque {
  color: var(--accent);
  font-weight: 600;
}

/* --- COMPETÊNCIAS --- */
.skills-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  grid-column: span 3;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
}

.all-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.skill-box {
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s var(--ease-apple);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.skill-box:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.skill-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  transition: 0.3s;
}
.skill-box:hover .skill-icon {
  transform: scale(1.1);
}
.skill-name {
  font-size: 13px;
  font-weight: 600;
}

/* --- PROJETOS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-apple),
    box-shadow 0.4s var(--ease-apple);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-img-holder {
  height: 220px;
  background: #eee;
  overflow: hidden;
  position: relative;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-apple);
}
.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-info {
  padding: 25px;
}
.project-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s var(--ease-apple);
}
.project-link:hover {
  background: var(--accent);
  transform: translateX(5px);
}

/* --- REDES SOCIAIS --- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.social-box {
  background: rgba(255, 255, 255, 0.7);
  padding: 25px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease-apple);
  font-weight: 600;
  font-size: 14px;
}
.social-icon {
  font-size: 32px;
  transition: 0.3s;
}

.social-box:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.social-box.linkedin:hover .social-icon {
  color: #0077b5;
}
.social-box.github:hover .social-icon {
  color: #333;
}
.social-box.instagram:hover .social-icon {
  color: #e1306c;
}
.social-box.email:hover .social-icon {
  color: #ea4335;
}

/* --- FOOTER --- */
footer {
  max-width: 1040px;
  margin: 60px auto 0;
  padding: 30px 20px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  text-align: center;
}

@media (max-width: 990px) {
  .mobile-menu-icon {
    display: flex;
  }
  .nav-content {
    padding: 0 30px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
    animation: fadeUp 0.3s ease-out;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px;
    display: block;
    width: 100%;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
  .span-2,
  .skills-section {
    grid-column: span 1;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }
  h1 {
    font-size: 40px;
  }
  .bg-icon {
    opacity: 0.04;
  }

  .profile-thumb {
    width: 120px;
    height: 120px;
  }
  .card,
  .project-card,
  .skills-section {
    padding: 25px;
  }

  .grid-container {
    display: flex;
    flex-direction: column;
  }

  #perfil {
    order: 1;
  }
  #objetivo {
    order: 2;
  }
  #projetos {
    order: 3;
  }
  #competências {
    order: 4;
  }
  #redessociais {
    order: 5;
  }

  .all-skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-box {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 15px 20px;
  }
  .skill-icon {
    margin-bottom: 0;
  }
}

@media (max-width: 990px) {
  .bg-icon {
    opacity: 0.1 !important;
  }
}
