/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --bg-main: #0e0e10;
  --bg-card: #16161a;
  --primary: #4f8cff;
  --secondary: #22c55e;
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --transition: 0.3s ease;
}

/* BASE */
body {
  background: #020617;
  color: #e5e7eb; 
  transform: none !important;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

/* HERO */
.hero {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: radial-gradient(circle at top, #0f172a, #020617);
   min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);

  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 25px 60px;
}

.hero {
  position: relative;
}

.logo {
  font-weight: 700;
}

.nav-links a {
  margin-left: 20px;
  color: #38bdf8;
}

/* HERO CONTENT */
.hero-content {
max-width: 520px;
margin: 120px 0 0 10%;
}

.hero-content h1 {
  font-size: 3rem;
}

.hero-content h2 {
  margin-top: 10px;
  color: #38bdf8;
}

/* IMAGEM */
.right {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-40%);
}

.right img {
  width: 280px;
  height: 360px;

  object-fit: cover;

  border-radius: 140px; /* oval elegante */
  background: #7a2e3a;

  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 4px rgba(255,255,255,0.05);
}

.buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
 padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  background: #111;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover principal */
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: #000;
}

/* Botão alternativo (GitHub) */
.btn-outline {
  background: transparent;
  border: 2px solid #111;
  color: #111;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.primary {
  background: #38bdf8;
  color: #020617;
}

.secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

/* SECTIONS */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #38bdf8;
}

/* SKILLS */
.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 15px;
  border: 1px solid #1e293b;
}

.skills-grid img {
  width: 60px;
  height: 60px;
  filter: grayscale(100%) opacity(0.7);
  transition: 0.3s ease;
}

.skills-grid img:hover {
  transform: scale(1.2);
  filter: grayscale(0%) opacity(1);
}

/* PROJECTS */
.projects-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* CARD DO PROJETO */
.project-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  padding: 30px;

  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.15);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: 0.3s ease;
}

.project-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* IMAGEM */
.project-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, #020617, #0f172a);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.project-slide:hover img {
  transform: scale(1.03);
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: 0.3s;
}

.project-visual:hover .project-overlay {
  opacity: 1;
}

/* TEXTO */
.project-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  font-size: 0.8rem;
  font-weight: bold;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-data h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tech-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.tech-icons .icon {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

/* HTML */
.tech-icons .html:hover {
  filter: none;
  transform: translateY(-4px) scale(1.15);
}

/* CSS */
.tech-icons .css:hover {
  filter: none;
  transform: translateY(-4px) scale(1.15);
}

/* JS */
.tech-icons .js:hover {
  filter: none;
  transform: translateY(-4px) scale(1.15);
}

/* CONTACT */
#contact {
  text-align: center;
}

#contact a {
  color: #38bdf8;
  font-weight: 600;
}







.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}


.nav.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56,189,248,0.15);
}




/* FOOTER */
.footer {
  width: 100%;
  padding: 25px 15px;
  margin-top: 80px;

  background: linear-gradient(135deg, #0a0f1c, #020617);
  color: #9ca3af;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  text-align: center;
}

.footer span {
  color: #ffffff;
  font-weight: 600;
}

.footer-tech {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
}

/* CONTATOS */
.contact {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact h3 {
  font-size: 28px;
  color: #ffffff;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 22px;
  border-radius: 16px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item svg {
  width: 28px;
  height: 28px;
  stroke: #38bdf8;
  fill: none;
  stroke-width: 1.5;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-item .label {
  font-size: 13px;
  color: #94a3b8;
}

.contact-item .value {
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
}

.contact-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(56,189,248,0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px;
  gap: 60px;
}

/* TEXTO */
.hero-content {
  max-width: 520px;
  margin: 0;
}

/* IMAGEM */
.right img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* TEXTO AO LADO DA IMAGEM */
.profile-text {
  max-width: 220px;
  text-align: right;
}

.profile-text h3 {
  font-size: 1.1rem;
  color: #38bdf8;
  margin-bottom: 8px;
}

.profile-text p {
  font-size: 0.95rem;
  color: #a1a1aa;
  line-height: 1.4;
}

/* IMAGEM (mantém profissional) */
.right img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}


/* RESPONSIVO */
/* --- AJUSTES DE RESPONSIVIDADE UNIVERSAL --- */

/* 1. Ajuste no Hero para Mobile */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(60px, 10vh, 120px) 20px; /* Padding fluido */
    gap: 40px;
}

@media (max-width: 968px) {
    .hero-wrapper {
        flex-direction: column; /* Empilha o conteúdo */
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        margin: 0;
        max-width: 100%;
        order: 2; /* Texto vai para baixo da foto */
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem); /* Título diminui no celular */
    }

    .buttons {
        justify-content: center;
    }

    .right {
        position: relative; /* Sai do absolute para não flutuar sobre o texto */
        right: auto;
        top: auto;
        transform: none;
        order: 1; /* Foto vai para cima */
    }
}

/* 2. Ajuste da Imagem de Perfil */
.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .profile-info {
        flex-direction: column; /* Texto e foto empilhados */
    }

    .profile-text {
        text-align: center;
        max-width: 100%;
        order: 2;
    }

    .right img {
        width: 200px; /* Tamanho fixo menor para celular */
        height: 200px;
        order: 1;
    }
}

/* 3. Grid de Projetos Fluido */
.projects-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-slide {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Padrão Desktop */
    gap: 20px;
    padding: 20px;
}

@media (max-width: 850px) {
    .project-slide {
        grid-template-columns: 1fr; /* Vira coluna única no tablet/celular */
    }
    
    .project-visual {
        aspect-ratio: 16/9; /* Garante que a imagem não suma */
    }
}

/* 4. Menu e Navegação */
@media (max-width: 600px) {
    .nav {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}

/* 5. Prevenção de quebra lateral (iOS Fix) */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 6. Ajuste de toque para Android/iOS */
.btn, .nav-links a, .linkedin-fixed {
    min-height: 44px; /* Tamanho mínimo recomendado pela Apple/Google para clique */
    display: inline-flex;
    align-items: center;
}

/* ESTILO DO BOX DE CONTATO NA HOME */
.contact-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-box p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* O BOTÃO EM SI */
.btn-contact {
    display: inline-block;
    background: rgba(0, 0, 0, 0);
    color: #020617;
    padding: 16px 40px;
    border-radius: 100px; /* Botão arredondado estilo pílula */
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
    background: transparent;
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Responsividade para o botão no celular */
@media (max-width: 480px) {
    .contact-box {
        padding: 40px 20px;
    }
    .btn-contact {
        width: 100%; /* No celular o botão ocupa a largura toda para facilitar o clique */
        padding: 14px 20px;
    }
}

/* ===== AJUSTES EXCLUSIVOS PARA IOS ===== */
@supports (-webkit-touch-callout: none) {

  /* HERO */
  .hero {
    min-height: -webkit-fill-available;
  }

  .hero-wrapper {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* IMAGEM */
  .right {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .right img {
    width: 220px;
    height: 220px;
  }

  /* TEXTO */
  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  /* BOTÕES */
  .buttons {
    justify-content: center;
  }
}

body.ios .hero {
  min-height: -webkit-fill-available;
}

body.ios .right {
  position: relative;
  transform: none;
}

body.ios .hero-content {
  text-align: center;
}

