* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top, rgba(238, 168, 192, 0.295), transparent 35%),
    linear-gradient(to bottom, #120d18, #e713489a);
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* SAKURA BACKGROUND */

.sakura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  contain: layout paint;
  isolation: isolate;
}

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffb7d5;
  border-radius: 12px 0px 12px 0px;
  opacity: 0.42;
  will-change: transform;
  transform: translate3d(0, 0, 0);

  animation: fall linear infinite;
}

@keyframes fall {

  from {
    transform: translate3d(0, -100px, 0) rotate(0deg);
  }

  to {
    transform: translate3d(0, 110vh, 0) rotate(360deg);
  }

}

@media (prefers-reduced-motion: reduce) {
  .petal {
    animation: none;
    opacity: 0.18;
  }

  .nav a,
  .btn,
  .projectcard,
  .projectcard a,
  .skill-card {
    transition: none;
  }
}

/* LAYOUT */

.container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 110px;
  flex: 0 0 110px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  gap: 30px;
}

.profile {

  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #ff9fca;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#active {
  background: #c585a15e;
  box-shadow: 0 10px 20px rgba(255, 143, 193, 0.35);
}

.nav a {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.3s;
}

.nav a:hover {
  background: #ff8fc1;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 143, 193, 0.35);
}

/* HERO */

.hero {
  flex: 1;
  width: 100%;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.hero-text {
  width: 100%;
  max-width: 800px;
}

.hero-text span {
  color: #ffb3d7;
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-text h1 {
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 0.9;
  font-family: 'Cormorant Garamond', serif;
  color: #fff0f7;
  text-shadow: 0 0 25px rgba(255, 160, 210, 0.25);
}

.hero-text h1 strong {
  display: block;
  font-size: clamp(3.1rem, 7vw, 5rem);
  color: #ff9fc8;
  font-weight: 400;
}

.hero-text p {
  margin-top: 25px;
  color: #e8d6e2;
  line-height: 1.5;
  font-size: 1.05rem;
  text-align: justify;
}

/* BUTTONS */

.buttons {
  margin-top: 15px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  min-height: 52px;
}

.primary {
  background: #ff8fc1;
  color: white;
  box-shadow: 0 10px 25px rgba(255, 143, 193, 0.35);
}

.primary:hover {
  transform: translateY(-3px);
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* HERO IMAGE */

.hero-image {
  align-self: center;
  position: relative;
  width: min(42vw, 620px);
  min-width: 320px;
  height: min(72vh, 750px);
  min-height: 480px;
  border-radius: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FLOATING CARD */

.floating-card {
  position: absolute;
  bottom: 30px;
  right: 25px;
  width: min(300px, calc(100% - 50px));
  padding: 25px;
  border-radius: 24px;
  background: rgba(228, 192, 217, 0.158);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.floating-card h3 {
  color: #ffb7d5;
  margin-bottom: 15px;
}

.floating-card p {
  line-height: 1.8;
  color: #f3dce8;
  font-size: 0.95rem;
}

/* GOOGLE ICONS SETTINGS */

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

#projects-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.spotligthcards {
  width: 100%;
  height: fit-content;
  margin-top: 30px;
}

.spotligthcards h3 {
  text-align: center;
  color: #ffb7d5;
  margin-bottom: 18px;
}

#spotligthcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.loading-projects {
  color: #f2dce7;
  line-height: 1.6;
}

.projectcard {
  position: relative;
  min-height: 260px;
  padding: 22px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.658), rgba(255, 255, 255, 0.13)),
    rgba(216, 40, 114, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 210, 231, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
  contain: layout paint;
}

.projectcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff8fc1, #b7a7d6, #8fd3ff);
}

.projectcard:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 183, 213, 0.45);
  box-shadow: 0 22px 48px rgba(255, 140, 200, 0.22);
}

.projectcard h2 {
  color: #ffd2e7;
  margin-bottom: 14px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.projectcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.projectcard p {
  color: #f2dce7;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}

.language {
  display: inline-block;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 143, 193, 0.16);
  border: 1px solid rgba(255, 183, 213, 0.28);
  color: #ffd2e7;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-stars {
  color: rgba(255, 240, 247, 0.72);
  font-size: 0.78rem;
  white-space: nowrap;
}

.projectcard-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.projectcard-footer span {
  color: rgba(242, 220, 231, 0.72);
  font-size: 0.78rem;
}

.projectcard a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff0f7;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.projectcard a::after {
  content: "->";
  color: #ffb7d5;
}

.projectcard a:hover {
  background: rgba(255, 143, 193, 0.22);
  transform: translateY(-2px);
}

/* PROJECTS PAGE */

.hero-projects {
  flex: 1;
  width: 100%;
  padding: 54px 80px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.projects-intro {
  max-width: 760px;
}

.projects-kicker {
  color: #ffb3d7;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects-intro h1 {
  margin: 12px 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.3rem, 8vw, 6rem);
  line-height: 0.9;
  color: #fff0f7;
  text-shadow: 0 0 25px rgba(255, 160, 210, 0.25);
}

.projects-intro p {
  max-width: 620px;
  color: #e8d6e2;
  font-size: 1.02rem;
  line-height: 1.8;
}

.projects-container {
  width: 100%;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 210, 231, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.projects-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.projects-section-title span {
  color: #ffb7d5;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.projects-section-title h2 {
  color: #fff0f7;
  font-size: 1.35rem;
}

.allprojects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* PAGINA DE CONTATO */

#contactbody {
  background: radial-gradient(farthest-corner at 40px 90px, rgba(58, 138, 212, 0.18), transparent 35%),
    linear-gradient(to bottom, #120d18, #ad3a79d8);
  font-family: 'Poppins', sans-serif;
  color: white;
}

.hero-contact {
  display: flex;
  width: 90%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 50px auto;
}

.hero-contact > img {
  height: 500px;
  width: min(100%, 620px);
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid #ff9fca;
  box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
  margin: 15px;
}

.hero-contact .hero-text {
  width: 90%;
  font-size: 1.25rem;
  text-align: center;
  max-width: 760px;
  overflow: visible;
  border-right: 0;
  animation: none;
  display: block;
  white-space: normal;
}

.hero-contact .hero-text span{
  font-size: clamp(1rem, 4vw, 1.25rem);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

#textinho {
  color: #cec2c8;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-align: justify;
  background: linear-gradient(to left, #d5cedd27, #ad3a791a);
  border-radius: 18px;
  padding: 10px 14px;
  max-width: 920px;
  line-height: 1.7;
}


.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  background: rgba(231, 230, 230, 0.493);
  padding: 10px 14px;
  border-radius: 18px;
  width: fit-content;
  max-width: 100%;
}

.contact-link {
  color: #ffb7d5;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.contact-link img {
  width: 40px;
  height: 40px;
  margin-left: 8px;
  justify-content: center;
}

/* ABOUT ME PAGE */

.div-lista{
  width: min(50%, 680px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 15px;

  span{
    justify-content: justify;
    color: #f2dce7;
    padding: 10px 14px;
  }

  h3{
    background: linear-gradient(to left, #d5cedd27, #ad3a791a);
    padding: 10px 14px;
    border-radius: 18px;
    color: #ffb7d5;
    border-radius: 18px;
    border: 2px solid #ff9fca;
    box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
    margin: 15px;
  }

  li{
    margin: 15px;
  }

  img{
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid #ff9fca;
    box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
    margin: 15px;
  }
}

.div-lista span{
  color: #f2dce7;
  padding: 10px 14px;
  line-height: 1.7;
}

.div-lista h3{
  background: linear-gradient(to left, #d5cedd27, #ad3a791a);
  padding: 10px 14px;
  border-radius: 18px;
  color: #ffb7d5;
  border: 2px solid #ff9fca;
  box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
  margin: 15px;
  line-height: 1.35;
}

.div-lista li{
  margin: 15px;
  line-height: 1.65;
}

.div-lista img{
  width: calc(100% - 30px);
  height: min(400px, 58vw);
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid #ff9fca;
  box-shadow: 0 0 20px rgba(255, 179, 218, 0.4);
  margin: 15px;
}


/* RESPONSIVO */

@media(max-width:1200px) {

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .buttons {
    justify-content: center;
  }

  .floating-card {
    right: 25px;
  }

  .hero-image {
    width: min(100%, 620px);
  }

  .hero-projects {
    padding: 46px 44px;
  }

}

@media (min-width: 1400px) {
  .hero {
    gap: clamp(20px, 2.5vw, 36px);
  }

  .hero-image {
    width: min(34vw, 540px);
    height: min(64vh, 680px);
    backdrop-filter: blur(4px);
  }

  .floating-card,
  .sidebar,
  .projectcard,
  .projects-container,
  .skill-card {
    backdrop-filter: none;
  }

  .projects-container,
  .projectcard,
  .skill-card {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  }

  .projectcard,
  .skill-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .projects-container,
  .projectcard,
  .skill-card,
  .sidebar,
  .floating-card {
    background-clip: padding-box;
  }

  .petal:nth-child(n + 7) {
    display: none;
  }
}

@media(max-width:768px) {

  body {
    padding-bottom: 92px;
  }

  .container {
    min-height: auto;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    width: auto;
    height: 70px;
    flex: none;
    flex-direction: row;
    justify-content: center;
    padding: 8px 10px;
    gap: 0;
    border-right: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(34, 18, 38, 0.82);
  }

  .profile {
    display: none;
  }

  .nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .nav a {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .nav img {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding: 32px 20px;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: clamp(3.2rem, 18vw, 4rem);
  }

  .hero-text h1 strong {
    font-size: clamp(2.6rem, 14vw, 3rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .buttons a,
  .btn {
    width: 100%;
  }

  .btn {
    padding: 14px 18px;
  }

  .hero-image {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
  }

  .floating-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    padding: 18px;
    border-radius: 18px;
    text-align: left;
  }

  #spotligthcards {
    grid-template-columns: 1fr;
  }

  .hero-projects {
    padding: 36px 20px;
  }

  .projects-container {
    padding: 18px;
    border-radius: 18px;
  }

  .projects-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .allprojects {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    width: calc(100%);
    margin: 32px auto;
  }

  .icons {
    width: 100%;
    padding: 12px;
  }

  .contact-link {
    flex: 1 1 130px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
  }

  .contact-link img {
    margin-left: 0;
  }

  #textinho {
    font-size: 0.98rem;
  }

  .hero-contact > img {
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 8px 0 0;
  }

  .div-lista {
    width: 100%;
    padding: 18px;
  }

  .div-lista h3,
  .div-lista li,
  .div-lista img {
    margin: 10px 0;
  }

  .div-lista ul {
    padding-left: 18px;
  }

  .div-lista img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

}

@media(max-width:430px) {

  .hero {
    padding-inline: 16px;
  }

  .nav a {
    width: 44px;
    height: 44px;
  }

  .projectcard,
  .projects-container {
    padding: 16px;
  }

  .projectcard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .hero-contact .hero-text {
    width: 100%;
  }

  .contact-link {
    flex-basis: 100%;
  }

}

/* ===== SKILLS PAGE STYLES ===== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.skill-card {
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 159, 200, 0.08), rgba(183, 167, 214, 0.06));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 183, 213, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  contain: layout paint;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8fc1, #b7a7d6);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 183, 213, 0.4);
  box-shadow: 0 20px 48px rgba(255, 140, 200, 0.25);
  background: linear-gradient(135deg, rgba(255, 159, 200, 0.12), rgba(183, 167, 214, 0.1));
}

.card-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skillsoft {
  background: rgba(255, 143, 193, 0.2);
  color: #ffc4e0;
  border-color: rgba(255, 143, 193, 0.4);
}

.usp {
  background: rgba(139, 92, 246, 0.2);
  color: #d8b4ff;
  border-color: rgba(139, 92, 246, 0.4);
}

.bradesco {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.4);
}

.ibm {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.4);
}

.tic {
  background: rgba(249, 115, 22, 0.2);
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.4);
}

.alura {
  background: rgba(236, 72, 153, 0.2);
  color: #fbcfe8;
  border-color: rgba(236, 72, 153, 0.4);
}

.cursa {
  background: rgba(168, 85, 247, 0.2);
  color: #ddd6fe;
  border-color: rgba(168, 85, 247, 0.4);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-list li {
  color: #f0e7f3;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  transition: transform 0.2s;
}

.skill-list li:hover {
  transform: translateX(4px);
}

.skill-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #ffb7d5;
  font-weight: bold;
}

/* RESPONSIVE SKILLS */

@media(max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .skill-card {
    padding: 20px;
  }

  .certificate-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .cert-placeholder {
    min-height: 220px;
  }

  .cert-placeholder span {
    font-size: 2.5rem;
  }
}

@media(max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .certificate-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .skill-card {
    padding: 16px;
  }

  .skill-list li {
    font-size: 0.9rem;
  }
}
