/* =========================================
   CSS Variables (Padrão único)
========================================= */
:root {

  /* ========== Main colors (HSL) ========== */
  --hue: 217;
  --sat: 85%;
  --light: 74%;

  --primary-color: hsl(var(--hue) var(--sat) var(--light));
  --white-color: hsl(var(--hue) 45% 98%);
  --dark-color: hsl(var(--hue) 26% 12%);

  /* ======= Changeable colors for dark/light themes ======= */
  --color-01: hsl(var(--hue) var(--sat) var(--light));
  --color-02: hsl(var(--hue) 45% 98%);
  --color-03: hsl(var(--hue) 26% 12%);
  --color-04: hsl(var(--hue) 0% 62%);
  --color-05: hsl(var(--hue) 26% 12%);

  --body-color: hsl(250 26% 12%);
  --hover-color: hsl(var(--hue) var(--sat) calc(var(--light) - 7%));

  /* ======= Background colors ======= */
  --bottom-nav-bg: hsl(var(--hue) 32% 25% / .65);
  --card-bg: linear-gradient(120deg, hsl(var(--hue) var(--sat) var(--light) / .15), hsl(var(--hue) 54% 74% / .05));
  --modal-backdrop-bg: hsl(var(--hue) 54% 74% / .1);
  --footer-bg: linear-gradient(360deg, hsl(var(--hue) 54% 74% / .15), hsl(var(--hue) 54% 74% / .05));

  --scrollbar-color: hsl(var(--hue) 25% 20%);
  --scrollbar-thumb: hsl(var(--hue) var(--sat) var(--light));
  --scrollbar-thumb-hover: hsl(var(--hue) var(--sat) var(--light) -7%);


  /* ======= Font and typography ======= */
  --body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono-font-family: "JetBrains Mono", monospace;

  /* ======= Font sizes ======= */
  /* ======= Font sizes (Fluid) ======= */
  --h1-font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
  --h2-font-size: clamp(1.8rem, 4vw + 1rem, 2.75rem);
  --h3-font-size: clamp(1.5rem, 3vw + 1rem, 2.25rem);
  --h4-font-size: clamp(1.2rem, 2vw + 1rem, 1.6rem);
  --h5-font-size: clamp(1rem, 1vw + 1rem, 1.25rem);

  --xlarge-font-size: 1.48rem;
  --large-font-size: 1.23rem;
  --medium-font-size: 1.18rem;
  --base-font-size: 1.1rem;
  --small-font-size: 1.07rem;
  --tiny-font-size: .98rem;

  --container-pad: 20px;

  /* ======= Font weights ======= */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* ======= Radius / spacing / motion ======= */
  --section-padding: 5rem 1.5rem;
  --transition-speed: 0.3s;

  /* ======= Layering order (z-index) ======= */
  --z-minus: -1;
  --z-base: 0;
  --z-low: 10;
  --z-high: 100;
  --z-content: 100;
  --z-tooltip: 1000;
  --z-fixed: 1100;
  --z-overlay: 1110;
  --z-modal: 1990;
  --z-max: 9999;

  /* ======= Compat (aliases) ======= */
  --bg-color: var(--body-color);
  --text-color: var(--color-03);
  --text-muted: hsl(var(--hue) 15% 65%);
  --primary-hover: var(--hover-color);
  --secondary-color: hsl(245 54% 74%);
  --card-border: rgb(255 255 255 / 0.10);
  --nav-bg: hsl(var(--hue) 40% 12% / 0.80);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --primary-light: rgba(56, 189, 248, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ======= Theme Toggle Button Styles ======= */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-01);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* In Dark Mode (default): show sun icon, hide moon icon */
.theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: translateY(20px) rotate(90deg);
}

body {
  color: var(--color-04);
  background: var(--body-color);
}

ul,
li {
  list-style: none;
}

a {
  color: var(--color-04);
  text-decoration: none;
  cursor: pointer;
}


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

/* =========================
   UTILITIES
   ========================= */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-transparent {
  background-color: transparent !important;
}

.cert-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cert-link:hover {
  opacity: 0.8;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}


html {
  scroll-behavior: smooth;
}

/* Firefox */
* {
  scrollbar-width: auto;
  /* nada de thin */
  scrollbar-color: var(--scrollbar-thumb) transparent;
  /* track invisível */
}

/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
  width: 18px;
  /* grossa */
}

*::-webkit-scrollbar-track {
  background: transparent;
  /* some com a calha */
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 0;
  /* <- remove o “miolo”/margem que criava o print 2 */
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}


.typing-wrap {
  display: inline-block;
  min-width: 0.1ch;
}

#typing {
  display: inline;
}

.cursor {
  display: inline-block;
  width: 1ch;
  margin-left: 2px;
  color: var(--primary-color);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


body {
  font-family: var(--body-font-family);
  letter-spacing: 0.1px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}



img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px !important;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  position: relative;
  scroll-margin-top: 100px;
}

.section-padding {
  padding: var(--section-padding);
}

/* =========================
   REVEAL (com fallback)
   ========================= */
.hidden-force {
  display: none !important;
}

.yago-container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.yago-header {
  z-index: var(--z-fixed);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 30px 0;
  transition: .3s ease;
}

.yago-header.shrink {
  background: var(--body-color);
  padding: 12px 0;
}


.yago-header .inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yago-logo a {
  color: var(--color-01);
  font-size: 2.6rem;
  font-weight: var(--font-semi-bold);
  letter-spacing: -3px;
  transition: .3s;
}

.yago-logo a:hover {
  color: var(--hover-color);
}

.header-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
}

.yago-main-btn {
  width: fit-content;
  padding: 14px 30px;
  border-radius: 35px;
  cursor: pointer;
  transition: .3s;
}

.yago-main-btn:hover {
  color: var(--white-color);
  background: var(--hover-color);
  border: 2px solid var(--hover-color);
}

.yago-main-btn a {
  color: var(--color-01);
  font-size: var(--small-font-size);
  font-weight: 500;
  transition: .3s;
}

.yago-main-btn:hover a {
  color: var(--white-color);
}

.border-btn {
  border: 2px solid var(--color-01);
}

.lets-talk-icon {
  color: var(--color-01);
  font-size: 1.8rem;
  cursor: pointer;
  transition: .3s;
  display: none;
}

.lets-talk-icon:hover {
  color: var(--hover-color);
}

.theme-btn {
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
  width: 27px;
  cursor: pointer;
}

.theme-btn i {
  position: absolute;
  color: var(--color-01);
  font-size: 1.7rem;
  cursor: pointer;
  transition: .3s;
}

.theme-btn i:hover {
  color: var(--hover-color);
  transform: rotate(-15deg);
}

.theme-btn .moon-icon {
  display: none;
}

/* =========================
   TITLES / BUTTONS
   ========================= */
.section-title {
  margin-top: clamp(3rem, 10vw, 5rem);
  font-size: var(--h2-font-size);
  font-weight: 700;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--small-font-size);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-load-more {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.8rem 2.2rem;
  font-size: var(--small-font-size);
  box-shadow: none;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}


.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .bottom-nav .menu li a i {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  /* offset navbar */
  overflow: hidden;
  background: radial-gradient(circle at 70% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: var(--font-extra-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.hero-text .role {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
}

.hero-text .role,
#typing {
  font-family: var(--mono-font-family);
  font-weight: 600;
  letter-spacing: 0.3px;
}


.typing-text {
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary-color);
  }
}

.hero-text .description {
  font-size: var(--medium-font-size);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.cloud-svg {
  width: 350px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 10px 15px rgba(56, 189, 248, 0.2));
  animation: cloudColorShift 8s ease-in-out infinite;
}

@keyframes cloudColorShift {

  0%,
  100% {
    filter: drop-shadow(0 10px 15px rgba(56, 189, 248, 0.2)) hue-rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 10px 20px rgba(14, 165, 233, 0.3)) hue-rotate(15deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Sidebars */
.hero-side-left {
  position: absolute;
  left: -5px;
  color: var(--color-01);
  display: grid;
  justify-items: center;
  row-gap: 3px;
}

.hero-side-right {
  animation: up-down 1.5s linear infinite;
  animation-delay: 1.85s;
  position: absolute;
  right: -5px;
  color: var(--color-01);
  display: grid;
  justify-items: center;
  row-gap: 3px;
}

@keyframes up-down {
  0% {
    transform: translateY(8px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(8px);
  }
}

.hero-side-left.hidden-sidebar,
.hero-side-right.hidden-sidebar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-side-left {
  left: calc(50% - 560px - 80px);
}

.hero-side-right {
  right: calc(50% - 560px - 80px);
  cursor: pointer;
}

@media (max-width: 1300px) {
  .hero-side-left {
    left: 20px;
  }

  .hero-side-right {
    right: 20px;
  }
}

@media (max-width: 768px) {

  .hero-side-left,
  .hero-side-right {
    display: none;
  }
}

.side-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--primary-color);
  font-size: var(--tiny-font-size);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.side-line {
  width: 2px;
  height: 80px;
  background-color: var(--primary-color);
  opacity: 0.5;
}

.social-icons-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-side-left .social-icon {
  background: transparent !important;
  color: var(--text-muted);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.hero-side-left .social-icon:hover {
  color: var(--primary-color);
  transform: rotate(15deg);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.hero-side-right:hover .side-text {
  opacity: 1;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Scroll Down icon */
.mouse-icon {
  width: 24px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.mouse-wheel {
  width: 4px;
  height: 6px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  100% {
    top: 18px;
    opacity: 0;
  }
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-visual {
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

/* =========================
   PROJECTS
   ========================= */
.portfolio-container {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
}

.portfolio-container .card-with-modal {
  display: block;
  width: 100%;
}

.portfolio-card {
  position: relative;
  background: var(--card-bg);
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.portfolio-card .card-img {
  width: 100%;
}

.portfolio-card .card-img img {
  width: 100%;
}

.portfolio-card .card-info {
  position: relative;
  padding: 10px 15px 20px 20px;
}

.portfolio-card .card-info span {
  color: var(--color-04);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-regular);
  text-transform: uppercase;
}

.portfolio-card .card-info h4 {
  color: var(--color-02);
  font-size: var(--medium-font-size);
  font-weight: var(--font-medium);
  margin-top: 5px;
}

.portfolio-card .card-info i {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--primary-color);
  font-size: 1.7rem;
  margin: 15px;
  transform: scale(0);
  transition: .3s;
}

.portfolio-card:hover .card-info i {
  transform: scale(1);
}

.portfolio-modal-backdrop {
  z-index: var(--z-overlay);
  position: fixed;
  background: var(--modal-backdrop-bg);
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}


.portfolio-modal-backdrop.active {
  opacity: 1;
  transition: opacity .5s ease;
}

.portfolio-modal-backdrop::-webkit-scrollbar {
  background: hsl(var(--hue) 25% 20%);
  width: 8px;
  border-radius: 5px;
}

.portfolio-modal-backdrop::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.portfolio-modal-backdrop::-webkit-scrollbar-thumb:hover {
  background: var(--hover-color);
}

/* ações do modal */
.modal-actions.minimal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* link-chip minimalista */
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;

  font-size: .95rem;
  font-weight: 600;

  color: var(--color-02);
  background: transparent;
  border: 1px solid var(--card-border);

  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.modal-link i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.modal-link:hover {
  transform: translateY(-1px);
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--color-02);
}

/* no light theme fica legível e consistente */
body.light-theme .modal-link {
  color: var(--text-color);
}

body.light-theme .modal-link:hover {
  background: rgba(56, 189, 248, 0.08);
}


.portfolio-modal {
  position: relative;
  background: var(--color-03);
  max-width: 900px;
  height: fit-content;
  margin: 75px 25px;
  padding: 50px 45px;
  border-radius: 15px;
  transform: scale(0);
  opacity: 0;
}

.portfolio-modal.active {
  transform: scale(1);
  opacity: 1;
  transition: transform .5s, opacity .5s;
}


.portfolio-modal .modal-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  row-gap: 25px;
}

.portfolio-modal .modal-img {
  width: 100%;
}

.portfolio-modal .modal-img img {
  width: 100%;
  border-radius: 10px;
}

.portfolio-modal .modal-content .modal-title {
  color: var(--color-02);
  font-size: var(--h4-font-size);
  font-weight: var(--font-semi-bold);
}

.portfolio-modal .modal-content .description {
  color: var(--color-04);
  font-size: var(--base-font-size);
  font-weight: var(--font-regular);
}



/* ====================================
    Stack
    =================================== */

.stack-container {
  display: grid;
  justify-content: center;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.stack-card {
  position: relative;
  background: var(--card-bg);
  width: 100%;
  max-width: 400px;
  min-height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  border-bottom: 5px solid var(--primary-color);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.stack-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* texto central */
  text-align: center;
}

/* ícone */
.stack-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
}

/* título */
.stack-info h4 {
  margin-top: 16px;
  margin-bottom: 10px;

  font-size: 1.15rem;
  font-weight: var(--font-semi-bold);
  line-height: 1.25;

  color: var(--color-02);

  white-space: normal;
  max-width: 200px;
  /* controla quebra como no print */
}

.stack-info .stack-see-more {
  font-size: var(--base-font-size);
  color: var(--color-01);
  cursor: pointer;
  transition: .3s;
}

.stack-info .stack-see-more:hover {
  color: var(--hover-color);
}

.stack-see-more i {
  padding: 5px;
  font-size: 1.15rem;
  transition: margin-left .3s;
}

.stack-see-more:hover i {
  margin-left: 3px;
}

.stack-modal-backdrop {
  z-index: var(--z-overlay);
  position: fixed;
  backdrop-filter: var(--modal-backdrop-bg);
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.stack-modal-backdrop.active {
  opacity: 1;
  transition: opacity .5s ease;
}

.stack-modal {
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-03);
  width: 825px;
  height: fit-content;
  margin: 75px 25px;
  padding: 50px 25px 50px 45px;
  border-radius: 15px;
  border-bottom: 5px solid var(--primary-color);
  overflow: hidden;
  transform: scale(0);
  opacity: 0;
  transition: transform .5s, opacity .3s;
}

.stack-modal .modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
}

.stack-modal.active {
  transform: scale(1);
  opacity: 1;
  transition: transform .5s, opacity .5s;
}

.modal-close-btn {
  position: absolute;
  color: var(--color-01);
  font-size: 1.35rem;
  top: 0;
  right: 0;
  margin: 15px;
  cursor: pointer;
  transition: .3s;
}

.modal-close-btn:hover {
  color: var(--hover-color);
  transform: rotate(-15deg);
}

.stack-modal .modal-content {
  padding: 16px 10px 18px;
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  max-height: 100%;
  margin-top: 0;
  overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
  background: hsl(var(--hue) 25% 20%);
  width: 5px;
  border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--hover-color);
}

.stack-modal .modal-title {
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stack-modal .modal-title h3 {
  color: var(--color-01);
  font-size: var(--h3-font-size);
  font-weight: 700;
}

.stack-modal .modal-title p {
  color: var(--color-04);
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  margin-top: 14px;
  margin-bottom: 10px;
}

.stack-modal .modal-content h4 {
  color: var(--color-02);
  font-size: var(--h4-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 10px;
}

/* Lista do modal (Stack) - alinhamento perfeito do ícone com o texto */
.modal-content .my-stacks li {
  display: flex;
  align-items: center;
  /* centraliza verticalmente ícone e texto */
  gap: 10px;
  /* substitui margin-right gambiarra */
  margin-bottom: 20px;
}

.modal-content .my-stacks li i {
  display: inline-flex;
  /* elimina “altura fantasma” do ícone */
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* mata o desalinhamento */
  flex-shrink: 0;
  /* impede o ícone de esmagar */
  font-size: 1.35rem;
  color: var(--primary-color);
}

.modal-content .my-stacks li p {
  margin: 0;
  /* remove margin padrão do <p> */
  line-height: 1.4;
  /* deixa o texto mais bonito */
  color: var(--color-02);
  font-size: var(--base-font-size);
}



/* =========================
   SKILLS
   ========================= */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.tech-skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tech-skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.skill-card-header i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.skill-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.skill-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.skill-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-color);
}

.skill-check-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.skill-check-item span {
  font-weight: 500;
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tech-skill-card {
    padding: 1.5rem;
  }
}

/* =========================
   CERTIFICATES — TABS + GRID
   ========================= */

/* ---- Tab Bar ---- */
.certs-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.certs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-family: var(--body-font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.certs-tab-btn i {
  font-size: 1.1rem;
}

.certs-tab-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.certs-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

/* ---- Tab Panels ---- */
.certs-tab-panel {
  display: none;
}

.certs-tab-panel.active {
  display: block;
  animation: certsFadeIn 0.4s ease forwards;
}

@keyframes certsFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Grids ---- */
.certs-grid {
  display: grid;
  gap: 1.5rem;
}

.certs-grid--badges {
  grid-template-columns: repeat(3, 1fr);
}

.certs-grid--courses {
  grid-template-columns: repeat(3, 1fr);
}

.certs-grid--center {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Base Card (reused) ---- */
.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  height: auto;
  min-height: 220px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

/* ---- Badge Card (larger, featured) ---- */
.cert-card--badge {
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  min-height: 320px;
  border-bottom: 3px solid var(--primary-color);
}

.cert-card--badge:hover {
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.2),
    0 0 0 1px rgba(56, 189, 248, 0.3);
}

.cert-card--badge .cert-body {
  align-items: center;
}

.cert-card--badge .cert-meta {
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.badge-img-wrap {
  width: 135px;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-card--badge:hover .badge-img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 20px rgba(56, 189, 248, 0.3));
}

/* ---- Coming Soon Card ---- */
.cert-card--coming-soon {
  opacity: 0.55;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  position: relative;
}

.cert-card--coming-soon:hover {
  opacity: 0.7;
  transform: translateY(-2px);
  box-shadow: none;
}

.cert-card--coming-soon .badge-img {
  filter: grayscale(0.85) brightness(0.7) drop-shadow(0 4px 12px rgba(56, 189, 248, 0.05));
  opacity: 0.6;
}

.cert-card--coming-soon:hover .badge-img {
  filter: grayscale(0.6) brightness(0.8) drop-shadow(0 4px 12px rgba(56, 189, 248, 0.1));
  transform: scale(1.02);
}

.cert-card--coming-soon .cert-title,
.cert-card--coming-soon .cert-school {
  opacity: 0.7;
}

.status-soon {
  background-color: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* ---- Graduation Card ---- */
.cert-card--grad {
  padding: 2rem;
  min-height: 260px;
  border-bottom: 3px solid var(--primary-color);
}

.cert-card--grad .cert-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-card--grad .cert-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.cert-period {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ---- Course Card (smaller) ---- */
.cert-card--course {
  min-height: 180px;
  padding: 1.25rem;
}

.cert-card--course.cert-hidden {
  display: none;
}

.cert-card--course.cert-reveal {
  animation: certsFadeIn 0.4s ease forwards;
}

/* ---- Show More Button ---- */
.certs-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.certs-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  color: var(--primary-color);
  font-family: var(--body-font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.certs-show-more-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.certs-show-more-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.certs-show-more-btn:hover i {
  transform: translateY(2px);
}

.certs-show-more-wrap.hidden {
  display: none;
}

/* ---- Existing cert sub-elements ---- */
.cert-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.25rem;
}

.cert-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.cert-icon img.cert-logo {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-02);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
  height: auto;
  max-height: none;
}

.cert-school {
  margin-top: .15rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.cert-date {
  display: block;
  margin-top: 0.4rem;
  color: var(--color-04);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.85rem;
  gap: 0.8rem;
  flex-wrap: wrap;
  /* in case flex items overlap */
}

.cert-card--badge .cert-meta {
  justify-content: center;
}



.cert-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-completed {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-ongoing {
  background-color: rgba(250, 204, 21, 0.1);
  color: #fac915;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: auto;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .certs-grid--badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid--courses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .certs-tabs {
    gap: 0.5rem;
  }

  .certs-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .certs-grid--badges,
  .certs-grid--courses {
    grid-template-columns: 1fr;
  }

  .certs-grid--center {
    max-width: 100%;
  }

  .cert-card--badge {
    min-height: auto;
  }

  .badge-img-wrap {
    width: 100px;
    height: 100px;
  }
}

/* =========================
   contato
   ========================= */
.contact-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 60px;
}

.contact-info h3 {
  color: var(--color-02);
  font-size: var(--base-font-size);
  font-weight: var(--medium-font-size);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  row-gap: 60px;
  margin-bottom: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  column-gap: 25px;
}

.contact-icon {
  color: var(--primary-color);
  font-size: 2rem;
  background: var(--card-bg);
  width: 75px;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  row-gap: 7px;
}

.contact-method span {
  font-size: var(--tiny-font-size);
  text-transform: uppercase;
  color: var(--color-04);
}

.contact-method h4 {
  color: var(--color-02);
  font-size: var(--base-font-size);
  font-weight: var(--medium-font-size);
}

.contact-method a {
  color: var(--primary-color);
  transition: .3s;
}

.contact-method a:hover {
  color: var(--hover-color);
}

.contact-method a span {
  font-size: var(--small-font-size);
  text-transform: none;
}

.contact-method a i {
  font-size: var(--medium-font-size);
}

.contact-social-links {
  width: 100%;
  display: flex;
  column-gap: 25px;
}

.contact-social-links li {
  font-size: 1.75rem;
  background: var(--card-bg);
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.contact-social-links li a {
  color: var(--primary-color);
  transition: .3s;
}

.contact-social-links li a:hover {
  color: var(--hover-color);
  rotate: calc(5deg);
}

.contact-form-body {
  position: relative;
  background: var(--card-bg);
  padding: 50px;
  width: 100%;
  border-radius: 35px;
}

.contact-form-body h2 {
  color: var(--color-02);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.contact-form-body h2 span {
  color: var(--primary-color);
}

.contact-form-body p {
  font-size: var(--tiny-font-size);
  margin-bottom: 45px;
  color: var(--color-04);
}

.contact-form-body form {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.contact-form-body form .input-group input,
.contact-form-body form .input-group textarea {
  color: var(--color-02);
  font-size: var(--small-font-size);
  background: hsl(var(--hue) 54% 74% / .1);
  width: 100%;
  border: none;
  outline: none;
  padding: 17px 20px;
  border-radius: 10px;
}

.contact-form-body form .input-group textarea {
  height: 185px;
  resize: none;
}

.contact-form-body form .send-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.contact-form-body .input-group button {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  width: 200px;
  padding: 16px 30px;
  margin-top: 10px;
  transition: .3s;
}

.contact-form-alert {
  cursor: pointer;
}

.contact-form-alert span {
  color: var(--color-02);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-regular);
}

.contact-form-alert i {
  color: var(--primary-color);
  font-size: 1.25rem;
}



/* Scroll Up Button */
.scroll-up-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.scroll-up-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-up-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}


@media (max-width: 768px) {
  .bottom-nav {
    padding: 0.5rem 0.8rem;
    gap: 0.3rem;
  }

  .nav-item {
    width: 40px;
    height: 40px;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .scroll-up-btn {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* =========================
   EXPERIENCE (Timeline)
   ========================= */

.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.5rem 0 0.5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--line-progress) * 100%);
  background: var(--primary-color);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--primary-color);
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  display: flex;
  width: 50%;
  padding: 0 3rem;
  /* Mais espaço para o conector */
  margin: 0 0 4rem 0;
  /* Mais espaçamento vertical */
  align-items: flex-start;
}

.timeline-item.left {
  justify-content: flex-end;
  text-align: left;
  /* Changed from right to left for better readability */
  padding-left: 0;
  padding-right: 2.75rem;
}

.timeline-item.right {
  margin-left: 50%;
  justify-content: flex-start;
  text-align: left;
  padding-right: 0;
  padding-left: 2.75rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  transition: all 0.4s ease;
  z-index: 2;
}

/* Active State (triggered by JS) */
.timeline-item.active .timeline-dot {
  background: var(--primary-color);
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 20px var(--primary-color), 0 0 0 4px rgba(56, 189, 248, 0.3);
  border-color: white;
}

/* =========================
   DETAILED TIMELINE STYLES
   ========================= */

.timeline-content-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Connector Line (Horizontal) */
.timeline-connector {
  height: 2px;
  width: 0;
  /* Animate to ~40px */
  background: var(--primary-color);
  transition: width 0.6s ease;
  /* Slower, smoother */
  flex-shrink: 0;
}

.timeline-item.active .timeline-connector {
  width: 40px;
}

/* Node (Icon Circle) */
.timeline-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s;
  /* Slower, slight delay */
  flex-shrink: 0;
  margin-right: 1rem;
  /* Space between node and card */
}

/* Right alignment specific */
.timeline-item.right .timeline-node {
  margin-right: 0;
  margin-left: 1rem;
}

.timeline-item.active .timeline-node {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Timeline Card (Restored) */
.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  /* Slightly more rounded */
  padding: 2rem;
  /* Increased padding */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  opacity: 0.8;
}

.timeline-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.timeline-title {
  font-size: 1.35rem;
  /* Slightly larger */
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}


.timeline-company {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  display: block;
}

.timeline-list {
  padding-left: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.timeline-item.left .timeline-card {
  transform: translateX(-20px);
  /* Slide from left */
}

.timeline-item.active .timeline-card {
  opacity: 1;
  transform: translateX(0);
}

/* Date Positioning */
.timeline-date {
  position: absolute;
  top: 0;
  /* Align with top of dot */
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  /* Build in */
  transition: opacity 0.5s ease 0.2s;
}

.timeline-item.active .timeline-date {
  opacity: 1;
  color: var(--primary-color);
}

/* Left Item Layout */
.timeline-item.left {
  flex-direction: row-reverse;
  /* Flip everything for left side */
}

.timeline-item.left .timeline-content-wrapper {
  flex-direction: row-reverse;
  /* Connector grows from right to left visually */
}

.timeline-item.left .timeline-date {
  left: calc(100% + 1.5rem);
  /* Right of the axis */
  text-align: left;
}

/* Right Item Layout */
.timeline-item.right .timeline-date {
  right: calc(100% + 1.5rem);
  /* Left of the axis */
  text-align: right;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .timeline-item.left {
    flex-direction: row;
    /* Reset to normal flow */
  }

  .timeline-item.left .timeline-content-wrapper {
    flex-direction: row;
  }

  .timeline-item.left .timeline-date,
  .timeline-item.right .timeline-date {
    position: static;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
    margin-left: 3rem;
    /* Align with content roughly */
  }

  .timeline-connector {
    display: none;
    /* Hide horizontal line on mobile */
  }

  .timeline-node {
    margin: 0 1rem 0 0 !important;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   bottom navbar
   ========================= */

.bottom-nav-container {
  position: relative;
}

.bottom-nav {
  z-index: var(--z-max);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: -75px;
  opacity: 0;
  transition: .5s ease, .3s ease;
  transition-property: bottom, opacity;
}

.bottom-nav.active {
  bottom: 50px;
  opacity: 1;
  transition: .5s ease, .3s ease;
  transition-property: bottom, opacity;
}

.bottom-nav-inner {
  position: relative;
}

.bottom-nav .menu {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 16px 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
  border-bottom: 1px solid hsl(var(--hue) 45% 98% / 0.1);
  border-left: 1px solid hsl(var(--hue) 45% 98% / 0.1);
  border-radius: 50px;
}

.bottom-nav .menu li a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.bottom-nav .menu li a i {
  color: var(--primary-color);
  font-size: 1.4rem;
  padding: 10px;
  border-radius: 50%;
  transition: .3s;
}

.bottom-nav .menu li a:hover i {
  color: white;
  background: var(--primary-color);
}

.bottom-nav .menu li a.current i {
  color: white;
  background: var(--primary-color);
}

.bottom-nav .menu li a span {
  color: var(--color-02);
  z-index: -1;
  position: absolute;
  background: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 100;
  padding: 3px 10px;
  transform: translatey(-53px);
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
}

.bottom-nav .menu li:hover a span {
  opacity: 1;
}

.bottom-nav .menu li a span::before {
  pointer-events: none;
  content: "";
  z-index: -1;
  position: absolute;
  background: var(--primary-color);
  width: 10px;
  height: 10px;
  left: 50%;
  bottom: -8px;
  transform: rotate(45deg) translateX(-50%);
}

.bottom-nav .menu-hide-btn {
  z-index: var(--z-fixed);
  position: absolute;
  top: -5px;
  right: 0;
  width: 28px;
  height: 28px;
  color: var(--dark-color);
  font-size: 1.1rem;
  background: var(--primary-color);
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s ease;
  pointer-events: none;
  opacity: 0;
  display: grid;
  place-items: center;
}

.menu-hide-btn.active {
  pointer-events: all;
  opacity: 1;
}

.bottom-nav .menu-hide-btn:hover {
  color: white;
}

.menu-show-btn {
  z-index: var(--z-max);
  position: fixed;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  width: 85px;
  height: 50px;
  border-bottom: 1px solid hsl(var(--hue) 45% 98% / 0.1);
  border-left: 1px solid hsl(var(--hue) 45% 98% / 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 5px;
  translate: -50% 0;
  left: 50%;
  bottom: -75px;
  opacity: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: .5s ease, .3s ease;
  transition-property: bottom, opacity;
  overflow: hidden;
  animation: wiggle 2s linear infinite;
  animation-delay: 1s;
}

.menu-show-btn.active {
  bottom: 50px;
  opacity: 1;
  transition: .5s ease, .3s ease;
  transition-property: bottom, opacity;
}

@keyframes wiggle {

  0%,
  5% {
    transform: rotateZ(0deg);
  }

  15% {
    transform: rotateZ(-15deg);
  }

  20% {
    transform: rotateZ(10deg);
  }

  25% {
    transform: rotateZ(-10deg);
  }

  30% {
    transform: rotateZ(6deg);
  }

  35% {
    transform: rotateZ(-4deg);
  }

  40%,
  100% {
    transform: rotateZ(0);
  }
}

.menu-show-btn .bar-01,
.menu-show-btn .bar-02 {
  background: var(--primary-color);
  width: 40px;
  height: 4px;
  transition: .15s;
}

.menu-show-btn:hover .bar-01,
.menu-show-btn:hover .bar-02 {
  background: var(--primary-hover);
}

/* =====================================
  Footer
  ===================================== */


.yago-footer {
  margin-top: 50px;
  background: var(--footer-bg);
  padding-top: 60px;
  padding-bottom: 120px;
}

@media (min-width: 992px) {
  .yago-footer {
    padding-top: 100px;
    padding-bottom: 165px;
  }
}

.yago-footer .yago-container .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 40px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 22px;
  row-gap: 22px;
}

.yago-footer .copy-right {
  color: var(--color-04);
  font-size: var(--small-font-size);
  margin-top: 10px;
}

/* Logo */
.yago-logo a {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.yago-logo a span {
  color: var(--primary-color);
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 25px;
}




/* =========================
   FIX: ícone selecionado circular (sem oval)
   ========================= */

.bottom-nav .menu li a i {
  display: grid;
  /* em vez de inline */
  place-items: center;
  width: 44px;
  /* tamanho fixo */
  height: 44px;
  /* igual ao width = círculo */
  padding: 0;
  /* mata o oval */
  border-radius: 50%;
  line-height: 1;
  /* evita “altura fantasma” */
}

/* mantém o hover/current funcionando */
.bottom-nav .menu li a:hover i,
.bottom-nav .menu li a.current i {
  background: var(--primary-color);
  color: #fff;
}

/* ========================
  to top btn
  ========================= */
.to-top-btn {
  z-index: var(--z-fixed);
  position: fixed;
  background: hsl(var(--hue) 54% 74% / .2);
  height: 100px;
  width: 2px;
  bottom: 25px;
  right: -30px;
  cursor: pointer;
  transition: all .3s ease;
}

.to-top-btn a {
  color: var(--color-01);
  transition: .3s;
}

.to-top-btn a:hover {
  color: var(--hover-color);
}

.to-top-btn a span {
  position: absolute;
  left: 0;
  bottom: 155px;
  transform: rotateZ(90deg);
  transform-origin: left;
  font-size: .85rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.to-top-btn.active {
  right: 30px;
}

.to-top-btn .scroll-indicator-bar {
  position: absolute;
  background: var(--color-01);
  width: 2px;
  height: auto;
  opacity: .5;
}



/* FOOTER MENU estilo "ABOUT RESUME SERVICE" */
.yago-footer .footer-menu {
  gap: 18px 26px;
}

.yago-footer .footer-menu a {
  font-family: "Inter", var(--body-font-family);
  font-size: var(--tiny-font-size) - .07rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  color: var(--color-01);
  padding: 3px 12px;
  border-radius: 999px;
  transition: color .2s ease, opacity .2s ease;
}

.yago-footer .footer-menu a:hover {
  color: var(--color-03);
  background: var(--color-01);
}

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* =========================
   Footer Tech Modal (igual seus modais)
   ========================= */
.footer-tech-backdrop {
  z-index: var(--z-overlay);
  position: fixed;
  inset: 0;

  background: var(--modal-backdrop-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: none;
  opacity: 0;

  overflow-y: auto;
  padding: 24px;

  transition: opacity .3s ease;
}

/* igual seus modais: só opacity aqui */
.footer-tech-backdrop.active {
  opacity: 1;
  transition: opacity .5s ease;
}

/* modal com scale(0) e depois scale(1) */
.footer-tech-modal {
  position: relative;
  background: var(--color-03);
  max-width: 900px;
  width: 100%;
  height: fit-content;

  margin: 75px auto;
  padding: 44px 40px;

  border-radius: 15px;
  border-bottom: 5px solid var(--primary-color);

  transform: scale(0);
  opacity: 0;
}

.footer-tech-modal.active {
  transform: scale(1);
  opacity: 1;
  transition: transform .5s, opacity .5s;
}

.footer-tech-close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 15px;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--color-01);

  display: grid;
  place-items: center;
  cursor: pointer;

  transition: .3s;
}

.footer-tech-close i {
  font-size: 1.35rem;
}

.footer-tech-close:hover {
  color: var(--hover-color);
  transform: rotate(-15deg);
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.08);
}

.footer-tech-content {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
}

.footer-tech-content h3 {
  color: var(--color-02);
  font-size: var(--h4-font-size);
  font-weight: var(--font-semi-bold);
}

.footer-tech-content p {
  color: var(--color-04);
  font-size: var(--base-font-size);
}

.footer-tech-list {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  padding: 0;
  margin: 0;
}

.footer-tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-02);
}

.footer-tech-list li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* mata o desalinhamento */
  flex-shrink: 0;
  /* impede o ícone de “amassar” */
  margin-top: 0;
  color: var(--primary-color);
}

.footer-tech-list li span {
  line-height: 1.4;
}


.footer-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.footer-tech-tags .tag {
  border: 1px solid var(--card-border);
  color: var(--color-02);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: transparent;
}

/* =========================
   Footer Tech line (melhor posição)
   ========================= */
.footer-tech-line {
  display: grid;
  place-items: center;
  gap: 10px;
}

.footer-tech-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 9px 14px;
  border-radius: 999px;

  background: hsl(var(--hue) 40% 12% / 0.35);
  border: 1px solid var(--card-border);

  color: var(--color-02);
  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.footer-tech-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.10);
}


.footer-tech-trigger i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.footer-tech-trigger span {
  font-weight: 700;
  font-size: .95rem;
}

.footer-tech-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.08);
}

.footer-tech-mini {
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  max-width: 520px;
  line-height: 1.4;
}

/* =====================================
   RESPONSIVIDADE CONSOLIDADA
   Breakpoints: 480 | 768 | 1024
===================================== */

/* ---- Containers ---- */
.container,
.yago-container {
  width: 100%;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ====== LAPTOP ≤ 1024px ====== */
@media (max-width: 1024px) {

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

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

  .hero-text .description {
    max-width: 620px;
  }

  .hero-visual {
    margin-bottom: 2rem;
  }

  .cloud-svg {
    width: min(320px, 78vw);
  }

  /* Contact */
  .contact-container {
    flex-direction: column;
    row-gap: 3rem;
  }

  .contact-form-body {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
  }
}

/* ====== TABLET ≤ 768px ====== */
@media (max-width: 768px) {

  /* Section padding */
  .section-padding {
    padding: 3rem 1rem;
  }

  /* Header */
  .yago-header {
    padding: 16px 0;
  }

  .yago-logo a {
    font-size: 1.9rem;
    letter-spacing: -2px;
  }

  .header-btns {
    column-gap: 14px;
  }

  .lets-talk-btn {
    display: none;
  }

  .lets-talk-icon {
    display: block;
  }

  .yago-main-btn {
    padding: 10px 18px;
  }

  .yago-main-btn a {
    font-size: 0.95rem;
  }

  /* Hero sidebars */
  .hero-side-left,
  .hero-side-right {
    display: none;
  }

  /* Grids → 2 colunas */
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .portfolio-card {
    max-width: 100%;
  }

  .stack-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stack-card {
    max-width: 100%;
    min-height: 240px;
    padding: 1.5rem;
  }

  /* Timeline → vertical single column */
  .timeline::before {
    display: none;
  }

  .timeline-line {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    padding: 0 0 2.5rem 50px;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .timeline-item.left {
    flex-direction: column !important;
  }

  .timeline-item.left .timeline-content-wrapper {
    flex-direction: row;
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-connector {
    display: none !important;
  }

  .timeline-node {
    margin: 0 0 1rem 0 !important;
    width: 36px;
    height: 36px;
  }

  .timeline-item.left .timeline-date,
  .timeline-item.right .timeline-date {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-bottom: 0.5rem;
    text-align: left !important;
    display: block;
    margin-left: 0;
  }

  .timeline-card {
    padding: 1.5rem;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
  }

  .timeline-item.active .timeline-card {
    transform: none !important;
  }

  /* Certificates */
  .certs-grid--badges,
  .certs-grid--courses {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modais */
  .portfolio-modal,
  .stack-modal,
  .footer-tech-modal {
    width: 96vw;
    padding: 1.5rem;
    margin: 3vh auto;
  }

  .modal-title h3 {
    font-size: 1.4rem;
  }

  /* Bottom nav icons */
  .bottom-nav .menu li a i {
    width: 40px;
    height: 40px;
  }

  .bottom-nav .menu {
    padding: 14px 24px;
    column-gap: 18px;
  }

  /* Scroll up */
  .scroll-up-btn {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Contact details */
  .contact-details {
    row-gap: 35px;
    margin-bottom: 35px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .contact-social-links li {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .contact-social-links {
    column-gap: 16px;
  }

  .contact-info h3 {
    margin-bottom: 25px;
  }

  /* Footer */
  .yago-footer {
    padding-top: 50px;
    padding-bottom: 100px;
  }

  .footer-tech-trigger span {
    font-size: 0.85rem;
  }
}

/* ====== MOBILE ≤ 600px ====== */
@media (max-width: 600px) {

  /* Hide to-top button on mobile */
  .to-top-btn {
    display: none !important;
  }

  /* Thinner scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }

  /* Section padding tighter */
  .section-padding {
    padding: 2.5rem 0.75rem;
  }

  /* Hero */
  .hero {
    padding-top: 90px;
    padding-bottom: 30px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text .role {
    font-size: 1.1rem;
  }

  .hero-text .description {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn,
  .hero-actions .yago-main-btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids → 1 coluna */
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stack-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stack-card {
    padding: 1.5rem;
    min-height: auto;
  }

  /* Certs → 1 coluna */
  .certs-grid--badges,
  .certs-grid--courses {
    grid-template-columns: 1fr;
  }

  .certs-grid--center {
    max-width: 100%;
  }

  .cert-card--badge {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .badge-img-wrap {
    width: 100px;
    height: 100px;
  }

  .certs-tabs {
    gap: 0.5rem;
  }

  .certs-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Contact form */
  .contact-form-body {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .contact-form-body h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .contact-form-body p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .contact-form-body .input-group input,
  .contact-form-body .input-group textarea {
    padding: 1rem 1.1rem;
    font-size: 1rem;
  }

  .contact-form-body .input-group button {
    width: 100%;
  }

  .contact-form-body form .send-message {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .contact-details {
    row-gap: 25px;
    margin-bottom: 25px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    border-radius: 8px;
  }

  .contact-item {
    column-gap: 16px;
  }

  .contact-method h4 {
    font-size: 0.95rem;
    word-break: break-all;
  }

  .contact-social-links li {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .contact-social-links {
    column-gap: 12px;
  }

  /* Timeline mobile */
  .timeline-item {
    padding: 0 0 2rem 42px;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-title {
    font-size: 1.15rem;
  }

  .timeline-list li {
    font-size: 0.88rem;
  }

  /* Bottom nav */
  .bottom-nav .menu {
    padding: 10px 14px;
    column-gap: 10px;
  }

  .bottom-nav .menu li a i {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .bottom-nav.active {
    bottom: 16px;
  }

  .menu-show-btn {
    width: 72px;
    height: 42px;
  }

  .menu-show-btn.active {
    bottom: 16px;
  }

  .to-top-btn.active {
    right: 16px;
  }

  /* Footer */
  .yago-footer {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .yago-footer .yago-container .inner {
    row-gap: 25px;
  }

  .footer-menu {
    column-gap: 12px;
    row-gap: 12px;
  }

  .yago-footer .footer-menu a {
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .yago-footer .copy-right {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .footer-tech-trigger {
    padding: 7px 10px;
    gap: 8px;
  }

  .footer-tech-trigger span {
    font-size: 0.8rem;
  }

  .footer-tech-mini {
    font-size: 0.78rem;
  }

  /* Section titles */
  .section-title {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }

  /* Modais */
  .portfolio-modal,
  .stack-modal,
  .footer-tech-modal {
    padding: 1.25rem;
    width: 97vw;
    margin: 2vh auto;
  }

  .modal-close-btn {
    margin: 10px;
  }

  .footer-tech-modal {
    padding: 1.25rem;
  }

  .footer-tech-content h3 {
    font-size: 1.2rem;
  }

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

  .footer-tech-tags .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* ====== Modais — base fluid (all screens) ====== */
.portfolio-modal,
.stack-modal,
.footer-tech-modal {
  width: min(94vw, 800px);
  max-height: 90vh;
  overflow-y: auto;
}

/* ====== Overflow safety ====== */
html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}