@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;400&display=swap');
:root {
  /* Dark Mode - Graphite & Royal Blue */
  --primary-color: #3b82f6; /* Azul Real elegante */
  --primary-bg-color: #121212; /* Preto grafite (não puro) */
  --secondary-bg-color: #1e1e1e; /* Cinza para cards */
  --primary-border-color: #2e2e2e;
  --secondary-border-color: #3b82f6;

  --title-color: #ffffff;
  --text-color: #a0a0a0;
  --link-color: #3b82f6;
  --icon-color: #3b82f6;
}

:root[data-theme='light'] {
  /* Light Mode - Pure White & Slate */
  --primary-color: #2563eb;
  --primary-bg-color: #ffffff;
  --secondary-bg-color: #f8fafc; /* Azulado bem clarinho */
  --primary-border-color: #e2e8f0;
  --secondary-border-color: #2563eb;
  --title-color: #0f172a; /* Azul quase preto para títulos */
  --text-color: #475569; /* Cinza ardósia para leitura */
  --link-color: #2563eb;
  --icon-color: #2563eb;
}



html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--primary-bg-color);
  font-family:'Inter', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
}
/* Isso evita que o header fixo cubra o título da seção ao navegar */
section[id], main[id] {
    scroll-margin-top: 5rem; 
}

/* Melhora a transição de cores ao mudar o tema */
body, section, main, .projects__card, .accordion__header, .accordion__body {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-bg-color);
  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: 400;
}

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;
}

.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  z-index: 2;
}

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

.header__brand .brand__logo {
  width: 3.25rem;
  height: 3.25rem;
}

#toggleTheme {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: ease-in-out .4s;
}

.menu {
  display: flex;
  align-items: center;
  background: var(--primary-bg-color);
}

.menu__item {
  width: 100%;
}

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

.menu--mobile {
  width: 100vw;
  position: fixed;
  bottom: 0;
  justify-content: space-between;
  border-top: 1px solid var(--primary-border-color);
  z-index: 1000;
}

.menu--mobile .menu__link {
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.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.5rem;
}

.menu__text {
  font-size: .75rem;
  text-transform: uppercase;
}

.header__nav {
  display: none;
}

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

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

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  background: transparent;
  border-radius: 3.125rem;
  border: none;
  padding: 0.875rem 1.5rem;
  transition: ease-in-out .3s;
  cursor: pointer;
  color: var(--primary-color);
}

.btn:hover {
  transform: scale(1.05);
  transition: ease-in-out .3s;
}

.btn span, .btn i {
  font-size: 1.25rem;
  text-transform: uppercase;
}

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

.btn--primary {
  border: 1px solid var(--primary-color);
}


main, .projects, .about, .contact {
  padding: 2.5rem 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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



.technologies {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 2.25rem 1rem ;
  background: var(--secondary-bg-color);
 
}

.technologies h2 {
  font-size: 2rem;
  text-transform: none;
  letter-spacing: normal;
  text-align: start;
}

.technologies__list {
  display: flex;
  flex-flow: row wrap;
  gap: .7rem;
}

.technologies__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 5.8rem;
  height: 5.8rem;
  aspect-ratio: 1/1;
  border: 1px solid var(--secondary-border-color);
  border-radius: 50rem;
  gap: 0.5rem;

}

.technologies__logo {
  height:3.9rem;
  transition: transform 0.3s ease;
}
.technologies__logo:hover {
  transform: scale(1.2); 
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.projects__card {
  display: flex;
  flex-direction: column;
  gap: 2rem;

}

.card__iframe {
  width: 90%;
  height: 550px; /* Escolha uma altura que fique boa no seu card */
  border-radius: 0.5rem;
  border: none; /* Remove a borda padrão do iframe */
  
  object-fit: cover; 
}
.card__cover {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
}

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

.card__description {
  color: var(--title-color);
}

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

.card__item, .about__item {
  list-style: disc;
}

.card__buttons, .description__buttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.card__buttons .btn {
  padding: .65rem 1.25rem;
}

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

.card__body .technologies__list {
  gap: .75rem;
}

.card__body .technologies__item {
  width: 4rem;
  height: 4rem;
}

.card__body .technologies__logo {
  height: 2rem;
}

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

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

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

.about__photo {
  width: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 50rem;
  border: 1px solid var(--primary-border-color);
}

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

.about__icons {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.about__icons i {
  font-size: 1.25rem;
}

.about__content2 .col1, 
.about__content2 .col2 {
  display: flex;
  flex-direction: column;
  text-align: justify;
  gap: 2rem;
}

.about__content2 .col1 .row1,
.about__content2 .col1 .row2 {
  display: flex;
  flex-direction: column;
  gap: .5rem; 
}

.accordion__header {
  width: 100%;
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--primary-border-color);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: ease-in-out .3s;
}

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

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

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

.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);
  }

.accordion__item.active .accordion__header {
  background: var(--secondary-bg-color);
}

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

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

.certificate {
  display: flex;
  width: 50%; 
  max-width: 500px; 
  border-radius: 0.7rem;
  overflow: hidden; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  
  cursor: pointer;
}

.certificate:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(240, 240, 240, 0.37);
}

.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);
}

.contact p {
  text-align: center;
}

.contact .btn {
  width: auto;
}

.contact .email {
  text-transform: lowercase;
}

footer {
  margin-bottom: 5rem;
}

footer p {
  font-size: .875rem;
  text-align: center;
  padding: 1rem;
}

/* Responsividade */
@media (min-width: 768px) {
  .header {
    position: fixed;
    border-bottom: 1px solid var(--primary-border-color);
    padding: 1rem 6rem;
    background: var(--primary-bg-color);
  }

  .nav--mobile {
    display: none;
  }

  .header__nav {
    display: flex;
  }

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

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3rem;
  }

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

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

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

  .technologies {
    padding: 6.25rem 6rem 2rem 6rem;
  }

  footer {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .projects__card {
    flex-direction: row;
  }

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

  .about {
    gap: 5rem;
  }

  .about__content1, .about__content2 {
    display: grid;
    grid-template-columns: 34% 60%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4rem;
  }

  .about__description h2 {
    text-align: left;
  }

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

@media (min-width: 1200px) {

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 2.5rem;
  }

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

  .main__content1 .btn {
    width: auto;
  }

  .technologies {
    flex-direction: row;
    justify-content: center;
    align-items: center;

  }

  .technologies h2 {
    font-size: 3rem;
    width: 55%;
  }

  .technologies__list {
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
  }

  .technologies__item {
    width: 5.7rem;
    height: 5.7rem;
  }
  
  .technologies__logo {
    height:  3rem;
  }

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

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

@media (min-width: 1400px) {
  h1 {
    font-size: 6rem;
    margin-top: 5rem;
  }

  h2 {
    font-size: 4.5rem;
  }

  h3 {
    font-size: 3.25rem;
  }

  .header {
    padding: 1rem 15rem;
  }

  main {
    padding: 12rem 15rem ;
   
  }
  
   .projects, .about {
    padding: 10rem 15rem 4rem;
  }
  .technologies{
    padding: 8rem 15rem;
  }

}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000ec; /* Fundo Preto Total */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-in-out; /* Saída suave para o site */
}

/* Esconde o preloader suavemente */
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Estilo da Logo */
.loader-logo {
  width: 150px;
  display: block;
  margin: 0 auto;
  animation: pulsar 2s ease-in-out infinite;
}


#welcome-text {
  display: none; 
  opacity: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  color: #ffffff; 
  text-align: center;
  transition: opacity 0.6s ease;
}

@keyframes pulsar {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}






.projects__card, 
.card__buttons, 
.projects__container > a {
    opacity: 0;
    transform: translateY(270px); 
    filter: blur(12px);           
    visibility: hidden;
    
    transition: 
        opacity 2.5s cubic-bezier(0.1, 1, 0.1, 1), 
        transform 5s cubic-bezier(0.1, 1, 0.1, 1),
        filter 2.5s cubic-bezier(0.1, 1, 0.1, 1);
    
    will-change: transform, opacity;
}


.projects__card.reveal, 
.card__buttons.reveal, 
.projects__container > a.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
    visibility: visible !important;
}

.technologies__item {
    opacity: 0;
    transform: translateY(150px);
    filter: grayscale(100%) blur(5px); /* Começa cinza e embaçado */
    transition: 
        opacity 1.5s cubic-bezier(0.2, 1, 0.2, 1), 
        transform 3.5s cubic-bezier(0.2, 1, 0.2, 1),
        filter 1.5s ease;
    visibility: hidden;
}

/* Estado Ativo (Revelado) */
.technologies__item.reveal {
    opacity: 1;
    transform: translateY(0);
    filter: grayscale(0%) blur(0); /* Ganha cor e nitidez devagar */
    visibility: visible;
}

/* Criando o efeito cascata (Delay para cada item) */
/* O primeiro ícone sobe, o segundo espera 0.1s, o terceiro 0.2s... */
.technologies__item:nth-child(1) { transition-delay: 0.1s; }
.technologies__item:nth-child(2) { transition-delay: 0.2s; }
.technologies__item:nth-child(3) { transition-delay: 0.3s; }
.technologies__item:nth-child(4) { transition-delay: 0.4s; }
.technologies__item:nth-child(5) { transition-delay: 0.5s; }
.technologies__item:nth-child(6) { transition-delay: 0.6s; }


