/* =========================================================
    GLOBAL
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top,
      rgba(139, 92, 246, 0.08),
      transparent 35%),
    #0b0d12;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background:
    rgba(139, 92, 246, 0.24);
  filter: blur(140px);
  pointer-events: none;
  z-index: -3;
}

a,
button,
article,
div {
  transition:
    background var(--transition-default),
    border var(--transition-default),
    color var(--transition-default),
    transform var(--transition-default),
    opacity var(--transition-default),
    box-shadow var(--transition-default);
}

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

/* =========================================================
    UTILITIES
========================================================= */

.section {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-label {
  width: fit-content;
  padding:
    0.6rem 1.1rem;
  border-radius: 999px;
  background:
    rgba(139, 92, 246, 0.08);
  border:
    1px solid rgba(139, 92, 246, 0.18);
  color:
    var(--color-primary-light);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.glass-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.03));
  border:
    1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter:
    var(--blur-glass);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.22);
  border-radius:
    var(--radius-lg);
}

/* =========================================================
    NAVBAR
========================================================= */

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background:
    linear-gradient(rgba(6, 7, 10, 0.72),
      rgba(6, 7, 10, 0.18));
  backdrop-filter: blur(18px);
  border-bottom:
    1px solid rgba(255, 255, 255, 0.04);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

/* mobile idle */
.navbar-wrapper.hidden-mobile {
  opacity: 0;
  transform: translateY(-100%);
}

/* container interno */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.8rem;
  border:
    1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    rgba(14, 16, 24, 0.48);
  backdrop-filter: blur(18px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, .18);
}

.navbar-scrolled .navbar {
  background:
    rgba(6, 7, 10, .55);
  border:
    1px solid rgba(139, 92, 246, .12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .28);
}

/* LOGO */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: max-content;
}

.navbar-logo {

  width: 56px;
  height: 56px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(139, 92, 246, .35));
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-title {
  font-size: 1rem;
  font-weight: 700;
  color:
    var(--color-text-primary);
}

.navbar-subtitle {
  font-size: .84rem;
  color:
    var(--color-text-secondary);
  letter-spacing: .08em;
}

/* LINKS */

.navbar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.navbar-links a {
  position: relative;
  color:
    var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color:
    var(--color-primary-light);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background:
    var(--color-primary-light);
  transform: scaleX(0);
  transition:
    transform .25s;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform:
    scaleX(1);
}

/* idioma */

.language-toggle {
  flex-shrink: 0;
  padding:
    .8rem 1rem;
  min-width: 58px;
  border-radius: 999px;
  border:
    1px solid rgba(139, 92, 246, .18);
  background:
    rgba(139, 92, 246, .08);
  color:
    var(--color-primary-light);
  font-weight: 700;
  cursor: pointer;
}

.language-toggle:hover {
  transform:
    translateY(-2px);
  border:
    1px solid rgba(139, 92, 246, .32);
}

/* MOBILE */

@media (max-width: 980px) {
  .navbar {
    padding:
      .9rem 1.2rem;
  }

  .navbar-links {
    display: none;
  }

  .navbar-subtitle {
    display: none;
  }

  .navbar-logo {
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
    HERO
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
  background:
    linear-gradient(rgba(10, 12, 18, 0.18),
      rgba(10, 12, 18, 0.04));
}

.hero-background-glow {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(139, 92, 246, 0.22) 0%,
      rgba(139, 92, 246, 0.08) 35%,
      transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.hero-content {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding-top: 9rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-badge {
  width: fit-content;
  padding:
    0.5rem 1rem;
  border:
    1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  background:
    rgba(139, 92, 246, 0.08);
  color:
    var(--color-primary-light);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-sm);
}

.hero-visual {
  overflow: hidden;
  padding: 1rem;
  border:
    1px solid rgba(139, 92, 246, 0.12);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius:
    var(--radius-md);
  opacity: 0.92;
  filter:
    saturate(1.05) contrast(1.02);
  transform:
    scale(1.01);
  will-change: transform;
}

/* =========================================================
    BUTTONS
========================================================= */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding:
    0.9rem 1.4rem;
  border-radius:
    var(--radius-md);
  font-weight: 600;
}

.primary-button {
  background:
    var(--color-primary);
  color: white;
  box-shadow:
    var(--glow-primary);
}

.secondary-button {
  border:
    1px solid var(--color-border);
  background:
    rgba(255, 255, 255, 0.03);
}

/* =========================================================
    ABOUT
========================================================= */

.about {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-header {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  overflow: hidden;
  max-width: 420px;
}

.about-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
}

.about-description {
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));
}

.about-card {
  padding: 2rem;
}

.about-card-title {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color:
    var(--color-text-primary);
}

@media(min-width:900px) {

  .about-header {
    grid-template-columns:
      420px 1fr;
  }

}

/* =========================================================
    JOURNEY
========================================================= */

.journey {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.journey-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.journey-description {
  max-width: 650px;
}

.journey-timeline {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));
}

.journey-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background:
    linear-gradient(to bottom,
      rgba(139, 92, 246, 0.9),
      transparent);
}

.journey-year {
  display: inline-block;
  margin-bottom: 1rem;
  color:
    var(--color-primary-light);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-card h3 {
  margin-bottom: 1rem;
}

/* =========================================================
    STACK
========================================================= */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.stack-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.stack-description {
  max-width: 650px;
}

.stack-grid {
  display: grid;
  align-items: stretch;
  gap: var(--space-lg);
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));
}

.stack-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 2rem;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background:
    linear-gradient(90deg,
      rgba(139, 92, 246, 0.9),
      transparent);
}

.stack-card h3 {
  margin-bottom: 2rem;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
}

.stack-items span {
  padding:
    0.6rem 1rem;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.04);
  backdrop-filter:
    blur(10px);
  border:
    1px solid rgba(255, 255, 255, 0.08);
  color:
    var(--color-text-secondary);
  font-size: 0.9rem;
  transition:
    transform var(--transition-default),
    border var(--transition-default),
    background var(--transition-default);
}

.stack-items span:hover {
  transform:
    translateY(-3px);
  background:
    rgba(139, 92, 246, 0.08);
  border:
    1px solid rgba(139, 92, 246, 0.24);
}

/* =========================================================
    PROJECTS
========================================================= */

.projects {
  position: relative;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 5rem;
  max-width: 760px;
}

.projects-description {
  max-width: 650px;
}

/* LISTA */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* CARD */

.projects-showcase {
  display: grid;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, .03),
      rgba(255, 255, 255, .015));
  border:
    1px solid rgba(255, 255, 255, .06);
  border-radius:
    var(--radius-lg);
}

/* alternância visual */

.projects-showcase.reverse {
  grid-template-columns:
    1fr 1.05fr;

}

.projects-showcase.reverse .projects-image {
  order: 2;
}

.projects-showcase.reverse .projects-content {
  order: 1;
}

/* IMAGEM */

.projects-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius:
    var(--radius-md);
}

.projects-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(6, 7, 10, .08),
      rgba(6, 7, 10, .35));
}

.projects-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .6s ease;
}

.projects-showcase:hover .projects-image img {
  transform:
    scale(1.04);
}

/* CONTEÚDO */

.projects-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 3rem 2.5rem;
}

.project-badge {
  width: fit-content;
  padding:
    .45rem .95rem;
  border-radius: 999px;
  background:
    rgba(139, 92, 246, .08);
  border:
    1px solid rgba(139, 92, 246, .18);
  color:
    var(--color-primary-light);
  font-size: .84rem;
  letter-spacing: .08em;
  font-weight: 600;
}

.projects-content h3 {
  margin: 0;
  font-size:
    clamp(1.7rem,
      4vw,
      2.3rem);
}

/* STACK */

.projects-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.projects-stack span {
  padding:
    .55rem 1rem;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, .04);
  border:
    1px solid rgba(255, 255, 255, .08);
  color:
    var(--color-text-secondary);
  font-size: .85rem;
}

/* LINKS */

.projects-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding:
    .9rem 1.2rem;
  border-radius:
    var(--radius-md);
  background:
    rgba(255, 255, 255, .03);
  border:
    1px solid rgba(255, 255, 255, .08);
  color:
    var(--color-text-primary);
  transition:
    var(--transition-default);
}

.project-link:hover {
  transform:
    translateY(-3px);
  border:
    1px solid rgba(139, 92, 246, .28);
}

/* =========================================================
    FOOTER
========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  padding:
    6rem 0 3rem;
  background:
    linear-gradient(rgba(10, 12, 18, 0.04),
      rgba(10, 12, 18, 0.18));
}

.footer::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 0;
  width: 100%;
  height: 260px;
  background:
    rgba(11, 13, 18, 0.95);
  filter: blur(80px);
  opacity: .92;
  z-index: -2;
}

.footer-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.footer-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform:
    scale(1.03);
  opacity: .70;
  filter:
    saturate(1.08) contrast(1.08) brightness(.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding-top: 7rem;
  padding-bottom: 7rem;
  padding-inline: 1rem;
}

.footer-title {
  max-width: 760px;
}

.footer-description {
  max-width: 620px;
}

.footer-contact-card {

  display: flex;

  gap: 2rem;

  align-items: center;

  padding:
    1.2rem 2rem;

  margin-top:
    .5rem;
}

.footer-contact-item {

  display: flex;

  flex-direction: column;

  gap: .45rem;
}

.footer-contact-label {

  font-size: .72rem;

  letter-spacing: .18em;

  text-transform: uppercase;

  color:
    var(--color-text-secondary);
}

.footer-contact-item a {

  color:
    var(--color-text-primary);

  font-weight: 600;
}

.footer-contact-divider {

  width: 1px;

  height: 42px;

  background:
    rgba(255,
      255,
      255,
      .08);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top:
    var(--space-sm);
}

.footer-bottom {
  margin-top: 3rem;
  color:
    var(--color-text-secondary);
  font-size: .9rem;
}

/* =========================================================
    INTERACTIONS
========================================================= */

.primary-button:hover,
.secondary-button:hover,
.about-card:hover,
.journey-card:hover,
.stack-card:hover,
.projects-showcase:hover {
  transform:
    translateY(-6px);
}

.primary-button:hover {
  box-shadow:
    0 12px 30px rgba(139,
      92,
      246,
      .35);
}

.secondary-button:hover,
.stack-items span:hover,
.about-card:hover,
.journey-card:hover,
.stack-card:hover,
.projects-showcase:hover {
  border:
    1px solid rgba(139,
      92,
      246,
      .28);
}

.about-card:hover,
.journey-card:hover,
.stack-card:hover,
.projects-showcase:hover {
  box-shadow:
    0 16px 40px rgba(139,
      92,
      246,
      .08);
}

.stack-items span:hover {
  transform:
    translateY(-2px);
}

section,
footer {
  scroll-margin-top:
    120px;
}

/* =========================================================
    RESPONSIVE
========================================================= */

@media (min-width:900px) {
  .hero-content {
    grid-template-columns:
      1.1fr 1fr;
  }

  .about-grid,
  .journey-timeline,
  .stack-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .projects-showcase {
    grid-template-columns:
      1.1fr 1fr;
  }
}

@media (max-width:900px) {

  .projects-showcase,
  .projects-showcase.reverse {
    grid-template-columns:
      1fr;
  }

  .projects-showcase.reverse .projects-image {
    order: 1;
  }

  .projects-showcase.reverse .projects-content {
    order: 2;
  }

  .projects-image {
    min-height:
      300px;
  }

  .projects-content {
    padding:
      2rem;
  }
}

@media (max-width:768px) {
  .navbar {
    flex-direction:
      row;
    justify-content:
      space-between;
    align-items:
      center;
  }

  .navbar-links {
    display: none;
  }

  .navbar-subtitle {
    display: none;
  }

  .footer-contact-card {
    flex-direction:
      column;
    width: 100%;
  }

  .footer-contact-divider {
    width: 100%;
    height: 1px;
  }

  .language-toggle {
    margin-left: auto;
  }
}

@media (max-width:560px) {

  .hero-actions,
  .footer-actions {
    flex-direction:
      column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .navbar-title {
    font-size:
      .95rem;
  }

  .navbar-logo {
    width: 48px;
    height: 48px;
  }
}