/* Deixaki Design System - Premium Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Deixaki Brand Colors - Matching Python Project */
  --background: 0 0% 98%;
  --foreground: 0 0% 15%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 15%;

  /* Primary - Deixaki Purple (matching Python project) */
  --primary: 267 46% 51%; /* #6B46C1 */
  --primary-dark: 267 46% 35%; /* #4C1D95 */
  --primary-light: 267 46% 65%; /* #A78BFA */
  --primary-foreground: 0 0% 100%;

  /* Secondary - Orange (matching Python project) */
  --secondary: 33 100% 50%; /* #FF8C00 */
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 94%;
  --muted-foreground: 0 0% 46%;
  --accent: 267 46% 95%;
  --accent-foreground: 267 46% 51%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 91%;
  --input: 0 0% 91%;
  --ring: 267 46% 51%;
  --radius: 1rem;

  /* Deixaki Premium Gradients - Updated to match Python project */
  --gradient-primary: linear-gradient(135deg, #6B46C1, #A78BFA);
  --gradient-hero: linear-gradient(135deg, #6B46C1 0%, #4C1D95 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Premium Shadows - Updated to match Python project */
  --shadow-sm: 0 2px 8px -2px rgba(107, 70, 193, 0.1);
  --shadow-md: 0 8px 25px -5px rgba(107, 70, 193, 0.15);
  --shadow-lg: 0 20px 50px -12px rgba(107, 70, 193, 0.25);
  --shadow-premium: 0 35px 60px -12px rgba(107, 70, 193, 0.3);

  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark theme - Updated to match Python project colors */
.dark {
  --background: 0 0% 8%;
  --foreground: 0 0% 95%;
  --card: 0 0% 12%;
  --card-foreground: 0 0% 95%;
  --popover: 0 0% 12%;
  --popover-foreground: 0 0% 95%;
  --primary: 267 46% 65%; /* #A78BFA */
  --primary-dark: 267 46% 51%; /* #6B46C1 */
  --primary-light: 267 46% 75%;
  --primary-foreground: 0 0% 8%;
  --secondary: 33 100% 50%; /* #FF8C00 */
  --secondary-foreground: 0 0% 8%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;
  --accent: 267 46% 20%;
  --accent-foreground: 267 46% 65%;
  --destructive: 0 75% 55%;
  --destructive-foreground: 0 0% 95%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 267 46% 65%;

  /* Dark mode gradients - Updated to match Python project */
  --gradient-primary: linear-gradient(135deg, #A78BFA, #C4B5FD);
  --gradient-hero: linear-gradient(135deg, #6B46C1 0%, #4C1D95 100%);
  --gradient-card: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(0 0% 15%) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Base styles */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 110px; /* Adicionado para empurrar o conteúdo abaixo do cabeçalho fixo */
}

html {
  scroll-behavior: smooth;
}

/* Utility classes for Tailwind compatibility */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary-dark { background-color: hsl(var(--primary-dark)); }
.bg-primary-light { background-color: hsl(var(--primary-light)); }
.bg-muted { background-color: hsl(var(--muted)); }

.text-foreground { color: hsl(var(--foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-white { color: white; }

.border-border { border-color: hsl(var(--border)); }

/* Premium Button Variants */
.btn-hero {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.btn-hero:active {
  transform: scale(0.95);
}

.btn-secondary {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 2px solid hsl(var(--primary) / 0.2);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.btn-glass {
  background: var(--gradient-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Premium Cards */
.card-premium {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.card-premium:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-glass {
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  background: var(--gradient-glass);
  transition: var(--transition-smooth);
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

/* Navigation Links */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.mobile-nav-link {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: hsl(var(--primary));
}

/* Hero Section */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s ease;
}

.hero-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Indicators */
.slide-indicator {
  transition: all 0.3s ease;
  cursor: pointer;
}

.slide-indicator.active {
  background-color: white !important;
  width: 2rem !important;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Utility classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Header scroll effect */
.header-scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-sm);
}

/* Form styles */
input, textarea {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

input:focus, textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-hero, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .card-premium {
    padding: 1.5rem;
  }
  
  /* Hero buttons responsive */
  #hero .flex.flex-row.gap-4 {
    flex-direction: column;
    gap: 1rem;
  }
  
  #hero .flex.flex-row.gap-4 button {
    width: 100%;
    max-width: 280px;
  }
}

/* Hero button fixes */
#hero button.flex.items-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#hero button.flex.items-center i {
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Dark mode toggle */
.dark-mode-toggle {
  transition: var(--transition-smooth);
}

.dark-mode-toggle:hover {
  background-color: hsl(var(--muted));
}

/* Mobile menu */
.mobile-menu-open {
  display: block !important;
}

/* Smooth transitions for all interactive elements */
button, a, .card-premium, .btn-hero, .btn-secondary, .btn-glass {
  transition: var(--transition-smooth);
}

/* Focus states for accessibility */
button:focus, a:focus, input:focus, textarea:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/Error states */
.success {
  color: hsl(142 76% 36%);
}

.error {
  color: hsl(var(--destructive));
}
