/* =====================================================
   STYLE.CSS - PARTE 1
   Reset, Variáveis, Base, Navbar e Hero
===================================================== */

/* GOOGLE FONTS */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* VARIÁVEIS */
:root {
  --background: #0f172a;
  --background-secondary: #111827;
  --primary: #38bdf8;
  --text: #fff;
  --paragraph: #cbd5e1;
  --border: #334155;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--background);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(92%, 1200px);
  margin: auto;
}

/* NAVBAR */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 64px;
}

.menu {
  display: flex;
  gap: 32px;
}

.menu a {
  transition: 0.3s;
}

.menu a:hover {
  color: var(--primary);
}

/* HERO */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-tag {
  color: var(--primary);
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--paragraph);
}

.hero-text p {
  color: var(--paragraph);
  line-height: 1.8;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 16px 34px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-5px);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.photo {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--primary);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech {
  background: #1e293b;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* DESKTOP */
@media (min-width: 993px) {
  .hero-image {
    height: 620px;
  }

  .tech {
    position: absolute;
  }

  .html {
    top: 20px;
    left: 210px;
  }
  .css {
    top: 150px;
    left: 10px;
  }
  .js {
    top: 150px;
    right: 10px;
  }
  .python {
    bottom: 120px;
    left: 10px;
  }
  .streamlit {
    bottom: 120px;
    right: 10px;
  }
  .git {
    bottom: 20px;
    left: 210px;
  }
}

/* TABLET */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .tech {
    position: static;
  }

  .photo {
    width: 320px;
    height: 320px;
  }
}

/* CELULAR */

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }

  .menu {
    display: none;
  }

  .hero {
    gap: 40px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .photo {
    width: 260px;
    height: 260px;
  }

  .hero-text p {
    max-width: 100%;
  }
}
/* =====================================================
   STYLE.CSS - PARTE 2
   SOBRE MIM + ESPECIALIDADES
===================================================== */

/* SEÇÕES */

section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title span {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 15px 0;
}

.section-title p {
  max-width: 700px;
  margin: auto;
  color: var(--paragraph);
  line-height: 1.8;
}

/* =====================
      SOBRE MIM
===================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--background-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 35px;
  transition: 0.35s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

.about-card-full {
  grid-column: 1 / -1;
}

.about-card i {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-bottom: 22px;
  font-size: 30px;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
}

.about-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-card h4 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 500;
}

.about-card p {
  color: var(--paragraph);
  line-height: 1.8;
}

/* =====================
   ESPECIALIDADES
===================== */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: var(--background-secondary);
  border-radius: 22px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

.card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.card p {
  color: var(--paragraph);
  line-height: 1.8;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.badges span {
  padding: 8px 16px;
  border-radius: 30px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

/* =====================
 RESPONSIVO
===================== */

@media (max-width: 992px) {
  .about-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .about-card-full {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 90px 0;
  }

  .about-card,
  .card {
    padding: 25px;
  }

  .about-card h3,
  .card h3 {
    font-size: 24px;
  }

  .section-title {
    margin-bottom: 50px;
  }
}
/* =====================================================
   STYLE.CSS - PARTE 3
   PROJETOS
===================================================== */

#projetos {
  padding: 120px 0;
}

/* GRID */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

/* CARD */

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--background-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 35px;
  transition: 0.35s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

/* ÍCONE */

.project-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  margin-bottom: 25px;
}

/* CORES */

.fire {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.netflix {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.buffet {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.portfolio {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

/* TEXTO */

.project-category {
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.project-card h3 {
  font-size: 30px;
  margin: 15px 0;
}

.project-card p {
  color: var(--paragraph);
  line-height: 1.8;
}

/* COMPETÊNCIAS */

.project-learn {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-learn h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.project-learn ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
}

.project-learn li {
  color: var(--paragraph);
  list-style: disc;
}

/* RESPONSIVO */

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #projetos {
    padding: 90px 0;
  }

  .project-card {
    padding: 25px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .project-category {
    font-size: 13px;
  }

  .project-learn {
    margin-top: 22px;
    padding-top: 20px;
  }
}
/* =====================================================
   STYLE.CSS - PARTE 4
   CONTATO + FOOTER + RESPONSIVIDADE FINAL
===================================================== */

/* =====================
      CONTATO
===================== */

#contato {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.contact-card {
  display: block;
  background: var(--background-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 35px;
  color: var(--text);
  transition: 0.35s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.15);
}

.contact-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 22px;
}

.contact-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--paragraph);
  line-height: 1.8;
}

/* =====================
      FOOTER
===================== */

#footer {
  margin-top: 120px;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  text-align: center;
}

.footer-content h3 {
  font-size: 32px;
  margin-bottom: 15px;
}

.footer-content p {
  max-width: 650px;
  margin: auto;
  color: var(--paragraph);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 40px 0;
}

.footer-social a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 25px;
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  color: var(--paragraph);
  font-size: 14px;
}

/* =====================
  ANIMAÇÕES
===================== */

.card,
.about-card,
.project-card,
.contact-card {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
 RESPONSIVIDADE FINAL
===================== */

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #contato,
  #footer {
    padding: 90px 0;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-card h3 {
    font-size: 22px;
  }

  .footer-content h3 {
    font-size: 28px;
  }

  .footer-content p {
    font-size: 15px;
  }

  .footer-social a {
    width: 50px;
    height: 50px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}

/* =====================
 FIM DO STYLE.CSS
===================== */
/* =====================================================
   STYLE.CSS - PARTE 5
   ACABAMENTO E MELHORIAS
===================================================== */

/* =========================
   ROLAGEM SUAVE
========================= */

html {
  scroll-behavior: smooth;
}

/* =========================
   ACESSIBILIDADE
========================= */

a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* =========================
   IMAGENS
========================= */

img {
  user-select: none;
  -webkit-user-drag: none;
}

/* =========================
   EFEITOS HOVER
========================= */

.project-card,
.about-card,
.card,
.contact-card {
  will-change: transform;
}

.project-card:hover,
.about-card:hover,
.card:hover,
.contact-card:hover {
  transform: translateY(-10px);
}

/* =========================
   BOTÃO VOLTAR AO TOPO
   (HTML: <a href="#hero" class="back-top"><i class="fa-solid fa-arrow-up"></i></a>)
========================= */

.back-top{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #38bdf8;
    color: #fff;

    font-size: 22px;

    text-decoration: none;

    box-shadow: 0 10px 30px rgba(56,189,248,.35);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}

.back-top:hover{
    transform: translateY(-5px);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b1220;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

/* =========================
   SELEÇÃO DE TEXTO
========================= */

::selection {
  background: var(--primary);
  color: #fff;
}

/* =========================
   RESPONSIVO EXTRA
========================= */

@media (max-width: 768px) {
  .back-top {
    width: 45px;
    height: 45px;
    right: 15px;
    bottom: 15px;
  }

  .hero-text h1 {
    word-break: break-word;
  }

  .hero-image {
    overflow: hidden;
  }
}

.hidden{
    opacity: 0;
    transform: translateY(35px);
    transition: .7s;
}

.show{
    opacity: 1;
    transform: translateY(0);
}
.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

.menu.open{
    display:flex;
}

.menu a.active{
    color:#38bdf8;
}

.site-counter{
    margin:25px 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.site-counter i{
    font-size:28px;
    color:#38bdf8;
}

.site-counter span{
    font-size:34px;
    font-weight:700;
    color:#fff;
}

.site-counter small{
    font-size:14px;
    color:#94a3b8;
    letter-spacing:1px;
    text-transform:uppercase;
}

