/* Variáveis globais */
:root {
  --primary-color: #9c27b0;
  --primary-light: #d05ce3;
  --primary-dark: #6a0080;
  --secondary-color: #e91e63;
  --text-color: #333;
  --text-light: #666;
  --background-color: #f9f9f9;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-medium: #e0e0e0;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

section {
  padding: 5rem 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.small-btn {
  padding: 0.3rem 0.8rem;
  font-size: 1.2rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.login-btn {
  background-color: var(--secondary-color);
}

.login-btn:hover {
  background-color: #c2185b;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.github-link:before {
  content: "⭐";
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-content .subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-content .description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  opacity: 0.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot, .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.screenshot:hover, .hero-image img:hover {
  transform: scale(1.02);
}

/* Features section */
.features {
  background-color: var(--white);
  text-align: center;
}

.features h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card ul {
  text-align: left;
  list-style-position: inside;
}

.feature-card li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Demo section */
.demo {
  background-color: var(--gray-light);
  text-align: center;
}

.demo h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.demo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-app {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.app-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header h3 {
  margin: 0;
}

.app-actions {
  display: flex;
  gap: 0.5rem;
}

.app-actions select {
  padding: 0.3rem;
  border-radius: 4px;
  border: none;
}

.tasks-container {
  padding: 1rem;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-medium);
  gap: 1rem;
}

.task-item:last-child {
  border-bottom: none;
}

.task-item.completed span {
  text-decoration: line-through;
  color: var(--text-light);
}

.task-item.overdue {
  background-color: rgba(255, 0, 0, 0.05);
}

.tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--white);
}

.tag.work {
  background-color: #2196f3;
}

.tag.personal {
  background-color: #ff9800;
}

.tag.study {
  background-color: #4caf50;
}

.due-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.due-date.overdue {
  color: #f44336;
  font-weight: bold;
}

.demo-description {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

.demo-description h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.demo-description ol {
  margin: 1rem 0 2rem 1rem;
}

.demo-description li {
  margin-bottom: 0.5rem;
}

/* How to use section */
.how-to-use {
  background-color: var(--white);
  text-align: center;
}

.how-to-use h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.install-steps {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step pre {
  width: 100%;
  padding: 1rem;
  background-color: #333;
  color: var(--white);
  border-radius: 4px;
  overflow: auto;
  text-align: left;
}

/* Technologies section */
.technologies {
  background-color: var(--gray-light);
  text-align: center;
}

.technologies h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.tech-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-group {
  flex: 1;
  min-width: 300px;
}

.tech-group h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tech-item {
  background-color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  font-weight: 500;
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #333;
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3, .footer-contact h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 1rem;
  }

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

  .step pre {
    font-size: 0.9rem;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card, .step, .demo-app, .demo-description {
  animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}

.step:nth-child(3) {
  animation-delay: 0.4s;
}

.step:nth-child(4) {
  animation-delay: 0.6s;
}

.step:nth-child(5) {
  animation-delay: 0.8s;
}
