/* CSS Variables para compatibilidade com Tailwind */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 9% 17%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 10% 3.9%;
  --radius: 0.5rem;
}

/* Componentes personalizados */

/* Card Components */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(229 231 235);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgb(243 244 246);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(17 24 39);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content {
  padding: 1.5rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 0.5rem 1rem;
  height: 2.5rem;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: rgb(37 99 235);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(29 78 216);
}

.btn-secondary {
  background-color: rgb(243 244 246);
  color: rgb(17 24 39);
}

.btn-secondary:hover {
  background-color: rgb(229 231 235);
}

.btn-outline {
  border: 1px solid rgb(209 213 219);
  background-color: transparent;
  color: rgb(55 65 81);
}

.btn-outline:hover {
  background-color: rgb(249 250 251);
}

.btn-ghost {
  background-color: transparent;
  color: rgb(75 85 99);
}

.btn-ghost:hover {
  background-color: rgb(243 244 246);
}

.btn-sm {
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgb(219 234 254);
  color: rgb(30 64 175);
}

.badge-secondary {
  background-color: rgb(243 244 246);
  color: rgb(31 41 55);
}

.badge-outline {
  border: 1px solid rgb(209 213 219);
  background-color: transparent;
  color: rgb(55 65 81);
}

/* Timeline Components */
.timeline-item {
  border-left: 2px solid rgb(229 231 235);
  padding-left: 1.5rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -0.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Project Card */
.project-card {
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: box-shadow 0.2s ease-in-out;
}

.project-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Separator */
.separator {
  height: 1px;
  background-color: rgb(229 231 235);
  width: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hover effects */
.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease-in-out;
}

.project-card:hover {
  background-color: rgb(249 250 251);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-content {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
  
  .timeline-dot {
    left: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Print styles */
@media print {
  .btn {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid rgb(209 213 219);
  }
  
  body {
    background-color: white;
  }
}

/* Focus styles for accessibility */
.btn:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5), 0 0 0 4px rgb(59 130 246 / 0.25);
}

/* Loading state */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(to right, rgb(37 99 235), rgb(147 51 234));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Width utility */
.w-full {
  width: 100%;
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 9% 17%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
  }
}
