@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

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

body {
  background: linear-gradient(90deg, #FFD93D, #FFB347);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

/* HEADER */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 217, 61, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: #333;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #333;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #bb7718;
  transition: width 0.3s ease;
}

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

/* HERO SECTION */
.section {
  font-weight: bold;
  align-items: center;
  text-align: center;
  margin-top: 6rem; /* por causa do header fixo */
  padding: 2rem 1rem;
  max-width: 1000px;
}

.title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  color: #333;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  animation: bounceTitle 6s infinite ease-in-out;
}

.subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #555;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0;
  animation: shakeSubtitle 10s infinite ease-in-out;
}

@keyframes bounceTitle {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
  75% { transform: translateY(-2px); }
}

@keyframes shakeSubtitle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-0.5px); }
}

/* BUTTONS */
.btn-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto;
}

.primary-btn {
  grid-column: span 2;
}

.btn-group a {
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  border-radius: 10px;
  width: 100%;
}

/* Base buttons */
.primary-btn,
.secondary-btn,
.tertiary-btn {
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.3s ease;
}

/* Primary */
.primary-btn {
  border: 2px solid #E68A00;
  color: #333;
  box-shadow: 0 6px 18px rgba(255, 179, 71, 0.4);
  background-image: linear-gradient(135deg, #FFD93D, #FFB347, #FFD93D);
  background-size: 300% 100%;
  animation: gradientFlow 6s ease-in-out infinite;
}
@keyframes gradientFlow {
  0% { background-position: left center; }
  50% { background-position: right center; }
  100% { background-position: left center; }
}
.primary-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(255, 179, 71, 0.5);
}

/* Secondary */
.secondary-btn {
  position: relative;
  border: 2px solid #FFD93D;
  background-color: #FFD93D;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1;
}
.secondary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 2.5s infinite linear;
}
@keyframes shine {
  from { left: -75%; }
  to { left: 125%; }
}
.secondary-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Tertiary */
.tertiary-btn {
  position: relative;
  border: 2px solid #333;
  background-color: #333;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.tertiary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite linear;
}
.tertiary-btn:hover {
  transform: translateY(-6px);
  border-color: #FFD93D;
  background-color: #111;
  box-shadow: 
      0 0 12px rgba(255, 217, 61, 0.7),
      0 0 24px rgba(255, 179, 71, 0.5),
      0 12px 24px rgba(0, 0, 0, 0.4);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.feature-card {
  background: linear-gradient(135deg, #FFF5E1, #FFE8A3, #FFF5E1);
  background-size: 200% 200%;
  border: 2px solid #FFD93D;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  animation: gradientPulse 6s ease-in-out infinite;
}
@keyframes gradientPulse {
  0% { background-position: left top; }
  50% { background-position: right bottom; }
  100% { background-position: left top; }
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  border-color: #FFB347;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #bb7718;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 1rem;
  color: #444;
}

/* CODE SNIPPET */
.snippet-section {
  margin: 3rem auto;
  max-width: 800px;
  padding: 1rem;
}
.snippet-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}
.code-snippet {
  background: #222;
  color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FOOTER */
.footer {
  margin-top: auto;
  width: 100%;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .title {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .btn-group {
    grid-template-columns: 1fr;
  }
  .primary-btn {
    grid-column: span 1;
  }
}
