@import "tailwindcss";
@import "tw-animate-css";

:root {
  /* Enhanced color palette with black and gold theme */
  --color-dark: #0a0a0a;
  --color-gold: #d4af37;
  --color-gold-light: #f4e4a6;
  --color-gold-dark: #b8941f;
  --color-gray-light: #f8f8f8;
  --color-gray-medium: #666666;
  --color-white: #ffffff;
  --color-black-soft: #1a1a1a;
  --color-accent: #2d2d2d;

  /* Enhanced shadows and effects */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.3);

  /* Animation timings */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;

  /* New styles from updates */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.light {
  --color-dark: #0a0a0a;
  --color-gold: #d4af37;
  --color-gold-light: #f4e4a6;
  --color-gold-dark: #b8941f;
  --color-gray-light: #f8f8f8;
  --color-gray-medium: #666666;
  --color-white: #ffffff;
  --color-black-soft: #1a1a1a;
  --color-accent: #2d2d2d;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
}

.dark {
  --color-dark: #ffffff;
  --color-gold: #d4af37;
  --color-gold-light: #f4e4a6;
  --color-gold-dark: #b8941f;
  --color-gray-light: #1a1a1a;
  --color-gray-medium: #cccccc;
  --color-white: #0a0a0a;
  --color-black-soft: #2d2d2d;
  --color-accent: #f8f8f8;
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
}

@theme inline {
  /* optional: --font-sans, --font-serif, --font-mono if they are applied in the layout.tsx */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* Updated to modern font stack with better typography */
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  font-weight: 400;
}

/* Enhanced fade-in animations with better timing */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Advanced hover effects with better performance */
.hover-lift {
  transition: all 0.4s ease;
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: all 0.4s ease;
  will-change: transform;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: all 0.4s ease;
  will-change: box-shadow, transform;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

/* Enhanced gradient effects */
.gold-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(10, 10, 10, 0.95) 100%);
}

/* Enhanced WhatsApp button with better animation */
.whatsapp-float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 50px rgba(37, 211, 102, 0.6);
}

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

/* Enhanced navigation with better backdrop blur */
.nav-blur {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 50%;
  background: var(--color-gold);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 998;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }
}

/* Enhanced CTA buttons with better animations */
.cta-button {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-dark);
  padding: 18px 36px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  font-size: 14px;
  will-change: transform;
  animation: bounceIn 1s ease-out;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  transform: translateY(-6px) scale(1.08) rotate(2deg);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
}

.cta-button-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  padding: 16px 34px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  will-change: transform;
}

.cta-button-outline:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Enhanced service cards with modern design */
.service-card {
  background: var(--color-black-soft);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%, rgba(212, 175, 55, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.4);
  border-color: var(--color-gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.service-card h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover h3 {
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  font-size: 16px;
}

.service-card ul {
  position: relative;
  z-index: 2;
}

.service-card ul li {
  transition: all 0.3s ease;
}

.service-card:hover ul li {
  transform: translateX(5px);
}

.service-card .cta-button {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.service-card:hover .cta-button {
  transform: translateY(-3px) scale(1.05);
}

/* Enhanced testimonial cards */
.testimonial-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  transition: all 0.4s ease;
  border: 2px solid rgba(212, 175, 55, 0.1);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--color-gold);
}

.testimonial-card:hover img {
  transform: scale(1.1);
  border-color: var(--color-gold-light);
}

.testimonial-card img {
  transition: all 0.4s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -15px;
  right: 25px;
  font-size: 120px;
  color: var(--color-gold);
  opacity: 0.1;
  font-family: serif;
  font-weight: bold;
}

/* Enhanced section styling */
.section-padding {
  padding: 140px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black-soft) 100%);
  color: white;
}

.section-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-dark);
}

.dark .section-title {
  color: var(--color-dark) !important;
}

.dark h2 {
  color: var(--color-dark) !important;
}

.dark h3 {
  color: var(--color-dark) !important;
}

.section-title span:first-child {
  color: var(--color-gold) !important;
}

.dark .section-title span:first-child {
  color: var(--color-gold) !important;
}

.light .section-title span:first-child {
  color: var(--color-gold) !important;
}

.dark .services-title-first {
  color: #60a5fa !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.light .services-title-first {
  color: #2563eb !important;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3) !important;
}

.services-title-first {
  color: #3b82f6 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
  font-weight: 800 !important;
  display: inline-block !important;
}

/* Enhanced image effects */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Advanced loading animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  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 pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

.animate-slide-up {
  animation: slideInUp 1s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 1s ease-out;
}

.animate-slide-right {
  animation: slideInRight 1s ease-out;
}

.enhanced-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.enhanced-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* New particle effect for hero section */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.1;
  animation: float-particle 6s ease-in-out infinite;
}

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

/* Enhanced phone input styling with Brazilian format */
.phone-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix {
  position: absolute;
  left: 20px;
  color: var(--color-gray-medium);
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.phone-input {
  padding-left: 70px !important;
}

/* Theme toggle functionality and improved dark/light theme support */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
  background: var(--color-dark);
  border-radius: 25px;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001;
  display: flex;
  align-items: center;
  padding: 2px;
}

.theme-toggle::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--color-gold);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

.theme-toggle.light::before {
  transform: translateX(28px);
}

.theme-toggle:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  transform: scale(1.1);
}

/* Enhanced animations with better performance and visual effects */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.9) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Enhanced floating elements for visual appeal */
.floating-element {
  position: absolute;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.1;
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Enhanced background patterns */
.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
