@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #ffffff;
  --foreground: #09090b;
  --card: #f8fafc;
  --card-foreground: #09090b;
  --popover: #ffffff;
  --popover-foreground: #09090b;
  --primary: #024d37;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #024d37;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #024d37;
  --radius: 0.875rem;

  /* Exact Logo Forest / Pine Green */
  --logo-green: #024d37;
  --logo-green-hover: #036549;
  --logo-green-light: #024d37;
  --logo-green-glow: rgba(2, 77, 55, 0.25);
  --grid-pattern: rgba(2, 77, 55, 0.05);
}

.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111114;
  --card-foreground: #fafafa;
  --popover: #09090b;
  --popover-foreground: #fafafa;
  --primary: #024d37;
  --primary-foreground: #ffffff;
  --secondary: #18181b;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #024d37;
  --accent-foreground: #ffffff;
  --destructive: #7f1d1d;
  --destructive-foreground: #fafafa;
  --border: #27272a;
  --input: #27272a;
  --ring: #024d37;

  /* Exact Logo Forest / Pine Green in Dark Mode */
  --logo-green: #024d37;
  --logo-green-hover: #036549;
  --logo-green-light: #024d37;
  --logo-green-glow: rgba(2, 77, 55, 0.25);
  --grid-pattern: rgba(255, 255, 255, 0.04);
}

* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Brand Logo Color Classes */
.text-logo-green {
  color: #024d37;
}

.bg-logo-green {
  background-color: #024d37;
}

.border-logo-green {
  border-color: #024d37;
}

.glow-card-green {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card-green:hover {
  border-color: rgba(2, 77, 55, 0.4);
  box-shadow: 0 10px 30px -10px rgba(2, 77, 55, 0.15);
}

.neon-green-glow {
  text-shadow: 0 0 12px rgba(2, 77, 55, 0.4);
}

/* Wireframe Blueprint Section Corner Marker (Crosshair box) */
.section-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  height: 7px;
  width: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--primary);
  background: var(--primary);
  pointer-events: none;
}

.section-corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  height: 7px;
  width: 7px;
  transform: translate(50%, -50%);
  border: 1px solid var(--primary);
  background: var(--primary);
  pointer-events: none;
}

.section-corner-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: 7px;
  width: 7px;
  transform: translate(-50%, 50%);
  border: 1px solid var(--primary);
  background: var(--primary);
  pointer-events: none;
}

.section-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  height: 7px;
  width: 7px;
  transform: translate(50%, 50%);
  border: 1px solid var(--primary);
  background: var(--primary);
  pointer-events: none;
}

/* Wireframe Canvas Background Grid */
.bg-wireframe-grid {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, var(--grid-pattern) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-pattern) 1px, transparent 1px);
}

.bg-wireframe-dots {
  background-size: 24px 24px;
  background-image: radial-gradient(var(--grid-pattern) 1.5px, transparent 1.5px);
}

/* Wireframe Card Hover Glow */
.wireframe-card-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wireframe-card-hover:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

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

/* Vertical Testimonial Marquee Keyframes */
@keyframes marquee-down {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0%);
  }
}

@keyframes marquee-up {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-50%);
  }
}

.animate-marquee-down {
  animation: marquee-down 32s linear infinite;
}

.animate-marquee-up {
  animation: marquee-up 32s linear infinite;
}

.animation-pause {
  animation-play-state: paused !important;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}