
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #40514e;
  text-align: center;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  color: #66bfbf;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
}

section {
  scroll-margin-top: 70px;
}

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

.custom-navbar {
  background-color: #e4f9f5;
  padding: 15px 0;
}

.navbar-brand {
  color: #66bfbf;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
}

.navbar-brand:hover {
  color: #00bfff;
}

.nav-link {
  color: #40514e;
  font-weight: 500;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00bfff;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

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

.top-container {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

.top-Gamedev {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.title-text {
  position: relative;
  max-width: 900px;
  color: white;
  z-index: 2;
}

.hero-greeting {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 15px;
}

.title-text h1 {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 25px;
}

.pro {
  background: linear-gradient(90deg, #00bfff, #ff4c68);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 35px;
}

/* ========================================
BUTTONS
======================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.primary-btn {
  background-color: #66bfbf;
  color: white;
}

.primary-btn:hover {
  background-color: #00bfff;
  color: white;
  transform: translateY(-3px);
}

/* Button para jogos no itch.io */

.play-game-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background-color: #66bfbf;
  color: white;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-game-btn:hover {
  background-color: #00bfff;
  color: white;
  transform: translateY(-3px);
}

/* ========================================
ABOUT
======================================== */

.middle-container {
  background-color: #e6f4ea;
  padding: 100px 20px;
}

.profile {
  max-width: 800px;
  margin: 0 auto;
}

.profile-img {
  width: 140px;
  height: 140px;
  margin: 0 auto 30px;
  border-radius: 50%;
  object-fit: cover;
}

.profile h2 {
  margin-bottom: 30px;
}

.intro {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.skills-section {
  background-color: white;
  padding: 100px 20px;
}

.skills-section h2 {
  margin-bottom: 70px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 50px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.skill-image img {
  width: 100%;
  max-width: 500px;
  height: 320px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.skill-content {
  text-align: left;
}

.skill-content h3 {
  color: #66bfbf;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: normal;
  margin-bottom: 15px;
}

.skill-content p {
  max-width: 500px;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

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

.skill-tags span {
  background-color: #e4f9f5;
  color: #40514e;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.skill-content-full {
  grid-column: 1 / -1;
  text-align: center;
}

.skill-content-full p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.skill-content-full .skill-tags {
  justify-content: center;
}

.skill-content-full .skill-tags span {
  font-size: 1rem;
  padding: 10px 18px;
}


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

.projects-section {
  background-color: #e6f4ea;
  padding: 100px 20px;
}

.projects-section h2 {
  margin-bottom: 20px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-embed .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-embed .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(102, 191, 191, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

.video-embed:hover .play-icon {
  background-color: #00bfff;
  transform: translate(-50%, -50%) scale(1.1);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  color: #66bfbf;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-content p {
  line-height: 1.7;
  font-size: 1rem;
}

.project-tech {
  color: #00a8a8;
  font-weight: bold;
}


/* ========================================
EXPERIENCE
======================================== */

.experience-section {
  background-color: white;
  padding: 100px 20px;
}

.experience-section h2 {
  margin-bottom: 50px;
}

.experience-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #e4f9f5;
  border-radius: 12px;
  text-align: left;
}

.experience-content h3 {
  color: #66bfbf;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.experience-role {
  color: #00a8a8;
  font-weight: bold;
  margin-bottom: 25px;
}

.experience-content p {
  line-height: 1.8;
  font-size: 1.1rem;
}


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

.contact-section {
  background-color: #e6f4ea;
  padding: 100px 20px;
}

.contact-section h2 {
  margin-bottom: 30px;
}

.contact-section h3 {
  color: #66bfbf;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
  margin-bottom: 20px;
}

.contact-message {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-email-fallback {
  margin-top: 15px;
  font-size: 0.95rem;
}


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

.bottom-container {
  background-color: #40514e;
  padding: 40px 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 25px;
}

.footer-links a {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  text-decoration: none;
}

.footer-links a:hover {
  color: #66bfbf;
}

.copyright {
  color: white;
  margin: 0;
  font-size: 0.9rem;
}


/* ========================================
TABLETS
======================================== */

@media (max-width: 992px) {

  .skills-grid {
    gap: 50px 30px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


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

@media (max-width: 768px) {

  .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }

  .top-container {
    min-height: calc(100vh - 70px);
    padding: 60px 20px;
  }

  .title-text h1 {
    font-size: clamp(2.3rem, 10vw, 4rem);
  }

  .middle-container,
  .skills-section,
  .projects-section,
  .experience-section,
  .contact-section {
    padding: 70px 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .skill-content {
    text-align: center;
  }

  .skill-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .skill-tags {
    justify-content: center;
  }

  .skill-content-full {
    grid-column: 1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .experience-card {
    padding: 30px 25px;
    text-align: center;
  }

}


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

@media (max-width: 480px) {

  .top-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-description {
    line-height: 1.8;
  }

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

  .skill-image img {
    height: 220px;
  }

  .project-card img {
    height: 200px;
  }

  .experience-card {
    padding: 25px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

}
