:root {
  --bg: #080808;
  --bg2: #111111;
  --card: #171717;
  --text: #ffffff;
  --muted: #b5b5b5;
  --orange: #ff6b1a;
  --blue: #38bdf8;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  color: var(--orange);
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 700;
  color: #dddddd;
}

.menu a {
  position: relative;
  transition: 0.3s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: 0.3s;
}

.menu a:hover {
  color: var(--orange);
}

.menu a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.92)),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 26, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(56, 189, 248, 0.13),
      transparent 35%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: auto;
  animation: fadeUp 1s ease forwards;
}

.hello {
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 20px;
}

.emoji {
  display: inline-block;
  animation: wave 1.6s infinite;
  transform-origin: 70% 70%;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--orange);
}

.hero h2 {
  font-size: clamp(24px, 4vw, 42px);
  color: #e7e7e7;
  font-weight: 500;
  margin-bottom: 28px;
}

.typing {
  color: var(--blue);
  border-right: 3px solid var(--orange);
  padding-right: 6px;
  animation: blink 0.8s infinite;
}

.hero p {
  max-width: 780px;
  margin: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.social {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.3s;
  border: 1px solid var(--line);
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(255, 107, 26, 0.28);
}

.btn-dark:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
}

.scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 8px;
  animation: float 2s infinite;
}

section {
  padding: 95px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  margin-bottom: 45px;
}

.section-title small {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 10px;
}

.line {
  width: 120px;
  height: 4px;
  background: var(--orange);
  margin-top: 18px;
  border-radius: 20px;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-card {
  background: linear-gradient(145deg, #151515, #0d0d0d);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.about-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--orange);
}

.info {
  display: grid;
  gap: 14px;
}

.info div {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 14px;
  color: #dedede;
  line-height: 1.5;
}

.info a {
  color: var(--blue);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 12px;
  text-align: center;
  transition: 0.3s;
}

.skill:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(255, 107, 26, 0.12);
}

.skill .icon {
  font-size: 42px;
  margin-bottom: 14px;
  color: var(--orange);
  display: block;
}

.skill:hover .icon {
  color: var(--blue);
}

.skill strong {
  display: block;
  color: white;
}

.devicon-nextjs-plain {
  color: #ffffff;
}

.projects {
  display: grid;
  gap: 36px;
}

.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  transition: 0.3s;
}

.project:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 26, 0.65);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
}

.project-img {
  height: 380px;
  background:
    linear-gradient(135deg, rgba(255, 107, 26, 0.35), rgba(56, 189, 248, 0.18)),
    #101010;
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: 0.5s;
}

.project:hover .project-img img {
  transform: scale(1.08);
  opacity: 1;
}

.project-img::after {
  content: "PROJETO";
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  z-index: 8;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.7s ease;
}

.carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 1;
}

.project:hover .carousel-track img {
  transform: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 9;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--orange);
}

.project-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content h3 {
  font-size: 34px;
  color: var(--orange);
  margin-bottom: 16px;
}

.project-content p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 22px;
}

.project-content ul {
  color: #dddddd;
  margin-left: 20px;
  line-height: 1.9;
  margin-bottom: 22px;
}

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

.tag {
  background: rgba(255, 107, 26, 0.12);
  color: #ffd0b6;
  border: 1px solid rgba(255, 107, 26, 0.28);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(255, 107, 26, 0.18), rgba(56, 189, 248, 0.12)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 45px;
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 18px;
}

.contact-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 28px;
}

footer {
  padding: 30px 0;
  text-align: center;
  color: #777;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-10deg);
  }

  45% {
    transform: rotate(15deg);
  }

  60% {
    transform: rotate(-6deg);
  }

  75% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

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

  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (max-width: 860px) {
  .menu {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 46px;
  }

  .scroll {
    display: none;
  }

  .project-content {
    padding: 28px;
  }

  .project-img {
    height: 300px;
  }

  .contact-card {
    padding: 30px 20px;
  }
}
