@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;400;600;700;800&display=swap');

/* ===== VARIÁVEIS & TEMAS ===== */
:root,
:root[data-theme='dark'] {
  /* Cores base */
  --primary-color: #F0F0F0;
  --primary-bg-color: #0a0a0f;
  --secondary-bg-color: #14141e;
  --tertiary-bg-color: #1a1a2e;
  --primary-border-color: #2a2a3e;
  --secondary-border-color: #3a3a5e;

  /* Texto */
  --title-color: #F0F0F0;
  --text-color: #b0b0c0;
  --link-color: #b0b0c0;
  --icon-color: #C7C8C9;

  /* Accent Gradient */
  --accent-1: #6C63FF;
  --accent-2: #FF6B9D;
  --accent-3: #00D4FF;
  --accent-gradient: linear-gradient(135deg, #6C63FF, #FF6B9D);
  --accent-gradient-2: linear-gradient(135deg, #6C63FF, #00D4FF);
  --accent-gradient-3: linear-gradient(135deg, #FF6B9D, #00D4FF);
  --glow-color: rgba(108, 99, 255, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(10, 10, 15, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--glow-color);
}

:root[data-theme='light'] {
  --primary-color: #0B0B0F;
  --primary-bg-color: #f0f0f5;
  --secondary-bg-color: #e4e4ed;
  --tertiary-bg-color: #d8d8e5;
  --primary-border-color: #c8c8d8;
  --secondary-border-color: #a8a8c0;

  --title-color: #0B0B0F;
  --text-color: #3a3a4e;
  --link-color: #3a3a4e;
  --icon-color: #5a5a6e;

  --accent-1: #5B52E8;
  --accent-2: #E85A8A;
  --accent-3: #00B8E6;
  --accent-gradient: linear-gradient(135deg, #5B52E8, #E85A8A);
  --accent-gradient-2: linear-gradient(135deg, #5B52E8, #00B8E6);
  --accent-gradient-3: linear-gradient(135deg, #E85A8A, #00B8E6);
  --glow-color: rgba(91, 82, 232, 0.2);

  --glass-bg: rgba(240, 240, 245, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px var(--glow-color);
}

/* Ajustes para tema claro */
html[data-theme='light'] .brand__logo {
  filter: invert(1);
}

html[data-theme='light'] .technologies__logo {
  filter: invert(80%);
}

/* Transição suave de tema */
*,
*::before,
*::after {
  transition: background-color 0.4s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: baseline;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-border-color) transparent;
}

body {
  background: var(--primary-bg-color);
  font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  padding-bottom: 70px; /* Espaço para o navbar mobile */
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 50rem;
}

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

a:hover {
  color: var(--primary-color);
}

i {
  color: var(--icon-color);
}

b {
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  font-weight: 200;
}

h2 {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.4rem;
}

h3 {
  font-size: 1.55rem;
  text-align: left;
}

h4 {
  color: var(--primary-color);
  font-weight: 400;
  font-size: 1.15rem;
  text-align: left;
}

h1,
h2,
h3 {
  font-family: 'League Spartan', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  color: var(--title-color);
  font-weight: 200;
}

p,
span,
li {
  font-size: 1rem;
}

p {
  text-align: justify;
}

/* ===== ANIMAÇÕES GLOBAIS ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--glow-color);
  }
  50% {
    box-shadow: 0 0 40px var(--glow-color), 0 0 60px rgba(108, 99, 255, 0.1);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradient-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay para listas */
.stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.revealed>*:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger-children.revealed>*:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger-children.revealed>*:nth-child(3) {
  transition-delay: 0.15s;
}
.stagger-children.revealed>*:nth-child(4) {
  transition-delay: 0.2s;
}
.stagger-children.revealed>*:nth-child(5) {
  transition-delay: 0.25s;
}
.stagger-children.revealed>*:nth-child(6) {
  transition-delay: 0.3s;
}
.stagger-children.revealed>*:nth-child(7) {
  transition-delay: 0.35s;
}
.stagger-children.revealed>*:nth-child(8) {
  transition-delay: 0.4s;
}
.stagger-children.revealed>*:nth-child(9) {
  transition-delay: 0.45s;
}
.stagger-children.revealed>*:nth-child(10) {
  transition-delay: 0.5s;
}
.stagger-children.revealed>*:nth-child(11) {
  transition-delay: 0.55s;
}
.stagger-children.revealed>*:nth-child(12) {
  transition-delay: 0.6s;
}
.stagger-children.revealed>*:nth-child(13) {
  transition-delay: 0.65s;
}
.stagger-children.revealed>*:nth-child(14) {
  transition-delay: 0.7s;
}
.stagger-children.revealed>*:nth-child(15) {
  transition-delay: 0.75s;
}
.stagger-children.revealed>*:nth-child(16) {
  transition-delay: 0.8s;
}
.stagger-children.revealed>*:nth-child(17) {
  transition-delay: 0.85s;
}
.stagger-children.revealed>*:nth-child(18) {
  transition-delay: 0.9s;
}
.stagger-children.revealed>*:nth-child(19) {
  transition-delay: 0.95s;
}
.stagger-children.revealed>*:nth-child(20) {
  transition-delay: 1s;
}

.stagger-children.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GLASSTEXT ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
#backToTop {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  box-shadow: var(--shadow-glow);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 40px var(--glow-color);
}

/* ===== HEADER / NAVBAR ===== */
.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.3s ease, background 0.4s ease;
}

.header.scrolled {
  background: var(--glass-bg);
  box-shadow: var(--shadow-sm);
}

.header__toggle {
  display: flex;
  justify-content: flex-end;
}

.header__brand .brand__logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.header__brand .brand__logo:hover {
  transform: rotate(15deg) scale(1.1);
}

#toggleTheme {
  font-size: 1.4rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: ease-in-out .4s;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#toggleTheme:hover {
  transform: rotate(30deg) scale(1.1);
  color: var(--accent-1);
}

/* ===== MENU ===== */
.menu {
  display: flex;
  align-items: center;
  background: transparent;
}

.menu__item {
  width: 100%;
}

.menu__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}

/* ===== MOBILE NAV ===== */
.nav--mobile {
  width: 100%;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  display: flex;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 0.25rem 0;
  box-shadow: var(--shadow-sm);
}

.menu--mobile {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0;
  padding: 0;
}

.menu--mobile .menu__item {
  flex: 1;
  text-align: center;
}

.menu--mobile .menu__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.2rem;
  gap: 0.15rem;
  position: relative;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.menu--mobile .menu__link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu--mobile .menu__icon {
  font-size: 1rem;
}

.menu--mobile .menu__text {
  font-size: 0.6rem;
  letter-spacing: 0.3px;
}

/* ===== NAV DESKTOP ===== */
.header__nav {
  display: none;
}

.menu--principal {
  gap: 1.5rem;
}

.menu--principal .menu__link {
  padding: 0.5rem 0;
  position: relative;
}

.menu--principal .menu__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.menu--principal .menu__link.active::after,
.menu--principal .menu__link:hover::after {
  width: 100%;
}

.menu__link.active .menu__icon,
.menu__link.active .menu__text,
.menu__link:hover .menu__icon,
.menu__link:hover .menu__text {
  color: var(--primary-color);
}

.menu__icon,
.menu__text {
  color: var(--text-color);
}

.menu__icon {
  font-size: 1.1rem;
}

.menu__text {
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.menu--social {
  gap: 1rem;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border-radius: 3.125rem;
  border: none;
  padding: 0.875rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn span,
.btn i {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

.btn--primary span {
  color: white;
}

.btn--primary {
  background: var(--accent-gradient);
  border: none;
  color: white;
  box-shadow: 0 4px 15px var(--glow-color);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.btn--primary:hover {
  box-shadow: 0 6px 30px var(--glow-color);
}

.btn--outline {
  border: 1.5px solid var(--secondary-border-color);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.05);
}

/* ===== HERO / MAIN ===== */
main,
.projects,
.about,
.contact {
  padding: 2rem 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 65vh; /* Ajustado para que as tecnologias fiquem visíveis imediatamente */
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background gradiente animado no hero */
main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
  animation: gradient-shift 15s ease infinite;
  background-size: 200% 200%;
  z-index: 0;
  pointer-events: none;
}

main>* {
  position: relative;
  z-index: 1;
}

.main__content1 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main__content1 h1 {
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1.2;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
}

.main__content1 h1 b {
  display: block;
  font-size: 1.2em;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-text 4s ease infinite;
  text-transform: uppercase;
}

.main__content1 p {
  font-size: 1.1rem;
  max-width: 500px;
}

.main__content1 .btn {
  width: auto;
  align-self: flex-start;
}

/* ===== HERO DECORATIVE ELEMENTS ===== */
.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.hero-decoration .circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

.hero-decoration .circle:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration .circle:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(108, 99, 255, 0.2);
  animation: float 8s ease-in-out infinite reverse;
}

.hero-decoration .circle:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  background: var(--accent-gradient);
  opacity: 0.1;
  animation: float 5s ease-in-out infinite;
}

/* ===== TECNOLOGIAS ===== */
.technologies {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem 3rem; /* Padding reduzido para aproximar as seções */
  background: var(--secondary-bg-color);
  position: relative;
  overflow: hidden;
}

.technologies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.technologies h2 {
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: normal;
  text-align: start;
  color: var(--text-color);
  font-weight: 400;
}

.technologies h2 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.technologies__marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.technologies__list {
  display: flex;
  flex-flow: row nowrap;
  gap: 1.5rem;
  width: max-content;
  padding: 1.5rem 0 2.5rem;
  animation: scroll-left 30s linear infinite;
}

.technologies__list:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.technologies__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border: 1px solid var(--secondary-border-color);
  border-radius: 1rem;
  background: var(--tertiary-bg-color);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: default;
  position: relative;
}

.technologies__item:hover {
  transform: translateY(-8px) scale(1.08);
  border-color: var(--accent-1);
  box-shadow: 0 8px 25px var(--glow-color);
}

.technologies__item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
}

.technologies__item:hover::after {
  opacity: 1;
}

.technologies__logo {
  height: 2.4rem;
  pointer-events: none;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
}

.technologies__logo-icon {
  color: var(--icon-color) !important;
  filter: opacity(0.6);
  transition: all 0.4s ease;
}

.technologies__item:hover .technologies__logo,
.technologies__item:hover .technologies__logo-icon {
  filter: grayscale(0%) opacity(1);
}

/* ===== EM ESTUDO ATUALMENTE ===== */
.current-studies {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding-top: 1rem;
}

.current-studies h3 {
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.4;
}

.current-studies__list {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.current-studies__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.current-studies__item:hover {
  transform: translateY(-5px);
}

.current-studies__icon-wrapper {
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--secondary-border-color);
  border-radius: 1rem;
  background: var(--tertiary-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-studies__logo {
  width: 2rem;
  height: 2rem;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.current-studies__item:hover .current-studies__logo {
  filter: grayscale(0%) opacity(1);
}

.current-studies__name {
  font-size: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
}

/* ===== PROJETOS ===== */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.projects h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.projects h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 0.5rem auto 0;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.projects:hover h2::after {
  width: 120px;
}

.projects__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.projects__card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--secondary-bg-color);
  border-radius: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--primary-border-color);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: relative;
  overflow: hidden;
}

.projects__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.projects__card:hover::before {
  opacity: 1;
}

.projects__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-border-color);
}

.card__cover {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  aspect-ratio: 16/9;
}

.projects__card:hover .card__cover {
  transform: scale(1.02);
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.6rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.card__description {
  color: var(--text-color);
  line-height: 1.4;
  font-size: 0.85rem;
}

.card__list,
.about__list {
  margin-left: 1.25rem;
}

.card__item,
.about__item {
  list-style: disc;
  line-height: 1.4;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.card__buttons,
.description__buttons {
  display: flex;
  flex-flow: row wrap;
  gap: 0.5rem;
}

.card__buttons .btn {
  padding: .5rem 1rem;
}

.card__buttons .btn span {
  font-size: 0.8rem;
}

.card__body .technologies__list {
  gap: .5rem;
  animation: none;
  padding: 0;
  width: auto;
  flex-wrap: wrap;
}

.card__body .technologies__item {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-border-color);
  background: var(--glass-bg);
  animation: none;
}

.card__body .technologies__item::after {
  display: none;
}

.card__body .technologies__logo {
  height: 1.4rem;
}

.projects .btn {
  width: auto;
  margin: auto;
}

/* ===== SOBRE ===== */
.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__content1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  text-align: center;
}

.about__content2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
}

.about__photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 50%;
  border: 4px solid transparent;
  background-origin: border-box;
  background-image: var(--accent-gradient);
  background-clip: padding-box, border-box;
  padding: 4px;
  box-shadow: 0 10px 30px var(--glow-color);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.about__photo:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 15px 45px var(--glow-color);
}

.about__description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.about__description h2 {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 0.3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__description p {
  text-align: center;
  line-height: 1.8;
  max-width: 650px;
  font-size: 1.05rem;
}

.about__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--secondary-bg-color);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  border: 1px solid var(--primary-border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__icons:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--glow-color);
  border-color: var(--accent-1);
}

.about__icons i {
  font-size: 1.3rem;
  color: var(--accent-1);
}

.description__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Stats cards */
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.stat-card {
  background: var(--tertiary-bg-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 25px var(--glow-color);
}

.stat-card__number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'League Spartan', sans-serif;
  line-height: 1;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-color);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about__content2 .col1,
.about__content2 .col2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.about__content2 .col1 .row1,
.about__content2 .col1 .row2 {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--primary-border-color);
  position: relative;
  transition: border-color 0.3s ease;
}

.about__content2 .col1 .row1::before,
.about__content2 .col1 .row2::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  transition: transform 0.3s ease;
}

.about__content2 .col1 .row1:hover,
.about__content2 .col1 .row2:hover {
  border-left-color: var(--accent-1);
}

.about__content2 .col1 .row1:hover::before,
.about__content2 .col1 .row2:hover::before {
  transform: scale(1.5);
}

.about__content2 .col1 .row1 span,
.about__content2 .col1 .row2 span {
  font-size: 0.9rem;
}

/* ===== ACORDION ===== */
.accordion__header {
  width: 100%;
  display: flex;
  padding: 0.85rem 1.2rem;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--primary-border-color);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.accordion__header:hover {
  background: var(--glass-bg);
  border-color: var(--secondary-border-color);
}

.accordion__header span {
  color: var(--title-color);
  font-weight: 500;
}

.accordion__header i {
  transition: transform 0.4s ease;
  font-size: 0.9rem;
}

.accordion__header.start {
  border-radius: 0.5rem 0.5rem 0rem 0rem;
}

.accordion__header.end,
.accordion__item.active .accordion__body.end {
  border-radius: 0rem 0rem 0.5rem 0.5rem;
}

.accordion__item.active .accordion__header.end {
  border-radius: 0;
}

.accordion__body {
  display: none;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid var(--primary-border-color);
  border-top: none;
  background: var(--glass-bg);
  animation: fade-in-up 0.4s ease;
}

.accordion__item.active .accordion__header {
  background: var(--glass-bg);
  border-bottom: none;
}

.accordion__item.active .accordion__body {
  display: flex;
}

.accordion__item.active .bi-caret-down-fill {
  transform: rotate(180deg);
}

/* ===== CONTATO ===== */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--primary-border-color);
  border-bottom: 1px solid var(--primary-border-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 107, 157, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.contact>* {
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-size: 2.5rem;
}

.contact p {
  text-align: center;
  max-width: 500px;
}

.contact .btn {
  width: auto;
}

.contact .email {
  text-transform: lowercase;
  font-weight: 500;
}

/* Redes sociais no contato */
.contact .menu--social .menu__link {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  border: 1px solid var(--primary-border-color);
  transition: all 0.3s ease;
  gap: 0.6rem;
}

.contact .menu--social .menu__link:hover {
  transform: translateY(-3px);
}

.contact .menu--social .menu__link[href*="github"]:hover {
  border-color: #333;
  background: rgba(51, 51, 51, 0.1);
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.contact .menu--social .menu__link[href*="linkedin"]:hover {
  border-color: #0A66C2;
  background: rgba(10, 102, 194, 0.1);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.2);
}

.contact .menu--social .menu__link[href*="instagram"]:hover {
  border-color: #E4405F;
  background: rgba(228, 64, 95, 0.1);
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.2);
}

.contact .menu--social .menu__link:hover .menu__icon,
.contact .menu--social .menu__link:hover span {
  color: var(--primary-color);
}

/* ===== FORMULÁRIO ===== */
.contact-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--title-color);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--primary-border-color);
  background: var(--glass-bg);
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(4px);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}

.form-group input.success,
.form-group textarea.success {
  border-color: #44ff88;
  box-shadow: 0 0 0 3px rgba(68, 255, 136, 0.15);
}

.form-group .error-msg {
  font-size: 0.75rem;
  color: #ff4444;
  min-height: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn--loading .btn-text {
  visibility: hidden;
}

.btn--loading .btn-spinner {
  display: inline-block !important;
}

.btn-spinner {
  display: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--secondary-bg-color);
  padding: 2rem 1rem 5.5rem;
  border-top: 1px solid var(--primary-border-color);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.footer__brand span {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent-1);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--primary-border-color);
  color: var(--icon-color);
  transition: all 0.3s ease;
}

.footer__social a:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--glow-color);
}

.footer__copyright {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-color);
  opacity: 0.7;
}

.footer__copyright a {
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__copyright a:hover {
  color: var(--accent-1);
}

/* ===== ANIMAÇÃO DE BACKGROUND DO HERO (PARTÍCULAS) ===== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.3;
  animation: float-particle 8s infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet */
@media (min-width: 768px) {
  .header {
    padding: 1rem 4rem;
  }

  .nav--mobile {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .header__nav {
    display: flex;
  }

  .header__nav,
  .header__toggle {
    min-width: 30%;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  main,
  .projects,
  .about {
    padding: 6rem 4rem 4rem;
  }

  .contact {
    padding: 5rem 4rem;
  }
  .contact p {
    width: 80%;
  }

  .main__content1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .main__content1 h1 {
    font-size: 3.5rem;
  }

  .technologies {
    padding: 4rem 4rem 3rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .technologies h2 {
    font-size: 1.4rem;
    width: 40%;
  }

  footer {
    padding: 2rem 4rem;
  }

  .footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .footer__brand {
    justify-content: flex-start;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__social {
    justify-content: flex-end;
  }

  .footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
  }

  #backToTop {
    bottom: 2rem;
    right: 2rem;
  }

  .about__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-decoration {
    width: 400px;
    height: 400px;
  }
}

/* Desktop pequeno */
@media (min-width: 992px) {
  .projects__card {
    flex-direction: row;
    padding: 2rem;
  }

  .projects__card.card--reverse {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .card__cover {
    width: 50%;
    max-height: 300px;
  }

  .about {
    gap: 4rem;
  }

  .about__content1 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
  }

  .about__description {
    align-items: flex-start;
  }

  .about__description p {
    text-align: justify;
  }

  .about__content2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about__description h2 {
    text-align: left;
  }

  .description__buttons {
    justify-content: flex-start;
  }

  .main__content1 h1 {
    font-size: 4rem;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2rem;
  }

  main {
    padding: 8rem 6rem 2rem;
  }

  .main__content1 .btn {
    width: auto;
  }

  .main__content1 h1 {
    font-size: 5rem;
  }

  .technologies {
    padding: 5rem 6rem;
  }

  .technologies h2 {
    font-size: 1.6rem;
    width: 45%;
  }

  .technologies__list {
    gap: 1rem;
  }

  .technologies__item {
    width: 6rem;
    height: 6rem;
  }

  .technologies__logo {
    height: 2.8rem;
  }

  p,
  span,
  li {
    font-size: 1.05rem;
  }

  .card__buttons .btn,
  .description__buttons .btn {
    width: auto;
  }

  .hero-decoration {
    width: 500px;
    height: 500px;
  }
}

/* Desktop extra grande */
@media (min-width: 1400px) {
  h1 {
    font-size: 6.25rem;
  }

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  .header {
    padding: 1rem 12rem;
  }

  main {
    padding: 10rem 12rem 2rem;
  }

  .technologies,
  .projects,
  .about {
    padding: 6rem 12rem;
  }

  .main__content1 h1 {
    font-size: 6rem;
  }
}/* ===== PROJECTS COLLAGE (PENIEL FINANCES) ===== */
.card__collage {
  width: 100%;
  border-radius: 1rem;
  position: relative;
  aspect-ratio: 5/2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--secondary-bg-color);
  border: 1px solid var(--secondary-border-color);
  transition: transform 0.5s ease;
}
@media (min-width: 992px) {
  .projects__card {
    gap: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
  }
  .card__body {
    gap: 1rem;
  }
  .card__title {
    font-size: 1.4rem;
  }
  .card__description, .card__item {
    font-size: 1rem;
    line-height: 1.6;
  }
  .card__buttons,
  .description__buttons {
    gap: 0.75rem;
  }
  .card__buttons .btn {
    padding: .65rem 1.25rem;
  }
  .card__buttons .btn span {
    font-size: 0.85rem;
  }
  .card__collage {
    width: 50%;
    height: 300px;
    aspect-ratio: auto;
  }
}
.projects__card:hover .card__collage {
  transform: scale(1.02);
}
.collage__base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  filter: blur(4px);
  position: absolute;
}
.collage__overlay {
  position: absolute;
  width: 20%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
  cursor: pointer;
}
.collage__overlay--1 { left: 10%; top: 15%; transform: rotate(-8deg) scale(0.9); z-index: 2; width: 22%; }
.collage__overlay--2 { right: 10%; top: 20%; transform: rotate(6deg) scale(0.9); z-index: 2; width: 22%; }
.collage__overlay--3 { left: 35%; bottom: 5%; transform: rotate(-3deg) scale(1); z-index: 3; }
.collage__overlay--4 { right: 35%; bottom: 15%; transform: rotate(4deg) scale(0.95); z-index: 1; }

.card__collage:hover .collage__overlay {
  opacity: 0.6;
  filter: blur(2px);
}
.card__collage .collage__overlay:hover {
  transform: scale(1.3) translateY(-10px) rotate(0);
  z-index: 10;
  opacity: 1;
  filter: blur(0);
}
