/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --font-inter: 'Inter', sans-serif;
  --font-space-grotesk: 'Space Grotesk', sans-serif;
  --primary: #0f172a;
  --primary-dark: #020617;
  --primary-light: #1e293b;
  --primary-lighter: #334155;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --accent-light: #f87171;
  --secondary: #64748b;
  --secondary-dark: #475569;
  --secondary-light: #94a3b8;
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 255, 255, 255;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter), sans-serif;
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-space-grotesk), sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }
.ml-8 { margin-left: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.75; }

/* Colors */
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-accent { background-color: var(--accent); }
.bg-accent-dark { background-color: var(--accent-dark); }
.bg-accent\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-accent\/5 { background-color: rgba(239, 68, 68, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-primary\/70 { background-color: rgba(15, 23, 42, 0.7); }
.bg-primary\/80 { background-color: rgba(15, 23, 42, 0.8); }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-primary-light { border-color: var(--primary-light); }
.border-white { border-color: #ffffff; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-green-200 { border-color: #bbf7d0; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }
.opacity-100 { opacity: 1; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.right-4 { right: 1rem; }
.right-8 { right: 2rem; }
.left-4 { left: 1rem; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-72 { width: 18rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.h-\[500px\] { height: 500px; }
.h-\[90vh\] { height: 90vh; }
.min-h-screen { min-height: 100vh; }
.min-h-\[400px\] { min-height: 400px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

@media (min-width: 768px) {
  .md\:h-12 { height: 3rem; }
  .md\:min-h-\[450px\] { min-height: 450px; }
}

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-visible { overflow: visible; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Transforms */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.scale-110 { transform: scale(1.1); }
.-translate-x-12 { transform: translateX(-3rem); }
.translate-x-12 { transform: translateX(3rem); }
.translate-y-12 { transform: translateY(3rem); }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-20px { transform: translateY(20px); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-1000 { transition-duration: 1000ms; }

/* Hover States */
.hover\:bg-accent-dark:hover { background-color: var(--accent-dark); }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-primary-light:hover { background-color: var(--primary-light); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--accent); }
.focus\:ring-accent:focus { box-shadow: 0 0 0 2px var(--accent); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Placeholder */
.placeholder-white\/60::placeholder { color: rgba(255, 255, 255, 0.6); }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Brightness and Invert */
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Space Y */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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 slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-out {
  from {
    transform: scale(1.25);
  }
  to {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-zoom-out {
  animation: zoom-out 10s ease-out forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-delay-4 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* Button Styles */
button[class*="bg-accent"]:not(.submenu-link),
a[class*="bg-accent"]:not(.submenu-link),
button[class*="bg-primary"]:not(.submenu-link),
a[class*="bg-primary"]:not(.submenu-link) {
  color: white !important;
}

button[class*="bg-white"]:not(.submenu-link),
a[class*="bg-white"]:not(.submenu-link) {
  color: rgb(15, 23, 42) !important;
}

/* Submenu Links */
.bg-white .submenu-link,
.bg-white a.submenu-link {
  color: #374151 !important;
}

.bg-white .submenu-link:hover,
.bg-white a.submenu-link:hover {
  color: #ef4444 !important;
}

/* Group Hover */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Responsive Flex */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Prose Styles */
.prose {
  max-width: 65ch;
}

.prose-lg {
  font-size: 1.125rem;
}

.prose-lg p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

/* Custom Styles */
.text-balance {
  text-wrap: balance;
}

/* Rotate */
.rotate-180 {
  transform: rotate(180deg);
}

/* Min Height */
.min-h-full {
  min-height: 100%;
}

/* Max Height */
.max-h-\[90vh\] {
  max-height: 90vh;
}

/* Flex 1 */
.flex-1 {
  flex: 1 1 0%;
}

/* Resize */
.resize-none {
  resize: none;
}

/* Green Success Message */
.bg-green-50 {
  background-color: #f0fdf4;
}

.text-green-800 {
  color: #166534;
}

/* Slider Styles */
.slide {
  opacity: 0;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.slider-dot.active {
  width: 2rem;
  background-color: white;
}

/* Animated Section States */
[data-animate] {
  opacity: 0;
}

[data-animate].animated {
  opacity: 1;
}

[data-animate="left"].animated {
  animation: slideInLeft 0.8s ease-out forwards;
}

[data-animate="right"].animated {
  animation: slideInRight 0.8s ease-out forwards;
}

[data-animate="up"].animated {
  animation: slideInUp 0.8s ease-out forwards;
}

[data-animate="fade"].animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

