:root {
  --primary: #3a7bd5;
  --dark: #1e2b3a;
  --accent1: #ffd700; /* Cor do curso de economia */
  --accent2: #f7931a; /* Cor do curso de criptomoedas */
  --light: #f4f6fa;
  --gradient-main: linear-gradient(135deg, #3a7bd5, #3a6073);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 43, 58, 0.95);
  padding: 1rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 2rem;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Hero Section */
header {
  position: relative;
  background: url('finance-tools-bg.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  color: white;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3.5rem;
  max-width: 1000px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeIn 1.5s;
}

header p {
  font-size: 1.3rem;
  margin: 1.5rem 0 3.5rem;
  max-width: 800px;
  opacity: 0.9;
}

.highlight-text {
  position: relative;
  display: inline-block;
  z-index: 1;
  font-weight: 700;
}

.highlight-text.accent1 {
  color: var(--accent1);
}

.highlight-text.accent2 {
  color: var(--accent2);
}

/* Courses Section */
.courses-section {
  padding: 7rem 2rem;
  text-align: center;
  background-color: white;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 2rem auto 4rem;
  color: #666;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.course-card.economy-course {
  border-top: 5px solid var(--accent1);
}

.course-card.crypto-course {
  border-top: 5px solid var(--accent2);
}

.course-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.course-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-tag {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.economy-tag {
  background-color: rgba(255, 215, 0, 0.15);
  color: #b8860b;
}

.crypto-tag {
  background-color: rgba(247, 147, 26, 0.15);
  color: #d35400;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.course-description {
  margin-bottom: 1.5rem;
  color: #666;
  flex-grow: 1;
}

.features-list {
  margin: 1.5rem 0;
  text-align: left;
  padding-left: 1.2rem;
}

.features-list li {
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.course-button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  text-decoration: none;
}

.course-button i {
  margin-left: 10px;
}

.economy-button {
  background: var(--accent1);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.economy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.crypto-button {
  background: var(--accent2);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.crypto-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(247, 147, 26, 0.5);
}

/* Testimonial Section */
.testimonial-section {
  padding: 6rem 2rem;
  background: var(--gradient-main);
  color: white;
  position: relative;
}

.testimonial-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-title {
  font-size: 2.3rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  position: absolute;
  top: -20px;
  left: 30px;
  color: rgba(255, 255, 255, 0.2);
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-position {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background-color: white;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.cta-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #666;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.dual-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  flex: 1 1 250px;
  justify-content: center;
  max-width: 280px;
}

.dual-button i {
  margin-left: 10px;
}

.dual-button.economy {
  background: var(--accent1);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.dual-button.economy:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.dual-button.crypto {
  background: var(--accent2);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.dual-button.crypto:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(247, 147, 26, 0.5);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-logo i {
  margin-right: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  opacity: 0.7;
  margin: 0 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.social-icons {
  margin-bottom: 2rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  margin: 0 0.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-150%);
    transition: all 0.5s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 90;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .mobile-menu {
    display: block;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  header p {
    font-size: 1.1rem;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .course-card {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .dual-button {
    width: 100%;
    max-width: none;
  }
  
  .footer-links a {
    margin: 0.5rem;
  }
}
