@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap");

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

:root {
  --bg: #f8fbff;
  --text: #111827;
  --muted: #5b6475;

  --card: rgba(255, 255, 255, 0.78);

  --border: rgba(99, 102, 241, 0.18);

  --primary: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #38bdf8;

  --shadow: 0 24px 70px rgba(79, 70, 229, 0.18);
}

body.dark {
  --bg: #070a18;
  --text: #f8fafc;
  --muted: #b7c0d8;

  --card: rgba(15, 23, 42, 0.74);

  --border: rgba(139, 92, 246, 0.25);

  --shadow: 0 24px 80px rgba(56, 189, 248, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 32%
    ),

    radial-gradient(
      circle at top right,
      rgba(139, 92, 246, 0.2),
      transparent 35%
    ),

    var(--bg);

  color: var(--text);

  transition:
    background 0.4s ease,
    color 0.4s ease;

  overflow-x: hidden;
}

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

/* HEADER */

.header {
  width: 100%;

  position: fixed;

  top: 0;

  z-index: 1000;
}

.navbar {
  width: min(1120px, 92%);

  margin: 18px auto 0;

  padding: 14px 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.42);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow);

  animation: navbarFade 1s ease;
}

body.dark .navbar {
  background: rgba(7, 10, 24, 0.52);
}

.logo {
  font-family: "Space Grotesk", sans-serif;

  font-weight: 700;

  font-size: 1.2rem;

  letter-spacing: -0.03em;

  transition: 0.3s;
}

.logo:hover {
  transform: translateY(-2px);
}

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

.nav-menu {
  display: flex;

  gap: 22px;

  list-style: none;

  color: var(--muted);

  font-size: 0.92rem;
}

.nav-menu a {
  position: relative;

  transition: 0.3s;
}

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

.nav-menu a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #2563eb,
    #7c3aed
  );

  transition: 0.3s;
}

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

.nav-actions {
  display: flex;

  gap: 8px;
}

.nav-actions button {
  border: 1px solid var(--border);

  background: var(--card);

  color: var(--text);

  padding: 8px 11px;

  border-radius: 999px;

  cursor: pointer;

  font-weight: 700;

  transition: 0.3s;
}

.nav-actions button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 30px rgba(124, 58, 237, 0.15);
}

/* SECTION */

.section {
  width: min(1120px, 92%);

  margin: 0 auto;

  min-height: 100vh;

  padding: 140px 0 70px;
}

/* HERO */

.hero {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 60px;
}

.hero-content {
  animation: fadeLeft 1s ease;
}

.hero-image {
  position: relative;

  display: flex;
  justify-content: center;

  animation:
    fadeRight 1s ease,
    floating 5s ease-in-out infinite;
}

.tag {
  color: var(--primary);

  font-weight: 800;

  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);

  line-height: 0.95;

  letter-spacing: -0.08em;

  margin-bottom: 22px;
}

.hero h2 {
  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.3rem);

  font-weight: 500;

  margin-bottom: 22px;
}

.hero-text {
  font-size: clamp(1.3rem, 3vw, 2.2rem);

  line-height: 1.25;

  font-weight: 800;

  max-width: 740px;

  background: linear-gradient(
    135deg,
    #1d4ed8,
    #6d28d9,
    #a21caf
  );

  background-size: 200% 200%;

  animation: gradientMove 6s ease infinite;

  -webkit-background-clip: text;

  color: transparent;
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 34px;
}

.btn {
  padding: 13px 20px;

  border-radius: 999px;

  font-weight: 800;

  border: 1px solid var(--border);

  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);

  box-shadow:
    0 12px 30px rgba(124, 58, 237, 0.22);
}

.primary {
  color: white;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  box-shadow:
    0 16px 38px rgba(79, 70, 229, 0.28);
}

.secondary {
  background: var(--card);

  color: var(--text);
}

/* FOTO */

.hero-image img {
  width: min(360px, 82vw);

  height: min(360px, 82vw);

  object-fit: cover;

  border-radius: 50%;

  padding: 4px;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.35),
    rgba(124, 58, 237, 0.35)
  );

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 40px rgba(124, 58, 237, 0.14);

  position: relative;

  z-index: 2;

  transition: 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

.image-glow {
  position: absolute;

  width: 390px;

  height: 390px;

  background: linear-gradient(
    135deg,
    var(--accent),
    var(--secondary)
  );

  filter: blur(45px);

  opacity: 0.18;

  border-radius: 50%;

  animation: floatGlow 4s ease-in-out infinite alternate;
}

/* ABOUT */

.about {
  min-height: auto;
}

.section-header {
  max-width: 760px;

  margin-bottom: 34px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);

  line-height: 1;

  letter-spacing: -0.06em;
}

.about-card {
  padding: 34px;

  border: 1px solid var(--border);

  border-radius: 32px;

  background: var(--card);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow);

  transition: 0.35s ease;
}

.about-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.12);
}

.about-card p {
  color: var(--muted);

  font-size: 1.05rem;

  line-height: 1.8;

  margin-bottom: 18px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* SKILLS */

.skills {
  min-height: auto;
}

.skills-wrapper {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;
}

.skill-card {
  padding: 30px;

  border-radius: 30px;

  border: 1px solid var(--border);

  background: var(--card);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow);

  transition: 0.35s ease;

  position: relative;

  overflow: hidden;
}

.skill-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(124, 58, 237, 0.06)
  );

  opacity: 0;

  transition: 0.4s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-10px);

  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.14);
}

.skill-card h3 {
  font-size: 1.2rem;

  margin-bottom: 24px;

  position: relative;

  z-index: 2;
}

.tech-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;

  position: relative;

  z-index: 2;
}

.tech-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 18px 12px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.06);

  transition: 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.04);

  background: rgba(255, 255, 255, 0.1);
}

.tech-item i {
  font-size: 3rem;

  transition: 0.35s ease;
}

.tech-item:hover i {
  transform: scale(1.15) rotate(4deg);
}

.tech-item p {
  font-size: 0.92rem;

  font-weight: 600;
}

.scrum-icon {
  width: 48px;

  height: 48px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 800;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );

  color: white;
}

/* ANIMAÇÕES */

@keyframes gradientMove {
  0% {
    background-position: left;
  }

  50% {
    background-position: right;
  }

  100% {
    background-position: left;
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

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

  100% {
    transform: translateY(0px);
  }
}

@keyframes floatGlow {
  from {
    transform: translateY(-10px) scale(0.96);
  }

  to {
    transform: translateY(16px) scale(1.04);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;

    transform: translateX(-40px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;

    transform: translateX(40px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

@keyframes navbarFade {
  from {
    opacity: 0;

    transform: translateY(-20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* RESPONSIVO */

@media (max-width: 900px) {

  .navbar {
    width: min(94%, 760px);

    border-radius: 28px;

    align-items: flex-start;

    gap: 14px;

    flex-wrap: wrap;
  }

  .nav-menu {
    width: 100%;

    order: 3;

    display: flex;

    overflow-x: auto;

    gap: 14px;

    padding: 6px 2px 2px;

    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu a {
    white-space: nowrap;

    font-size: 0.86rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions button {
    font-size: 0.78rem;

    padding: 7px 9px;
  }

  .hero {
    grid-template-columns: 1fr;

    text-align: center;

    padding-top: 190px;
  }

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

  .hero-image {
    order: -1;
  }

  .about-card {
    padding: 24px;
  }

  .skills-wrapper {
    display: flex;

    overflow-x: auto;

    gap: 20px;

    scroll-snap-type: x mandatory;

    padding-bottom: 10px;
  }

  .skills-wrapper::-webkit-scrollbar {
    display: none;
  }

  .skill-card {
    min-width: 320px;

    scroll-snap-align: center;
  }

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

/* EXPERIENCE */

.experience {
  min-height: auto;
}

.timeline {
  position: relative;

  width: 100%;

  margin-top: 60px;

  padding: 40px 0;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 0;

  transform: translateX(-50%);

  width: 4px;

  height: 100%;

  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #2563eb,
    #7c3aed,
    #a21caf
  );

  box-shadow:
    0 0 30px rgba(124, 58, 237, 0.3);
}

.timeline-item {
  position: relative;

  width: 50%;

  padding: 20px 40px;

  margin-bottom: 50px;
}

.timeline-item.left {
  left: 0;

  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: "";

  position: absolute;

  top: 36px;

  width: 22px;

  height: 22px;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );

  border: 4px solid var(--bg);

  box-shadow:
    0 0 25px rgba(124, 58, 237, 0.4);

  z-index: 2;
}

.timeline-item.left::before {
  right: -11px;
}

.timeline-item.right::before {
  left: -11px;
}

.timeline-content {
  padding: 28px;

  border-radius: 28px;

  background: var(--card);

  border: 1px solid var(--border);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow);

  transition: 0.35s ease;

  position: relative;

  overflow: hidden;
}

.timeline-content::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(124, 58, 237, 0.06)
  );

  opacity: 0;

  transition: 0.35s ease;
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-content:hover {
  transform: translateY(-10px);

  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.14);
}

.timeline-content span {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 0.88rem;

  font-weight: 700;

  color: var(--primary);
}

.timeline-content h3 {
  font-size: 1.2rem;

  margin-bottom: 8px;
}

.timeline-content h4 {
  color: var(--muted);

  font-size: 0.95rem;

  margin-bottom: 16px;

  font-weight: 600;
}

.timeline-content p {
  color: var(--muted);

  line-height: 1.7;

  font-size: 0.96rem;
}

/* RESPONSIVO TIMELINE */

@media (max-width: 900px) {

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;

    padding-left: 60px;

    padding-right: 0;

    left: 0 !important;

    text-align: left !important;
  }

  .timeline-item::before {
    left: 9px !important;
  }

  .timeline-content {
    padding: 24px;
  }
}
/* PROJECTS */

.projects {
  min-height: auto;
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* FEATURED */

.featured-project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;

  align-items: center;
}

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

/* CARD */

.project-card {
  position: relative;

  overflow: hidden;

  border-radius: 34px;

  border: 1px solid var(--border);

  background: var(--card);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow);

  transition: 0.4s ease;
}

.project-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(124, 58, 237, 0.06)
  );

  opacity: 0;

  transition: 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);

  box-shadow:
    0 35px 90px rgba(124, 58, 237, 0.16);
}

/* IMAGEM */

.project-image {
  position: relative;

  overflow: hidden;

  height: 320px;

  border-radius: 24px 24px 0 0;

  background: #0f172a;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  object-position: top center;

  display: block;

  transition: 0.45s ease;
}

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

/* PLACEHOLDER */

.placeholder-image {
  min-height: 240px;

  position: relative;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.12),
      rgba(124, 58, 237, 0.12)
    );
}

.placeholder-image::before {
  content: "";

  position: absolute;

  inset: -100%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent
    );

  animation: skeletonMove 3s linear infinite;
}

.mockup-lines {
  width: 75%;

  display: flex;
  flex-direction: column;

  gap: 14px;

  z-index: 2;
}

.mockup-line {
  height: 18px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.18);
}

.mockup-line.large {
  width: 100%;
  height: 90px;
  border-radius: 24px;
}

.mockup-line.small {
  width: 60%;
}

/* CONTEÚDO */

.project-content {
  position: relative;

  z-index: 2;

  padding: 30px;
}

.project-label {
  display: inline-block;

  margin-bottom: 16px;

  padding: 8px 14px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #7c3aed
    );

  color: white;

  font-size: 0.8rem;

  font-weight: 700;
}

.project-content h3 {
  font-size: 1.5rem;

  margin-bottom: 18px;

  line-height: 1.1;
}

.project-content p {
  color: var(--muted);

  line-height: 1.7;

  margin-bottom: 24px;
}

/* TAGS */

.project-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 26px;
}

.project-tags span {
  padding: 9px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid var(--border);

  font-size: 0.82rem;

  font-weight: 700;
}

/* BUTTONS */

.project-buttons {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;
}

/* ANIMATION */

@keyframes skeletonMove {

  from {
    transform: translateX(-100%) rotate(25deg);
  }

  to {
    transform: translateX(100%) rotate(25deg);
  }

}

/* RESPONSIVIDADE */

@media (max-width: 900px) {

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

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

  .project-content {
    padding: 24px;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .placeholder-image {
    min-height: 200px;
  }

}

/* COURSES */

.courses {
  min-height: auto;
}

.courses-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.featured-course {
  border-left: 5px solid var(--primary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  position: relative;
  overflow: hidden;

  padding: 28px;

  border-radius: 30px;
  border: 1px solid var(--border);

  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);

  transition: 0.35s ease;
}

.course-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(124, 58, 237, 0.06)
  );

  opacity: 0;
  transition: 0.35s ease;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.14);
}

.course-card > * {
  position: relative;
  z-index: 2;
}

.course-category {
  display: inline-block;

  margin-bottom: 16px;
  padding: 8px 14px;

  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #2563eb,
    #7c3aed
  );

  color: white;

  font-size: 0.78rem;
  font-weight: 800;
}

.course-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;

  margin-bottom: 12px;
}

.course-card p {
  color: var(--muted);

  line-height: 1.6;

  margin-bottom: 16px;
}

.course-info {
  display: inline-block;

  padding: 8px 12px;

  border-radius: 999px;

  border: 1px solid var(--border);

  color: var(--primary);

  font-size: 0.85rem;
  font-weight: 800;
}

/* RESPONSIVO COURSES */

@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    padding: 24px;
  }
}

/* CONTACT */

.contact {
  min-height: auto;
  padding-bottom: 120px;
}

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

.contact-content h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

.contact-content p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-card {
  position: relative;
  overflow: hidden;

  padding: 22px 24px;

  border-radius: 24px;
  border: 1px solid var(--border);

  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);

  transition: 0.35s ease;
}

.contact-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(124, 58, 237, 0.08)
  );

  opacity: 0;
  transition: 0.35s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateX(10px);

  box-shadow:
    0 24px 70px rgba(124, 58, 237, 0.16);
}

.contact-card span,
.contact-card strong {
  position: relative;
  z-index: 2;
}

.contact-card span {
  display: block;

  color: var(--primary);

  font-size: 0.82rem;
  font-weight: 800;

  margin-bottom: 6px;
}

.contact-card strong {
  color: var(--text);

  font-size: 1rem;
  word-break: break-word;
}

/* RESPONSIVO CONTACT */

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-card:hover {
    transform: translateY(-6px);
  }
}

.footer {
  padding: 80px 0 40px;
}

.footer-content {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 40px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: var(--shadow);
}

.footer-content h3 {
  font-size: 2rem;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}

.footer-content p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.footer-links a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: 0.25s;
}

.footer-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  color: white;
}

.footer-content span {
  color: var(--muted);
  font-size: 0.9rem;
}