* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0b1120;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2937;
  z-index: 1000;
}

.nav-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #38bdf8;
}

/* ================= HERO ================= */

header {
  padding: 110px 20px 70px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  color: #38bdf8;
}

.subtitle {
  margin-top: 10px;
  font-size: clamp(16px, 3vw, 20px);
  color: #94a3b8;
}

.tagline {
  margin-top: 15px;
  color: #22d3ee;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 26px;
  background: #38bdf8;
  color: #0b1120;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s ease;
  width: fit-content;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.hero-flex {
  display: flex;
  align-items: center;
 justify-content: flex-start;
  gap: 70px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}
.hero-text h1 {
  margin-bottom: 10px;
}

.hero-image img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #38bdf8;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= SECTIONS ================= */

.section {
  padding: 70px 20px;
}

.section.dark {
  background: #111827;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

h2 {
  margin-bottom: 40px;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
}

/* ================= GRIDS ================= */

.skills-grid,
.projects-grid,
.contact-grid,
.cert-grid {
  display: grid;
  gap: 25px;
}

/* Skills, Projects e Contact continuam responsivos */
.skills-grid,
.projects-grid,
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Certificações fixas em 4 colunas desktop */
.cert-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ================= CARDS ================= */

.skill-card,
.project-card,
.contact-card,
.cert-card {
  background: #1f2937;
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Hover padronizado para todas as seções */
.skill-card:hover,
.project-card:hover,
.contact-card:hover,
.cert-card:hover {
  transform: translateY(-6px);
  background: #243041;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

/* ================= PROJECT IMAGES ================= */

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* ================= CERTIFICACOES ================= */

.cert-card {
  text-align: center;
}

.cert-card img {
  width: 60px;
  margin-bottom: 15px;
}

/* ================= CONTACT ================= */

.contact-card h3 {
  margin-bottom: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.contact-card a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: #22d3ee;
}

/* ================= FOOTER ================= */

footer {
  background: #0b1120;
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 25px 20px;
  font-size: 14px;
  color: #94a3b8;
}


/* ================= MOBILE ================= */

/* ================= MOBILE ================= */

@media (max-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* NAV */
  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    height: 100vh;
    width: 260px;
    background: #111827;
    display: flex;
    flex-direction: column;
    padding: 100px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  /* HERO */
  .hero-flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .subtitle {
    justify-content: center;
    gap: 10px;
  }

  .hero-image img {
    width: 170px;
    height:
     170px;
  }
  
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  background: transparent;
}

button.hero-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
}
.outline-btn {
  background: transparent;
  color: #38bdf8;
  border: none;
  padding: 0;
}

.outline-btn:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
.share-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  background: #38bdf8;
  color: #0b1120;
  transition: 0.3s ease;
}

.share-btn.secondary {
  background: transparent;
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(56,189,248,0.2);
}