
/* ============================= */
/* RESET + BASE */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --bg-soft: #1a1a1a;
  --card-bg: #161616;
  --text: #ffffff;
  --text-soft: #aaaaaa;
  --primary: #8b5cf6;
  --border: #222222;
  --shadow: rgba(0, 0, 0, 0.4);
}

.light-mode {
  --bg: #f5f5f5;
  --bg-soft: #ffffff;
  --card-bg: #ffffff;
  --text: #111111;
  --text-soft: #555555;
  --primary: #8b5cf6;
  --border: #dddddd;
  --shadow: rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================= */
/* CONTAINER */
/* ============================= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text,
.hero-image {
  flex: 1;
}

/* animação */

.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-image {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

/* texto */

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;

  background: linear-gradient(90deg,#8b5cf6,#38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text h3 {
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-soft);
}

/* botões */

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* imagem */

.hero-image img {
  width: 320px;
  border-radius: 20px;
  object-fit: cover;

  box-shadow: 0 0 40px rgba(139,92,246,0.4);
  transition: 0.4s ease;
}

.hero-image img:hover {
  transform: translateY(-8px);
}

/* ============================= */
/* BOTÕES */
/* ============================= */

.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: var(--bg);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.secondary:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ============================= */
/* SECTIONS */
/* ============================= */

section {
  padding: 80px 0;
}

/* ============================= */
/* SKILLS */
/* ============================= */

.skills-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: center;
  margin-top: 40px;
}

.skill-item {
  text-align: center;
  transition: 0.3s ease;
}

.skill-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
}

.skill-item span {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.skill-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skill-item:hover span {
  color: var(--text);
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer-cv {
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

.footer-cv:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ============================= */
/* THEME BUTTON */
/* ============================= */

.theme-btn {
  background: transparent;
  border: 1px solid var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ============================= */
/* ANIMAÇÕES */
/* ============================= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-name::after,
.typing::after {
  content: "|";
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============================= */
/* RESPONSIVO */
/* ============================= */

@media (max-width: 900px) {

  .hero-grid {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 30px auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    width: 240px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

body{
  background: radial-gradient(circle at top, #1e1b4b, #020617);
  overflow-x:hidden;
}

/* efeito de luz animada */

body::before{
  content:"";
  position:fixed;
  width:600px;
  height:600px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent);
  top:-100px;
  left:-100px;
  animation: moveLight 10s infinite alternate;
}

@keyframes moveLight{
  0%{transform:translate(0,0);}
  100%{transform:translate(200px,200px);}
}

.hero-text h1{
  font-size:3rem;
  background: linear-gradient(90deg,#8b5cf6,#38bdf8,#22c55e);
  -webkit-background-clip:text;
  color:transparent;
  text-shadow:0 0 20px rgba(139,92,246,0.5);
}

.project{
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139,92,246,0.3);
  padding:20px;
  border-radius:12px;
  transition:0.3s;
}

.project:hover{
  transform: translateY(-10px) scale(1.02);
  box-shadow:0 0 30px rgba(139,92,246,0.5);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.project{
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(139,92,246,0.2);
  border-radius:12px;
  padding:20px;
  transition:0.3s;
}

.project img{
  width:100%;
  border-radius:10px;
  margin-bottom:15px;
}

.project h3{
  margin-bottom:10px;
}

.project p{
  color:var(--text-soft);
  font-size:14px;
}

.tech{
  margin-top:10px;
  font-size:12px;
  color:#8b5cf6;
}

.project-buttons{
  margin-top:15px;
  display:flex;
  gap:10px;
}

.project-buttons a{
  text-decoration:none;
  font-size:13px;
  padding:8px 14px;
  border-radius:6px;
  border:1px solid #8b5cf6;
  color:#8b5cf6;
  transition:0.3s;
}

.project-buttons a:hover{
  background:#8b5cf6;
  color:white;
}

.project:hover{
  transform:translateY(-8px);
  box-shadow:0 0 25px rgba(139,92,246,0.3);
}
/* TIMELINE BASE */

.timeline{
  position:relative;
  margin-top:50px;
  display:flex;
  flex-direction:column;
  gap:40px;
}

/* linha central */

.timeline::before{
  content:"";
  position:absolute;
  left:20px;
  top:0;
  width:2px;
  height:100%;
  background:linear-gradient(#8b5cf6,#38bdf8);
}

/* ITEM */

.timeline-item{
  position:relative;
  padding-left:60px;
}

/* bolinha */

.timeline-item::before{
  content:"";
  position:absolute;
  left:14px;
  top:10px;
  width:14px;
  height:14px;
  background:#8b5cf6;
  border-radius:50%;
  box-shadow:0 0 15px rgba(139,92,246,0.7);
}

/* CARD */

.timeline-content{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(139,92,246,0.2);
  padding:20px;
  border-radius:12px;
  backdrop-filter:blur(10px);

  transform:translateY(30px);
  opacity:0;
  transition:0.6s;
}

/* ANIMAÇÃO AO APARECER */

.timeline-content.show{
  transform:translateY(0);
  opacity:1;
}

/* HEADER EMPRESA */

.empresa-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.empresa-header img{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:8px;
  background:#fff;
  padding:4px;

  box-shadow:0 0 10px rgba(139,92,246,0.3);
}

/* TEXTO */

.data{
  font-size:12px;
  color:var(--text-soft);
}

.timeline-content h3{
  margin:5px 0;
}

.timeline-content p{
  font-size:14px;
  color:var(--text-soft);
}

.timeline-content ul{
  margin-top:10px;
  padding-left:15px;
  font-size:13px;
  color:var(--text-soft);
}

/* HOVER */

.timeline-content:hover{
  transform:translateY(-5px);
  box-shadow:0 0 25px rgba(139,92,246,0.3);
}

/* RESPONSIVO */

@media(max-width:600px){

  .timeline::before{
    left:10px;
  }

  .timeline-item{
    padding-left:40px;
  }

}

.timeline-content{
  opacity:1 !important;
  transform:translateY(0) !important;
}

.stack-flow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:40px;
  align-items:center;
}

.stack-item{
  padding:10px 16px;
  border-radius:8px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(139,92,246,0.3);
  font-size:13px;
  transition:0.3s;
}

.stack-item:hover{
  transform:scale(1.1);
  box-shadow:0 0 15px rgba(139,92,246,0.5);
}

.stack-flow span{
  color:#8b5cf6;
  font-weight:bold;
}
.stack-icons{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
  gap:25px;
  margin-top:40px;
  text-align:center;
}

.stack-icon img{
  width:50px;
  transition:0.3s;
}

.stack-icon:hover img{
  transform:scale(1.2);
}

.stack-categories{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  margin-top:40px;
}

.stack-box{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(139,92,246,0.2);
  border-radius:12px;
  padding:20px;
  transition:0.3s;
}

.stack-box h3{
  margin-bottom:15px;
  color:#8b5cf6;
}

/* ÍCONES */

.stack-icons{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}

.stack-icon{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:70px;
  transition:0.3s;
}

.stack-icon img{
  width:40px;
  transition:0.3s;
}

.stack-icon span{
  font-size:12px;
  margin-top:5px;
  color:var(--text-soft);
}

/* HOVER */

.stack-icon:hover{
  transform:translateY(-5px);
}

.stack-icon:hover img{
  transform:scale(1.2);
}

/* CARD HOVER */

.stack-box:hover{
  transform:translateY(-8px);
  box-shadow:0 0 25px rgba(139,92,246,0.3);
}

/* ANIMAÇÃO */

.fade{
  opacity:0;
  transform:translateY(30px);
  transition:0.8s;
}

.fade.show{
  opacity:1;
  transform:translateY(0);
}

.no-js .fade{
  opacity:1;
  transform:none;
}


/* ============================= */
/* RESPONSIVIDADE COMPLETA */
/* ============================= */

/* BASE */

img{
  max-width:100%;
  height:auto;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ============================= */
/* HERO */
/* ============================= */

@media(max-width:900px){

  .hero-grid{
    flex-direction:column-reverse;
    text-align:center;
    gap:30px;
  }

  .hero-text p{
    margin:0 auto 20px;
  }

  .hero-image img{
    width:200px;
  }

}

/* ============================= */
/* NAVBAR MOBILE */
/* ============================= */

@media(max-width:700px){

  .nav-links{
    display:none;
  }

}

/* ============================= */
/* STACK / SKILLS */
/* ============================= */

@media(max-width:700px){

  .stack-icons{
    justify-content:center;
  }

  .stack-icon{
    width:60px;
  }

}

/* ============================= */
/* TIMELINE */
/* ============================= */

@media(max-width:700px){

  .timeline::before{
    left:10px;
  }

  .timeline-item{
    padding-left:40px;
  }

}

/* ============================= */
/* PROJETOS */
/* ============================= */

@media(max-width:700px){

  .grid{
    grid-template-columns:1fr;
  }

}

/* ============================= */
/* TIPOGRAFIA MOBILE */
/* ============================= */

@media(max-width:700px){

  h1{
    font-size:26px;
  }

  h2{
    font-size:22px;
  }

  p{
    font-size:14px;
  }

}

/* ============================= */
/* FOOTER */
/* ============================= */

@media(max-width:700px){

  .footer-content{
    flex-direction:column;
    gap:15px;
    text-align:center;
  }

}


