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

@custom-variant dark (&:is(.dark *));

:root {
  /* Primary - Navy Blue (Trust, Law, Stability) */
  --background: oklch(0.98 0.002 240);
  --foreground: oklch(0.15 0.03 240);
  
  /* Cards - Clean White */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0.03 240);
  
  /* Popover */
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.15 0.03 240);
  
  /* Primary - Deep Navy Blue */
  --primary: oklch(0.25 0.06 240);
  --primary-foreground: oklch(0.98 0.002 240);
  
  /* Secondary - Light Gray */
  --secondary: oklch(0.96 0.002 240);
  --secondary-foreground: oklch(0.25 0.06 240);
  
  /* Muted */
  --muted: oklch(0.94 0.004 240);
  --muted-foreground: oklch(0.45 0.02 240);
  
  /* Accent - Emerald Green (Property, Growth) */
  --accent: oklch(0.55 0.15 160);
  --accent-foreground: oklch(0.98 0.002 240);
  
  /* Destructive */
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.98 0 0);
  
  /* Borders */
  --border: oklch(0.90 0.01 240);
  --input: oklch(0.92 0.01 240);
  --ring: oklch(0.25 0.06 240);
  
  /* Gold Accent (Premium Investment, Refined Value) */
  --gold: oklch(0.75 0.14 85);
  --gold-light: oklch(0.85 0.08 85);
  --gold-foreground: oklch(0.25 0.06 240);
  
  /* Emerald (Property, Growth, Colombia) */
  --emerald: oklch(0.52 0.16 160);
  --emerald-light: oklch(0.65 0.12 160);
  --emerald-foreground: oklch(0.98 0 0);
  
  /* Navy variants */
  --navy: oklch(0.20 0.05 240);
  --navy-light: oklch(0.30 0.05 240);
  --navy-foreground: oklch(0.98 0 0);
  
  --radius: 0.75rem;
  
  /* Chart colors */
  --chart-1: oklch(0.25 0.06 240);
  --chart-2: oklch(0.55 0.15 160);
  --chart-3: oklch(0.78 0.12 85);
  --chart-4: oklch(0.45 0.02 240);
  --chart-5: oklch(0.65 0.10 200);
}

.dark {
  --background: oklch(0.15 0.02 240);
  --foreground: oklch(0.96 0.002 240);
  --card: oklch(0.18 0.02 240);
  --card-foreground: oklch(0.96 0.002 240);
  --popover: oklch(0.18 0.02 240);
  --popover-foreground: oklch(0.96 0.002 240);
  --primary: oklch(0.96 0.002 240);
  --primary-foreground: oklch(0.20 0.05 240);
  --secondary: oklch(0.22 0.02 240);
  --secondary-foreground: oklch(0.96 0.002 240);
  --muted: oklch(0.22 0.02 240);
  --muted-foreground: oklch(0.65 0.02 240);
  --accent: oklch(0.55 0.15 160);
  --accent-foreground: oklch(0.96 0.002 240);
  --destructive: oklch(0.45 0.20 25);
  --destructive-foreground: oklch(0.96 0 0);
  --border: oklch(0.28 0.02 240);
  --input: oklch(0.28 0.02 240);
  --ring: oklch(0.45 0.10 240);
  --gold: oklch(0.78 0.12 85);
  --emerald: oklch(0.55 0.15 160);
  --navy: oklch(0.20 0.05 240);
  --navy-light: oklch(0.35 0.05 240);
}

@theme inline {
  --font-sans: 'Inter', 'Inter Fallback', system-ui, sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-mono: 'Geist Mono', 'Geist Mono Fallback', monospace;
  --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-gold: var(--gold);
  --color-gold-light: var(--gold-light);
  --color-gold-foreground: var(--gold-foreground);
  --color-emerald: var(--emerald);
  --color-emerald-light: var(--emerald-light);
  --color-emerald-foreground: var(--emerald-foreground);
  --color-navy: var(--navy);
  --color-navy-light: var(--navy-light);
  --color-navy-foreground: var(--navy-foreground);
  --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);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  
  html {
    scroll-behavior: smooth;
  }
}

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

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(30, 58, 95, 0.3); }
  50% { box-shadow: 0 0 40px rgba(30, 58, 95, 0.6); }
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(30, 58, 95, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover card effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* Selection */
::selection {
  background: var(--emerald);
  color: white;
}

/* Gold Divider */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider-left {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Property/Security Badges */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--emerald);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Premium Section Background */
.premium-bg {
  background: linear-gradient(180deg, var(--navy) 0%, oklch(0.18 0.04 240) 100%);
}

/* Package Title with Gold Accent */
.package-title {
  position: relative;
  display: inline-block;
}

.package-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Modern Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary:hover {
  color: var(--navy);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.btn-primary span {
  position: relative;
  z-index: 10;
}

/* Gold Button Variant */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--navy);
  transition: all 0.3s ease;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.btn-gold:hover::before {
  transform: translateY(0);
}

.btn-gold:hover {
  color: var(--gold);
  box-shadow: 0 10px 40px rgba(30, 58, 95, 0.4);
}

.btn-gold span {
  position: relative;
  z-index: 10;
}

/* Link Hover Effect */
.link-hover {
  position: relative;
  display: inline-block;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  transition: width 0.4s ease;
}

.link-hover:hover::after {
  width: 100%;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(30, 58, 95, 0.15);
}

/* Icon Button Hover */
.icon-btn {
  position: relative;
  transition: all 0.3s ease;
}

.icon-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.icon-btn:hover::before {
  opacity: 0.2;
  transform: scale(1);
}

.icon-btn:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
