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

html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Inter', sans-serif;
  color: #e5e7eb;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;

  background: linear-gradient(
    -45deg,
    #020617,
    #0f172a,
    #020617,
    #1e293b
  );
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

p {
  font-weight: 400;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 190px 20px 60px;
  gap: 80px;
  background: transparent;
  text-align: left;
}

.hero-text {
  max-width: 600px;
  order: 1;
}

.hero-photo {
  flex-shrink: 0;
  margin-top: -10px;
  order: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 4px;
}

.hero h2 {
  font-size: 1.7rem;
  font-weight: 500;
  margin-top: 0;      
  margin-bottom: 12px;
  color: #cbd5f5;
}

.hero h1 span {
  color: #38bdf8;
}

.hero p {
  margin: 20px 0;
  font-size: 1.2rem;
  color: #cbd5f5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px; 
}

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #38bdf8;
  color: #0f172a;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.btn.outline {
  background: transparent;
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.btn.outline:hover {
  background-color: rgba(56, 189, 248, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #38bdf8;
}

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

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: #cbd5f5;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #38bdf8;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

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

.nav-links a.active::after {
  width: 100%;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down span {
  display: block;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid #38bdf8;
  border-right: 2px solid #38bdf8;
  transform: rotate(45deg);
  animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(6px, 6px);
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(0, 0);
  }
}

.profile-img {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 60px;
}

.section-title::after {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.about {
  max-width: 1350px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.about-text p {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 460px;
}

.about-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.about-card ul {
  padding-left: 18px;
}

.about-card li {
  margin-bottom: 8px;
  color: #94a3b8;
}

strong, b {
  font-weight: 700;
  color: #f8fafc;
}

section {
  padding: 80px 10%;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p {
  color: #94a3b8;
}


/* ========================
   SKILLS
======================== */

.skills {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

.skills-table {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.skills-table table {
  width: 100%;
  border-collapse: collapse;
}

.skills-table thead {
  background: rgba(56, 189, 248, 0.1);
}

.skills-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  color: #38bdf8;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-table td {
  padding: 20px 24px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-table tr:last-child td {
  border-bottom: none;
}

.skills-table tbody tr {
  transition: background 0.3s ease;
}

.skills-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.skills-table td:first-child {
  font-weight: 600;
  color: #cbd5e1;
  width: 200px;
}

.skills-table td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ========================
   BADGES
======================== */

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-js {
  background: #f0db4f;
  color: #000;
  font-weight: 700;
}

.badge-python {
  background: #3776ab;
  color: #fff;
}

.badge-java {
  background: #007396;
  color: #fff;
}

.badge-html {
  background: #e34c26;
  color: #fff;
}

.badge-css {
  background: #264de4;
  color: #fff;
}

.badge-react {
  background: #61dafb;
  color: #20232a;
}

.badge-node {
  background: #68a063;
  color: #fff;
}

.badge-express {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

.badge-mysql {
  background: #00758f;
  color: #fff;
}

.badge-git {
  background: #f05032;
  color: #fff;
}

.badge-github {
  background: #181717;
  color: #fff;
}

.badge-vscode {
  background: #007acc;
  color: #fff;
}

.badge-pycharm {
  background: #21d789;
  color: #000;
}

.badge-intellij {
  background: #000000;
  color: #fff;
}

.badge-leaflet {
  background: #3d9970;
  color: #fff;
}


/* ========================
   CERTIFICATES
======================== */

.certificates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.certificate-card {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  text-align: center;
}

.certificate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(56, 189, 248, 0.3));
}

.certificate-card h3 {
  font-size: 1.3rem;
  color: #f1f5f9;
  margin-bottom: 12px;
  font-weight: 600;
}

.cert-issuer {
  color: #38bdf8;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.cert-date {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cert-link {
  display: inline-block;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cert-link:hover {
  color: #0ea5e9;
  transform: translateX(4px);
}

.cert-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
  margin-top: 2px;
}

.cert-link:hover::after {
  width: 100%;
}


/* ========================
   PROJECTS
======================== */

.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 500px;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.project-cover {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

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

.project-info {
  padding: 28px;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.project-info p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-details {
  display: inline-block;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.project-details:hover {
  color: #0ea5e9;
  letter-spacing: 0.5px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid #38bdf8;
  padding-left: 14px;
}

.project-meta p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0;
}

.project-meta strong {
  color: #f1f5f9;
}


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

.contact {
  text-align: center;
  padding: 40px;
  background-color: #020617;
}


/* ========================
   RESPONSIVIDADE - TABLET
======================== */

@media (max-width: 768px) {

  /* NAVBAR */
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  /* HERO */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
    order: 2;
  }

  .hero-photo {
    order: 1;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero p br {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-cards {
    width: 100%;
  }

  /* SKILLS */
  .skills-table td {
    display: block;
    padding: 12px 16px;
  }

  .skills-table td:first-child {
    width: 100%;
    border-bottom: none;
    padding-bottom: 6px;
    color: #38bdf8;
  }

  .skills-table td:last-child {
    padding-top: 6px;
    padding-bottom: 16px;
  }

  .skills-table th {
    padding: 12px 16px;
  }

  /* CERTIFICATES */
  .certificates-grid {
    grid-template-columns: 1fr;
  }

  /* PROJECTS */
  .projects-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact {
    padding: 40px 20px;
  }

  .contact p {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  
}


/* ========================
   RESPONSIVIDADE - MOBILE
======================== */

@media (max-width: 480px) {

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .about-card {
    padding: 18px;
  }

  .certificate-card {
    padding: 24px;
  }

  section {
    padding: 60px 6%;
  }
}